aboutsummaryrefslogtreecommitdiff
path: root/gcc/modulo-sched.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2014-06-06 07:32:25 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2014-06-06 07:32:25 +0000
commitffa4602f4d54c80b978b3f6c8c376fbf75b72277 (patch)
treefc8f51ea70b82f892ac226dafb7defa86a52c93b /gcc/modulo-sched.c
parent28a4a292fc1717544e68ed2f6107b3f0cbe10aed (diff)
downloadgcc-ffa4602f4d54c80b978b3f6c8c376fbf75b72277.zip
gcc-ffa4602f4d54c80b978b3f6c8c376fbf75b72277.tar.gz
gcc-ffa4602f4d54c80b978b3f6c8c376fbf75b72277.tar.bz2
rtl.h (insn_location): Declare.
* rtl.h (insn_location): Declare. * cfgcleanup.c (try_forward_edges): Compare the locus of locations with UNKNOWN_LOCATION. * emit-rtl.c (insn_location): New function. * final.c (notice_source_line): Check that the instruction has a location before retrieving it and use insn_location. * modulo-sched.c (loop_single_full_bb_p): Likewise. * print-rtl.c (print_rtx): Likewise. From-SVN: r211305
Diffstat (limited to 'gcc/modulo-sched.c')
-rw-r--r--gcc/modulo-sched.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/modulo-sched.c b/gcc/modulo-sched.c
index 16caa8f..6db1a21 100644
--- a/gcc/modulo-sched.c
+++ b/gcc/modulo-sched.c
@@ -1244,11 +1244,10 @@ loop_single_full_bb_p (struct loop *loop)
static void
dump_insn_location (rtx insn)
{
- if (dump_file && INSN_LOCATION (insn))
+ if (dump_file && INSN_HAS_LOCATION (insn))
{
- const char *file = insn_file (insn);
- if (file)
- fprintf (dump_file, " %s:%i", file, insn_line (insn));
+ expanded_location xloc = insn_location (insn);
+ fprintf (dump_file, " %s:%i", xloc.file, xloc.line);
}
}