mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-06 02:20:34 +08:00
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:
parent
2205ed2513
commit
91a639a157
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user