Commit a30772be by James Bowman Committed by Mike Stump

pr20621-1.c: Pass if stack < 64K.

2014-12-31  James Bowman  <james.bowman@ftdichip.com>

	* gcc.c-torture/execute/pr20621-1.c: Pass if stack < 64K.

From-SVN: r219134
parent a1c7337b
2014-12-31 James Bowman <james.bowman@ftdichip.com>
* gcc.c-torture/execute/pr20621-1.c: Pass if stack < 64K.
2014-12-31 David Edelsohn <dje.gcc@gmail.com> 2014-12-31 David Edelsohn <dje.gcc@gmail.com>
* lib/target-supports.exp (add_options_for_tls): Prepend pthread * lib/target-supports.exp (add_options_for_tls): Prepend pthread
......
...@@ -3,4 +3,8 @@ ...@@ -3,4 +3,8 @@
struct big { int i[sizeof (int) >= 4 && sizeof (void *) >= 4 ? 0x4000 : 4]; }; struct big { int i[sizeof (int) >= 4 && sizeof (void *) >= 4 ? 0x4000 : 4]; };
struct big gb; struct big gb;
int foo (struct big b, int x) { return b.i[x]; } 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); } int main (void) { return foo (gb, 0) + foo (gb, 1); }
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment