gcc.c (cpp_options): Preserve relative ordering of -pedantic and warning switches.
authorPhil Edwards <pme@gcc.gnu.org>
Tue, 26 Mar 2002 21:38:40 +0000 (21:38 +0000)
committerPhil Edwards <pme@gcc.gnu.org>
Tue, 26 Mar 2002 21:38:40 +0000 (21:38 +0000)
2002-03-26  Phil Edwards  <pme@gcc.gnu.org>

* gcc.c (cpp_options):  Preserve relative ordering of -pedantic
and warning switches.
(cc1_options):  Likewise.

From-SVN: r51408

gcc/ChangeLog
gcc/gcc.c

index df46d034965e51596c971501feaa03d4ec804264..b911fe5e826447f4dabc069c9f3c32cb34854945 100644 (file)
@@ -1,3 +1,9 @@
+2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
+
+       * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
+       and warning switches.
+       (cc1_options):  Likewise.
+
 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
        * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
        Restore more of the signal context.  Set no_reg_stack_frame.
index 5787b0e05bf02dfa7d7391db13b2c8c23460eb45..c9098acfc26f9e685a53c0d94237cf616cb365cc 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -681,7 +681,7 @@ static const char *cpp_unique_options =
 /* This contains cpp options which are common with cc1_options and are passed
    only when preprocessing only to avoid duplication.  */
 static const char *cpp_options =
-"%(cpp_unique_options) %{std*} %{d*} %{W*} %{w} %{pedantic*}\
+"%(cpp_unique_options) %{std*} %{d*} %{W*&pedantic*} %{w}\
  %{fshow-column} %{fno-show-column}\
  %{fsigned-char&funsigned-char}\
  %{fleading-underscore} %{fno-leading-underscore}\
@@ -691,7 +691,7 @@ static const char *cpp_options =
 static const char *cc1_options =
 "%{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}\
  %1 %{!Q:-quiet} -dumpbase %B %{d*} %{m*} %{a*}\
- %{g*} %{O*} %{W*} %{w} %{pedantic*} %{std*} %{ansi}\
+ %{g*} %{O*} %{W*&pedantic*} %{w} %{std*} %{ansi}\
  %{v:-version} %{pg:-p} %{p} %{f*}\
  %{Qn:-fno-ident} %{--help:--help}\
  %{--target-help:--target-help}\