From: Andy Hutchinson Date: Tue, 8 Apr 2008 22:17:52 +0000 (+0000) Subject: re PR testsuite/35005 (New testcase execute/20071211-1.c assumes 32 bit integers) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a5e34caf3c36920fd52c0163914d0b2275c4ca0d;p=gcc.git re PR testsuite/35005 (New testcase execute/20071211-1.c assumes 32 bit integers) PR target/35005 * execute/20071221-1.c: Adapt test for 16 bit int targets. * execute/pr35163.c: Ditto. From-SVN: r134114 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index be299964316..33597e09b20 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2008-04-08 Andy Hutchinson + + PR target/35005 + * execute/20071221-1.c: Adapt test for 16 bit int targets. + * execute/pr35163.c: Ditto. + 2008-04-08 Richard Guenther * gcc.c-torture/execute/20080408-1.c: New testcase. diff --git a/gcc/testsuite/gcc.c-torture/execute/20071211-1.c b/gcc/testsuite/gcc.c-torture/execute/20071211-1.c index f3786a2f407..4a4f1fefc90 100644 --- a/gcc/testsuite/gcc.c-torture/execute/20071211-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/20071211-1.c @@ -3,7 +3,11 @@ extern void abort() __attribute__ ((noreturn)); struct s { unsigned long long f1 : 40; +#if(__SIZEOF_INT__ >= 4) unsigned int f2 : 24; +#else + unsigned long int f2 : 24; +#endif } sv; int main() diff --git a/gcc/testsuite/gcc.c-torture/execute/pr35163.c b/gcc/testsuite/gcc.c-torture/execute/pr35163.c index 4950d6d2027..93b180d5d82 100644 --- a/gcc/testsuite/gcc.c-torture/execute/pr35163.c +++ b/gcc/testsuite/gcc.c-torture/execute/pr35163.c @@ -4,7 +4,11 @@ int main() { signed char a = -30; signed char b = -31; + #if(__SIZEOF_INT__ >= 4) if (a > (unsigned short)b) +#else + if ((long) a > (unsigned short)b) +#endif abort (); return 0; }