RISC-V: Always pass -misa-spec to assembler [PR104219]
authorKito Cheng <kito.cheng@sifive.com>
Tue, 25 Jan 2022 12:44:04 +0000 (20:44 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Sat, 5 Feb 2022 08:10:12 +0000 (16:10 +0800)
commit06e32a5ebf20c11dd31bc2677bede569fef84316
treef5c4044dad74f9b18895ae89c5621d1a7694003f
parent119cea98f664764cce04963243c39c8f6d797d33
RISC-V: Always pass -misa-spec to assembler [PR104219]

Add -misa-spec to OPTION_DEFAULT_SPECS to make sure -misa-spec will
always pass that into assembler, that prevent GCC and binutils using
different way to interpret the ISA string.

gcc/ChangeLog:

PR target/104219
* config.gcc (riscv*-*-*): Normalize the with_isa_spec value.
(all_defaults): Add isa_spec.
* config/riscv/riscv.h (OPTION_DEFAULT_SPECS): Add isa_spec.
gcc/config.gcc
gcc/config/riscv/riscv.h