From: James Cowgill Date: Tue, 3 Jan 2017 18:41:05 +0000 (+0000) Subject: re PR rtl-optimization/65618 (gnat bootstrap comparison failure on mips{,el}-linux... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d4eff95b5795146476524ee1d558323ca98eb292;p=gcc.git re PR rtl-optimization/65618 (gnat bootstrap comparison failure on mips{,el}-linux-gnu) PR rtl-optimization/65618 * emit-rtl.c (try_split): Move initialization of "before" and "after" to just before the call to emit_insn_after_setloc. From-SVN: r244029 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 36a73bf6638..3b31f166df7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-01-03 James Cowgill + + PR rtl-optimization/65618 + * emit-rtl.c (try_split): Move initialization of "before" and + "after" to just before the call to emit_insn_after_setloc. + 2017-01-03 Gerald Pfeifer * doc/md.texi (Standard Names): Remove reference to Java frontend. diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index fdb0dec055a..bfa42d2467f 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -3643,8 +3643,7 @@ mark_label_nuses (rtx x) rtx_insn * try_split (rtx pat, rtx_insn *trial, int last) { - rtx_insn *before = PREV_INSN (trial); - rtx_insn *after = NEXT_INSN (trial); + rtx_insn *before, *after; rtx note; rtx_insn *seq, *tem; int probability; @@ -3818,6 +3817,9 @@ try_split (rtx pat, rtx_insn *trial, int last) } } + before = PREV_INSN (trial); + after = NEXT_INSN (trial); + tem = emit_insn_after_setloc (seq, trial, INSN_LOCATION (trial)); delete_insn (trial);