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

Hubert Tong via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 3 15:29:20 PST 2025


================
@@ -1121,20 +1121,24 @@
 // RUN:   | FileCheck --check-prefixes=CHECK-K-UNUSED %s
 // CHECK-K-UNUSED: clang: warning: -K: 'linker' input unused [-Wunused-command-line-argument]
 
+
+// This check is only applicable to AIX targets. 
+// AIX-specific link behavior requires `-latomic` for 32-bit sanitizer libraries, 
+// Running this test on non-AIX targets will result in an unrelated error 
+// (e.g., missing atomic support on certain architectures), 
+// which is outside the scope of this bug and is addressed separately.
----------------
hubert-reinterpretcast wrote:

Remove unclear reference to "this bug" from the code comment in the test.
```suggestion
// (e.g., missing atomic support on certain architectures).
// FIXME: Address issues with non-AIX environments/configurations.
```

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


More information about the cfe-commits mailing list