[llvm-commits] [PATCH][AddressSanitizer] Make lib\asan compileable using g++

Timur Iskhodzhanov timurrrr at google.com
Fri Jan 27 02:51:53 PST 2012


Hi,

The attached patch makes compiler-rt/trunk/lib/asan compileable with g++.

The double-extern thing is
http://llvm.org/bugs/show_bug.cgi?id=11869

And the #include <string[s].h> are only needed on Mac (see comments in
the original code)
and also including them might make strchr/index conflict with the g++
system headers (which don't follow the man pages, ouch!)

Can you please do a review for this patch?

Thanks,
Timur Iskhodzhanov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc.patch
Type: text/x-patch
Size: 1378 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120127/8f21b3cf/attachment.bin>


More information about the llvm-commits mailing list