This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix x86intrin.h with -Wsystem-headers
- From: Uros Bizjak <ubizjak at gmail dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Jakub Jelinek <jakub at redhat dot com>
- Date: Fri, 6 Nov 2009 10:58:02 +0100
- Subject: 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.