summaryrefslogtreecommitdiff
path: root/gcc/langhooks.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2013-04-26 08:54:54 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2013-04-26 08:54:54 +0200
commite78e8a0b19f9becc90a0bcb4684fb83eae10533f (patch)
tree445f8e0a123deaa48447d0f3140806f626a413a0 /gcc/langhooks.c
parent013e5ef956c191f9f6748615b22b78653a5e762a (diff)
diagnostic.h (file_name_as_prefix): Add context argument.
* diagnostic.h (file_name_as_prefix): Add context argument. * diagnostic.c (file_name_as_prefix): Likewise. Colorize the string as locus. * langhooks.c (lhd_print_error_function): Adjust caller. cp/ * error.c (cp_print_error_function): Adjust file_name_as_prefix caller. From-SVN: r198331
Diffstat (limited to 'gcc/langhooks.c')
-rw-r--r--gcc/langhooks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/langhooks.c b/gcc/langhooks.c
index 70af8da4b30..901f9b4a300 100644
--- a/gcc/langhooks.c
+++ b/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);