[llvm-bugs] [Bug 52528] New: Assembly `.file` directive not compatible with GCC

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Nov 16 13:28:31 PST 2021


            Bug ID: 52528
           Summary: Assembly `.file` directive not compatible with GCC
           Product: libraries
           Version: 13.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Common Code Generator Code
          Assignee: unassignedbugs at nondot.org
          Reporter: david.lloyd at redhat.com
                CC: llvm-bugs at lists.llvm.org

Since 13 (I think), `llc` has begun creating assembly files with a directive in
this format:

    .file   1 "java/lang" "Class.java"

Note that the directory and file have been split into two separate strings.

GCC won't accept this:

target/native/java/lang/Class.s: Assembler messages:
target/native/java/lang/Class.s:8: Error: junk at end of line, first
unrecognized character is `"'

If I manually fix the string like this:

    .file   1 "java/lang/Class.java"

then GCC is happy again.  Note that `clang` accepts either input.

In the IRC channel, it was indicated that GCC compatibility is expected, thus
this should be considered a bug.

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/20211116/53b1b55e/attachment.html>

More information about the llvm-bugs mailing list