diff options
author | Zack Weinberg <zack@wolery.cumb.org> | 2000-07-12 20:01:02 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2000-07-12 20:01:02 +0000 |
commit | f5896af2a6c84e23a0f159ee350ed8d4287bf3ca (patch) | |
tree | 6034339347b83a8d61201f5f508c0321a020461c /gcc/gcc.c | |
parent | 0080e8929257ca9c0cceeb61e4d30c425b5c9c4b (diff) | |
download | gcc-f5896af2a6c84e23a0f159ee350ed8d4287bf3ca.zip gcc-f5896af2a6c84e23a0f159ee350ed8d4287bf3ca.tar.gz gcc-f5896af2a6c84e23a0f159ee350ed8d4287bf3ca.tar.bz2 |
gcc.c (C specs [!USE_CPPLIB]): Invoke tradcpp if any of -traditional, -ftraditional, or -traditional-cpp was given.
* gcc.c (C specs [!USE_CPPLIB]): Invoke tradcpp if any of
-traditional, -ftraditional, or -traditional-cpp was given.
Do not pass -traditional to the preprocessor.
(.S spec): Likewise. Don't bother defining __ASSEMBLER__, the
preprocessor does it automatically.
* objc/lang-specs.h: Likewise. Don't bother defining __OBJC__.
* ch/lang-specs.h: Always use tradcpp. Do not pass
-traditional, -trigraphs, or -pedantic to the preprocessor.
* f/lang-specs.h (.F spec): Likewise. Don't bother defining
_LANGUAGE_FORTRAN.
From-SVN: r34995
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r-- | gcc/gcc.c | 22 |
1 files changed, 9 insertions, 13 deletions
@@ -660,7 +660,8 @@ static struct compiler default_compilers[] = %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}\ %{!pipe:%g.s} %A\n }}}}" #else /* ! USE_CPPLIB */ - "cpp -lang-c %{ansi:-std=c89} %{std*} %{nostdinc*}\ + "%{traditional|ftraditional|traditional-cpp:trad}cpp -lang-c \ + %{ansi:-std=c89} %{std*} %{nostdinc*}\ %{C} %{v} %{A*} %{I*} %{P} %{$} %I\ %{C:%{!E:%eGNU C does not support -C without using -E}}\ %{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d} %{MG}\ @@ -669,8 +670,6 @@ static struct compiler default_compilers[] = %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}}\ %{ffast-math:-D__FAST_MATH__}\ %{fshort-wchar:-D__WCHAR_TYPE__=short\\ unsigned\\ int}\ - %{traditional} %{ftraditional:-traditional}\ - %{traditional-cpp:-traditional}\ %{fshow-column} %{fno-show-column}\ %{fleading-underscore} %{fno-leading-underscore}\ %{g*} %{W*} %{w} %{pedantic*} %{H} %{d*} %C %{D*} %{U*} %{i*} %Z\ @@ -689,7 +688,8 @@ static struct compiler default_compilers[] = #endif /* ! USE_CPPLIB */ }}, {"-", - {"%{E:cpp -lang-c %{ansi:-std=c89} %{std*} %{nostdinc*}\ + {"%{E:%{traditional|ftraditional|traditional-cpp:trad}cpp \ + -lang-c %{ansi:-std=c89} %{std*} %{nostdinc*}\ %{C} %{v} %{A*} %{I*} %{P} %{$} %I\ %{C:%{!E:%eGNU C does not support -C without using -E}}\ %{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d} %{MG}\ @@ -698,8 +698,6 @@ static struct compiler default_compilers[] = %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}}\ %{ffast-math:-D__FAST_MATH__}\ %{fshort-wchar:-D__WCHAR_TYPE__=short\\ unsigned\\ int}\ - %{traditional} %{ftraditional:-traditional}\ - %{traditional-cpp:-traditional}\ %{fshow-column} %{fno-show-column}\ %{fleading-underscore} %{fno-leading-underscore}\ %{g*} %{W*} %{w} %{pedantic*} %{H} %{d*} %C %{D*} %{U*} %{i*} %Z\ @@ -708,7 +706,8 @@ static struct compiler default_compilers[] = {".h", {"@c-header"}}, {"@c-header", {"%{!E:%eCompilation of header file requested} \ - cpp %{nostdinc*} %{C} %{v} %{A*} %{I*} %{P} %{$} %I\ + %{traditional|ftraditional|traditional-cpp:trad}cpp \ + %{nostdinc*} %{C} %{v} %{A*} %{I*} %{P} %{$} %I\ %{C:%{!E:%eGNU C does not support -C without using -E}}\ %{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d} %{MG}\ %{!no-gcc:-D__GNUC__=%v1 -D__GNUC_MINOR__=%v2 -D__GNUC_PATCHLEVEL__=%v3}\ @@ -717,8 +716,6 @@ static struct compiler default_compilers[] = %{ffast-math:-D__FAST_MATH__}\ %{fshort-wchar:-D__WCHAR_TYPE__=short\\ unsigned\\ int}\ %{fshort-wchar:-D__WCHAR_TYPE__=short\\ unsigned\\ int}\ - %{traditional} %{ftraditional:-traditional}\ - %{traditional-cpp:-traditional}\ %{fshow-column} %{fno-show-column}\ %{fleading-underscore} %{fno-leading-underscore}\ %{g*} %{W*} %{w} %{pedantic*} %{H} %{d*} %C %{D*} %{U*} %{i*} %Z\ @@ -741,15 +738,14 @@ static struct compiler default_compilers[] = %i %A\n }}}}"}}, {".S", {"@assembler-with-cpp"}}, {"@assembler-with-cpp", - {"cpp -lang-asm %{nostdinc*} %{C} %{v} %{A*} %{I*} %{P} %{$} %I\ + {"%{traditional|ftraditional|traditional-cpp:trad}cpp -lang-asm \ + %{nostdinc*} %{C} %{v} %{A*} %{I*} %{P} %{$} %I\ %{C:%{!E:%eGNU C does not support -C without using -E}}\ %{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d} %{MG} %{trigraphs}\ - -$ %{!undef:%p %P} -D__ASSEMBLER__ \ + -$ %{!undef:%p %P} \ %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}}\ %{ffast-math:-D__FAST_MATH__}\ %{fshort-wchar:-D__WCHAR_TYPE__=short\\ unsigned\\ int}\ - %{traditional} %{ftraditional:-traditional}\ - %{traditional-cpp:-traditional}\ %{fshow-column} %{fno-show-column}\ %{fleading-underscore} %{fno-leading-underscore}\ %{g*} %{W*} %{w} %{pedantic*} %{H} %{d*} %C %{D*} %{U*} %{i*} %Z\ |