*** empty log message ***
authoralehotsky <alehotsky@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 10 Jan 2001 01:14:28 +0000 (01:14 +0000)
committeralehotsky <alehotsky@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 10 Jan 2001 01:14:28 +0000 (01:14 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38846 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/920730-1.c
gcc/testsuite/gcc.c-torture/execute/921202-1.c

index ba17bf6..82ccbab 100644 (file)
@@ -1,3 +1,10 @@
+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
index d97d873..576e7a6 100644 (file)
@@ -1,27 +1,27 @@
 /* 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 ()
index d42fc74..f090f81 100644 (file)
@@ -1,15 +1,20 @@
+#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++)