This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH - parameterize tests for small machines
- To: gcc-patches at gcc dot gnu dot org
- Subject: PATCH - parameterize tests for small machines
- From: <lehotsky at tiac dot net>
- Date: Tue, 9 Jan 2001 09:32:33 -0500 (EST)
- cc: alehotsky at cygnus dot com
I'm porting to a small machine (4kb for stack + static data) and
this test just doesn't fit. This patch uses the STACK_SIZE parameter
which appears in other tests.
ChangeLog
2001-01-09 Alan Lehotsky <lehotsky@tiac.net>
* execute/921202-1.c: Use STACK_SIZE to avoid problems on
small machines.
Index: 921202-1.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gcc/testsuite/gcc.c-torture/execute/921202-1.c,v
retrieving revision 1.8
diff -c -p -d -r1.8 921202-1.c
*** 921202-1.c 1998/11/11 05:56:48 1.8
--- 921202-1.c 2001/01/09 14:30:18
***************
*** 1,15 ****
main ()
{
! long dx[2055];
! long dy[2055];
! long s1[2055];
int cyx, cyy;
int i;
long size;
for (;;)
{
! size = 2055;
mpn_random2 (s1, size);
for (i = 0; i < 1; i++)
--- 1,20 ----
+ #ifndef STACK_SIZE
+ #define VLEN 2055
+ #else
+ #define VLEN ((STACK_SIZE/16) - 1)
+ #endif
main ()
{
! long dx[VLEN];
! long dy[VLEN];
! long s1[VLEN];
int cyx, cyy;
int i;
long size;
for (;;)
{
! size = VLEN;
mpn_random2 (s1, size);
for (i = 0; i < 1; i++)