[LLVMbugs] [Bug 11740] New: can't use clang -g to assemble .s file with .file directive

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jan 10 17:04:11 PST 2012


http://llvm.org/bugs/show_bug.cgi?id=11740

             Bug #: 11740
           Summary: can't use clang -g to assemble .s file with .file
                    directive
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: nlewycky at google.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


$ cat x.s
        .file   "x.ll"
$ clang -g x.s -c -o x.o
x.s:1:2: error: input can't have .file dwarf directives when -g is used to
generate dwarf debug info for assembly code
        .file   "x.ll"
        ^

Yes, I'd like to pass -g to the compiler even when its input is a .s file. Even
if the compiler isn't generating debug info so to speak. Please don't error on
this!

-- 
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