aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture
diff options
context:
space:
mode:
authorAndy Hutchinson <hutchinsonandy@gcc.gnu.org>2009-12-07 00:21:47 +0000
committerAndy Hutchinson <hutchinsonandy@gcc.gnu.org>2009-12-07 00:21:47 +0000
commit4f566bd60e0e2fbdd34da8514643fe723379f40e (patch)
tree0d86b25f74141c7b1c8ea221a2ba6b08fc4bd441 /gcc/testsuite/gcc.c-torture
parent849c1a903019692fce5839c7bd48b584a4164864 (diff)
downloadgcc-4f566bd60e0e2fbdd34da8514643fe723379f40e.zip
gcc-4f566bd60e0e2fbdd34da8514643fe723379f40e.tar.gz
gcc-4f566bd60e0e2fbdd34da8514643fe723379f40e.tar.bz2
* gcc.c-torture/execute/vla-dealloc-1.c: Use lower loop count for 16bit int targets.
From-SVN: r155029
Diffstat (limited to 'gcc/testsuite/gcc.c-torture')
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/vla-dealloc-1.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.c-torture/execute/vla-dealloc-1.c b/gcc/testsuite/gcc.c-torture/execute/vla-dealloc-1.c
index f2291ad..9eb95c1 100644
--- a/gcc/testsuite/gcc.c-torture/execute/vla-dealloc-1.c
+++ b/gcc/testsuite/gcc.c-torture/execute/vla-dealloc-1.c
@@ -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;
}