PR preprocessor/4890
* tradcpp.c (output_line_command): When leaving a file,
system_include_depth has not yet been decremented.
From-SVN: r59010
+2002-11-11 Neil Booth <neil@daikokuya.co.uk>
+
+ PR preprocessor/4890
+ * tradcpp.c (output_line_command): When leaving a file,
+ system_include_depth has not yet been decremented.
+
2002-11-10 Joel Sherrill <joel@gcc.gnu.org>
* config/m68k/t-crtstuff (crti.o): Use this...
sprintf (line_cmd_buf, "# %d \"%s\"", ip->lineno, ip->fname);
if (file_change != same_file)
strcat (line_cmd_buf, file_change == enter_file ? " 1" : " 2");
- if (system_include_depth > 0)
+ if (system_include_depth > (file_change == leave_file))
strcat (line_cmd_buf, " 3");
len = strlen (line_cmd_buf);
line_cmd_buf[len++] = '\n';