diff options
author | Kito Cheng <kito.cheng@sifive.com> | 2020-11-25 17:30:29 +0800 |
---|---|---|
committer | Kito Cheng <kito.cheng@sifive.com> | 2020-12-03 17:39:27 +0800 |
commit | b20cd0c743b8823d8ac4437bf893ce691fb820e8 (patch) | |
tree | 363b3b0a3f83fa65cccee3ad0e3cc7b0008a8f91 /gcc/config.gcc | |
parent | 48ff86adfd96a0f5132273719932b48a14941881 (diff) | |
download | gcc-b20cd0c743b8823d8ac4437bf893ce691fb820e8.zip gcc-b20cd0c743b8823d8ac4437bf893ce691fb820e8.tar.gz gcc-b20cd0c743b8823d8ac4437bf893ce691fb820e8.tar.bz2 |
RISC-V: Canonicalize --with-arch
- We would like to canonicalize the arch string for --with-arch for
easier handling multilib, so split canonicalization part to a stand
along script to shared the logic.
gcc/ChangeLog:
* config/riscv/multilib-generator (arch_canonicalize): Move
code to arch-canonicalize, and call that script to canonicalize arch
string.
(canonical_order): Move code to arch-canonicalize.
(LONG_EXT_PREFIXES): Ditto.
(IMPLIED_EXT): Ditto.
* config/riscv/arch-canonicalize: New.
* config.gcc (riscv*-*-*): Canonicalize --with-arch.
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r-- | gcc/config.gcc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc index b8d2686..7b138d1 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -4615,6 +4615,7 @@ case "${target}" in exit 1 ;; esac + with_arch=`${srcdir}/config/riscv/arch-canonicalize ${with_arch}` tm_defines="${tm_defines} TARGET_RISCV_DEFAULT_ARCH=${with_arch}" # Make sure --with-abi is valid. If it was not specified, |