diff options
author | Neil Booth <neil@daikokuya.co.uk> | 2002-08-11 22:22:28 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2002-08-11 22:22:28 +0000 |
commit | 76c3e73e325f8452a05e8912d15740b1a5fb7ed9 (patch) | |
tree | 4c8881ce4db4d58b891519d0bd6b159033e51ada /gcc/c-common.c | |
parent | e0c32c62d5c47790333bb557ed2d89a3806246d0 (diff) | |
download | gcc-76c3e73e325f8452a05e8912d15740b1a5fb7ed9.zip gcc-76c3e73e325f8452a05e8912d15740b1a5fb7ed9.tar.gz gcc-76c3e73e325f8452a05e8912d15740b1a5fb7ed9.tar.bz2 |
c-common.c (c_common_init): Call preprocess_file instead.
* c-common.c (c_common_init): Call preprocess_file instead.
(c_common_finish): Move to c-opts.c.
* c-common.h (preprocess_file): new.
* c-opts.c (out_fname, out_stream, deps_append, preprocess_file,
check_deps_environment_vars, c_common_finish): New.
(c_common_decode_option): Update for out_fname and dependencies.
* cppinit.c (init_dependency_output, output_deps): Remove.
(cpp_destroy): Update prototype.
(cpp_add_dependency_target): New.
(cpp_read_main_file): Don't overlay a buffer.
(cpp_finish): Take a deps output stream and write deps to it.
Return the error count.
(cpp_post_options): Don't canonicalize out_fname, or do anything
with dependencies.
* cpplib.h (struct cpp_options): Remove out_fname and
preprocess_only.
(cpp_add_dependency_target): New.
(cpp_destroy, cpp_finish, cpp_preprocess_file): Update.
* cppmain.c (cpp_preprocess_file): Update prototype. Don't
set preprocess_only. Don't handle the output stream directly.
From-SVN: r56214
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r-- | gcc/c-common.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index bdf47c4..d925e91 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -4914,7 +4914,7 @@ c_common_init (filename) /* NULL is passed up to toplev.c and we exit quickly. */ if (flag_preprocess_only) { - cpp_preprocess_file (parse_in); + preprocess_file (); return NULL; } @@ -4930,17 +4930,6 @@ c_common_init (filename) return filename; } -/* Common finish hook for the C, ObjC and C++ front ends. */ -void -c_common_finish () -{ - cpp_finish (parse_in); - - /* For performance, avoid tearing down cpplib's internal structures. - Call cpp_errors () instead of cpp_destroy (). */ - errorcount += cpp_errors (parse_in); -} - static void c_init_attributes () { |