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
This commit is contained in:
Ian Lance Taylor 2011-10-07 22:51:11 +00:00 committed by Ian Lance Taylor
parent 2205ed2513
commit 91a639a157
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,10 @@
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

View File

@ -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;