From: Andy Hutchinson Date: Mon, 7 Dec 2009 00:21:47 +0000 (+0000) Subject: * gcc.c-torture/execute/vla-dealloc-1.c: Use lower loop count for 16bit int targets. X-Git-Tag: releases/gcc-4.5.0~1766 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4f566bd60e0e2fbdd34da8514643fe723379f40e;p=thirdparty%2Fgcc.git * gcc.c-torture/execute/vla-dealloc-1.c: Use lower loop count for 16bit int targets. From-SVN: r155029 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 7ce19472e934..e9d6d00cb46b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2009-12-06 Andy Hutchinson + + * gcc.c-torture/execute/vla-dealloc-1.c: Use lower loop count + for 16bit int targets. + 2009-12-06 Janus Weil 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 f2291ad66d48..9eb95c1b4e69 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; }