aboutsummaryrefslogtreecommitdiff
path: root/gcc/reg-stack.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2019-07-08 21:37:33 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2019-07-08 21:37:33 +0000
commit079e0f619684ff63b32e0fa02f460f57e271e3b4 (patch)
treeff17df21be3c5b5b770cb74f641aa2ca99793d01 /gcc/reg-stack.c
parentc83faba13da6d67e6784b3781419cd0605700daf (diff)
downloadgcc-079e0f619684ff63b32e0fa02f460f57e271e3b4.zip
gcc-079e0f619684ff63b32e0fa02f460f57e271e3b4.tar.gz
gcc-079e0f619684ff63b32e0fa02f460f57e271e3b4.tar.bz2
emit-rtl.c (set_insn_locations): New function moved from...
* emit-rtl.c (set_insn_locations): New function moved from... * function.c (set_insn_locations): ...here. * ira-emit.c (emit_moves): Propagate location of the first instruction to the inserted move instructions. * reg-stack.c (compensate_edge): Set the location if the sequence is inserted on the edge. * rtl.h (set_insn_locations): Declare. From-SVN: r273247
Diffstat (limited to 'gcc/reg-stack.c')
-rw-r--r--gcc/reg-stack.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/reg-stack.c b/gcc/reg-stack.c
index 5576630..710f14a 100644
--- a/gcc/reg-stack.c
+++ b/gcc/reg-stack.c
@@ -2929,6 +2929,7 @@ compensate_edge (edge e)
seq = get_insns ();
end_sequence ();
+ set_insn_locations (seq, e->goto_locus);
insert_insn_on_edge (seq, e);
return true;
}