This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]