This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH,TESTSUITE]Fix vla-dealloc-1.c for 16bit targets
- From: Andrew Hutchinson <andrewhutchinson at cox dot net>
- To: gcc-patches at gcc dot gnu dot org, janis187 at us dot ibm dot com
- Date: Sun, 06 Dec 2009 17:07:28 -0500
- Subject: [PATCH,TESTSUITE]Fix vla-dealloc-1.c for 16bit targets
This patch allows vla-dealloc-1.c to run correctly on 16 bit targets.
The test will otherwise hangup due overflow of 1,000,000 cycle count.
Iterations are reduced to 10,000 - which does not overflow and allows
the tests to complete on simulator in very quickly. (Using 'long' 32 bit
counter would take over a minute on simulator). It is assumed 16 bit
target will have more than 2KB and less than 9MB of stack.
32bit or larger int targets are unaffected.
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.
Ok for 4.5 head?
Attachment:
vla-dealloc.patch
Description: Text document