Commit 4b3fe5b6 by Zack Weinberg Committed by Zack Weinberg

cppinit.c (cpp_start_read): Call initialize_dependency_output only after reading…

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
parent 1f73a8c9
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> 2000-03-29 Geoff Keating <geoffk@cygnus.com>
* c-common.c (c_common_nodes_and_builtins): The first parameter to * c-common.c (c_common_nodes_and_builtins): The first parameter to
......
...@@ -896,10 +896,8 @@ cpp_start_read (pfile, fname) ...@@ -896,10 +896,8 @@ cpp_start_read (pfile, fname)
fprintf (stderr, _("End of search list.\n")); fprintf (stderr, _("End of search list.\n"));
} }
initialize_dependency_output (pfile); /* Open the main input file. This must be done early, so we have a
buffer to stand on. */
/* Open the main input file. This must be done before -D processing
so we have a buffer to stand on. */
if (opts->in_fname == NULL || *opts->in_fname == 0) if (opts->in_fname == NULL || *opts->in_fname == 0)
{ {
opts->in_fname = fname; opts->in_fname = fname;
...@@ -910,6 +908,8 @@ cpp_start_read (pfile, fname) ...@@ -910,6 +908,8 @@ cpp_start_read (pfile, fname)
if (!cpp_read_file (pfile, fname)) if (!cpp_read_file (pfile, fname))
return 0; return 0;
initialize_dependency_output (pfile);
/* -D and friends may produce output, which should be identified /* -D and friends may produce output, which should be identified
as line 0. */ as line 0. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment