Re: [PATCH] x86: Add __volatile__ to __cpuid and __cpuid_count

2021-03-23 Thread Uros Bizjak via Gcc-patches
On Mon, Mar 22, 2021 at 5:19 AM H.J. Lu wrote: > > Tested on Linux/x86-64 and Linux/i686. OK for master and release > branches? > > Thanks. > > H.J. > --- > Since CPUID instruction may return different values on hybrid core. > volatile is needed on asm statements in . > > PR target/99704

[PATCH] x86: Add __volatile__ to __cpuid and __cpuid_count

2021-03-21 Thread H.J. Lu via Gcc-patches
Tested on Linux/x86-64 and Linux/i686. OK for master and release branches? Thanks. H.J. --- Since CPUID instruction may return different values on hybrid core. volatile is needed on asm statements in . PR target/99704 * config/i386/cpuid.h (__cpuid): Add __volatile__. (_