This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug driver/12448] -MT / -MQ don't behave as documented.
- From: "steven at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Dec 2003 12:06:25 -0000
- Subject: [Bug driver/12448] -MT / -MQ don't behave as documented.
- References: <20030929205632.12448.taylor@candd.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From steven at gcc dot gnu dot org 2003-12-23 12:06 -------
The proposed patch would be this:
------------------------------------------------------------------------
<date> David Taylor <taylor at candd dot org>
PR driver/12448
* gcc.c (cpp_unique_options): Strip
Index: gcc.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/gcc.c,v
retrieving revision 1.400
diff -c -3 -p -r1.400 gcc.c
*** gcc.c 20 Dec 2003 07:40:21 -0000 1.400
--- gcc.c 23 Dec 2003 11:57:41 -0000
*************** static const char *cpp_unique_options =
*** 745,751 ****
%{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 %*}}}}}\
%{trigraphs} %{remap} %{g3:-dD} %{H} %C %{D*&U*&A*} %{i*} %Z %i\
%{E|M|MM:%W{o*}}";
--- 745,751 ----
%{MD:-MD %{!o:%b.d}%{o*:%.d%*}}\
%{MMD:-MMD %{!o:%b.d}%{o*:%.d%*}}\
%{M} %{MM} %{MF*} %{MG} %{MP} %{MQ*} %{MT*}\
! %{!E:%{!M:%{!MM:%{!MT:%{!MQ:%{MD|MMD:%{o*:-MQ %*}}}}}}} \
%{trigraphs} %{remap} %{g3:-dD} %{H} %C %{D*&U*&A*} %{i*} %Z %i\
%{E|M|MM:%W{o*}}";
------------------------------------------------------------------------
I really can't tell if this is correct or not. Evil driver commands!
--
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2003-11-18 07:20:17 |2003-12-23 12:06:24
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12448