OSDN Git Service

PR testsuite/36285
authorhutchinsonandy <hutchinsonandy@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 9 Jun 2008 22:48:37 +0000 (22:48 +0000)
committerhutchinsonandy <hutchinsonandy@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 9 Jun 2008 22:48:37 +0000 (22:48 +0000)
* gcc.dg/compat/struct-return-10_y.c: Remove test_va.
* gcc.dg/compat/vector-defs.h: Add check for availability of 8 byte double.
* gcc.dg/compat/struct-layout-1_test.h: Change bitfield to match integer size.

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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/compat/struct-layout-1_test.h
gcc/testsuite/gcc.dg/compat/struct-return-10_y.c
gcc/testsuite/gcc.dg/compat/vector-defs.h

index 58f1e52..12fea9b 100644 (file)
@@ -1,3 +1,12 @@
+2008-06-09  Andy Hutchinson  <hutchinsonandy@aim.com>
+
+       PR testsuite/36285
+       * gcc.dg/compat/struct-return-10_y.c: Remove test_va.
+       * gcc.dg/compat/vector-defs.h: Add check for availability of 8 byte 
+       double.
+       * gcc.dg/compat/struct-layout-1_test.h: Change bitfield to match 
+       integer size.
+
 2008-06-09  Joseph Myers  <joseph@codesourcery.com>
 
        * gcc.dg/pr34856.c: Condition use of -maltivec on
index 697d6b7..4a70dfd 100644 (file)
@@ -1 +1,5 @@
+#if (__SIZEOF_INT__ >= 4) 
 T(0,enum E2 a:31;,B(0,a,e2_m1,e2_0))
+#else
+T(0,enum E2 a:15;,B(0,a,e2_m1,e2_0))
+#endif
index 7af4068..dcc0b93 100644 (file)
@@ -2,11 +2,6 @@
 
 #include "compat-common.h"
 
-#ifdef SKIP_VA
-const int test_va = 0;
-#else
-const int test_va = 1;
-#endif
 
 #include "fp2-struct-defs.h"
 #include "fp2-struct-init.h"
@@ -58,7 +53,7 @@ testva##TYPE (int n, ...)                                     \
   int i;                                                       \
   TYPE rslt;                                                   \
   va_list ap;                                                  \
-  if (test_va)                                                 \
+  if (1)                                                       \
     {                                                          \
       va_start (ap, n);                                                \
       for (i = 0; i < n; i++)                                  \
index 57140f1..7574e28 100644 (file)
@@ -6,7 +6,11 @@ typedef int __attribute__((mode(HI))) hi;
 typedef int __attribute__((mode(SI))) si;
 typedef int __attribute__((mode(DI))) di;
 typedef float __attribute__((mode(SF))) sf;
+#if ((__SIZEOF_DOUBLE__ >= 8) || (__SIZEOF_LONG_DOUBLE__ >= 8))
 typedef float __attribute__((mode(DF))) df;
+#else
+typedef float __attribute__((mode(SF))) df;
+#endif
 
 #if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 5)