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

            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: [email protected]
          Reporter: [email protected]
                CC: [email protected]

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

```assembly
    .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:

```assembly
    .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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to