[llvm-commits] AddressSanitizer GCD tests on Mac: prevent optimization, enable.

Alexander Potapenko glider at google.com
Mon Dec 5 00:44:28 PST 2011


Fix GCD tests for AddressSanitizer on Mac.
The following patch declares the char* vars holding the memory
allocations as volatile, which prevents the compiler from optimizing
them and breaking the tests.
I'm also enabling the tests by default, as the GCD support in ASan
runtime library is quite stable already.

-- 
Alexander Potapenko
Software Engineer
Google Moscow
-------------- next part --------------
A non-text attachment was scrubbed...
Name: asan-mac-test.patch
Type: text/x-patch
Size: 4036 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20111205/8ba6136d/attachment.bin>


More information about the llvm-commits mailing list