diff options
author | Neil Booth <neil@daikokuya.demon.co.uk> | 2001-08-21 21:17:48 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2001-08-21 21:17:48 +0000 |
commit | 5993019d2058a2d4ff24b5990ff6d4ac9c8a3311 (patch) | |
tree | 2dfd14ccaad28936c874d7de1b8e61b3d1be6abd /gcc/cppfiles.c | |
parent | e5eba70ac7f7e76bbc784eee6191e7464694dba1 (diff) | |
download | gcc-5993019d2058a2d4ff24b5990ff6d4ac9c8a3311.zip gcc-5993019d2058a2d4ff24b5990ff6d4ac9c8a3311.tar.gz gcc-5993019d2058a2d4ff24b5990ff6d4ac9c8a3311.tar.bz2 |
cppfiles.c (stack_include_file): Don't handle -H here.
* cppfiles.c (stack_include_file): Don't handle -H here.
* cppinit.c (cpp_start_read): Set include tracing after
cpp_post_options and after stacking the main file.
* line-map.c (trace_include): New.
(init_line_maps, add_line_map): Update.
* line-map.h (struct line_maps): New member trace_includes.
From-SVN: r45084
Diffstat (limited to 'gcc/cppfiles.c')
-rw-r--r-- | gcc/cppfiles.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/gcc/cppfiles.c b/gcc/cppfiles.c index da244be..1d60d36 100644 --- a/gcc/cppfiles.c +++ b/gcc/cppfiles.c @@ -313,18 +313,8 @@ stack_include_file (pfile, inc) } if (pfile->buffer) - { - /* We don't want MI guard advice for the main file. */ - inc->include_count++; - - /* Handle -H option. */ - if (CPP_OPTION (pfile, print_include_names)) - { - for (fp = pfile->buffer; fp; fp = fp->prev) - putc ('.', stderr); - fprintf (stderr, " %s\n", inc->name); - } - } + /* We don't want MI guard advice for the main file. */ + inc->include_count++; /* Push a buffer. */ fp = cpp_push_buffer (pfile, inc->buffer, inc->st.st_size, BUF_FILE, 0); |