From 512e0fec202bedd46efc579717091ad3e79e514b Mon Sep 17 00:00:00 2001 From: bothner Date: Wed, 30 Jun 2004 18:21:54 +0000 Subject: 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83922 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/sched-rgn.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'gcc/sched-rgn.c') diff --git a/gcc/sched-rgn.c b/gcc/sched-rgn.c index 14175776a4a..1630a3d297a 100644 --- a/gcc/sched-rgn.c +++ b/gcc/sched-rgn.c @@ -2321,8 +2321,12 @@ debug_dependencies (void) if (n < 0) fprintf (sched_dump, "%s\n", GET_NOTE_INSN_NAME (n)); else - fprintf (sched_dump, "line %d, file %s\n", n, - NOTE_SOURCE_FILE (insn)); + { + expanded_location xloc; + NOTE_EXPANDED_LOCATION (xloc, insn); + fprintf (sched_dump, "line %d, file %s\n", + xloc.line, xloc.file); + } } else fprintf (sched_dump, " {%s}\n", GET_RTX_NAME (GET_CODE (insn))); -- cgit v1.2.1