aboutsummaryrefslogtreecommitdiff
path: root/gas/configure
diff options
context:
space:
mode:
authorNelson Chu <nelson.chu@sifive.com>2021-07-08 20:22:20 -0700
committerNelson Chu <nelson.chu@sifive.com>2021-07-13 14:07:57 +0800
commitaa0587b290e9155e71c01447c0e3f57c3ee0ecc3 (patch)
tree6f2e78ff0bd626f1b2669d5926247a86bd0d7e46 /gas/configure
parentf148d9d334c4b8d26a8e8ce01a3ddf21fac80ee3 (diff)
downloadgdb-aa0587b290e9155e71c01447c0e3f57c3ee0ecc3.zip
gdb-aa0587b290e9155e71c01447c0e3f57c3ee0ecc3.tar.gz
gdb-aa0587b290e9155e71c01447c0e3f57c3ee0ecc3.tar.bz2
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.
Diffstat (limited to 'gas/configure')
-rwxr-xr-xgas/configure9
1 files changed, 1 insertions, 8 deletions
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