aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Cowgill <James.Cowgill@imgtec.com>2017-01-03 18:41:05 +0000
committerJeff Law <law@gcc.gnu.org>2017-01-03 11:41:05 -0700
commitd4eff95b5795146476524ee1d558323ca98eb292 (patch)
tree26221c5b6b8ccad34fb21bff625cd2b808fd282d
parent84aff3c2d4b487fe93f5caa6351c47d56145a6a1 (diff)
downloadgcc-d4eff95b5795146476524ee1d558323ca98eb292.zip
gcc-d4eff95b5795146476524ee1d558323ca98eb292.tar.gz
gcc-d4eff95b5795146476524ee1d558323ca98eb292.tar.bz2
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
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/emit-rtl.c6
2 files changed, 10 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 36a73bf..3b31f16 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2017-01-03 James Cowgill <James.Cowgill@imgtec.com>
+
+ 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 <gerald@pfeifer.com>
* doc/md.texi (Standard Names): Remove reference to Java frontend.
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c
index fdb0dec..bfa42d2 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);