We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
pal.h
Builds with clang 16 but not clang 18. This is specific to 32-bit Linux.
/__w/1/s/src/coreclr/pal/inc/pal.h:3605:5: error: __sync builtin operation MUST have natural alignment (consider using __atomic). [-Werror,-Wsync-alignment] 3605 | __sync_val_compare_and_swap( | ^ /__w/1/s/src/coreclr/pal/inc/pal.h:3471:5: error: __sync builtin operation MUST have natural alignment (consider using __atomic). [-Werror,-Wsync-alignment] 3471 | __sync_add_and_fetch(lpAddend, (LONGLONG)1) | ^ /__w/1/s/src/coreclr/pal/inc/pal.h:3506:5: error: __sync builtin operation MUST have natural alignment (consider using __atomic). [-Werror,-Wsync-alignment] 3506 | __sync_sub_and_fetch(lpAddend, (LONGLONG)1) | ^ 3 errors generated.
#101630 (comment)
The text was updated successfully, but these errors were encountered:
This diagnostic was added in https://reviews.llvm.org/D143813, it is looking for something like
- InterlockedIncrement64(IN OUT LONGLONG volatile *lpAddend), + InterlockedIncrement64(IN OUT LONGLONG volatile *lpAddend DECLSPEC_ALIGN(8)),
Sorry, something went wrong.
Looks like that change is in LLVM 17+. Thanks for the extra info.
Successfully merging a pull request may close this issue.
Builds with clang 16 but not clang 18. This is specific to 32-bit Linux.
#101630 (comment)
The text was updated successfully, but these errors were encountered: