From 6019c708aa8918eab873acee36512fb3c1b76b80 Mon Sep 17 00:00:00 2001 From: neil Date: Sun, 11 Aug 2002 22:22:28 +0000 Subject: * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56214 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/c-common.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/c-common.h') diff --git a/gcc/c-common.h b/gcc/c-common.h index 989c90810b7..ce3860820fb 100644 --- a/gcc/c-common.h +++ b/gcc/c-common.h @@ -1209,6 +1209,8 @@ extern int c_common_unsafe_for_reeval PARAMS ((tree)); extern const char *init_c_lex PARAMS ((const char *)); +extern void preprocess_file PARAMS ((void)); + /* Information recorded about each file examined during compilation. */ struct c_fileinfo -- cgit v1.2.1