From f819a6a516e88b987f72f374c5e5d5e8f3ec2798 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Fri, 20 Feb 2004 06:36:33 +0000 Subject: [PATCH] 20040130-1.c: Enable only when __INT_MAX__ >= 2147483647L. * 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 | 6 ++++++ gcc/testsuite/gcc.c-torture/compile/20040130-1.c | 4 ++++ gcc/testsuite/gcc.c-torture/compile/961203-1.c | 7 +++++-- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4de2e4b0509..45acf23ec16 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2004-02-19 Kazu Hirata + + * 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 * g++.dg/parse/attr-ctor1.C: XFAIL on hppa. diff --git a/gcc/testsuite/gcc.c-torture/compile/20040130-1.c b/gcc/testsuite/gcc.c-torture/compile/20040130-1.c index 0edcea44ede..e661c176ac6 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20040130-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20040130-1.c @@ -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; diff --git a/gcc/testsuite/gcc.c-torture/compile/961203-1.c b/gcc/testsuite/gcc.c-torture/compile/961203-1.c index 40cac8e3d05..98908584333 100644 --- a/gcc/testsuite/gcc.c-torture/compile/961203-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/961203-1.c @@ -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 -- 2.30.2