From a26479f3cc14dd297f2230fd5584829afb4596e1 Mon Sep 17 00:00:00 2001 From: Rainer Orth Date: Fri, 26 Aug 2011 15:17:42 +0000 Subject: [PATCH] Disable .init_array/.fini_array support on Solaris (PR target/50166) PR target/50166 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main. * configure: Regenerate. From-SVN: r178116 --- gcc/ChangeLog | 6 ++++++ gcc/acinclude.m4 | 2 ++ gcc/configure | 6 ++++-- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e822ca7b0b0..0e7597c96ff 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-08-26 Rainer Orth + + PR target/50166 + * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main. + * configure: Regenerate. + 2011-08-26 Jakub Jelinek PR c/50179 diff --git a/gcc/acinclude.m4 b/gcc/acinclude.m4 index a8ecd2d4f6d..d8defea5a78 100644 --- a/gcc/acinclude.m4 +++ b/gcc/acinclude.m4 @@ -477,6 +477,8 @@ void (*const dtors65535[]) () int main () { + if (count != 65535) + abort (); return 0; } #endif diff --git a/gcc/configure b/gcc/configure index 0feb91111c0..b1dd57b6ff4 100755 --- a/gcc/configure +++ b/gcc/configure @@ -10888,6 +10888,8 @@ void (*const dtors65535) () int main () { + if (count != 65535) + abort (); return 0; } #endif @@ -17913,7 +17915,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 17916 "configure" +#line 17918 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -18019,7 +18021,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 18022 "configure" +#line 18024 "configure" #include "confdefs.h" #if HAVE_DLFCN_H -- 2.30.2