[PATCH 1/2] Add _arch_/_cpu_ to index_*/bit_* in x86 cpu-features.h

H.J. Lu hjl.tools@gmail.com
Fri Mar 11 23:00:00 GMT 2016


On Fri, Mar 11, 2016 at 2:55 PM, Roland McGrath <roland@hack.frob.com> wrote:
>> Roland committed a fix which included <cpu-features.h> (commit
>> 3bd80c0de2f8e7ca8020d37739339636d169957e) in tst-audit10.c I assumed
>> that this addressed this particular build failure (it does for me with
>> GCC 4.7).

<cpu-features.h> shouldn't be used in test.  We can put cpuid.h
in incldue and do

#include_next <cpuid.h>

#ifndef bit_AVX512F
# define bit_AVX512F
#endif

It is better than use <cpu-features.h>.

-- 
H.J.



More information about the Libc-alpha mailing list