20040130-1.c: Enable only when __INT_MAX__ >= 2147483647L.
authorKazu Hirata <kazu@cs.umass.edu>
Fri, 20 Feb 2004 06:36:33 +0000 (06:36 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Fri, 20 Feb 2004 06:36:33 +0000 (06:36 +0000)
* gcc.c-torture/compile/20040130-1.c: Enable only when
__INT_MAX__ >= 2147483647L.
* gcc.c-torture/compile/961203-1.c: Likewise.

From-SVN: r78148

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20040130-1.c
gcc/testsuite/gcc.c-torture/compile/961203-1.c

index 4de2e4b05099c07199bbc3623c516fc4c0c3cc8a..45acf23ec1690ac937b285e6b3035b08dcb2121a 100644 (file)
@@ -1,3 +1,9 @@
+2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * gcc.c-torture/compile/20040130-1.c: Enable only when
+       __INT_MAX__ >= 2147483647L.
+       * gcc.c-torture/compile/961203-1.c: Likewise.
+
 2004-02-19  Nathan Sidwell  <nathan@codesourcery.com>
 
        * g++.dg/parse/attr-ctor1.C: XFAIL on hppa.
index 0edcea44ede0a14f39299886f50a3b0e9c565cd0..e661c176ac65246c8b576171f4f542eb74732685 100644 (file)
@@ -12,9 +12,13 @@ struct
   unsigned int :4;
   unsigned short :14;
   unsigned int G938:8;
+#if __INT_MAX__ >= 2147483647L
   unsigned int :30;
+#endif
   unsigned short :16;
+#if __INT_MAX__ >= 2147483647L
   unsigned int :18;
+#endif
   unsigned short G939:9;
 } G928b;
 
index 40cac8e3d050f077c88c40ccb16d924f0113bae0..98908584333d6153862e3792ecec228058bd5995 100644 (file)
@@ -1,8 +1,8 @@
 /* The structure is too large for the xstormy16 - won't fit in 16
    bits.  */
-/* { dg-xfail-if "The array too big" { "h8300-*-*" } { "-mno-h" "-mn" } { "" } } */
-/* { dg-do assemble { xfail xstormy16-*-* m6811-*-* m6812-*-* } } */
+/* { dg-do assemble } */
 
+#if __INT_MAX__ >= 2147483647L
 struct s {
   char a[0x32100000];
   int x:30, y:30;
@@ -17,3 +17,6 @@ main ()
   if (p->x == p->y)
     exit (1);
 }
+#else
+int g;
+#endif