aboutsummaryrefslogtreecommitdiff
path: root/gcc/stmt.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2011-08-15 10:44:11 -0700
committerRichard Henderson <rth@gcc.gnu.org>2011-08-15 10:44:11 -0700
commitefec771ab9763b9c16645a2993d87141dfa734e4 (patch)
tree634a8f76344cab7adcd401a279a6f11669e6bfca /gcc/stmt.c
parent6ea9122292ed4ec58af1656e65dc381bbb24c1ef (diff)
downloadgcc-efec771ab9763b9c16645a2993d87141dfa734e4.zip
gcc-efec771ab9763b9c16645a2993d87141dfa734e4.tar.gz
gcc-efec771ab9763b9c16645a2993d87141dfa734e4.tar.bz2
re PR debug/50006 (ICE in in connect_traces, at dwarf2cfi.c:2677)
PR middle-end/50006 * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size setting out to include allocate_stack named pattern as well. * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note. * stmt.c (expand_stack_restore): Likewise. From-SVN: r177764
Diffstat (limited to 'gcc/stmt.c')
-rw-r--r--gcc/stmt.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/stmt.c b/gcc/stmt.c
index 2fb4b18..be21a57 100644
--- a/gcc/stmt.c
+++ b/gcc/stmt.c
@@ -2016,10 +2016,13 @@ expand_stack_save (void)
void
expand_stack_restore (tree var)
{
- rtx sa = expand_normal (var);
+ rtx prev, sa = expand_normal (var);
sa = convert_memory_address (Pmode, sa);
+
+ prev = get_last_insn ();
emit_stack_restore (SAVE_BLOCK, sa);
+ fixup_args_size_notes (prev, get_last_insn (), 0);
}
/* Do the insertion of a case label into case_list. The labels are