aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8/gcc/langhooks.c
diff options
context:
space:
mode:
authorsynergydev <synergye@codefi.re>2013-08-26 11:32:50 -0700
committersynergydev <synergye@codefi.re>2013-08-26 11:40:43 -0700
commit045de201af2aad6c6ce79dce5e9f95283df3b5be (patch)
treed396b6dc1c4b362c1d2b99c2234e0f1f86ab9dbd /gcc-4.8/gcc/langhooks.c
parent7577ecda9609b61419f01b1bd4d8d5b0c2d3fbb1 (diff)
downloadtoolchain_gcc-045de201af2aad6c6ce79dce5e9f95283df3b5be.tar.gz
toolchain_gcc-045de201af2aad6c6ce79dce5e9f95283df3b5be.tar.bz2
toolchain_gcc-045de201af2aad6c6ce79dce5e9f95283df3b5be.zip
[4.8] Backport additional diagnostic support
Squashed commit of r198331, r198900, r201467, and r201574 from trunk. Change-Id: If0d68971ffac2e7bc48576e2453d799a446f7415
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);