binutils-gdb/config
Rainer Orth 56006f7938 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.
2023-11-30 10:14:30 +01:00
..
acinclude.m4 config: delete unused sim macros 2021-05-18 17:46:55 -04:00
acx.m4 Re: Merge configure.ac from gcc project 2022-10-12 10:08:14 +10:30
asmcfi.m4
ax_check_define.m4 Update top level configure files by synchronizing them with gcc. 2018-01-10 15:29:21 +00:00
ax_count_cpus.m4 Merge changes from GCC for the config/ directory 2020-02-19 17:51:24 +00:00
ax_cxx_compile_stdcxx.m4 Merge configure.ac from gcc project 2022-10-10 11:14:21 +10:30
ax_pthread.m4 config: Sync with GCC 2018-06-18 09:33:48 -04:00
bfd64.m4 unify 64-bit bfd checks 2022-01-01 12:49:07 -05:00
bitfields.m4
bootstrap-asan.mk
bootstrap-cet.mk config: Sync with GCC 2018-06-18 09:33:48 -04:00
bootstrap-debug-big.mk
bootstrap-debug-ckovw.mk
bootstrap-debug-lean.mk Update top level configure files by synchronizing them with gcc. 2018-01-10 15:29:21 +00:00
bootstrap-debug-lib.mk
bootstrap-debug.mk
bootstrap-lto-lean.mk Fix PR bootstrap/102389: --with-build-config=bootstrap-lto is broken 2023-08-12 10:24:26 +09:30
bootstrap-lto-noplugin.mk config: Sync with GCC 2018-06-18 09:33:48 -04:00
bootstrap-lto.mk Fix PR bootstrap/102389: --with-build-config=bootstrap-lto is broken 2023-08-12 10:24:26 +09:30
bootstrap-O1.mk
bootstrap-O3.mk
bootstrap-Og.mk Merge changes from GCC for the config/ directory 2020-02-19 17:51:24 +00:00
bootstrap-time.mk
bootstrap-ubsan.mk config: Sync with GCC 2018-06-18 09:33:48 -04:00
cet.m4 GCC_CET_HOST_FLAGS: Check if host supports multi-byte NOPs 2021-03-18 08:02:46 -07:00
ChangeLog libiberty: Disable hwcaps for sha1.o 2023-11-30 10:14:30 +01:00
codeset.m4
debuginfod.m4 config/debuginfod.m4: Add check for libdebuginfod 0.188 2023-09-27 15:11:13 -04:00
dejagnu.m4 libsframe: add the SFrame library 2022-11-15 15:24:29 -08:00
depstand.m4
dfp.m4 Merge config/ changes from GCC, to enable DFP on AArch64 2022-05-24 10:47:29 +01:00
elf.m4
enable.m4
extensions.m4
futex.m4 Merge changes from GCC for the config/ directory 2020-02-19 17:51:24 +00:00
gc++filt.m4
gcc-plugin.m4 config: Fix host -rdynamic detection for build != host != target 2023-09-01 15:20:47 +00:00
gettext-sister.m4 Finalized intl-update patches 2023-11-15 12:53:04 +00:00
gettext.m4 Finalized intl-update patches 2023-11-15 12:53:04 +00:00
glibc21.m4
gthr.m4 gcc: Add 'mcf' thread model support from mcfgthread 2023-08-12 10:24:26 +09:30
gxx-include-dir.m4
hwcaps.m4 libiberty: Disable hwcaps for sha1.o 2023-11-30 10:14:30 +01:00
iconv.m4 Finalized intl-update patches 2023-11-15 12:53:04 +00:00
intdiv0.m4
intlmacosx.m4 Finalized intl-update patches 2023-11-15 12:53:04 +00:00
inttypes_h.m4
inttypes-pri.m4
inttypes.m4
isl.m4 Update top level configure files by synchronizing them with gcc. 2018-01-10 15:29:21 +00:00
jobserver.m4 Implement a workaround for GNU mak jobserver 2021-01-12 05:45:44 -08:00
largefile.m4 Unify Solaris procfs and largefile handling 2020-07-30 15:41:50 +02:00
lcmessage.m4
ld-symbolic.m4
lead-dot.m4
lib-ld.m4 egrep in binutils 2022-09-28 13:37:31 +09:30
lib-link.m4 Merge changes from GCC for the config/ directory 2020-02-19 17:51:24 +00:00
lib-prefix.m4
libstdc++-raw-cxx.m4
lthostflags.m4
math.m4 Sync config and libiberty with GCC 2020-04-29 14:25:36 -07:00
mh-alpha-linux
mh-cygwin
mh-darwin configure: Allow host fragments to react to --enable-host-shared. 2023-08-12 10:24:26 +09:30
mh-djgpp
mh-mingw mh-mingw: drop unused BOOT_CXXFLAGS variable 2023-08-12 10:24:26 +09:30
mh-pa
mh-ppc-aix
mmap.m4
mt-alphaieee
mt-android Update top level configure files by synchronizing them with gcc. 2018-01-10 15:29:21 +00:00
mt-d30v
mt-gnu
mt-mips16-compat
mt-mips-elfoabi
mt-mips-gnu
mt-nios2-elf
mt-ospace
mt-sde
mt-spu
multi.m4 Merge config/ changes from GCC. 2018-10-31 17:16:41 +00:00
nls.m4
no-executables.m4 Merge changes from GCC for the config/ directory 2020-02-19 17:51:24 +00:00
override.m4 PR27116, Spelling errors found by Debian style checker 2021-01-01 14:36:35 +10:30
picflag.m4 Merge config/picflag.m4 from gcc 2023-01-04 13:23:54 +10:30
pkg.m4 PKG_CHECK_MODULES: Properly check if $pkg_cv_[]$1[]_LIBS works 2020-07-28 06:59:30 -07:00
plugins.m4 config: Sync with GCC 2018-04-05 15:22:13 -07:00
po.m4
proginstall.m4
progtest.m4
sjlj.m4
stdint_h.m4
stdint.m4
target-posix
tcl.m4
tls.m4 Merge changes from GCC for the config/ directory 2020-02-19 17:51:24 +00:00
toolexeclibdir.m4 Merge changes from GCC for the config/ directory 2020-02-19 17:51:24 +00:00
uintmax_t.m4
ulonglong.m4
unwind_ipinfo.m4
warnings.m4
weakref.m4
zlib.m4
zstd.m4 configure: require libzstd >= 1.4.0 2022-11-07 14:32:10 +01:00