re PR testsuite/36285 (gcc.dg/compat/struct-by-value-xxx improper test for AVR target)
authorAndy Hutchinson <hutchinsonandy@aim.com>
Mon, 9 Jun 2008 22:48:37 +0000 (22:48 +0000)
committerAndy Hutchinson <hutchinsonandy@gcc.gnu.org>
Mon, 9 Jun 2008 22:48:37 +0000 (22:48 +0000)
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.

From-SVN: r136604

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 58f1e52f220d2baae4d52a56265276404467b89d..12fea9bb0a00ac0aca5ea1ecd82e0f9603f750bc 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 697d6b7c42919a1f938319c449d10bdddeb0e810..4a70dfd0601d9a561e1ce9dab60d6395c5737c98 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 7af4068d5d0bee310c705100ce8364fd18e5ec42..dcc0b93c101bb5d07153e141d0d422f174ca29c8 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 57140f115cd02596aec770613570324b0a72b525..7574e28c53d530ebf4cb7cc4158d4849e00bf6f9 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)