On Fri, Aug 26, 2011 at 7:35 AM, Rainer Orth
<r...@cebitec.uni-bielefeld.de> wrote:
> As detailed in the PR, H.J.'s .init_array/.fini_array patch
>
> 2011-08-20  H.J. Lu  <hongjiu...@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  <r...@cebitec.uni-bielefeld.de>
>
>        PR target/50166
>        * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
>        * configure: Regenerate.
>
>

That explains why init_array was enabled on AIX.  It looks good to me and
still works on Fedora 15.

Thanks.

-- 
H.J.

Reply via email to