diff options
author | Zack Weinberg <zack@wolery.cumb.org> | 2000-03-30 07:42:55 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2000-03-30 07:42:55 +0000 |
commit | 4b3fe5b65e6f971599615bf30a68e0a3564c1394 (patch) | |
tree | dbf8a45d958ffb49359a5780666b99ce018e3df1 /gcc/cppinit.c | |
parent | 1f73a8c953f3106e0e649b9438002c5f3a873c8e (diff) | |
download | gcc-4b3fe5b65e6f971599615bf30a68e0a3564c1394.zip gcc-4b3fe5b65e6f971599615bf30a68e0a3564c1394.tar.gz gcc-4b3fe5b65e6f971599615bf30a68e0a3564c1394.tar.bz2 |
cppinit.c (cpp_start_read): Call initialize_dependency_output only after reading in the primary source file.
* cppinit.c (cpp_start_read): Call initialize_dependency_output
only after reading in the primary source file.
From-SVN: r32825
Diffstat (limited to 'gcc/cppinit.c')
-rw-r--r-- | gcc/cppinit.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/cppinit.c b/gcc/cppinit.c index 1410d73..6f54553 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. */ |