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>
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;
typedef struct {
......@@ -11,4 +16,4 @@ static void foo (void)
{
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 ();
typedef union {
struct {
......@@ -12,3 +17,4 @@ f(x, n)
((s *)&x)->u.e -= 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 {
int f1 : 26;
int f2 : 8;
......@@ -7,3 +12,4 @@ f (struct s *x)
{
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
OPTIONS:-O
......@@ -21,3 +30,4 @@ t.c=0xffff11;
if(f(t)!=0x11)abort();
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 {
unsigned b0:1, f1:17, b18:1, b19:1, b20:1, f2:11;
} bf;
......@@ -34,3 +43,4 @@ main()
abort();
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 ()
{
struct {
......@@ -17,3 +26,4 @@ main ()
abort ();
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 ()
{
struct
......@@ -17,3 +26,4 @@ f (x)
if (x != 7)
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
{
unsigned y:1;
......@@ -22,3 +31,4 @@ main ()
abort ();
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 {
unsigned bit : 30;
} t;
......@@ -9,3 +18,4 @@ int main()
else
abort ();
}
#endif
#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;
......
/* 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
/* 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
/* 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
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