[ ChangeLog ]
authorChris Demetriou <cgd@broadcom.com>
Fri, 19 Jul 2002 17:12:14 +0000 (17:12 +0000)
committerChris Demetriou <cgd@gcc.gnu.org>
Fri, 19 Jul 2002 17:12:14 +0000 (10:12 -0700)
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

gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/lang-specs.h
gcc/gcc.c

index b0b58100383d5a33b81112de395566fcfd124cd1..bdbc55b57d58e46f8a4ca56257acaa5fcffb024c 100644 (file)
@@ -1,3 +1,7 @@
+2002-07-19  Chris Demetriou  <cgd@broadcom.com>
+
+       * gcc.c (cpp_options): Include "%1" (cc1_spec).
+
 2002-07-19  Richard Henderson  <rth@redhat.com>
 
        * loop.c (loop_givs_rescan): Delete the REG_EQUAL note, not the insn.
index de620fe5010c2825b9d7baa056274e882f2efec4..c60f8bd6c1df29cb5d5432709f377b8506b47d68 100644 (file)
@@ -1,3 +1,8 @@
+2002-07-19  Chris Demetriou  <cgd@broadcom.com>
+
+       * lang-specs.h (@c++): Include "%2" (cc1plus_spec) wherever
+       cpp_options is included.
+
 2002-07-17  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
 
        PR c++/2862, c++/2863
index 8d220eefab6f9227bfa50d3ccf41aa14e615de45..419fa92ff4d1199fc6889396e4a3a85602954ee3 100644 (file)
@@ -39,7 +39,7 @@ Boston, MA 02111-1307, USA.  */
        %{!Wno-deprecated:-D__DEPRECATED}\
        %{!fno-exceptions:-D__EXCEPTIONS}\
        -D__GXX_ABI_VERSION=100\
-       %{ansi:-D__STRICT_ANSI__ -trigraphs -$} %(cpp_options)\
+       %{ansi:-D__STRICT_ANSI__ -trigraphs -$} %(cpp_options) %2\
        %(cpp_debug_options)}\
      %{!E:%{!M:%{!MM:\
        %{save-temps:cc1plus -E \
@@ -48,7 +48,7 @@ Boston, MA 02111-1307, USA.  */
                    %{!fno-exceptions:-D__EXCEPTIONS}\
                    -D__GXX_ABI_VERSION=100\
                    %{ansi:-D__STRICT_ANSI__ -trigraphs -$}\
-                   %(cpp_options) %b.ii \n}\
+                   %(cpp_options) %2 %b.ii \n}\
       cc1plus %{save-temps:-fpreprocessed %b.ii}\
               %{!save-temps:%(cpp_unique_options)\
                            %{!no-gcc:-D__GNUG__=%v1} \
index d0f0ea3e138fdf061b5b62ea5041400fa78e7818..0682c48ad07a4414f967dbe8d104c9d0e38f8582 100644 (file)
--- 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