summaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.demon.co.uk>2002-02-19 07:44:38 +0000
committerNeil Booth <neil@gcc.gnu.org>2002-02-19 07:44:38 +0000
commit30518e459c5a6831e0d8255961abcd7b3a99dd69 (patch)
tree4dc9a36232934510401ee6130f65c459ed3b2401 /gcc/gcc.c
parent39ea57044810d5098a634a8aaeee92299ba1d84b (diff)
downloadgcc-30518e459c5a6831e0d8255961abcd7b3a99dd69.tar.gz
gcc.c (cpp_unique_options): Treat -o as indicating object file only if not -E.
* 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
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 41c62a9e4fe..ae4bc6379be 100644
--- 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. */