This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch: PR driver/12448
- From: Tom Tromey <tromey at redhat dot com>
- To: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Date: 21 Jan 2007 18:19:26 -0700
- Subject: Patch: PR driver/12448
- Reply-to: tromey at redhat dot com
This patch fixes PR driver/12448.
The bug here is that 'gcc -o foo.o' passes a default -MQ option, even
if the user has specified -MT or -MQ.
This patch was sitting in bugzilla. I bootstrapped and tested it on
x86 FC 6.
Ok?
Tom
:ADDPATCH driver:
2007-01-21 David Taylor <taylor@candd.org>
PR driver/12448:
* gcc.c (cpp_unique_options): If -MT or -MQ is seen, don't pass
default -MQ.
Index: gcc.c
===================================================================
--- gcc.c (revision 120997)
+++ gcc.c (working copy)
@@ -775,7 +781,7 @@
%{MD:-MD %{!o:%b.d}%{o*:%.d%*}}\
%{MMD:-MMD %{!o:%b.d}%{o*:%.d%*}}\
%{M} %{MM} %{MF*} %{MG} %{MP} %{MQ*} %{MT*}\
- %{!E:%{!M:%{!MM:%{MD|MMD:%{o*:-MQ %*}}}}}\
+ %{!E:%{!M:%{!MM:%{!MT:%{!MQ:%{MD|MMD:%{o*:-MQ %*}}}}}}}\
%{remap} %{g3:-dD} %{H} %C %{D*&U*&A*} %{i*} %Z %i\
%{fmudflap:-D_MUDFLAP -include mf-runtime.h}\
%{fmudflapth:-D_MUDFLAP -D_MUDFLAPTH -include mf-runtime.h}\