diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1995-08-25 18:33:19 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1995-08-25 18:33:19 -0400 |
commit | 2efc92ed68d47041b2c10c558c461e7689cb7a59 (patch) | |
tree | 3a3561dbc0c7e15b020e1ffa51b46d2f4b0f062f | |
parent | 27ed242c1dee0f4fdcf25d7eee287b5d7342e43d (diff) | |
download | gcc-2efc92ed68d47041b2c10c558c461e7689cb7a59.zip gcc-2efc92ed68d47041b2c10c558c461e7689cb7a59.tar.gz gcc-2efc92ed68d47041b2c10c558c461e7689cb7a59.tar.bz2 |
(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
-rw-r--r-- | gcc/toplev.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index cc8f048..d318fdc 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) |