Commit 2e55d062 by Jakub Jelinek Committed by Jakub Jelinek

tree.c (warn_deprecated_use): Print file:line using locus color.

	* 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.

From-SVN: r198900
parent 0bfdb81e
2013-05-14 Jakub Jelinek <jakub@redhat.com>
* 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.
2013-05-14 Mike Stump <mikestump@comcast.net> 2013-05-14 Mike Stump <mikestump@comcast.net>
* gdbinit.in: Add __null. * gdbinit.in: Add __null.
......
...@@ -517,18 +517,18 @@ diagnostic_report_current_module (diagnostic_context *context, location_t where) ...@@ -517,18 +517,18 @@ diagnostic_report_current_module (diagnostic_context *context, location_t where)
map = INCLUDED_FROM (line_table, map); map = INCLUDED_FROM (line_table, map);
if (context->show_column) if (context->show_column)
pp_verbatim (context->printer, pp_verbatim (context->printer,
"In file included from %s:%d:%d", "In file included from %r%s:%d:%d%R", "locus",
LINEMAP_FILE (map), LINEMAP_FILE (map),
LAST_SOURCE_LINE (map), LAST_SOURCE_COLUMN (map)); LAST_SOURCE_LINE (map), LAST_SOURCE_COLUMN (map));
else else
pp_verbatim (context->printer, 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)); LINEMAP_FILE (map), LAST_SOURCE_LINE (map));
while (! MAIN_FILE_P (map)) while (! MAIN_FILE_P (map))
{ {
map = INCLUDED_FROM (line_table, map); map = INCLUDED_FROM (line_table, map);
pp_verbatim (context->printer, pp_verbatim (context->printer,
",\n from %s:%d", ",\n from %r%s:%d%R", "locus",
LINEMAP_FILE (map), LAST_SOURCE_LINE (map)); LINEMAP_FILE (map), LAST_SOURCE_LINE (map));
} }
pp_verbatim (context->printer, ":"); pp_verbatim (context->printer, ":");
......
...@@ -11715,12 +11715,12 @@ warn_deprecated_use (tree node, tree attr) ...@@ -11715,12 +11715,12 @@ warn_deprecated_use (tree node, tree attr)
expanded_location xloc = expand_location (DECL_SOURCE_LOCATION (node)); expanded_location xloc = expand_location (DECL_SOURCE_LOCATION (node));
if (msg) if (msg)
warning (OPT_Wdeprecated_declarations, warning (OPT_Wdeprecated_declarations,
"%qD is deprecated (declared at %s:%d): %s", "%qD is deprecated (declared at %r%s:%d%R): %s",
node, xloc.file, xloc.line, msg); node, "locus", xloc.file, xloc.line, msg);
else else
warning (OPT_Wdeprecated_declarations, warning (OPT_Wdeprecated_declarations,
"%qD is deprecated (declared at %s:%d)", "%qD is deprecated (declared at %r%s:%d%R)",
node, xloc.file, xloc.line); node, "locus", xloc.file, xloc.line);
} }
else if (TYPE_P (node)) else if (TYPE_P (node))
{ {
...@@ -11744,23 +11744,23 @@ warn_deprecated_use (tree node, tree attr) ...@@ -11744,23 +11744,23 @@ warn_deprecated_use (tree node, tree attr)
{ {
if (msg) if (msg)
warning (OPT_Wdeprecated_declarations, warning (OPT_Wdeprecated_declarations,
"%qE is deprecated (declared at %s:%d): %s", "%qE is deprecated (declared at %r%s:%d%R): %s",
what, xloc.file, xloc.line, msg); what, "locus", xloc.file, xloc.line, msg);
else else
warning (OPT_Wdeprecated_declarations, warning (OPT_Wdeprecated_declarations,
"%qE is deprecated (declared at %s:%d)", what, "%qE is deprecated (declared at %r%s:%d%R)",
xloc.file, xloc.line); what, "locus", xloc.file, xloc.line);
} }
else else
{ {
if (msg) if (msg)
warning (OPT_Wdeprecated_declarations, warning (OPT_Wdeprecated_declarations,
"type is deprecated (declared at %s:%d): %s", "type is deprecated (declared at %r%s:%d%R): %s",
xloc.file, xloc.line, msg); "locus", xloc.file, xloc.line, msg);
else else
warning (OPT_Wdeprecated_declarations, warning (OPT_Wdeprecated_declarations,
"type is deprecated (declared at %s:%d)", "type is deprecated (declared at %r%s:%d%R)",
xloc.file, xloc.line); "locus", xloc.file, xloc.line);
} }
} }
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment