This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/25356] New: -MT appends target name, rather than replacing it
- From: "igodard at pacbell dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Dec 2005 18:41:02 -0000
- Subject: [Bug preprocessor/25356] New: -MT appends target name, rather than replacing it
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The -MT <name> option with -MMD is supposed to substitute <name> for the target
in the generated makefile. In most cases it seems to do so. However (using the
attached file, which is a rename .ii file), the command:
g++ -c -o accum.o -MMD accum.cc
produces the makefile:
accum.o: accum.cc
as expected, but the command:
g++ -c -o accum.o -MMD -MTfoo accum.cc
produces:
foo accum.o: accum.cc
instead of the correct:
foo: accum.cc
--
Summary: -MT appends target name, rather than replacing it
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: preprocessor
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: igodard at pacbell dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25356