summaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorcgd <cgd@138bc75d-0d04-0410-961f-82ee72b054a4>2002-07-19 17:12:14 +0000
committercgd <cgd@138bc75d-0d04-0410-961f-82ee72b054a4>2002-07-19 17:12:14 +0000
commit39c188c54a2ff09e96d9460a4fecf1c78f23cdb3 (patch)
treeec97af6f82e4340ef563d4d331a0d74c902a2103 /gcc/gcc.c
parent4c694afdd6d97862c1def563817cc311ad081646 (diff)
downloadgcc-39c188c54a2ff09e96d9460a4fecf1c78f23cdb3.tar.gz
[ 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55591 138bc75d-0d04-0410-961f-82ee72b054a4
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 d0f0ea3e138..0682c48ad07 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