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: unassignedb...@nondot.org
Reporter: weimi...@codeaurora.org
CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs