diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-08-21 21:17:48 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-08-21 21:17:48 +0000 |
commit | 438ac94c9b141e04a7b2512298120f5724b521ed (patch) | |
tree | 2dfd14ccaad28936c874d7de1b8e61b3d1be6abd /gcc/cppfiles.c | |
parent | eff7e27fce59a6c4ab34b7009db9b97da50c7c04 (diff) | |
download | gcc-438ac94c9b141e04a7b2512298120f5724b521ed.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45084 138bc75d-0d04-0410-961f-82ee72b054a4
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 da244beb25d..1d60d367257 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); |