Re: [PATCH] RISC-V: Add support for -mcpu option.

2020-10-14 Thread Kito Cheng via Gcc-patches
Committed, thanks, other improvement changes will be sent in separate patches in the next few days :) On Thu, Oct 15, 2020 at 5:41 AM Jim Wilson wrote: > > On Tue, Oct 13, 2020 at 3:09 AM Kito Cheng wrote: > > - The behavior of -mcpu basically equal to -march plus -mtune, but it > >has lowe

Re: [PATCH] RISC-V: Add support for -mcpu option.

2020-10-14 Thread Jim Wilson
On Tue, Oct 13, 2020 at 3:09 AM Kito Cheng wrote: > - The behavior of -mcpu basically equal to -march plus -mtune, but it >has lower priority than -march and -mtune. This looks OK to me. I noticed a few things while testing. These don't need to be fixed before the patch is committed. Usin

[PATCH] RISC-V: Add support for -mcpu option.

2020-10-13 Thread Kito Cheng
- The behavior of -mcpu basically equal to -march plus -mtune, but it has lower priority than -march and -mtune. - The behavior and available options has sync with clang except we don't add few LLVM specific value, and add more sifive processor to the list. - -mtune also accept all avail