diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 26ae47a6ec6..e9b2b78b191 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,9 @@ Fri Aug 21 23:59:18 1998 Jeffrey A Law (law@cygnus.com) + * gcc.c-torture/unsorted/memtst.c: Reduce size of array when + STACK_SIZE is defined. + * gcc.c-torture/unsorted/stuct.c: Similarly. + * gcc.c-torture/compile/980821-1.c: New test. Fri Aug 21 03:14:04 1998 Jeffrey A Law (law@cygnus.com) diff --git a/gcc/testsuite/gcc.c-torture/unsorted/memtst.c b/gcc/testsuite/gcc.c-torture/unsorted/memtst.c index b345ba00b3c..b5ef2607073 100644 --- a/gcc/testsuite/gcc.c-torture/unsorted/memtst.c +++ b/gcc/testsuite/gcc.c-torture/unsorted/memtst.c @@ -1,3 +1,9 @@ +#ifdef STACK_SIZE +#define SIZE STACK_SIZE / 8 +#else +#define SIZE 65536 +#endif + memtst (int *p, int a) { do @@ -10,11 +16,11 @@ memtst (int *p, int a) main () { - int a[65536]; + int a[SIZE]; int i; - bzero (a, 65536 * 4); + bzero (a, SIZE * 4); for (i = 0; i < 100; i++) { - memtst (a, 65536); + memtst (a, SIZE); } } diff --git a/gcc/testsuite/gcc.c-torture/unsorted/stuct.c b/gcc/testsuite/gcc.c-torture/unsorted/stuct.c index bf7e2329bd9..acaadf277b9 100644 --- a/gcc/testsuite/gcc.c-torture/unsorted/stuct.c +++ b/gcc/testsuite/gcc.c-torture/unsorted/stuct.c @@ -1,7 +1,13 @@ +#ifdef STACK_SIZE +#define SIZE STACK_SIZE / 8 +#else +#define STACK_SIZE 10000000 +#endif + struct foo { int a, b, c; - int arr[10000000]; + int arr[SIZE]; }; struct foo s, ss;