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] |
On Thu, Jul 19, 2012 at 11:51 AM, Jakub Jelinek <jakub@redhat.com> wrote: > I think it is fine to change existing mm3dnow.h header, but not in the way > it has been changed in the patch. The thing is that unlike the newly added > intrinsics headers, mm3dnow.h is still publicly includable header, and just > including that header should work properly, so mm3dnow.h has to include > prftchwintrin.h, which should be allowed to be included from x86intrin.h > as well as mm3dnow.h, and that header should have guards, so that if both > x86intrin.h is included and mm3dnow.h too (the latter first), > prftchwintrin.h isn't included in twice. Probably something like attached patch, with following changes to the original patch: +#if !defined _X86INTRIN_H_INCLUDED && !defined _IMMINTRIN_H_INCLUDED +# error "Never use <adxintrin.h> directly; include <x86intrin.h> instead." +#endif No need to check for _IMMINTRIN_H_INCLUDED (in all new headers). In config/i386/prfchwintrin.h, change this part to: +#if !defined _X86INTRIN_H_INCLUDED && !defined _MM3DNOW_H_INCLUDED +# error "Never use <prfchwintrin.h> directly; include <x86intrin.h> or <mm3dnow.h> instead." +#endif Uros.
Attachment:
h.diff.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |