https://bugs.llvm.org/show_bug.cgi?id=34950
Bug ID: 34950
Summary: clang reports incorrect line numbers for errors in
assembly files
Product: new-bugs
Version: 5.0
Hardware: Macintosh
OS: MacOS X
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedb...@nondot.org
Reporter: mike.benfi...@gmail.com
CC: llvm-bugs@lists.llvm.org
If my assembly file has comments, clang reports incorrect line numbers.
$ cat trash.s
.intel_syntax noprefix
.text
.global _main
_main:
# text
# text
# text
# text
# text
mov bogus_name, 20
# text
# text
# text
# text
# text
mov rax, 5
ret
$ clang trash.s
trash.s:16:6: error: ambiguous operand size for instruction 'mov'
mov bogus_name, 20
^~~~~~~~~~
That should be line 11, but it says 16.
Note that this is presumably caused by the same underlying problem as Bug
33664, which I reported earlier. I decided to report this new bug with a
different manifestation of the problem, because the other bug report got no
attention, despite apparently being critical to the basic usability of the
assembler. (Speaking of which... someone else somewhere is actually using
clang's assembler, right? It seems odd that a bug like this, one which surely
anyone using the software would notice and be frustrated by, could persist for
so long.)
--
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