From e9e053ebfdc29e3d51d3e3dbe19e8c91c1f96e23 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 28 Feb 2012 17:43:43 +0000 Subject: [PATCH] generic-morestack.c (__splitstack_releasecontext): Correct call to __morestack_release_segments. * generic-morestack.c (__splitstack_releasecontext): Correct call to __morestack_release_segments. From-SVN: r184634 --- libgcc/ChangeLog | 9 +++++++-- libgcc/generic-morestack.c | 4 +++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index 036d46a82b7..8324c743687 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,8 @@ +2012-02-28 Ian Lance Taylor + + * generic-morestack.c (__splitstack_releasecontext): Correct call + to __morestack_release_segments. + 2012-02-27 Samuel Thibault PR target/52390 @@ -38,7 +43,7 @@ PR libitm/52220 * config/darwin-crt-tm.c: Correct typo. - + 2012-02-15 Iain Sandoe Patrick Marlier @@ -51,7 +56,7 @@ PR libitm/52042 * config/darwin-crt-tm.c (getTMCloneTable): New function. (__doTMRegistrations): Call it. - (__doTMdeRegistrations): Likewise. + (__doTMdeRegistrations): Likewise. 2012-01-15 Georg-Johann Lay Anatoly Sokolov diff --git a/libgcc/generic-morestack.c b/libgcc/generic-morestack.c index 6182a379558..fad3d9b02a3 100644 --- a/libgcc/generic-morestack.c +++ b/libgcc/generic-morestack.c @@ -1104,7 +1104,9 @@ __splitstack_resetcontext (void *context[10], size_t *size) void __splitstack_releasecontext (void *context[10]) { - __morestack_release_segments (context[MORESTACK_SEGMENTS], 1); + __morestack_release_segments (((struct stack_segment **) + &context[MORESTACK_SEGMENTS]), + 1); } /* Like __splitstack_block_signals, but operating on CONTEXT, rather