From aaf932068245d39888fc1efd7f887a6d60de76e5 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Sun, 24 Mar 2002 12:27:45 +0000 Subject: Removal of separate preprocessor cpp0. * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS, cpp0, install-common): Update. * c-common.c (flag_preprocess_only): New. (c_common_init): Preprocess for -E. * c-common.h (flag_preprocess_only): New. * c-decl.c (c_decode_option): Handle -E, and -std=c++98. * c-objc-common.c (c_init_decl_processing): Exit quickly for NULL return from c_common_init. * cpplib.h (cpp_preprocess_file): New. * cppmain.c (main, general_init, pfile, progname): Remove. (do_preprocessing): Rename cpp_preprocess_file, don't call cpp_finish. Don't close stdout here. (setup_callbacks): Update prototype. * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers): Update. * tradcpp.c (main): Ignore -quiet. cp: * decl2.c (cxx_decode_option): Handle -E. * lang-specs.h (default_compilers): Preprocess with cc1plus. * lex.c (cxx_init): Exit quickly if c_common_init returns NULL. objc: * lang-specs.h (default_compilers): Preprocess with cc1obj. Co-Authored-By: Aldy Hernandez From-SVN: r51256 --- gcc/cpplib.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/cpplib.h') diff --git a/gcc/cpplib.h b/gcc/cpplib.h index 783b258..e8298be 100644 --- a/gcc/cpplib.h +++ b/gcc/cpplib.h @@ -603,6 +603,9 @@ extern unsigned char *cpp_quote_string PARAMS ((unsigned char *, extern int cpp_included PARAMS ((cpp_reader *, const char *)); extern void cpp_make_system_header PARAMS ((cpp_reader *, int, int)); +/* In cppmain.c */ +extern void cpp_preprocess_file PARAMS ((cpp_reader *)); + #ifdef __cplusplus } #endif -- cgit v1.1