This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: New test is invalid for AVR
Andreas Krebbel1 <Andreas.Krebbel@de.ibm.com> writes:
> it is important for the testcase that the array is that big. In order to
> avoid breaking other targets with that I've moved the testcase to the s390
> specific directory. I've already committed the patch. Sorry for the
> breakage.
If the test will run on most normal targets, then a better approach is
to add something like
#if defined(STACK_SIZE) && STACK_SIZE < 1000
exit (0); /* or "return 0" from main, as appropriate"
#endif
See many examples of use of STACK_SIZE in gcc.c-torture/execute.
Ian