summaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2008-11-14 09:47:23 +0000
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2008-11-14 09:47:23 +0000
commitaf4067fcb4c370dfab9fca5aef88ece681be2651 (patch)
tree5770609ae6244c79a16d64832b55c25dc35bc8a4 /gcc/testsuite
parent75bfea25594a1afcd79d191d4ba3a4508552520d (diff)
downloadgcc-af4067fcb4c370dfab9fca5aef88ece681be2651.tar.gz
Add missing commit part:
* gcc.dg/compat/struct-layout-1.h: Do not include <mmintrin.h> and <xmmintrin.h>, define __m64 and __m128 directly. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@141852 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog3
-rw-r--r--gcc/testsuite/gcc.dg/compat/struct-layout-1.h4
2 files changed, 5 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index bea2964c373..c1d3548b4a5 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -27,6 +27,9 @@
* g++.dg/compat/struct-layout-1_generate.c (dg-options): Add
-fno-common for *-*-darwin* *-*-mingw32* *-*-cygwin* targets.
+ * gcc.dg/compat/struct-layout-1.h: Do not include <mmintrin.h> and
+ <xmmintrin.h>, define __m64 and __m128 directly.
+
2008-11-13 Olivier Hainque <hainque@adacore.com>
* gnat.dg/test_raise_from_pure.adb: Adjust to match revised intent.
diff --git a/gcc/testsuite/gcc.dg/compat/struct-layout-1.h b/gcc/testsuite/gcc.dg/compat/struct-layout-1.h
index 8426787b68f..82ac9f82cc2 100644
--- a/gcc/testsuite/gcc.dg/compat/struct-layout-1.h
+++ b/gcc/testsuite/gcc.dg/compat/struct-layout-1.h
@@ -44,12 +44,12 @@ typedef int u2df;
#endif
#if (defined __i386__ || defined __x86_64__) && !defined SKIP_ATTRIBUTE
# ifdef __MMX__
-# include <mmintrin.h>
+typedef int __m64 __attribute__ ((__vector_size__ (8)));
# else
typedef int __m64;
# endif
# ifdef __SSE__
-# include <xmmintrin.h>
+typedef float __m128 __attribute__ ((__vector_size__ (16)));
# else
typedef int __m128;
# endif