From: Harsha Jagasia Date: Thu, 8 Feb 2007 22:37:01 +0000 (+0000) Subject: xmmintrin.h: Make inclusion of emmintrin.h conditional to __SSE2__. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c1d91dbdc57b58fee8cf6dcdb412c2430e380bab;p=gcc.git xmmintrin.h: Make inclusion of emmintrin.h conditional to __SSE2__. * config/i386/xmmintrin.h: Make inclusion of emmintrin.h conditional to __SSE2__. (Entries below should have been added to first ChangeLog entry for amdfam10 dated 2007-02-05) * config/i386/emmintrin.h: Generate #error if __SSE2__ is not defined. * config/i386/pmmintrin.h: Generate #error if __SSE3__ is not defined. * config/i386/tmmintrin.h: Generate #error if __SSSE3__ is not defined. From-SVN: r121726 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 232a4a1efea..ac5affef4a8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,16 @@ +2007-02-08 Harsha Jagasia + + * config/i386/xmmintrin.h: Make inclusion of emmintrin.h + conditional to __SSE2__. + (Entries below should have been added to first ChangeLog + entry for amdfam10 dated 2007-02-05) + * config/i386/emmintrin.h: Generate #error if __SSE2__ is not + defined. + * config/i386/pmmintrin.h: Generate #error if __SSE3__ is not + defined. + * config/i386/tmmintrin.h: Generate #error if __SSSE3__ is not + defined. + 2007-02-08 DJ Delorie * config/m32c/m32c-protos.h (m32c_illegal_subreg_p): New. diff --git a/gcc/config/i386/xmmintrin.h b/gcc/config/i386/xmmintrin.h index 582f7e3a18b..48b177c2a5e 100644 --- a/gcc/config/i386/xmmintrin.h +++ b/gcc/config/i386/xmmintrin.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2002, 2003, 2004, 2005, 2006 +/* Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. This file is part of GCC. @@ -1242,7 +1242,9 @@ do { \ } while (0) /* For backward source compatibility. */ -#include +#ifdef __SSE2__ +# include +#endif #endif /* __SSE__ */ #endif /* _XMMINTRIN_H_INCLUDED */