Re: [PATCH] x86: Use target("baseline-isas-only") in

2020-08-24 Thread H.J. Lu via Gcc-patches
On Mon, Aug 24, 2020 at 12:25 PM Uros Bizjak wrote: > > On Mon, Aug 24, 2020 at 6:17 PM H.J. Lu wrote: > > > > On Mon, Aug 24, 2020 at 7:55 AM Uros Bizjak wrote: > > > > > > On Mon, Aug 24, 2020 at 3:23 PM H.J. Lu wrote: > > > > > > > > Speaking of pragmas, these should be added outside cpuid.h

Re: [PATCH] x86: Use target("baseline-isas-only") in

2020-08-24 Thread Uros Bizjak via Gcc-patches
On Mon, Aug 24, 2020 at 6:17 PM H.J. Lu wrote: > > On Mon, Aug 24, 2020 at 7:55 AM Uros Bizjak wrote: > > > > On Mon, Aug 24, 2020 at 3:23 PM H.J. Lu wrote: > > > > > > Speaking of pragmas, these should be added outside cpuid.h, like: > > > > > > > > #pragma GCC push_options > > > > #pragma GCC

[PATCH] x86: Use target("baseline-isas-only") in

2020-08-24 Thread H.J. Lu via Gcc-patches
__inline, and due to target flags > mismatch, it won't be inlined anymore. These inline functions are used > in some bit testing functions, and to keep them inlined, these should > also use the same options to avoid non-basic ISAs. This is the reason > cpuid.h should be #included after