Commit b665cdce by Kazu Hirata Committed by Kazu Hirata

20020910-1.c: Disable if __INT_MAX is too small.

	* 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.

From-SVN: r74923
parent 73b9c9bf
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> 2003-12-20 Andrew Pinski <pinskia@gcc.gnu.org>
PR target/12749 PR target/12749
......
/* 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; unsigned int x0 = 0;
typedef struct { typedef struct {
...@@ -11,4 +16,4 @@ static void foo (void) ...@@ -11,4 +16,4 @@ static void foo (void)
{ {
yy.field1 = (unsigned int ) (&x0); yy.field1 = (unsigned int ) (&x0);
} }
#endif
/* The bit-field below would have a problem if __INT_MAX__ is too
small. */
#if __INT_MAX__ < 2147483647
int a;
#else
double g (); double g ();
typedef union { typedef union {
struct { struct {
...@@ -12,3 +17,4 @@ f(x, n) ...@@ -12,3 +17,4 @@ f(x, n)
((s *)&x)->u.e -= n; ((s *)&x)->u.e -= n;
x = g((double)x, -n); x = g((double)x, -n);
} }
#endif
/* The bit-field below would have a problem if __INT_MAX__ is too
small. */
#if __INT_MAX__ < 2147483647
int a;
#else
struct s { struct s {
int f1 : 26; int f1 : 26;
int f2 : 8; int f2 : 8;
...@@ -7,3 +12,4 @@ f (struct s *x) ...@@ -7,3 +12,4 @@ f (struct s *x)
{ {
return x->f2++ == 0; return x->f2++ == 0;
} }
#endif
/* 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 CONF:m68k-sun-sunos4.1.1
OPTIONS:-O OPTIONS:-O
...@@ -21,3 +30,4 @@ t.c=0xffff11; ...@@ -21,3 +30,4 @@ t.c=0xffff11;
if(f(t)!=0x11)abort(); if(f(t)!=0x11)abort();
exit(0); exit(0);
} }
#endif
/* 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 { typedef struct {
unsigned b0:1, f1:17, b18:1, b19:1, b20:1, f2:11; unsigned b0:1, f1:17, b18:1, b19:1, b20:1, f2:11;
} bf; } bf;
...@@ -34,3 +43,4 @@ main() ...@@ -34,3 +43,4 @@ main()
abort(); abort();
exit(0); exit(0);
} }
#endif
/* 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 () f ()
{ {
struct { struct {
...@@ -17,3 +26,4 @@ main () ...@@ -17,3 +26,4 @@ main ()
abort (); abort ();
exit (0); exit (0);
} }
#endif
/* 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 () main ()
{ {
struct struct
...@@ -17,3 +26,4 @@ f (x) ...@@ -17,3 +26,4 @@ f (x)
if (x != 7) if (x != 7)
abort (); abort ();
} }
#endif
/* 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 struct foo
{ {
unsigned y:1; unsigned y:1;
...@@ -22,3 +31,4 @@ main () ...@@ -22,3 +31,4 @@ main ()
abort (); abort ();
exit (0); exit (0);
} }
#endif
/* 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 { struct {
unsigned bit : 30; unsigned bit : 30;
} t; } t;
...@@ -9,3 +18,4 @@ int main() ...@@ -9,3 +18,4 @@ int main()
else else
abort (); abort ();
} }
#endif
#include <stdlib.h> #include <stdlib.h>
#if !defined(NO_LABEL_VALUES) && (!defined(STACK_SIZE) || STACK_SIZE >= 4000) #if !defined(NO_LABEL_VALUES) && (!defined(STACK_SIZE) || STACK_SIZE >= 4000) && __INT_MAX__ >= 2147483647
#if __INT_MAX__ == 32767
typedef unsigned long uint32;
typedef signed long sint32;
#else
typedef unsigned int uint32; typedef unsigned int uint32;
typedef signed int sint32; typedef signed int sint32;
#endif
typedef uint32 reg_t; typedef uint32 reg_t;
......
/* 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 struct S
{ {
int a:3; int a:3;
...@@ -13,3 +22,4 @@ main () ...@@ -13,3 +22,4 @@ main ()
abort (); abort ();
exit (0); exit (0);
} }
#endif
/* 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. */ /* Failed on powerpc due to bad extzvsi pattern. */
struct ieee struct ieee
...@@ -29,3 +38,4 @@ main (void) ...@@ -29,3 +38,4 @@ main (void)
abort (); abort ();
return 0; return 0;
} }
#endif
/* 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 struct foo
{ {
unsigned b31 : 1; unsigned b31 : 1;
...@@ -11,3 +20,4 @@ foo(a) ...@@ -11,3 +20,4 @@ foo(a)
{ {
return a.b30; return a.b30;
} }
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment