summaryrefslogtreecommitdiff
path: root/gcc/function.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/function.c
parentc83faba13da6d67e6784b3781419cd0605700daf (diff)
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/function.c')
-rw-r--r--gcc/function.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/gcc/function.c b/gcc/function.c
index a9576797701..0bce4ec6839 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -5244,19 +5244,6 @@ use_return_register (void)
diddle_return_value (do_use_return_reg, NULL);
}
-/* Set the location of the insn chain starting at INSN to LOC. */
-
-static void
-set_insn_locations (rtx_insn *insn, int loc)
-{
- while (insn != NULL)
- {
- if (INSN_P (insn))
- INSN_LOCATION (insn) = loc;
- insn = NEXT_INSN (insn);
- }
-}
-
/* Generate RTL for the end of the current function. */
void