libgo patch committed: Stop using -fno-section-anchors on AIX

Ian Lance Taylor iant@golang.org
Wed Oct 7 21:09:26 GMT 2020


This patch by Clément Chigot changes the libgo configure script to
stop using -fno-section-anchors on AIX.  This option is no longer
needed. There is no crash without it since at least gcc-9.
Bootstrapped and ran Go testsuite on x86_64-pc-linux-gnu.  Committed
to mainline.

Ian
-------------- next part --------------
45376dc0f426c0fc39c5ee77937c928c27fab77a
diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE
index 15f01a0519b..930339e9b44 100644
--- a/gcc/go/gofrontend/MERGE
+++ b/gcc/go/gofrontend/MERGE
@@ -1,4 +1,4 @@
-762b74a56f7ca102a5b8da1c9d0ffce592caa46b
+2563706e4ead80d6906d66ae23c8915c360583ad
 
 The first line of this file holds the git revision number of the last
 merge done from the gofrontend repository.
diff --git a/libgo/configure.ac b/libgo/configure.ac
index f15f8d830bb..9a10d3305ab 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'


More information about the Gcc-patches mailing list