aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-08-25 18:33:19 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1995-08-25 18:33:19 -0400
commit2efc92ed68d47041b2c10c558c461e7689cb7a59 (patch)
tree3a3561dbc0c7e15b020e1ffa51b46d2f4b0f062f /gcc
parent27ed242c1dee0f4fdcf25d7eee287b5d7342e43d (diff)
downloadgcc-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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/toplev.c3
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)