aboutsummaryrefslogtreecommitdiff
path: root/gcc/ra-debug.c
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>2004-06-30 11:21:54 -0700
committerPer Bothner <bothner@gcc.gnu.org>2004-06-30 11:21:54 -0700
commit9506ac2be5e52ce7e184be3c52d31421355b7ab4 (patch)
treee54e6194b2452bb0b1eea27a54b905b6672b2f10 /gcc/ra-debug.c
parent6773e15fa5ac64bf67b19088e149f4d3cda2cf9a (diff)
downloadgcc-9506ac2be5e52ce7e184be3c52d31421355b7ab4.zip
gcc-9506ac2be5e52ce7e184be3c52d31421355b7ab4.tar.gz
gcc-9506ac2be5e52ce7e184be3c52d31421355b7ab4.tar.bz2
Conditionally compile support for --enable-mapped_location.
* gengtype-lex.l: Temporary kludge to avoid duplicate typedef. * gengtype.c: Update for now typdefs in input.h. More kludges. * modulo-sched.c (sms_schedule): Use NOTE_EXPANDED_LOCATION macro. * ra-debug.c (ra_print_rtl): Likewise. * sched-rgn.c: Likewise. * sched-vis.c: Likewise. * rtl.h (gen_rtx_ASM_OPERANDS): Redefine if USE_MAPPED_LOCATION. * stmt.c (expand_asm_operands): Adjust calls to gen_rtx_ASM_OPERANDS. * tree-cfg.c: Use new macros and typedefs. * tree-flow-inline.h: Likewise. From-SVN: r83922
Diffstat (limited to 'gcc/ra-debug.c')
-rw-r--r--gcc/ra-debug.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/ra-debug.c b/gcc/ra-debug.c
index a5c4f09..9bbfeb7 100644
--- a/gcc/ra-debug.c
+++ b/gcc/ra-debug.c
@@ -389,9 +389,11 @@ ra_print_rtx (FILE *file, rtx x, int with_pn)
fprintf (file, " %s", GET_NOTE_INSN_NAME (ln));
else
{
- fprintf (file, " line %d", ln);
- if (NOTE_SOURCE_FILE (x))
- fprintf (file, ":%s", NOTE_SOURCE_FILE (x));
+ expanded_location s;
+ NOTE_EXPANDED_LOCATION (s, x);
+ fprintf (file, " line %d", s.line);
+ if (s.file != NULL)
+ fprintf (file, ":%s", s.file);
}
}
else