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
This commit is contained in:
Matthew Woodcraft 2002-05-31 21:01:28 +00:00 committed by Richard Henderson
parent efe1f35795
commit 8b968bd155
7 changed files with 33 additions and 6 deletions

View 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

View 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.

View 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}\

View 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.

View 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",

View File

@ -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),

View 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}\