From ffd56b218f2abcc3a4bd95bd93b62a3a5416a738 Mon Sep 17 00:00:00 2001 From: neil 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51256 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/c-decl.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/c-decl.c') diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 4e0dccd4b0a..a727b2707dd 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -581,6 +581,8 @@ c_decode_option (argc, argv) flag_isoc99 = 1; flag_isoc94 = 1; } + else if (!strcmp (argstart, "c++98")) + ; /* Handled by cpplib. */ else error ("unknown C standard `%s'", argstart); } @@ -685,6 +687,8 @@ c_decode_option (argc, argv) /* Only warn about unknown pragmas that are not in system headers. */ warn_unknown_pragmas = 1; } + else if (!strcmp (p, "-E")) + flag_preprocess_only = 1; else { size_t i; -- cgit v1.2.1