aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorChris Demetriou <cgd@broadcom.com>2002-07-19 17:12:14 +0000
committerChris Demetriou <cgd@gcc.gnu.org>2002-07-19 10:12:14 -0700
commit059ba71678809018d86b4ec6716410f58ad32fbd (patch)
treeec97af6f82e4340ef563d4d331a0d74c902a2103 /gcc/gcc.c
parent544823b62164ff5086b472deb0e41d97dea8985c (diff)
downloadgcc-059ba71678809018d86b4ec6716410f58ad32fbd.zip
gcc-059ba71678809018d86b4ec6716410f58ad32fbd.tar.gz
gcc-059ba71678809018d86b4ec6716410f58ad32fbd.tar.bz2
[ ChangeLog ]
2002-07-19 Chris Demetriou <cgd@broadcom.com> * gcc.c (cpp_options): Include "%1" (cc1_spec). [ cp/ChangeLog ] 2002-07-19 Chris Demetriou <cgd@broadcom.com> * lang-specs.h (@c++): Include "%2" (cc1plus_spec) wherever cpp_options is included. From-SVN: r55591
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index d0f0ea3..0682c48ad 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -691,9 +691,12 @@ static const char *cpp_unique_options =
%{E|M|MM:%W{o*}}";
/* This contains cpp options which are common with cc1_options and are passed
- only when preprocessing only to avoid duplication. */
+ only when preprocessing only to avoid duplication. We pass the cc1 spec
+ options to the preprocessor so that it the cc1 spec may manipulate
+ options used to set target flags. Those special target flags settings may
+ in turn cause preprocessor symbols to be defined specially. */
static const char *cpp_options =
-"%(cpp_unique_options) %{std*} %{W*&pedantic*} %{w} %{m*} %{f*}\
+"%(cpp_unique_options) %1 %{std*} %{W*&pedantic*} %{w} %{m*} %{f*}\
%{O*} %{undef}";
/* This contains cpp options which are not passed when the preprocessor