Re: [PATCH] RISC-V: Normalize arch string in driver time

2020-06-21 Thread Kito Cheng
Hi Jim: Thanks for your review, committed with ASM_SPECS clean up. > This has the side effect that we are now passing -march twice to cc1 and as, > but that should be harmless as the last one wins. Yeah, I tried to find a way to remove the duplication but have not found a good solution yet. On

Re: [PATCH] RISC-V: Normalize arch string in driver time

2020-06-20 Thread Jim Wilson
On Fri, Jun 19, 2020 at 2:53 AM Kito Cheng wrote: > * config/riscv/riscv.h (DRIVER_SELF_SPECS): New. This looks good to me. This has the side effect that we are now passing -march twice to cc1 and as, but that should be harmless as the last one wins. I think this makes the riscv_expand_

[PATCH] RISC-V: Normalize arch string in driver time

2020-06-19 Thread Kito Cheng
- 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 (DRIVER_SELF_SPECS): New. --- g