2007-07-25 Janis Johnson <janis187@us.ibm.com>
authorrask <rask@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 Jul 2007 12:01:29 +0000 (12:01 +0000)
committerrask <rask@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 Jul 2007 12:01:29 +0000 (12:01 +0000)
* gcc.c-torture/unsorted/dump-noaddr.c: Reduce string length for
  targets where an "int" is less than 32 bits wide.

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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/unsorted/dump-noaddr.c

index 44bc8d4..6efbafe 100644 (file)
@@ -1,3 +1,8 @@
+2007-07-25  Janis Johnson  <janis187@us.ibm.com>
+
+       * gcc.c-torture/unsorted/dump-noaddr.c: Reduce string length for
+         targets where an "int" is less than 32 bits wide.
+
 2007-07-25  Andreas Krebbel  <krebbel1@de.ibm.com>
 
        * gcc.dg/20070725-1.c: Testcase for revision 126876 added.
index 11dd78b..d9f7d2e 100644 (file)
@@ -1,10 +1,21 @@
+#include <limits.h>
+
 #if MASK & 1
+#define t11(x) x x x x x x x x x x x
 #define t16(x) x x x x x x x x x x x x x x x x
+#if INT_MAX < 2147483647
+#define M (sizeof (t11(t11(t16(t16(" "))))) - 1)
+#else
 #define M (sizeof (t16(t16(t16(t16(t16(" ")))))) - 1)
 #endif
+#endif
 #if MASK & 2
+#if INT_MAX < 2147483647
+#define M 30976
+#else
 #define M 1048576
 #endif
+#endif
 
 typedef struct s {
   int c;