diff options
| -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; } |
