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/modulo-sched.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'gcc/modulo-sched.c') diff --git a/gcc/modulo-sched.c b/gcc/modulo-sched.c index 68eeb364e9f..c14b58f8699 100644 --- a/gcc/modulo-sched.c +++ b/gcc/modulo-sched.c @@ -900,8 +900,12 @@ sms_schedule (FILE *dump_file) rtx line_note = find_line_note (tail); if (line_note) - fprintf (stats_file, "SMS bb %s %d (file, line)\n", - NOTE_SOURCE_FILE (line_note), NOTE_LINE_NUMBER (line_note)); + { + expanded_location xloc; + NOTE_EXPANDED_LOCATION (xloc, line_note); + fprintf (stats_file, "SMS bb %s %d (file, line)\n", + xloc.file, xloc.line); + } fprintf (stats_file, "SMS single-bb-loop\n"); if (profile_info && flag_branch_probabilities) { @@ -996,8 +1000,12 @@ sms_schedule (FILE *dump_file) rtx line_note = find_line_note (tail); if (line_note) - fprintf (stats_file, "SMS bb %s %d (file, line)\n", - NOTE_SOURCE_FILE (line_note), NOTE_LINE_NUMBER (line_note)); + { + expanded_location xloc; + NOTE_EXPANDED_LOCATION (xloc, line_note); + fprintf (stats_file, "SMS bb %s %d (file, line)\n", + xloc.file, xloc.line); + } fprintf (stats_file, "SMS single-bb-loop\n"); if (profile_info && flag_branch_probabilities) { -- cgit v1.2.1