summaryrefslogtreecommitdiff
path: root/gcc/calls.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2011-08-04 15:39:40 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2011-08-04 15:39:40 +0000
commit897445c76ef0b674dddbf56868b5bbdf4bf26319 (patch)
tree31c68b481009457f22ecf8ae103929ff23f553af /gcc/calls.c
parent2880d07c65dddf86a25825e13e5b90dd9639c6e4 (diff)
downloadgcc-897445c76ef0b674dddbf56868b5bbdf4bf26319.tar.gz
PR middle-end/49968
* calls.c (expand_call): Use fixup_args_size_notes for emit_stack_restore. * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets in non-standard modes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177404 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/calls.c')
-rw-r--r--gcc/calls.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/gcc/calls.c b/gcc/calls.c
index 6eb1f212087..26c320095e0 100644
--- a/gcc/calls.c
+++ b/gcc/calls.c
@@ -3128,18 +3128,12 @@ expand_call (tree exp, rtx target, int ignore)
if (old_stack_level)
{
- rtx last, set;
+ rtx prev = get_last_insn ();
emit_stack_restore (SAVE_BLOCK, old_stack_level);
stack_pointer_delta = old_stack_pointer_delta;
- /* ??? Is this assert warrented, given emit_stack_restore?
- or should we just mark the last insn no matter what? */
- last = get_last_insn ();
- set = single_set (last);
- gcc_assert (set != NULL);
- gcc_assert (SET_DEST (set) == stack_pointer_rtx);
- add_reg_note (last, REG_ARGS_SIZE, GEN_INT (stack_pointer_delta));
+ fixup_args_size_notes (prev, get_last_insn (), stack_pointer_delta);
pending_stack_adjust = old_pending_adj;
old_stack_allocated = stack_pointer_delta - pending_stack_adjust;