From 2efc92ed68d47041b2c10c558c461e7689cb7a59 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Fri, 25 Aug 1995 18:33:19 -0400 Subject: [PATCH] (report_error_function): Don't attempt to use input file stack to identify... (report_error_function): Don't attempt to use input file stack to identify nesting of #include's if file name oflocation diagnosed is not same as input_filename. From-SVN: r10271 --- gcc/toplev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/toplev.c b/gcc/toplev.c index cc8f04845f8..d318fdcfda3 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -1048,7 +1048,8 @@ report_error_function (file) (*print_error_function) (file); if (input_file_stack && input_file_stack->next != 0 - && input_file_stack_tick != last_error_tick) + && input_file_stack_tick != last_error_tick + && file == input_filename) { fprintf (stderr, "In file included"); for (p = input_file_stack->next; p; p = p->next) -- 2.30.2