From: James Bowman Date: Thu, 1 Jan 2015 01:44:11 +0000 (+0000) Subject: pr20621-1.c: Pass if stack < 64K. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a30772be37d5fa91387f50b41e3fd2b6eba3afe6;p=gcc.git pr20621-1.c: Pass if stack < 64K. 2014-12-31 James Bowman * gcc.c-torture/execute/pr20621-1.c: Pass if stack < 64K. From-SVN: r219134 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c831ce348af..3e8fdc2ea32 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2014-12-31 James Bowman + + * gcc.c-torture/execute/pr20621-1.c: Pass if stack < 64K. + 2014-12-31 David Edelsohn * lib/target-supports.exp (add_options_for_tls): Prepend pthread diff --git a/gcc/testsuite/gcc.c-torture/execute/pr20621-1.c b/gcc/testsuite/gcc.c-torture/execute/pr20621-1.c index 79901871d57..57b3df764b7 100644 --- a/gcc/testsuite/gcc.c-torture/execute/pr20621-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/pr20621-1.c @@ -3,4 +3,8 @@ struct big { int i[sizeof (int) >= 4 && sizeof (void *) >= 4 ? 0x4000 : 4]; }; struct big gb; int foo (struct big b, int x) { return b.i[x]; } +#if defined(STACK_SIZE) && STACK_SIZE <= 0x10000 +int main (void) { return 0; } +#else int main (void) { return foo (gb, 0) + foo (gb, 1); } +#endif