[libatomic] Always compile atomic builtin tests with $XCFLAGS (PR other/53284)
Rainer Orth
ro@CeBiTec.Uni-Bielefeld.DE
Thu May 10 09:16:00 GMT 2012
As described in the PR, several 32-bit libatomic tests FAIL on
Solaris/x86 with infinite recursion e.g. in
__atomic_compare_exchange_8. It turns out that this happens because,
unlike on glibc targets, the atomic builtin configure tests are run as
compile tests, but are currently not compiled with $XCFLAGS, unlike the
real code. The following patch fixes this, tested on
i386-pc-solaris2.10 and x86_64-unknown-linux-gnu, approved by rth in the
PR, installed on mainline.
Rainer
2012-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
PR other/53284
* acinclude.m4 (LIBAT_TEST_ATOMIC_BUILTIN): Add -O0 -S to CFLAGS
instead of overriding.
* configure: Regenerate.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libatomic-builtin-xcflags.patch
Type: text/x-patch
Size: 536 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120510/a822ec30/attachment.bin>
-------------- next part --------------
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University
More information about the Gcc-patches
mailing list