diff options
author | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-12-22 03:32:35 +0000 |
---|---|---|
committer | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-12-22 03:32:35 +0000 |
commit | 5a9489bf5bd704b40fbfbf3a5f545f5706c1415d (patch) | |
tree | 1df15853e5faefa4a93b0b93cfb5bcf7c0f1ec6c /gcc/testsuite | |
parent | c28d531afb4e8b98877e7ad8c12307d138534a84 (diff) | |
download | gcc-5a9489bf5bd704b40fbfbf3a5f545f5706c1415d.tar.gz |
* gcc.c-torture/compile/20020910-1.c: Disable if __INT_MAX is
too small.
* gcc.c-torture/compile/930217-1.c: Likewise.
* gcc.c-torture/compile/930513-1.c: Likewise.
* gcc.c-torture/execute/920908-2.c: Likewise.
* gcc.c-torture/execute/921204-1.c: Likewise.
* gcc.c-torture/execute/930621-1.c: Likewise.
* gcc.c-torture/execute/930630-1.c: Likewise.
* gcc.c-torture/execute/931031-1.c: Likewise.
* gcc.c-torture/execute/980602-2.c: Likewise.
* gcc.c-torture/execute/comp-goto-1.c: Likewise.
* gcc.c-torture/execute/compndlit-1.c: Likewise.
* gcc.c-torture/execute/extzvsi.c: Likewise.
* gcc.c-torture/unsorted/ext.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74923 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 17 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/20020910-1.c | 7 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/930217-1.c | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/930513-1.c | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/920908-2.c | 10 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/921204-1.c | 10 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/930621-1.c | 10 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/930630-1.c | 10 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/931031-1.c | 10 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/980602-2.c | 10 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/comp-goto-1.c | 7 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/compndlit-1.c | 10 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/extzvsi.c | 10 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/unsorted/ext.c | 10 |
14 files changed, 126 insertions, 7 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ccdbbe28eaa..563446af150 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,20 @@ +2003-12-21 Kazu Hirata <kazu@cs.umass.edu> + + * gcc.c-torture/compile/20020910-1.c: Disable if __INT_MAX is + too small. + * gcc.c-torture/compile/930217-1.c: Likewise. + * gcc.c-torture/compile/930513-1.c: Likewise. + * gcc.c-torture/execute/920908-2.c: Likewise. + * gcc.c-torture/execute/921204-1.c: Likewise. + * gcc.c-torture/execute/930621-1.c: Likewise. + * gcc.c-torture/execute/930630-1.c: Likewise. + * gcc.c-torture/execute/931031-1.c: Likewise. + * gcc.c-torture/execute/980602-2.c: Likewise. + * gcc.c-torture/execute/comp-goto-1.c: Likewise. + * gcc.c-torture/execute/compndlit-1.c: Likewise. + * gcc.c-torture/execute/extzvsi.c: Likewise. + * gcc.c-torture/unsorted/ext.c: Likewise. + 2003-12-20 Andrew Pinski <pinskia@gcc.gnu.org> PR target/12749 diff --git a/gcc/testsuite/gcc.c-torture/compile/20020910-1.c b/gcc/testsuite/gcc.c-torture/compile/20020910-1.c index 31398ea3d45..092809b769c 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20020910-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20020910-1.c @@ -1,3 +1,8 @@ +/* The bit-field below would have a problem if __INT_MAX__ is too + small. */ +#if __INT_MAX__ < 2147483647 +int a; +#else unsigned int x0 = 0; typedef struct { @@ -11,4 +16,4 @@ static void foo (void) { yy.field1 = (unsigned int ) (&x0); } - +#endif diff --git a/gcc/testsuite/gcc.c-torture/compile/930217-1.c b/gcc/testsuite/gcc.c-torture/compile/930217-1.c index 70f4a4897c4..0f64a040712 100644 --- a/gcc/testsuite/gcc.c-torture/compile/930217-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/930217-1.c @@ -1,3 +1,8 @@ +/* The bit-field below would have a problem if __INT_MAX__ is too + small. */ +#if __INT_MAX__ < 2147483647 +int a; +#else double g (); typedef union { struct { @@ -12,3 +17,4 @@ f(x, n) ((s *)&x)->u.e -= n; x = g((double)x, -n); } +#endif diff --git a/gcc/testsuite/gcc.c-torture/compile/930513-1.c b/gcc/testsuite/gcc.c-torture/compile/930513-1.c index 2e106ae43a9..463fd89b401 100644 --- a/gcc/testsuite/gcc.c-torture/compile/930513-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/930513-1.c @@ -1,3 +1,8 @@ +/* The bit-field below would have a problem if __INT_MAX__ is too + small. */ +#if __INT_MAX__ < 2147483647 +int a; +#else struct s { int f1 : 26; int f2 : 8; @@ -7,3 +12,4 @@ f (struct s *x) { return x->f2++ == 0; } +#endif diff --git a/gcc/testsuite/gcc.c-torture/execute/920908-2.c b/gcc/testsuite/gcc.c-torture/execute/920908-2.c index 66a6d86a7e7..31c1ae0769c 100644 --- a/gcc/testsuite/gcc.c-torture/execute/920908-2.c +++ b/gcc/testsuite/gcc.c-torture/execute/920908-2.c @@ -1,3 +1,12 @@ +/* The bit-field below would have a problem if __INT_MAX__ is too + small. */ +#if __INT_MAX__ < 2147483647 +int +main (void) +{ + exit (0); +} +#else /* CONF:m68k-sun-sunos4.1.1 OPTIONS:-O @@ -21,3 +30,4 @@ t.c=0xffff11; if(f(t)!=0x11)abort(); exit(0); } +#endif diff --git a/gcc/testsuite/gcc.c-torture/execute/921204-1.c b/gcc/testsuite/gcc.c-torture/execute/921204-1.c index 9e4f4a6bae7..a7bba830a34 100644 --- a/gcc/testsuite/gcc.c-torture/execute/921204-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/921204-1.c @@ -1,3 +1,12 @@ +/* The bit-field below would have a problem if __INT_MAX__ is too + small. */ +#if __INT_MAX__ < 2147483647 +int +main (void) +{ + exit (0); +} +#else typedef struct { unsigned b0:1, f1:17, b18:1, b19:1, b20:1, f2:11; } bf; @@ -34,3 +43,4 @@ main() abort(); exit(0); } +#endif diff --git a/gcc/testsuite/gcc.c-torture/execute/930621-1.c b/gcc/testsuite/gcc.c-torture/execute/930621-1.c index 6131301df2f..4bb7cdbe076 100644 --- a/gcc/testsuite/gcc.c-torture/execute/930621-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/930621-1.c @@ -1,3 +1,12 @@ +/* The bit-field below would have a problem if __INT_MAX__ is too + small. */ +#if __INT_MAX__ < 2147483647 +int +main (void) +{ + exit (0); +} +#else f () { struct { @@ -17,3 +26,4 @@ main () abort (); exit (0); } +#endif diff --git a/gcc/testsuite/gcc.c-torture/execute/930630-1.c b/gcc/testsuite/gcc.c-torture/execute/930630-1.c index 4befa835d0d..38ad1fdfd7b 100644 --- a/gcc/testsuite/gcc.c-torture/execute/930630-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/930630-1.c @@ -1,3 +1,12 @@ +/* The bit-field below would have a problem if __INT_MAX__ is too + small. */ +#if __INT_MAX__ < 2147483647 +int +main (void) +{ + exit (0); +} +#else main () { struct @@ -17,3 +26,4 @@ f (x) if (x != 7) abort (); } +#endif diff --git a/gcc/testsuite/gcc.c-torture/execute/931031-1.c b/gcc/testsuite/gcc.c-torture/execute/931031-1.c index 761989040f4..e9ce337955d 100644 --- a/gcc/testsuite/gcc.c-torture/execute/931031-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/931031-1.c @@ -1,3 +1,12 @@ +/* The bit-field below would have a problem if __INT_MAX__ is too + small. */ +#if __INT_MAX__ < 2147483647 +int +main (void) +{ + exit (0); +} +#else struct foo { unsigned y:1; @@ -22,3 +31,4 @@ main () abort (); exit (0); } +#endif diff --git a/gcc/testsuite/gcc.c-torture/execute/980602-2.c b/gcc/testsuite/gcc.c-torture/execute/980602-2.c index 8ef23222d62..972553ed584 100644 --- a/gcc/testsuite/gcc.c-torture/execute/980602-2.c +++ b/gcc/testsuite/gcc.c-torture/execute/980602-2.c @@ -1,3 +1,12 @@ +/* The bit-field below would have a problem if __INT_MAX__ is too + small. */ +#if __INT_MAX__ < 2147483647 +int +main (void) +{ + exit (0); +} +#else struct { unsigned bit : 30; } t; @@ -9,3 +18,4 @@ int main() else abort (); } +#endif diff --git a/gcc/testsuite/gcc.c-torture/execute/comp-goto-1.c b/gcc/testsuite/gcc.c-torture/execute/comp-goto-1.c index bf648b3440c..3bf9a26f655 100644 --- a/gcc/testsuite/gcc.c-torture/execute/comp-goto-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/comp-goto-1.c @@ -1,13 +1,8 @@ #include <stdlib.h> -#if !defined(NO_LABEL_VALUES) && (!defined(STACK_SIZE) || STACK_SIZE >= 4000) -#if __INT_MAX__ == 32767 -typedef unsigned long uint32; -typedef signed long sint32; -#else +#if !defined(NO_LABEL_VALUES) && (!defined(STACK_SIZE) || STACK_SIZE >= 4000) && __INT_MAX__ >= 2147483647 typedef unsigned int uint32; typedef signed int sint32; -#endif typedef uint32 reg_t; diff --git a/gcc/testsuite/gcc.c-torture/execute/compndlit-1.c b/gcc/testsuite/gcc.c-torture/execute/compndlit-1.c index 4a8488d0ab4..76328c21c2e 100644 --- a/gcc/testsuite/gcc.c-torture/execute/compndlit-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/compndlit-1.c @@ -1,3 +1,12 @@ +/* The bit-field below would have a problem if __INT_MAX__ is too + small. */ +#if __INT_MAX__ < 2147483647 +int +main (void) +{ + exit (0); +} +#else struct S { int a:3; @@ -13,3 +22,4 @@ main () abort (); exit (0); } +#endif diff --git a/gcc/testsuite/gcc.c-torture/execute/extzvsi.c b/gcc/testsuite/gcc.c-torture/execute/extzvsi.c index ba251271896..81f16185d21 100644 --- a/gcc/testsuite/gcc.c-torture/execute/extzvsi.c +++ b/gcc/testsuite/gcc.c-torture/execute/extzvsi.c @@ -1,3 +1,12 @@ +/* The bit-field below would have a problem if __INT_MAX__ is too + small. */ +#if __INT_MAX__ < 2147483647 +int +main (void) +{ + exit (0); +} +#else /* Failed on powerpc due to bad extzvsi pattern. */ struct ieee @@ -29,3 +38,4 @@ main (void) abort (); return 0; } +#endif diff --git a/gcc/testsuite/gcc.c-torture/unsorted/ext.c b/gcc/testsuite/gcc.c-torture/unsorted/ext.c index 8fa8cd73363..9e8604ef2b2 100644 --- a/gcc/testsuite/gcc.c-torture/unsorted/ext.c +++ b/gcc/testsuite/gcc.c-torture/unsorted/ext.c @@ -1,3 +1,12 @@ +/* The bit-field below would have a problem if __INT_MAX__ is too + small. */ +#if __INT_MAX__ < 2147483647 +int +main (void) +{ + exit (0); +} +#else struct foo { unsigned b31 : 1; @@ -11,3 +20,4 @@ foo(a) { return a.b30; } +#endif |