diff options
author | Jim Wilson <jimw@sifive.com> | 2021-06-03 13:50:34 -0700 |
---|---|---|
committer | Jim Wilson <jimw@sifive.com> | 2021-06-03 13:54:12 -0700 |
commit | 3c70b3ca1ef58f302bf8c16d9e7c7bb8626408bf (patch) | |
tree | 24b67ce2d202aa8c8331b66e343c3e023f2a0d0d /gcc/config.gcc | |
parent | 5883e567564c5b3caecba0c13e8a360a14cdc846 (diff) | |
download | gcc-3c70b3ca1ef58f302bf8c16d9e7c7bb8626408bf.zip gcc-3c70b3ca1ef58f302bf8c16d9e7c7bb8626408bf.tar.gz gcc-3c70b3ca1ef58f302bf8c16d9e7c7bb8626408bf.tar.bz2 |
RISC-V: Enable riscv attributes by default for all riscv targets.
These were only enabled for embedded elf originally because that was
the safe option, and linux had no obvious use for them. But now that
we have new extensions coming like V that affect process state and ABIs,
the attributes are expected to be useful for linux, and may be required
by the psABI. clang already emits them for all riscv targets.
gcc/
* config.gcc (riscv*-*-*): If --with-riscv-attribute not used,
turn it on for all riscv targets.
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r-- | gcc/config.gcc | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc index 92fad8e..6833a6c 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -4605,14 +4605,7 @@ case "${target}" in tm_defines="${tm_defines} TARGET_RISCV_ATTRIBUTE=0" ;; ""|default) - case "${target}" in - riscv*-*-elf*) - tm_defines="${tm_defines} TARGET_RISCV_ATTRIBUTE=1" - ;; - *) - tm_defines="${tm_defines} TARGET_RISCV_ATTRIBUTE=0" - ;; - esac + tm_defines="${tm_defines} TARGET_RISCV_ATTRIBUTE=1" ;; *) echo "--with-riscv-attribute=${with_riscv_attribute} is not supported. The argument must begin with yes, no or default." 1>&2 |