diff options
Diffstat (limited to 'gcc/modulo-sched.c')
-rw-r--r-- | gcc/modulo-sched.c | 16 |
1 files changed, 12 insertions, 4 deletions
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) { |