RISC-V: Support -misa-spec for arch-canonicalize and multilib-generator. [PR104853]
authorKito Cheng <kito.cheng@sifive.com>
Mon, 11 Apr 2022 08:29:34 +0000 (16:29 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Mon, 11 Apr 2022 14:56:54 +0000 (22:56 +0800)
commit4132f6ba9583e128a00d55961ae8c8e7245b2223
treeb4d3c0931e5ede16b5287a824f06c295c43acaa8
parentc62b0f731b32c1842bb679edc5b8d842b5e5732f
RISC-V: Support -misa-spec for arch-canonicalize and multilib-generator. [PR104853]

We migrate the default ISA spec version from 2.2 to 20191213, but those scripts
aren't updated at the same time, this patch is making both scripts support
different ISA spec versions.

gcc/ChangeLog:

PR target/104853
* config.gcc: Pass -misa-spec to arch-canonicalize and
multilib-generator.
* config/riscv/arch-canonicalize: Adding -misa-spec option.
(SUPPORTED_ISA_SPEC): New.
(arch_canonicalize): New argument `isa_spec`.
Handle multiple ISA spec versions.
* config/riscv/multilib-generator: Adding -misa-spec option.
gcc/config.gcc
gcc/config/riscv/arch-canonicalize
gcc/config/riscv/multilib-generator