Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incorrect __builtin_constant_p test for c_align_to #18

Closed
wants to merge 1 commit into from

Commits on Jan 5, 2024

  1. Fix incorrect __builtin_constant_p test for c_align_to

    16 aligned to 8 or 16 will always be 16, so it is legal for __builtin_constant_p to return true here, and Clang indeed performs this optimization (while GCC does not).
    
    Adjust the argument to 8, in which case the result of the expression is not a known constant.
    nikic authored Jan 5, 2024
    Configuration menu
    Copy the full SHA
    7379b15 View commit details
    Browse the repository at this point in the history