OSDN Git Service

* config/i386/xmmintrin.h: Make inclusion of emmintrin.h
authorhjagasia <hjagasia@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Feb 2007 22:37:01 +0000 (22:37 +0000)
committerhjagasia <hjagasia@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Feb 2007 22:37:01 +0000 (22:37 +0000)
        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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121726 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/i386/xmmintrin.h

index 232a4a1..ac5affe 100644 (file)
@@ -1,3 +1,16 @@
+2007-02-08  Harsha Jagasia  <harsha.jagasia@amd.com>
+
+       * 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  <dj@redhat.com>
 
        * config/m32c/m32c-protos.h (m32c_illegal_subreg_p): New.
index 582f7e3..48b177c 100644 (file)
@@ -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 <emmintrin.h>
+#ifdef __SSE2__
+# include <emmintrin.h>
+#endif
 
 #endif /* __SSE__ */
 #endif /* _XMMINTRIN_H_INCLUDED */