OSDN Git Service

* gcc.c-torture/compile/20020910-1.c: Disable if __INT_MAX is
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 22 Dec 2003 03:32:35 +0000 (03:32 +0000)
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 22 Dec 2003 03:32:35 +0000 (03:32 +0000)
too small.
* gcc.c-torture/compile/930217-1.c: Likewise.
* gcc.c-torture/compile/930513-1.c: Likewise.
* gcc.c-torture/execute/920908-2.c: Likewise.
* gcc.c-torture/execute/921204-1.c: Likewise.
* gcc.c-torture/execute/930621-1.c: Likewise.
* gcc.c-torture/execute/930630-1.c: Likewise.
* gcc.c-torture/execute/931031-1.c: Likewise.
* gcc.c-torture/execute/980602-2.c: Likewise.
* gcc.c-torture/execute/comp-goto-1.c: Likewise.
* gcc.c-torture/execute/compndlit-1.c: Likewise.
* gcc.c-torture/execute/extzvsi.c: Likewise.
* gcc.c-torture/unsorted/ext.c: Likewise.

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

14 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20020910-1.c
gcc/testsuite/gcc.c-torture/compile/930217-1.c
gcc/testsuite/gcc.c-torture/compile/930513-1.c
gcc/testsuite/gcc.c-torture/execute/920908-2.c
gcc/testsuite/gcc.c-torture/execute/921204-1.c
gcc/testsuite/gcc.c-torture/execute/930621-1.c
gcc/testsuite/gcc.c-torture/execute/930630-1.c
gcc/testsuite/gcc.c-torture/execute/931031-1.c
gcc/testsuite/gcc.c-torture/execute/980602-2.c
gcc/testsuite/gcc.c-torture/execute/comp-goto-1.c
gcc/testsuite/gcc.c-torture/execute/compndlit-1.c
gcc/testsuite/gcc.c-torture/execute/extzvsi.c
gcc/testsuite/gcc.c-torture/unsorted/ext.c

index ccdbbe2..563446a 100644 (file)
@@ -1,3 +1,20 @@
+2003-12-21  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * gcc.c-torture/compile/20020910-1.c: Disable if __INT_MAX is
+       too small.
+       * gcc.c-torture/compile/930217-1.c: Likewise.
+       * gcc.c-torture/compile/930513-1.c: Likewise.
+       * gcc.c-torture/execute/920908-2.c: Likewise.
+       * gcc.c-torture/execute/921204-1.c: Likewise.
+       * gcc.c-torture/execute/930621-1.c: Likewise.
+       * gcc.c-torture/execute/930630-1.c: Likewise.
+       * gcc.c-torture/execute/931031-1.c: Likewise.
+       * gcc.c-torture/execute/980602-2.c: Likewise.
+       * gcc.c-torture/execute/comp-goto-1.c: Likewise.
+       * gcc.c-torture/execute/compndlit-1.c: Likewise.
+       * gcc.c-torture/execute/extzvsi.c: Likewise.
+       * gcc.c-torture/unsorted/ext.c: Likewise.
+
 2003-12-20  Andrew Pinski  <pinskia@gcc.gnu.org>
 
        PR target/12749
index 31398ea..092809b 100644 (file)
@@ -1,3 +1,8 @@
+/* The bit-field below would have a problem if __INT_MAX__ is too
+   small.  */
+#if __INT_MAX__ < 2147483647
+int a;
+#else
 unsigned int  x0  = 0;
 
 typedef struct {
@@ -11,4 +16,4 @@ static void foo (void)
 {
   yy.field1 = (unsigned int ) (&x0);
 }
+#endif
index 70f4a48..0f64a04 100644 (file)
@@ -1,3 +1,8 @@
+/* The bit-field below would have a problem if __INT_MAX__ is too
+   small.  */
+#if __INT_MAX__ < 2147483647
+int a;
+#else
 double g ();
 typedef union {
   struct {
@@ -12,3 +17,4 @@ f(x, n)
   ((s *)&x)->u.e -= n;
   x = g((double)x, -n);
 }
+#endif
index 2e106ae..463fd89 100644 (file)
@@ -1,3 +1,8 @@
+/* The bit-field below would have a problem if __INT_MAX__ is too
+   small.  */
+#if __INT_MAX__ < 2147483647
+int a;
+#else
 struct s {
   int f1 : 26;
   int f2 : 8;
@@ -7,3 +12,4 @@ f (struct s *x)
 {
   return x->f2++ == 0;
 }
+#endif
index 66a6d86..31c1ae0 100644 (file)
@@ -1,3 +1,12 @@
+/* The bit-field below would have a problem if __INT_MAX__ is too
+   small.  */
+#if __INT_MAX__ < 2147483647
+int
+main (void)
+{
+  exit (0);
+}
+#else
 /*
 CONF:m68k-sun-sunos4.1.1
 OPTIONS:-O
@@ -21,3 +30,4 @@ t.c=0xffff11;
 if(f(t)!=0x11)abort();
 exit(0);
 }
+#endif
index 9e4f4a6..a7bba83 100644 (file)
@@ -1,3 +1,12 @@
+/* The bit-field below would have a problem if __INT_MAX__ is too
+   small.  */
+#if __INT_MAX__ < 2147483647
+int
+main (void)
+{
+  exit (0);
+}
+#else
 typedef struct {
   unsigned b0:1, f1:17, b18:1, b19:1, b20:1, f2:11;
 } bf;
@@ -34,3 +43,4 @@ main()
     abort();
   exit(0);
 }
+#endif
index 6131301..4bb7cdb 100644 (file)
@@ -1,3 +1,12 @@
+/* The bit-field below would have a problem if __INT_MAX__ is too
+   small.  */
+#if __INT_MAX__ < 2147483647
+int
+main (void)
+{
+  exit (0);
+}
+#else
 f ()
 {
   struct {
@@ -17,3 +26,4 @@ main ()
     abort ();
   exit (0);
 }
+#endif
index 4befa83..38ad1fd 100644 (file)
@@ -1,3 +1,12 @@
+/* The bit-field below would have a problem if __INT_MAX__ is too
+   small.  */
+#if __INT_MAX__ < 2147483647
+int
+main (void)
+{
+  exit (0);
+}
+#else
 main ()
 {
   struct
@@ -17,3 +26,4 @@ f (x)
   if (x != 7)
     abort ();
 }
+#endif
index 7619890..e9ce337 100644 (file)
@@ -1,3 +1,12 @@
+/* The bit-field below would have a problem if __INT_MAX__ is too
+   small.  */
+#if __INT_MAX__ < 2147483647
+int
+main (void)
+{
+  exit (0);
+}
+#else
 struct foo
 {
   unsigned y:1;
@@ -22,3 +31,4 @@ main ()
     abort ();
   exit (0);
 }
+#endif
index 8ef2322..972553e 100644 (file)
@@ -1,3 +1,12 @@
+/* The bit-field below would have a problem if __INT_MAX__ is too
+   small.  */
+#if __INT_MAX__ < 2147483647
+int
+main (void)
+{
+  exit (0);
+}
+#else
 struct {
     unsigned bit : 30;
 } t;
@@ -9,3 +18,4 @@ int main()
     else
        abort ();
 }
+#endif
index bf648b3..3bf9a26 100644 (file)
@@ -1,13 +1,8 @@
 #include <stdlib.h>
 
-#if !defined(NO_LABEL_VALUES) && (!defined(STACK_SIZE) || STACK_SIZE >= 4000)
-#if __INT_MAX__ == 32767
-typedef unsigned long uint32;
-typedef signed long sint32;
-#else
+#if !defined(NO_LABEL_VALUES) && (!defined(STACK_SIZE) || STACK_SIZE >= 4000) && __INT_MAX__ >= 2147483647
 typedef unsigned int uint32;
 typedef signed int sint32;
-#endif
 
 typedef uint32 reg_t;
 
index 4a8488d..76328c2 100644 (file)
@@ -1,3 +1,12 @@
+/* The bit-field below would have a problem if __INT_MAX__ is too
+   small.  */
+#if __INT_MAX__ < 2147483647
+int
+main (void)
+{
+  exit (0);
+}
+#else
 struct S
 {
   int a:3;
@@ -13,3 +22,4 @@ main ()
     abort ();
   exit (0);
 }
+#endif
index ba25127..81f1618 100644 (file)
@@ -1,3 +1,12 @@
+/* The bit-field below would have a problem if __INT_MAX__ is too
+   small.  */
+#if __INT_MAX__ < 2147483647
+int
+main (void)
+{
+  exit (0);
+}
+#else
 /* Failed on powerpc due to bad extzvsi pattern.  */
 
 struct ieee
@@ -29,3 +38,4 @@ main (void)
     abort ();
   return 0;
 }
+#endif
index 8fa8cd7..9e8604e 100644 (file)
@@ -1,3 +1,12 @@
+/* The bit-field below would have a problem if __INT_MAX__ is too
+   small.  */
+#if __INT_MAX__ < 2147483647
+int
+main (void)
+{
+  exit (0);
+}
+#else
 struct foo
 {
   unsigned b31 : 1;
@@ -11,3 +20,4 @@ foo(a)
 {
   return a.b30;
 }
+#endif