[LLVMbugs] [Bug 8391] New: Dependency file name ".d" files

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Oct 16 11:38:07 PDT 2010


           Summary: Dependency file name ".d" files
           Product: clang
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Driver
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: bohan.llvm at retropaganda.info
                CC: llvmbugs at cs.uiuc.edu

Created an attachment (id=5624)
 --> (http://llvm.org/bugs/attachment.cgi?id=5624)
look for the last dot in the filename, not the first one

When the filename for the ".d" file is chosen automatically (i.e. not specified
on the command line), the basename is computed from the input file(s) by
removing everything after the *first* dot and adding a ".d" extension.

So, given an input file foo.bar.cpp, it will choose foo.d

GNU GCC would have chosen foo.bar.d because it computes the basename by looking
for the *last* dot.

The patch attached makes clang act like gcc.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list