diff options
author | Jim Wilson <wilson@gcc.gnu.org> | 1992-08-19 18:06:05 -0700 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 1992-08-19 18:06:05 -0700 |
commit | cd1ceb3ca5b037b4366ee005335feb9848208160 (patch) | |
tree | 4421340b7a476c4bd33ea742850161e278aa6511 | |
parent | b2796a4bddc3440f9955e0d020496ab6f18bc8d8 (diff) | |
download | gcc-cd1ceb3ca5b037b4366ee005335feb9848208160.zip gcc-cd1ceb3ca5b037b4366ee005335feb9848208160.tar.gz gcc-cd1ceb3ca5b037b4366ee005335feb9848208160.tar.bz2 |
(finclude): Increment indepth before calling
trigraph_pcp, so that warning uses the correct file name.
From-SVN: r1901
-rw-r--r-- | gcc/cccp.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -4084,6 +4084,12 @@ finclude (f, fname, op, system_header_p, dirptr) /* Close descriptor now, so nesting does not use lots of descriptors. */ close (f); + /* Must do this before calling trigraph_pcp, so that the correct file name + will be printed in warning messages. */ + + indepth++; + input_file_stack_tick++; + if (!no_trigraphs) trigraph_pcp (fp); @@ -4095,9 +4101,6 @@ finclude (f, fname, op, system_header_p, dirptr) } fp->buf[fp->length] = '\0'; - indepth++; - input_file_stack_tick++; - output_line_command (fp, op, 0, enter_file); rescan (op, 0); |