]> gcc.gnu.org Git - gcc.git/commitdiff
gcc.c (cpp_unique_options): Remove "-d" options.
authorMatthew Woodcraft <mattheww@chiark.greenend.org.uk>
Fri, 31 May 2002 21:01:28 +0000 (21:01 +0000)
committerRichard Henderson <rth@gcc.gnu.org>
Fri, 31 May 2002 21:01:28 +0000 (14:01 -0700)
        * gcc.c (cpp_unique_options): Remove "-d" options.
        (cpp_debug_options): New spec string.
        (default_compilers): Use it.
        * objc/lang-specs.h: Likewise.
        * cp/lang-specs.h: Likewise.
        * f/lang-specs.h: Likewise.

From-SVN: r54121

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

index 5882f22fc33ee35e190b9231428cf4fa7c22840b..098f7f2db6b6f6d00110506feaa72e799ea45c2d 100644 (file)
@@ -1,3 +1,10 @@
+2002-05-31  Matthew Woodcraft  <mattheww@chiark.greenend.org.uk>
+
+       * gcc.c (cpp_unique_options): Remove "-d" options.
+       (cpp_debug_options): New spec string.
+       (default_compilers): Use it.
+       * objc/lang-specs.h: Likewise.
+
 2002-05-31  Nathanael Nerode  <neroden@twcny.rr.com>
 
        * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with 
index e19c55abc783a5ade933f6b38b4ba7f780aee5fd..75e7599869a78dbed35e0e06cb3cbec0bafa2920 100644 (file)
@@ -1,3 +1,7 @@
+2002-05-31  Matthew Woodcraft  <mattheww@chiark.greenend.org.uk>
+
+       * lang-specs.h: Use cpp_debug_options.
+
 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
 
        * mangle.c, tree.c: Include real.h.
index 04050063ba27c13b024eb86a189ee7d3b8e31af5..8d220eefab6f9227bfa50d3ccf41aa14e615de45 100644 (file)
@@ -39,7 +39,8 @@ 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)\
+       %(cpp_debug_options)}\
      %{!E:%{!M:%{!MM:\
        %{save-temps:cc1plus -E \
                    %{!no-gcc:-D__GNUG__=%v1}\
index 03c1b67b322ad8c23ccfaf19934b0e4a318eed18..005b151bbdc6f02299977b04988cb5346a223163 100644 (file)
@@ -1,3 +1,7 @@
+2002-05-31  Matthew Woodcraft  <mattheww@chiark.greenend.org.uk>
+
+       * lang-specs.h: Use cpp_debug_options.
+
 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
 
        * bld.c, com.c, expr.c, target.c: Include real.h.
index e39a3e9b5b224b520bece751b1ad553cc43ebaf8..c22837a7b938d87a28ced1f7136013d7944b2348 100644 (file)
@@ -28,7 +28,9 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
   {".fpp", "@f77-cpp-input", 0},
   {".FPP", "@f77-cpp-input", 0},
   {"@f77-cpp-input",
-   "tradcpp0 -lang-fortran %(cpp_options) %{!M:%{!MM:%{!E:%{!pipe:%g.f} |\n\
+   "tradcpp0 -lang-fortran %(cpp_options) \
+        %{E|M|MM:%(cpp_debug_options)}\
+        %{!M:%{!MM:%{!E:%{!pipe:%g.f} |\n\
     f771 %{!pipe:%g.f} %(cc1_options) %{I*} %{!fsyntax-only:%(invoke_as)}}}}", 0},
   {".r", "@ratfor", 0},
   {"@ratfor",
index f5e70ca6b02b1e78e2c81da781cf7e05962e31b5..50b219f3569e660073697df437705c7d4ad67022 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -694,9 +694,13 @@ 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*&pedantic*} %{w} %{m*} %{f*}\
+"%(cpp_unique_options) %{std*} %{W*&pedantic*} %{w} %{m*} %{f*}\
  %{O*} %{undef}";
 
+/* This contains cpp options which are not passed when the preprocessor
+   output will be used by another program.  */
+static const char *cpp_debug_options = "%{d*}";
+
 /* NB: This is shared amongst all front-ends.  */
 static const char *cc1_options =
 "%{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}\
@@ -832,7 +836,8 @@ static const struct compiler default_compilers[] =
   {"@c",
    /* cc1 has an integrated ISO C preprocessor.  We should invoke the
       external preprocessor if -save-temps is given.  */
-     "%{E|M|MM:%(trad_capable_cpp) %{ansi:-std=c89} %(cpp_options)}\
+     "%{E|M|MM:%(trad_capable_cpp) %{ansi:-std=c89} %(cpp_options)\
+         %(cpp_debug_options)}\
       %{!E:%{!M:%{!MM:\
           %{traditional|ftraditional:\
 %eGNU C no longer supports -traditional without -E}\
@@ -848,7 +853,8 @@ static const struct compiler default_compilers[] =
   {".h", "@c-header", 0},
   {"@c-header",
    "%{!E:%ecompilation of header file requested} \
-    %(trad_capable_cpp) %{ansi:-std=c89} %(cpp_options)", 0},
+    %(trad_capable_cpp) %{ansi:-std=c89} %(cpp_options) %(cpp_debug_options)",
+   0},
   {".i", "@cpp-output", 0},
   {"@cpp-output",
    "%{!M:%{!MM:%{!E:cc1 -fpreprocessed %i %(cc1_options) %{!fsyntax-only:%(invoke_as)}}}}", 0},
@@ -858,6 +864,7 @@ static const struct compiler default_compilers[] =
   {".S", "@assembler-with-cpp", 0},
   {"@assembler-with-cpp",
    "%(trad_capable_cpp) -lang-asm %(cpp_options)\
+      %{E|M|MM:%(cpp_debug_options)}\
       %{!M:%{!MM:%{!E:%{!S:-o %{|!pipe:%g.s} |\n\
        as %(asm_debug) %(asm_options) %{!pipe:%g.s} %A }}}}", 0},
 #include "specs.h"
@@ -1369,6 +1376,7 @@ static struct spec_list static_specs[] =
   INIT_STATIC_SPEC ("invoke_as",               &invoke_as),
   INIT_STATIC_SPEC ("cpp",                     &cpp_spec),
   INIT_STATIC_SPEC ("cpp_options",             &cpp_options),
+  INIT_STATIC_SPEC ("cpp_debug_options",       &cpp_debug_options),
   INIT_STATIC_SPEC ("cpp_unique_options",      &cpp_unique_options),
   INIT_STATIC_SPEC ("trad_capable_cpp",                &trad_capable_cpp),
   INIT_STATIC_SPEC ("cc1",                     &cc1_spec),
index 6cc17f79029a5d59de2a55039414b7d55e6e72a4..e4c1e0fbaa6fec5e27b965e8eb528c8f4796300f 100644 (file)
@@ -25,7 +25,8 @@ Boston, MA 02111-1307, USA.  */
   {"@objective-c",
    /* cc1obj has an integrated ISO C preprocessor.  We should invoke the
       external preprocessor if -save-temps or -traditional is given.  */
-     "%{E|M|MM:%(trad_capable_cpp) -lang-objc %{ansi:-std=c89} %(cpp_options)}\
+     "%{E|M|MM:%(trad_capable_cpp)\
+          -lang-objc %{ansi:-std=c89} %(cpp_options) %(cpp_debug_options)}\
       %{!E:%{!M:%{!MM:\
        %{traditional|ftraditional|traditional-cpp:\
 %eGNU Objective C no longer supports traditional compilation}\
This page took 0.098011 seconds and 5 git commands to generate.