aboutsummaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorClément Chigot <clement.chigot@atos.net>2020-09-24 13:40:40 +0200
committerIan Lance Taylor <iant@golang.org>2020-10-07 14:08:52 -0700
commit45376dc0f426c0fc39c5ee77937c928c27fab77a (patch)
treeec41c5975ad63136573ec21236b154668070ea6e /libgo
parent89d3af5ef7e313efd7a5e88a4c629b4704cfe976 (diff)
downloadgcc-45376dc0f426c0fc39c5ee77937c928c27fab77a.zip
gcc-45376dc0f426c0fc39c5ee77937c928c27fab77a.tar.gz
gcc-45376dc0f426c0fc39c5ee77937c928c27fab77a.tar.bz2
libgo/configure: remove -fno-section-anchors for AIX
This option is no longer needed. There is no crash without it since at least gcc-9. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/260157
Diffstat (limited to 'libgo')
-rwxr-xr-xlibgo/configure8
-rw-r--r--libgo/configure.ac4
2 files changed, 2 insertions, 10 deletions
diff --git a/libgo/configure b/libgo/configure
index 641d060..792ac6f 100755
--- a/libgo/configure
+++ b/libgo/configure
@@ -4711,10 +4711,6 @@ fi
case ${host} in
*-*-aix*)
- # static hash tables crashes on AIX when libgo is built with O2
- CFLAGS="$CFLAGS -fno-section-anchors"
- GOCFLAGS="$GOCFLAGS -fno-section-anchors"
-
# Check default architecture for FAT library creation
if test -z "`$CC -x c -E /dev/null -g3 -o - | grep 64BIT`" ; then
AIX_EXTRA_ARCH='64'
@@ -11501,7 +11497,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11504 "configure"
+#line 11500 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -11607,7 +11603,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11610 "configure"
+#line 11606 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
diff --git a/libgo/configure.ac b/libgo/configure.ac
index f15f8d8..9a10d33 100644
--- a/libgo/configure.ac
+++ b/libgo/configure.ac
@@ -33,10 +33,6 @@ AC_SUBST(CFLAGS)
case ${host} in
*-*-aix*)
- # static hash tables crashes on AIX when libgo is built with O2
- CFLAGS="$CFLAGS -fno-section-anchors"
- GOCFLAGS="$GOCFLAGS -fno-section-anchors"
-
# Check default architecture for FAT library creation
if test -z "`$CC -x c -E /dev/null -g3 -o - | grep 64BIT`" ; then
AIX_EXTRA_ARCH='64'