OSDN Git Service

PR target/46093
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 7 Oct 2011 22:51:11 +0000 (22:51 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 7 Oct 2011 22:51:11 +0000 (22:51 +0000)
* 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

libgcc/ChangeLog
libgcc/generic-morestack.c

index a83456b..6bc2ed5 100644 (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
index 7e29bbc..0b660ce 100644 (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;