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 driver/54964] New: -MMD is silently ignored with -x assembler (or inferred language from .s extension)


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54964

             Bug #: 54964
           Summary: -MMD is silently ignored with -x assembler (or
                    inferred language from .s extension)
    Classification: Unclassified
           Product: gcc
           Version: 4.6.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: driver
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: ami@fischman.org


When gcc is asked to compile a .s into a .o, or when told to compile a language
"assembler" file, it ignores the request for a dependency file.  -x
assembler-with-cpp emits the requested dependency file.  

It would be nice if gcc never ignored the -MMD flag.

Repro: note the first two commands fail to create empty.o.d, whereas the last
command does not fail:

$ rm -f empty.o* ; touch empty.s ; gcc -MMD -MF empty.o.d -c empty.s -o empty.o
; ls -al empty.o*
-rw-r--r-- 1 fischman eng 657 Oct 17 17:04 empty.o
$ rm -f empty.o* ; gcc -MMD -MF empty.o.d -x assembler /dev/null -c -o empty.o
; ls -al empty.o*
-rw-r--r-- 1 fischman eng 657 Oct 17 16:56 empty.o
$ rm -f empty.o* ; gcc -MMD -MF empty.o.d -x assembler-with-cpp /dev/null -c -o
empty.o ; ls -al empty.o*
-rw-r--r-- 1 fischman eng 657 Oct 17 16:56 empty.o
-rw-r--r-- 1 fischman eng Â19 Oct 17 16:56 empty.o.d


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