* gcc.c-torture/execute/vla-dealloc-1.c: Use lower loop count for 16bit int targets.
authorAndy Hutchinson <hutchinsonandy@gcc.gnu.org>
Mon, 7 Dec 2009 00:21:47 +0000 (00:21 +0000)
committerAndy Hutchinson <hutchinsonandy@gcc.gnu.org>
Mon, 7 Dec 2009 00:21:47 +0000 (00:21 +0000)
From-SVN: r155029

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/vla-dealloc-1.c

index 7ce1947..e9d6d00 100644 (file)
@@ -1,3 +1,8 @@
+2009-12-06  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
+
+       * gcc.c-torture/execute/vla-dealloc-1.c: Use lower loop count
+       for 16bit int targets.
+
 2009-12-06  Janus Weil  <janus@gcc.gnu.org>
 
        PR fortran/41478
index f2291ad..9eb95c1 100644 (file)
@@ -1,6 +1,12 @@
 /* VLAs should be deallocated on a jump to before their definition,
    including a jump to a label in an inner scope.  PR 19771.  */
 
+#if (__SIZEOF_INT__ <= 2)
+#define LIMIT 10000
+#else
+#define LIMIT 1000000
+#endif
+
 void *volatile p;
 
 int
@@ -16,7 +22,7 @@ main (void)
   x[n % 1000] = 2;
   p = x;
   n++;
-  if (n < 1000000)
+  if (n < LIMIT)
     goto lab;
   return 0;
 }