This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix x86intrin.h with -Wsystem-headers


Hello!

> Both fma4intrin.h and avxintrin.h define the same 4 types, which is an error
> except for system headers.
> My understanding is that -mfma4 implies -mavx and -mfma4 -mno-avx is the
> same as -mno-fma4, plus fma4intrin.h can be only included from x86intrin.h.
> Thus, in all cases when fma4intrin.h is included, avxintrin.h is also
> included and defines the types too.
> This patch makes sure that fma4intrin.h comes after avxintrin.h and uses
> the avxintrin.h definitions instead of providing its own ones.
>
> Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?

Is there a reason that you also moved mm3dnow.h ?

Uros.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]