[llvm-bugs] [Bug 33984] New: [LTO] missing file name in diagnostic message about inline asm
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Jul 28 16:15:45 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=33984
Bug ID: 33984
Summary: [LTO] missing file name in diagnostic message about
inline asm
Product: new-bugs
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: weimingz at codeaurora.org
CC: llvm-bugs at lists.llvm.org
For example, given a.c:
int main(int argc, char**argv) {
__asm__("bad");
}
Without LTO, the message is correct:
a.c:2:9: error: invalid instruction, did you mean: adc, add, adr, and, b?
__asm__("bad");
^
<inline asm>:1:2: note: instantiated into assembly here
bad
^~~
1 error generated.
With -flto, it becomes:
<inline asm>:1:2: error: invalid instruction, did you mean: adc, add, adr, and,
b?
bad
^
LLVM ERROR: Error parsing inline asm
Not that the filename of the source is missing. If there're multiple objs,
there is no way to tell which file's inline asm is bad.
--
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/20170728/bea0fc45/attachment.html>
More information about the llvm-bugs
mailing list