On Fri, Jun 19, 2020 at 2:53 AM Kito Cheng <kito.ch...@sifive.com> 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_arch call in ASM_SPECS redundant, but it isn't really hurting anything if we end up with extra unnecessary calls to riscv_expand_arch so that is an optional possible cleanup. Jim