PATCH - parameterize tests for small machines
lehotsky@tiac.net
lehotsky@tiac.net
Tue Jan 9 06:37:00 GMT 2001
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++)
More information about the Gcc-patches
mailing list