Re: [PATCH] MIPS: improve -march=native arch detection

2022-08-23 Thread Xi Ruoyao via Gcc-patches
On Tue, 2022-08-02 at 11:10 +, YunQiang Su wrote: > If we cannot get info from options and cpuinfo, we try to get from: >   1. getauxval(AT_BASE_PLATFORM), introduced since Linux 5.7 >   2. _MIPS_ARCH from host compiler. > > This can fix the wrong loader usage on r5/r6 platform with >  -march

Re: [PATCH] MIPS: improve -march=native arch detection

2022-08-23 Thread YunQiang Su
YunQiang Su 于2022年8月2日周二 19:11写道: > > If we cannot get info from options and cpuinfo, we try to get from: > 1. getauxval(AT_BASE_PLATFORM), introduced since Linux 5.7 > 2. _MIPS_ARCH from host compiler. > > This can fix the wrong loader usage on r5/r6 platform with > -march=native. > Is it t

Re: [PATCH] MIPS: improve -march=native arch detection

2022-08-14 Thread YunQiang Su
On Tue, Aug 02, 2022 at 11:10:09AM +, YunQiang Su wrote: > If we cannot get info from options and cpuinfo, we try to get from: > 1. getauxval(AT_BASE_PLATFORM), introduced since Linux 5.7 > 2. _MIPS_ARCH from host compiler. > > This can fix the wrong loader usage on r5/r6 platform with >

[PATCH] MIPS: improve -march=native arch detection

2022-08-02 Thread YunQiang Su
If we cannot get info from options and cpuinfo, we try to get from: 1. getauxval(AT_BASE_PLATFORM), introduced since Linux 5.7 2. _MIPS_ARCH from host compiler. This can fix the wrong loader usage on r5/r6 platform with -march=native. gcc/ChangeLog: * config/mips/driver-native.cc (ho