RISC-V: Canonicalize --with-arch
authorKito Cheng <kito.cheng@sifive.com>
Wed, 25 Nov 2020 09:30:29 +0000 (17:30 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Thu, 3 Dec 2020 09:39:27 +0000 (17:39 +0800)
commitb20cd0c743b8823d8ac4437bf893ce691fb820e8
tree363b3b0a3f83fa65cccee3ad0e3cc7b0008a8f91
parent48ff86adfd96a0f5132273719932b48a14941881
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.
gcc/config.gcc
gcc/config/riscv/arch-canonicalize [new file with mode: 0755]
gcc/config/riscv/multilib-generator