aboutsummaryrefslogtreecommitdiff
path: root/gas
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
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')
-rwxr-xr-xgas/configure9
-rw-r--r--gas/configure.ac9
2 files changed, 2 insertions, 16 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
diff --git a/gas/configure.ac b/gas/configure.ac
index 78efba8..e237426 100644
--- a/gas/configure.ac
+++ b/gas/configure.ac
@@ -727,14 +727,7 @@ AC_DEFINE_UNQUOTED(DEFAULT_X86_USED_NOTE,
properties by default.])
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
AC_DEFINE_UNQUOTED(DEFAULT_RISCV_ATTR,