> 2023年4月7日 23:23,Nick Desaulniers <ndesaulniers@xxxxxxxxxx> 写道: > > On Fri, Apr 7, 2023 at 3:27 AM Jiaxun Yang <jiaxun.yang@xxxxxxxxxxx> wrote: >> >> LLVM does not implement some of -march option. However those march >> does not provide any special functionality in most cases, they just >> serves as compiler's tuning target. > > Then should we change these then to be in the form: > > -cflags-$(CONFIG_CPU_R3000) += -march=r3000 > +cflags-$(CONFIG_CPU_R3000) += -march=mips1 $(call cc-option,-mtune=r3000) Just tested with GCC and it seems like there are still some difference in generated code for -march=r4600 and -march=mips3 -mtune=r4600. As I’m unable to test on a real system I’d prefer just leave them as is. I’ll try to reword commit message. Thanks Jiaxun > > -- > Thanks, > ~Nick Desaulniers