aboutsummaryrefslogtreecommitdiff
path: root/gcc/pretty-print.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/pretty-print.c')
-rw-r--r--gcc/pretty-print.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/pretty-print.c b/gcc/pretty-print.c
index f5a1a77..d6098a7 100644
--- a/gcc/pretty-print.c
+++ b/gcc/pretty-print.c
@@ -305,11 +305,12 @@ pp_base_format_text (pretty_printer *pp, text_info *text)
case 'H':
{
- const location_t *locus = va_arg (*text->args_ptr, location_t *);
+ location_t *locus = va_arg (*text->args_ptr, location_t *);
+ expanded_location s = expand_location (*locus);
pp_string (pp, "file '");
- pp_string (pp, locus->file);
+ pp_string (pp, s.file);
pp_string (pp, "', line ");
- pp_decimal_int (pp, locus->line);
+ pp_decimal_int (pp, s.line);
}
break;