diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-10-07 22:51:11 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-10-07 22:51:11 +0000 |
commit | 1780e36e9fac0b554eb38b15ccf216c1c2a7102e (patch) | |
tree | 3b765e8cf4c5fb417aa4503594814c8f18a4d4f8 /libgcc/generic-morestack.c | |
parent | f480372230f4bfc55d02b48322ed5c96e999d7e0 (diff) | |
download | gcc-1780e36e9fac0b554eb38b15ccf216c1c2a7102e.tar.gz |
PR target/46093
* generic-morestack.c (__generic_morestack): Make sure the segment
is large enough for both the stack frame and the copied
parameters.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179702 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgcc/generic-morestack.c')
-rw-r--r-- | libgcc/generic-morestack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgcc/generic-morestack.c b/libgcc/generic-morestack.c index 7e29bbcf748..0b660cedd5f 100644 --- a/libgcc/generic-morestack.c +++ b/libgcc/generic-morestack.c @@ -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; |