diff options
| author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-03-30 07:42:55 +0000 |
|---|---|---|
| committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-03-30 07:42:55 +0000 |
| commit | 008de5f9f710cef3b897099b32efb6efaf3db92a (patch) | |
| tree | dbf8a45d958ffb49359a5780666b99ce018e3df1 | |
| parent | f00484e1163127801909c924eceb50c11a31ef12 (diff) | |
| download | ppe42-gcc-008de5f9f710cef3b897099b32efb6efaf3db92a.tar.gz ppe42-gcc-008de5f9f710cef3b897099b32efb6efaf3db92a.zip | |
* cppinit.c (cpp_start_read): Call initialize_dependency_output
only after reading in the primary source file.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32825 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/cppinit.c | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 901a849e970..3c8ca323fd9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-03-29 Zack Weinberg <zack@wolery.cumb.org> + + * cppinit.c (cpp_start_read): Call initialize_dependency_output + only after reading in the primary source file. + 2000-03-29 Geoff Keating <geoffk@cygnus.com> * c-common.c (c_common_nodes_and_builtins): The first parameter to diff --git a/gcc/cppinit.c b/gcc/cppinit.c index 1410d7370f0..6f545533984 100644 --- a/gcc/cppinit.c +++ b/gcc/cppinit.c @@ -896,10 +896,8 @@ cpp_start_read (pfile, fname) fprintf (stderr, _("End of search list.\n")); } - initialize_dependency_output (pfile); - - /* Open the main input file. This must be done before -D processing - so we have a buffer to stand on. */ + /* Open the main input file. This must be done early, so we have a + buffer to stand on. */ if (opts->in_fname == NULL || *opts->in_fname == 0) { opts->in_fname = fname; @@ -910,6 +908,8 @@ cpp_start_read (pfile, fname) if (!cpp_read_file (pfile, fname)) return 0; + initialize_dependency_output (pfile); + /* -D and friends may produce output, which should be identified as line 0. */ |

