[clang] [compiler-rt] [Sanitizers] the access size (8 bytes) exceeds the max lock-free size (4 bytes) for 32-bit (PR #125388)

Wael Yehia via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 2 20:04:16 PST 2025


================
@@ -239,6 +239,9 @@ append_list_if(SANITIZER_LIMIT_FRAME_SIZE -Wframe-larger-than=570
 append_list_if(COMPILER_RT_HAS_WGLOBAL_CONSTRUCTORS_FLAG -Wglobal-constructors
                SANITIZER_CFLAGS)
 
+# Suppress -Watomic-alignment warnings by not treating them as errors
----------------
w2yehia wrote:

also, for other conditional additions to `CFLAGS` (like the ones above) a variable is defined in `compiler-rt/CMakeLists.txt` and checked here (see `SANITIZER_LIMIT_FRAME_SIZE` for example). Not sure if yours has to be done similarly.

https://github.com/llvm/llvm-project/pull/125388


More information about the llvm-commits mailing list