From c3dcbf646de3c244d4cfe85956937246b6fff383 Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Mon, 22 Mar 1999 15:11:34 +0000 Subject: [PATCH] Fix bf-sign-2.c failure on 64-bit host caused by my last patch. * bf-sign-2.c (main): Replace struct sizeof test with 4. From-SVN: r25902 --- gcc/testsuite/gcc.c-torture/ChangeLog | 4 ++++ gcc/testsuite/gcc.c-torture/execute/bf-sign-2.c | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.c-torture/ChangeLog b/gcc/testsuite/gcc.c-torture/ChangeLog index 53babe5cd21..ee09585af81 100644 --- a/gcc/testsuite/gcc.c-torture/ChangeLog +++ b/gcc/testsuite/gcc.c-torture/ChangeLog @@ -1,3 +1,7 @@ +Mon Mar 22 14:55:58 1999 Jim Wilson + + * bf-sign-2.c (main): Replace struct sizeof test with 4. + Wed Mar 17 12:22:39 1999 Richard Henderson * gcc.c-torture/execute/ieee/980619-1.x: New. Expected fail on x86. diff --git a/gcc/testsuite/gcc.c-torture/execute/bf-sign-2.c b/gcc/testsuite/gcc.c-torture/execute/bf-sign-2.c index 365e061c839..f0a8d52270b 100644 --- a/gcc/testsuite/gcc.c-torture/execute/bf-sign-2.c +++ b/gcc/testsuite/gcc.c-torture/execute/bf-sign-2.c @@ -40,7 +40,9 @@ main () if ((x.u15 - 2) >= 0) /* promoted value should be signed */ abort (); - if (sizeof (struct { unsigned long u32:32;}) <= sizeof (int)) + /* Conditionalize check on whether integers are 4 bytes or larger, i.e. + larger than a 31 bit bitfield. */ + if (sizeof (int) >= 4) { if ((x.u31 - 2) >= 0) /* promoted value should be signed */ abort ();