From aa0587b290e9155e71c01447c0e3f57c3ee0ecc3 Mon Sep 17 00:00:00 2001 From: Nelson Chu Date: Thu, 8 Jul 2021 20:22:20 -0700 Subject: RISC-V: Enable elf attributes when default configure option isn't set. Since gcc commit, 3c70b3ca1ef58f302bf8c16d9e7c7bb8626408bf, we now enable elf attributes for all riscv targets by default in gcc. Therefore, I think binutils should have the same behavior, in case users are writing assembly files. If --enable-default-riscv-attribute isn't set, then we enable the elf attributes for all riscv targets by default. ChangLog: binutils/ * testsuite/binutils-all/readelf.s: Add comments for riscv. * testsuite/binutils-all/readelf.s-64: Likewise. * testsuite/binutils-all/readelf.s-64-unused: Likewise. * testsuite/binutils-all/readelf.ss: Likewise. * testsuite/binutils-all/readelf.ss-64: Likewise. * testsuite/binutils-all/readelf.ss-64-unused: Likewise. gas/ * configure.ac: If --enable-default-riscv-attribute isn't set, then we enable the elf attributes for all riscv targets by default. * configure: Regenerated. --- gas/configure | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'gas/configure') diff --git a/gas/configure b/gas/configure index 110d707..7a528fd 100755 --- a/gas/configure +++ b/gas/configure @@ -12550,14 +12550,7 @@ _ACEOF if test ${ac_default_generate_riscv_attr} = unset; then - case ${target_os} in - elf) - ac_default_generate_riscv_attr=1 - ;; - *) - ac_default_generate_riscv_attr=0 - ;; - esac + ac_default_generate_riscv_attr=1 fi -- cgit v1.1