From e66084a445ce22d382afa9fb67f1ed25bf20c298 Mon Sep 17 00:00:00 2001 From: Rainer Orth Date: Mon, 11 Feb 2019 12:06:19 +0000 Subject: [PATCH] Restore .init_array etc. detection on 64-bit Solaris * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with Solaris ld. * configure: Regenerate. From-SVN: r268768 --- gcc/ChangeLog | 6 ++++++ gcc/acinclude.m4 | 12 ++++++------ gcc/configure | 18 +++++++++--------- 3 files changed, 21 insertions(+), 15 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1fa6936f386..bea63a9e09a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-02-11 Rainer Orth + + * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with + Solaris ld. + * configure: Regenerate. + 2019-02-11 Jakub Jelinek PR bootstrap/88714 diff --git a/gcc/acinclude.m4 b/gcc/acinclude.m4 index 22ded1d3653..e3d50dca708 100644 --- a/gcc/acinclude.m4 +++ b/gcc/acinclude.m4 @@ -374,16 +374,16 @@ EOF cat > conftest.s < /dev/null 2>&1 \ && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \ && $gcc_cv_objdump -s -j .init_array conftest \ - | grep HHHHDDDD > /dev/null 2>&1 \ + | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \ && $gcc_cv_objdump -s -j .fini_array conftest \ - | grep GGGGCCCC > /dev/null 2>&1; then + | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then gcc_cv_initfini_array=yes fi ;; diff --git a/gcc/configure b/gcc/configure index d6a48ef76e7..8baf95f691e 100755 --- a/gcc/configure +++ b/gcc/configure @@ -18646,7 +18646,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 18640 "configure" +#line 18649 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -18752,7 +18752,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 18746 "configure" +#line 18755 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -23309,16 +23309,16 @@ EOF cat > conftest.s < /dev/null 2>&1 \ && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \ && $gcc_cv_objdump -s -j .init_array conftest \ - | grep HHHHDDDD > /dev/null 2>&1 \ + | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \ && $gcc_cv_objdump -s -j .fini_array conftest \ - | grep GGGGCCCC > /dev/null 2>&1; then + | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then gcc_cv_initfini_array=yes fi ;; @@ -25141,7 +25141,7 @@ if test "${enable_standard_branch_protection+set}" = set; then : no) ;; *) - as_fn_error "'$enableval' is an invalid value for --enable-standard-branch-protection.\ + as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\ Valid choices are 'yes' and 'no'." "$LINENO" 5 ;; esac -- 2.30.2