diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/final.c | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 805b4b4acb9..50484facbb9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-04-10 Richard Sandiford <richard.sandiford@linaro.org> + + * final.c (final_1): Set insn_last_address as well as + insn_current_address. + 2018-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com> PR target/85173 diff --git a/gcc/final.c b/gcc/final.c index 87a3067f3b1..19817e240da 100644 --- a/gcc/final.c +++ b/gcc/final.c @@ -2081,6 +2081,9 @@ final_1 (rtx_insn *first, FILE *file, int seen, int optimize_p) } else insn_current_address = INSN_ADDRESSES (INSN_UID (insn)); + /* final can be seen as an iteration of shorten_branches that + does nothing (since a fixed point has already been reached). */ + insn_last_address = insn_current_address; } dump_basic_block_info (file, insn, start_to_bb, end_to_bb, |