Fix .init_array/.fini_array testcase (PR target/50166)
Rainer Orth
ro@CeBiTec.Uni-Bielefeld.DE
Fri Aug 26 14:52:00 GMT 2011
As detailed in the PR, H.J.'s .init_array/.fini_array patch
2011-08-20 H.J. Lu <hongjiu.lu@intel.com>
PR other/46770
* config.gcc (tm_file): Add initfini-array.h if
.init_arrary/.fini_array are supported.
broke Solaris bootstrap since the testcase incorrectly succeeds on
Solaris, failing to notice that none of the constructors and destructors
were ever run.
The following patch fixes that, allows i386-pc-solaris2.11 bootstrap to
succeed and was also bootstrapped on x86_64-unknown-linux-gnu (CentOS
5.5 with gas/gld 2.21). The testcase still fails on my Linux system, so
I'm uncertain if the fix is right.
Ok for mainline?
Rainer
2011-08-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
PR target/50166
* acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
* configure: Regenerate.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sol2-no-init_fini_array.patch
Type: text/x-patch
Size: 1061 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110826/4547dbbe/attachment.bin>
-------------- next part --------------
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University
More information about the Gcc-patches
mailing list