diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-01-22 22:05:23 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-01-22 22:05:23 +0000 |
commit | 90b77b23476fe05cdaee14b0e63f82ee4e79718a (patch) | |
tree | 57e63d778a4dfd5c5183c4351ff4bb1398d43dff /gcc/combine-stack-adj.c | |
parent | b93ba65438fc913c678e2ed50564c068775f9e56 (diff) | |
download | gcc-90b77b23476fe05cdaee14b0e63f82ee4e79718a.tar.gz |
* combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
ARG_SIZE note when adjustment was eliminated.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206943 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/combine-stack-adj.c')
-rw-r--r-- | gcc/combine-stack-adj.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/combine-stack-adj.c b/gcc/combine-stack-adj.c index 69fd5ea77e3..c591c604b8a 100644 --- a/gcc/combine-stack-adj.c +++ b/gcc/combine-stack-adj.c @@ -567,6 +567,7 @@ combine_stack_adjustments_for_block (basic_block bb) && try_apply_stack_adjustment (insn, reflist, 0, -last_sp_adjust)) { + rtx note; if (last2_sp_set) maybe_move_args_size_note (last2_sp_set, last_sp_set, false); else @@ -576,6 +577,11 @@ combine_stack_adjustments_for_block (basic_block bb) reflist = NULL; last_sp_set = NULL_RTX; last_sp_adjust = 0; + /* We no longer adjust stack size. Whoever adjusted it earlier + hopefully got the note right. */ + note = find_reg_note (insn, REG_ARGS_SIZE, NULL_RTX); + if (note) + remove_note (insn, note); continue; } } |