diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-03-24 12:27:45 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-03-24 12:27:45 +0000 |
commit | ffd56b218f2abcc3a4bd95bd93b62a3a5416a738 (patch) | |
tree | 273845d7b4dc2112d82db2e2e8f9f5239af6a84c /gcc/gcc.c | |
parent | 203395e815a79f73ddac0742c002fc402388472b (diff) | |
download | ppe42-gcc-ffd56b218f2abcc3a4bd95bd93b62a3a5416a738.tar.gz ppe42-gcc-ffd56b218f2abcc3a4bd95bd93b62a3a5416a738.zip |
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
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r-- | gcc/gcc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c index 5f8ada04c0a..436b97baf27 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -658,11 +658,12 @@ static const char *link_libgcc_spec = LINK_LIBGCC_SPEC; appropriate -B options. */ static const char *trad_capable_cpp = -"%{traditional|ftraditional|traditional-cpp:trad}cpp0"; +"%{traditional|ftraditional|traditional-cpp:tradcpp0}\ + %{!traditional:%{!ftraditional:%{!traditional-cpp:cc1 -E}}}"; static const char *cpp_unique_options = "%{C:%{!E:%eGNU C does not support -C without using -E}}\ - %{nostdinc*} %{C} %{v} %{I*} %{P} %{$} %I\ + %{!Q:-quiet} %{nostdinc*} %{C} %{v} %{I*} %{P} %{$} %I\ %{MD:-M -MF %W{!o: %b.d}%W{o*:%.d%*}}\ %{MMD:-MM -MF %W{!o: %b.d}%W{o*:%.d%*}}\ %{M} %{MM} %W{MF*} %{MG} %{MP} %{MQ*} %{MT*}\ |