diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2023-11-30 10:14:30 +0100 |
---|---|---|
committer | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2023-11-30 10:14:30 +0100 |
commit | 56006f79386f261f637809296585153b09f84ee1 (patch) | |
tree | 63f03194ebc85643f9af744e947cc7c2a9a673eb /config | |
parent | 460e0e6e3e6c23ed5f4b70e1b86435f58cb890aa (diff) | |
download | gdb-56006f79386f261f637809296585153b09f84ee1.zip gdb-56006f79386f261f637809296585153b09f84ee1.tar.gz gdb-56006f79386f261f637809296585153b09f84ee1.tar.bz2 |
libiberty: Disable hwcaps for sha1.o
This patch
commit bf4f40cc3195eb7b900bf5535cdba1ee51fdbb8e
Author: Jakub Jelinek <jakub@redhat.com>
Date: Tue Nov 28 13:14:05 2023 +0100
libiberty: Use x86 HW optimized sha1
broke Solaris/x86 bootstrap with the native as:
libtool: compile: /var/gcc/regression/master/11.4-gcc/build/./gcc/gccgo -B/var/gcc/regression/master/11.4-gcc/build/./gcc/ -B/vol/gcc/i386-pc-solaris2.11/bin/ -B/vol/gcc/i386-pc-solaris2.11/lib/ -isystem /vol/gcc/i386-pc-solaris2.11/include -isystem /vol/gcc/i386-pc-solaris2.11/sys-include -fchecking=1 -minline-all-stringops -O2 -g -I . -c -fgo-pkgpath=internal/goarch /vol/gcc/src/hg/master/local/libgo/go/internal/goarch/goarch.go zgoarch.go
ld.so.1: go1: fatal: /var/gcc/regression/master/11.4-gcc/build/gcc/go1: hardware capability (CA_SUNW_HW_2) unsupported: 0x4000000 [ SHA1 ]
gccgo: fatal error: Killed signal terminated program go1
As is already done in a couple of other similar cases, this patches
disables hwcaps support for libiberty.
Initially, this didn't work because config/hwcaps.m4 uses target_os, but
didn't ensure it is defined.
Tested on i386-pc-solaris2.11 with as and gas.
2023-11-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
config:
* hwcaps.m4 (GCC_CHECK_ASSEMBLER_HWCAP): Require
AC_CANONICAL_TARGET.
libiberty:
* configure.ac (GCC_CHECK_ASSEMBLER_HWCAP): Invoke.
* configure, aclocal.m4: Regenerate.
* Makefile.in (COMPILE.c): Add HWCAP_CFLAGS.
Diffstat (limited to 'config')
-rw-r--r-- | config/ChangeLog | 5 | ||||
-rw-r--r-- | config/hwcaps.m4 | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/config/ChangeLog b/config/ChangeLog index bb82cc8..b8943c9 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,3 +1,8 @@ +2023-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> + + * hwcaps.m4 (GCC_CHECK_ASSEMBLER_HWCAP): Require + AC_CANONICAL_TARGET. + 2023-11-15 Arsen Arsenović <arsen@aarsen.me> * intlmacosx.m4: Import from gettext-0.22 (serial 8). diff --git a/config/hwcaps.m4 b/config/hwcaps.m4 index ff352fd..33f0905 100644 --- a/config/hwcaps.m4 +++ b/config/hwcaps.m4 @@ -7,6 +7,7 @@ dnl HWCAP_CFLAGS='-Wa,-nH' if possible. dnl AC_DEFUN([GCC_CHECK_ASSEMBLER_HWCAP], [ test -z "$HWCAP_CFLAGS" && HWCAP_CFLAGS='' + AC_REQUIRE([AC_CANONICAL_TARGET]) # Restrict the test to Solaris, other assemblers (e.g. AIX as) have -nH # with a different meaning. |