RISC-V: Normalize arch string in driver time
authorKito Cheng <kito.cheng@sifive.com>
Fri, 19 Jun 2020 08:59:52 +0000 (16:59 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Mon, 22 Jun 2020 03:24:54 +0000 (11:24 +0800)
commitf4670347f10d36816e7da08796f96f087094ba58
treee9db1ceb35119b119a7e5eb87372aec5fa56e43b
parent33d9794b7277a64543914bfbbfd567505e72da6c
RISC-V: Normalize arch string in driver time

 - Normalize arch string would help the multi-lib handling, e.g. rv64gc and
   rv64g_c are both valid and same arch, but latter one would confuse
   the detection of multi-lib, earlier normalize can resolve this issue.

gcc/ChangeLog:

* config/riscv/riscv.h (ASM_SPEC): Remove riscv_expand_arch call.
(DRIVER_SELF_SPECS): New.
gcc/config/riscv/riscv.h