gcc.c (cpp_unique_options): Treat -o as indicating object file only if not -E.
authorNeil Booth <neil@daikokuya.demon.co.uk>
Tue, 19 Feb 2002 07:44:38 +0000 (07:44 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Tue, 19 Feb 2002 07:44:38 +0000 (07:44 +0000)
* gcc.c (cpp_unique_options): Treat -o as indicating object file
only if not -E.  If -E, pass -o through to the preprocessor.

From-SVN: r49860

gcc/ChangeLog
gcc/gcc.c

index b8081046522aed8ec9e32dbae9b672652d24117c..ffb087cf2fdc875886a3db2e3c3fe76b794f6011 100644 (file)
@@ -1,3 +1,9 @@
+2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
+
+       PR other/5718
+       * gcc.c (cpp_unique_options): Treat -o as indicating object file
+       only if not -E.  If -E, pass -o through to the preprocessor.
+
 2002-02-19  Kazu Hirata  <kazu@hxi.com>
 
        * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
index 41c62a9e4fe4d6e87c771d2629be10d3cde4291a..ae4bc6379be2f63d88f33cc0583fbb5dbcdd42b6 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -665,7 +665,7 @@ static const char *cpp_unique_options =
  %{nostdinc*} %{C} %{v} %{I*} %{P} %{$} %I\
  %{MD:-M -MF %W{!o: %b.d}%W{o*:%.d%*}}\
  %{MMD:-MM -MF %W{!o: %b.d}%W{o*:%.d%*}}\
- %{M} %{MM} %W{MF*} %{MG} %{MP} %{MQ*} %{MT*} %{M|MD|MM|MMD:%{o*:-MQ %*}}\
+ %{M} %{MM} %W{MF*} %{MG} %{MP} %{MQ*} %{MT*} %{!E:%{M|MD|MM|MMD:%{o*:-MQ %*}}}\
  %{!no-gcc:-D__GNUC__=%v1 -D__GNUC_MINOR__=%v2 -D__GNUC_PATCHLEVEL__=%v3}\
  %{!undef:%{!ansi:%{!std=*:%p}%{std=gnu*:%p}} %P} %{trigraphs}\
  %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}}\
@@ -674,7 +674,7 @@ static const char *cpp_unique_options =
  %{ffreestanding:-D__STDC_HOSTED__=0} %{fno-hosted:-D__STDC_HOSTED__=0}\
  %{!ffreestanding:%{!fno-hosted:-D__STDC_HOSTED__=1}} %{remap}\
  %{g3:-dD} %{H} %C %{D*&U*&A*} %{i*} %Z %i\
- %{E:%{!M*:%W{o*}}}";
+ %{E:%W{o*}}";
 
 /* This contains cpp options which are common with cc1_options and are passed
    only when preprocessing only to avoid duplication.  */