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
This commit is contained in:
Rainer Orth 2011-08-26 15:17:42 +00:00 committed by Rainer Orth
parent a6c975bd8e
commit a26479f3cc
3 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,9 @@
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.
2011-08-26 Jakub Jelinek <jakub@redhat.com> 2011-08-26 Jakub Jelinek <jakub@redhat.com>
PR c/50179 PR c/50179

View File

@ -477,6 +477,8 @@ void (*const dtors65535[]) ()
int int
main () main ()
{ {
if (count != 65535)
abort ();
return 0; return 0;
} }
#endif #endif

6
gcc/configure vendored
View File

@ -10888,6 +10888,8 @@ void (*const dtors65535) ()
int int
main () main ()
{ {
if (count != 65535)
abort ();
return 0; return 0;
} }
#endif #endif
@ -17913,7 +17915,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF cat > conftest.$ac_ext <<_LT_EOF
#line 17916 "configure" #line 17918 "configure"
#include "confdefs.h" #include "confdefs.h"
#if HAVE_DLFCN_H #if HAVE_DLFCN_H
@ -18019,7 +18021,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF cat > conftest.$ac_ext <<_LT_EOF
#line 18022 "configure" #line 18024 "configure"
#include "confdefs.h" #include "confdefs.h"
#if HAVE_DLFCN_H #if HAVE_DLFCN_H