From 2fe8b9c8f908a4ea5adcd2fd502bfdd793c5630d Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Fri, 30 Apr 2004 15:30:55 +0000 Subject: [PATCH] 20040331-1.c: Don't use too wide a bit-field on 16-bit targets. * gcc.c-torture/execute/20040331-1.c: Don't use too wide a bit-field on 16-bit targets. From-SVN: r81343 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.c-torture/execute/20040331-1.c | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c0b55a7ca65..5cc6e2e4289 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2004-04-30 Kazu Hirata + + * gcc.c-torture/execute/20040331-1.c: Don't use too wide a + bit-field on 16-bit targets. + 2004-04-30 Kazu Hirata * gcc.c-torture/execute/20040409-2.c: Fix constants used on diff --git a/gcc/testsuite/gcc.c-torture/execute/20040331-1.c b/gcc/testsuite/gcc.c-torture/execute/20040331-1.c index 67b3e3a2e0c..2e8f9e86748 100644 --- a/gcc/testsuite/gcc.c-torture/execute/20040331-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/20040331-1.c @@ -5,8 +5,16 @@ extern void exit (int); int main (void) { +#if __INT_MAX__ >= 2147483647 struct { int count: 31; } s = { 0 }; while (s.count--) abort (); +#elif __INT_MAX__ >= 32767 + struct { int count: 15; } s = { 0 }; + while (s.count--) + abort (); +#else + /* Don't bother because __INT_MAX__ is too small. */ +#endif exit (0); } -- 2.30.2