summaryrefslogtreecommitdiff
path: root/gcc/diagnostic.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2013-05-14 19:41:13 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2013-05-14 19:41:13 +0000
commit721cebe63d39756f065988a60d50e4d56f316eea (patch)
tree50066c3c945d19582e3fdbecbc893fc4ec2ebcc2 /gcc/diagnostic.c
parent832f4182aa57b024c066f1c0324ebeb9cb74afaa (diff)
downloadgcc-721cebe63d39756f065988a60d50e4d56f316eea.tar.gz
* tree.c (warn_deprecated_use): Print file:line using locus color.
* diagnostic.c (diagnostic_report_current_module): Print file:line and file:line:column using locus color. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@198900 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/diagnostic.c')
-rw-r--r--gcc/diagnostic.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/diagnostic.c b/gcc/diagnostic.c
index f9a236b9113..2ec96201459 100644
--- a/gcc/diagnostic.c
+++ b/gcc/diagnostic.c
@@ -517,18 +517,18 @@ diagnostic_report_current_module (diagnostic_context *context, location_t where)
map = INCLUDED_FROM (line_table, map);
if (context->show_column)
pp_verbatim (context->printer,
- "In file included from %s:%d:%d",
+ "In file included from %r%s:%d:%d%R", "locus",
LINEMAP_FILE (map),
LAST_SOURCE_LINE (map), LAST_SOURCE_COLUMN (map));
else
pp_verbatim (context->printer,
- "In file included from %s:%d",
+ "In file included from %r%s:%d%R", "locus",
LINEMAP_FILE (map), LAST_SOURCE_LINE (map));
while (! MAIN_FILE_P (map))
{
map = INCLUDED_FROM (line_table, map);
pp_verbatim (context->printer,
- ",\n from %s:%d",
+ ",\n from %r%s:%d%R", "locus",
LINEMAP_FILE (map), LAST_SOURCE_LINE (map));
}
pp_verbatim (context->printer, ":");