From 15d92b36a1cc26f5eda0c09f3fa1c369d0a36260 Mon Sep 17 00:00:00 2001 From: Janis Johnson Date: Wed, 25 Jul 2007 12:01:29 +0000 Subject: [PATCH] dump-noaddr.c: Reduce string length for targets where an "int" is less than 32 bits wide. 2007-07-25 Janis Johnson * gcc.c-torture/unsorted/dump-noaddr.c: Reduce string length for targets where an "int" is less than 32 bits wide. From-SVN: r126910 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.c-torture/unsorted/dump-noaddr.c | 11 +++++++++++ 2 files changed, 16 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 44bc8d4f277..6efbafea549 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2007-07-25 Janis Johnson + + * 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 * gcc.dg/20070725-1.c: Testcase for revision 126876 added. diff --git a/gcc/testsuite/gcc.c-torture/unsorted/dump-noaddr.c b/gcc/testsuite/gcc.c-torture/unsorted/dump-noaddr.c index 11dd78b8f69..d9f7d2ed235 100644 --- a/gcc/testsuite/gcc.c-torture/unsorted/dump-noaddr.c +++ b/gcc/testsuite/gcc.c-torture/unsorted/dump-noaddr.c @@ -1,10 +1,21 @@ +#include + #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;