aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8/gcc/langhooks.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.8/gcc/langhooks.c')
-rw-r--r--gcc-4.8/gcc/langhooks.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc-4.8/gcc/langhooks.c b/gcc-4.8/gcc/langhooks.c
index 70af8da4b..fbf545b46 100644
--- a/gcc-4.8/gcc/langhooks.c
+++ b/gcc-4.8/gcc/langhooks.c
@@ -372,7 +372,7 @@ lhd_print_error_function (diagnostic_context *context, const char *file,
const char *old_prefix = context->printer->prefix;
tree abstract_origin = diagnostic_abstract_origin (diagnostic);
char *new_prefix = (file && abstract_origin == NULL)
- ? file_name_as_prefix (file) : NULL;
+ ? file_name_as_prefix (context, file) : NULL;
pp_set_prefix (context->printer, new_prefix);
@@ -446,7 +446,7 @@ lhd_print_error_function (diagnostic_context *context, const char *file,
if (fndecl)
{
expanded_location s = expand_location (*locus);
- pp_character (context->printer, ',');
+ pp_comma (context->printer);
pp_newline (context->printer);
if (s.file != NULL)
{
@@ -467,7 +467,7 @@ lhd_print_error_function (diagnostic_context *context, const char *file,
identifier_to_locale (lang_hooks.decl_printable_name (fndecl, 2)));
}
}
- pp_character (context->printer, ':');
+ pp_colon (context->printer);
}
diagnostic_set_last_function (context, diagnostic);