OSDN Git Service

(report_error_function): Don't attempt to use input file stack to
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 25 Aug 1995 22:33:19 +0000 (22:33 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 25 Aug 1995 22:33:19 +0000 (22:33 +0000)
identify nesting of #include's if file name oflocation diagnosed is
not same as input_filename.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@10271 138bc75d-0d04-0410-961f-82ee72b054a4

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)