This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug preprocessor/25356] New: -MT appends target name, rather than replacing it


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]