Commit 91a639a1 by Ian Lance Taylor Committed by Ian Lance Taylor

re PR target/46093 (code compiled with -fsplit-stack crashes when passing large struct)

	PR target/46093
	* generic-morestack.c (__generic_morestack): Make sure the segment
	is large enough for both the stack frame and the copied
	parameters.

From-SVN: r179702
parent 2205ed25
2011-10-07 Ian Lance Taylor <iant@google.com>
PR target/46093
* generic-morestack.c (__generic_morestack): Make sure the segment
is large enough for both the stack frame and the copied
parameters.
2011-10-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
PR bootstrap/49804
......
......@@ -512,7 +512,7 @@ __generic_morestack (size_t *pframe_size, void *old_stack, size_t param_size)
current = *pp;
if (current == NULL)
current = allocate_segment (frame_size);
current = allocate_segment (frame_size + param_size);
current->old_stack = old_stack;
......
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