+2001-01-09 Alan Lehotsky <lehotsky@tiac.net>
+
+ * gcc.c-torture/execute/921202-1.c: Use STACK_SIZE to avoid
+ problems on small machines.
+ * gcc.c-torture/execute/920730-1.c: Use values from <limits.h> to
+ parameterize.
+
2001-01-09 Jeffrey Oldham <oldham@codesourcery.com>
* g++.old-deja/g++.ext/instantiate2.C: ERROR line should fail for
/* 920730-1.c */
-
+#include <limits.h>
f1()
{
- int b=0x80000000;
- return b>=0x80000000;
+ int b=INT_MIN;
+ return b>=INT_MIN;
}
f2()
{
- int b=0x80000001;
- return b>=0x80000001;
+ int b=INT_MIN+1;
+ return b>= (unsigned)(INT_MAX+2);
}
f3()
{
- int b=0x7fffffff;
- return b>=0x7fffffff;
+ int b=INT_MAX;
+ return b>=INT_MAX;
}
f4()
{
- int b=0xffffffff;
- return b>=0xffffffff;
+ int b=-1;
+ return b>=UINT_MAX;
}
main ()
+#ifndef STACK_SIZE
+#define VLEN 2055
+#else
+#define VLEN ((STACK_SIZE/16) - 1)
+#endif
main ()
{
- long dx[2055];
- long dy[2055];
- long s1[2055];
+ long dx[VLEN];
+ long dy[VLEN];
+ long s1[VLEN];
int cyx, cyy;
int i;
long size;
for (;;)
{
- size = 2055;
+ size = VLEN;
mpn_random2 (s1, size);
for (i = 0; i < 1; i++)