[llvm-bugs] [Bug 11740] can't use clang -g to assemble .s file with .file directive

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Nov 12 16:39:36 PST 2015


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

yunlian <yunlian at google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |yunlian at google.com
         Resolution|FIXED                       |---

--- Comment #4 from yunlian <yunlian at google.com> ---
cat a.c

void foo() {}

clang -g a.c -S -o a.s
clang -g -c -o a.o a.s

a.s:8:2: error: input can't have .file dwarf directives when -g is used to
generate dwarf debug info for assembly code
        .file   1 "a.c"
        ^
a.s:8:8: error: file number already allocated
        .file   1 "a.c"
                ^

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151113/3bf83a9f/attachment.html>


More information about the llvm-bugs mailing list