Commit 53f72d60 by Per Bothner Committed by Per Bothner

diagnostic.c. (diagnostic_report_current_module): Update to match 2003-06-05…

diagnostic.c. (diagnostic_report_current_module): Update to match 2003-06-05 changes to push_srcloc and pop_srcloc.


	* diagnostic.c.(diagnostic_report_current_module):  Update to match
	2003-06-05 changes to push_srcloc and pop_srcloc.

From-SVN: r69687
parent e81f8786
2003-07-22 Per Bothner <pbothner@apple.com>
* diagnostic.c.(diagnostic_report_current_module): Update to match
2003-06-05 changes to push_srcloc and pop_srcloc.
2003-07-22 Wolfgang Bangerth <bangerth@dealii.org> 2003-07-22 Wolfgang Bangerth <bangerth@dealii.org>
* doc/trouble.texi: Better document two-stage name lookup. * doc/trouble.texi: Better document two-stage name lookup.
......
...@@ -978,18 +978,16 @@ diagnostic_report_current_module (diagnostic_context *context) ...@@ -978,18 +978,16 @@ diagnostic_report_current_module (diagnostic_context *context)
output_needs_newline (&context->buffer) = false; output_needs_newline (&context->buffer) = false;
} }
if (input_file_stack && input_file_stack->next != 0 if (input_file_stack && diagnostic_last_module_changed (context))
&& diagnostic_last_module_changed (context))
{ {
for (p = input_file_stack->next; p; p = p->next) p = input_file_stack;
if (p == input_file_stack->next) output_verbatim (&context->buffer,
output_verbatim (&context->buffer, "In file included from %s:%d",
"In file included from %s:%d", p->location.file, p->location.line);
p->location.file, p->location.line); while ((p = p->next) != NULL)
else output_verbatim (&context->buffer,
output_verbatim (&context->buffer, ",\n from %s:%d",
",\n from %s:%d", p->location.file, p->location.line);
p->location.file, p->location.line);
output_verbatim (&context->buffer, ":\n"); output_verbatim (&context->buffer, ":\n");
diagnostic_set_last_module (context); diagnostic_set_last_module (context);
} }
......
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