(report_error_function): Don't attempt to use input file stack to identify...
authorRichard Kenner <kenner@gcc.gnu.org>
Fri, 25 Aug 1995 22:33:19 +0000 (18:33 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Fri, 25 Aug 1995 22:33:19 +0000 (18:33 -0400)
(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

index cc8f048..d318fdc 100644 (file)
@@ -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)