diff options
author | Andy Hutchinson <hutchinsonandy@gcc.gnu.org> | 2009-12-07 00:21:47 +0000 |
---|---|---|
committer | Andy Hutchinson <hutchinsonandy@gcc.gnu.org> | 2009-12-07 00:21:47 +0000 |
commit | 4f566bd60e0e2fbdd34da8514643fe723379f40e (patch) | |
tree | 0d86b25f74141c7b1c8ea221a2ba6b08fc4bd441 /gcc | |
parent | 849c1a903019692fce5839c7bd48b584a4164864 (diff) | |
download | gcc-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')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/vla-dealloc-1.c | 8 |
2 files changed, 12 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 7ce1947..e9d6d00 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 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; } |