Commit 8b968bd1 by Matthew Woodcraft Committed by Richard Henderson

gcc.c (cpp_unique_options): Remove "-d" options.

        * 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
parent efe1f357
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> 2002-05-31 Nathanael Nerode <neroden@twcny.rr.com>
* gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
......
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> 2002-05-28 Zack Weinberg <zack@codesourcery.com>
* mangle.c, tree.c: Include real.h. * mangle.c, tree.c: Include real.h.
......
...@@ -39,7 +39,8 @@ Boston, MA 02111-1307, USA. */ ...@@ -39,7 +39,8 @@ Boston, MA 02111-1307, USA. */
%{!Wno-deprecated:-D__DEPRECATED}\ %{!Wno-deprecated:-D__DEPRECATED}\
%{!fno-exceptions:-D__EXCEPTIONS}\ %{!fno-exceptions:-D__EXCEPTIONS}\
-D__GXX_ABI_VERSION=100\ -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:\ %{!E:%{!M:%{!MM:\
%{save-temps:cc1plus -E \ %{save-temps:cc1plus -E \
%{!no-gcc:-D__GNUG__=%v1}\ %{!no-gcc:-D__GNUG__=%v1}\
......
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> 2002-05-28 Zack Weinberg <zack@codesourcery.com>
* bld.c, com.c, expr.c, target.c: Include real.h. * bld.c, com.c, expr.c, target.c: Include real.h.
......
...@@ -28,7 +28,9 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA ...@@ -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},
{".FPP", "@f77-cpp-input", 0}, {".FPP", "@f77-cpp-input", 0},
{"@f77-cpp-input", {"@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}, f771 %{!pipe:%g.f} %(cc1_options) %{I*} %{!fsyntax-only:%(invoke_as)}}}}", 0},
{".r", "@ratfor", 0}, {".r", "@ratfor", 0},
{"@ratfor", {"@ratfor",
......
...@@ -694,9 +694,13 @@ static const char *cpp_unique_options = ...@@ -694,9 +694,13 @@ static const char *cpp_unique_options =
/* This contains cpp options which are common with cc1_options and are passed /* 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. */
static const char *cpp_options = 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}"; %{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. */ /* NB: This is shared amongst all front-ends. */
static const char *cc1_options = static const char *cc1_options =
"%{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}\ "%{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}\
...@@ -832,7 +836,8 @@ static const struct compiler default_compilers[] = ...@@ -832,7 +836,8 @@ static const struct compiler default_compilers[] =
{"@c", {"@c",
/* cc1 has an integrated ISO C preprocessor. We should invoke the /* cc1 has an integrated ISO C preprocessor. We should invoke the
external preprocessor if -save-temps is given. */ 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:\ %{!E:%{!M:%{!MM:\
%{traditional|ftraditional:\ %{traditional|ftraditional:\
%eGNU C no longer supports -traditional without -E}\ %eGNU C no longer supports -traditional without -E}\
...@@ -848,7 +853,8 @@ static const struct compiler default_compilers[] = ...@@ -848,7 +853,8 @@ static const struct compiler default_compilers[] =
{".h", "@c-header", 0}, {".h", "@c-header", 0},
{"@c-header", {"@c-header",
"%{!E:%ecompilation of header file requested} \ "%{!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}, {".i", "@cpp-output", 0},
{"@cpp-output", {"@cpp-output",
"%{!M:%{!MM:%{!E:cc1 -fpreprocessed %i %(cc1_options) %{!fsyntax-only:%(invoke_as)}}}}", 0}, "%{!M:%{!MM:%{!E:cc1 -fpreprocessed %i %(cc1_options) %{!fsyntax-only:%(invoke_as)}}}}", 0},
...@@ -858,6 +864,7 @@ static const struct compiler default_compilers[] = ...@@ -858,6 +864,7 @@ static const struct compiler default_compilers[] =
{".S", "@assembler-with-cpp", 0}, {".S", "@assembler-with-cpp", 0},
{"@assembler-with-cpp", {"@assembler-with-cpp",
"%(trad_capable_cpp) -lang-asm %(cpp_options)\ "%(trad_capable_cpp) -lang-asm %(cpp_options)\
%{E|M|MM:%(cpp_debug_options)}\
%{!M:%{!MM:%{!E:%{!S:-o %{|!pipe:%g.s} |\n\ %{!M:%{!MM:%{!E:%{!S:-o %{|!pipe:%g.s} |\n\
as %(asm_debug) %(asm_options) %{!pipe:%g.s} %A }}}}", 0}, as %(asm_debug) %(asm_options) %{!pipe:%g.s} %A }}}}", 0},
#include "specs.h" #include "specs.h"
...@@ -1369,6 +1376,7 @@ static struct spec_list static_specs[] = ...@@ -1369,6 +1376,7 @@ static struct spec_list static_specs[] =
INIT_STATIC_SPEC ("invoke_as", &invoke_as), INIT_STATIC_SPEC ("invoke_as", &invoke_as),
INIT_STATIC_SPEC ("cpp", &cpp_spec), INIT_STATIC_SPEC ("cpp", &cpp_spec),
INIT_STATIC_SPEC ("cpp_options", &cpp_options), 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 ("cpp_unique_options", &cpp_unique_options),
INIT_STATIC_SPEC ("trad_capable_cpp", &trad_capable_cpp), INIT_STATIC_SPEC ("trad_capable_cpp", &trad_capable_cpp),
INIT_STATIC_SPEC ("cc1", &cc1_spec), INIT_STATIC_SPEC ("cc1", &cc1_spec),
......
...@@ -25,7 +25,8 @@ Boston, MA 02111-1307, USA. */ ...@@ -25,7 +25,8 @@ Boston, MA 02111-1307, USA. */
{"@objective-c", {"@objective-c",
/* cc1obj has an integrated ISO C preprocessor. We should invoke the /* cc1obj has an integrated ISO C preprocessor. We should invoke the
external preprocessor if -save-temps or -traditional is given. */ 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:\ %{!E:%{!M:%{!MM:\
%{traditional|ftraditional|traditional-cpp:\ %{traditional|ftraditional|traditional-cpp:\
%eGNU Objective C no longer supports traditional compilation}\ %eGNU Objective C no longer supports traditional compilation}\
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment