aboutsummaryrefslogtreecommitdiff
path: root/gcc/ra-debug.c
diff options
context:
space:
mode:
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 a5c4f0983f4..9bbfeb7fdb8 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