[llvm-bugs] [Bug 48092] New: assembly emission fails to escape symbols starting with a digit
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Nov 5 16:32:12 PST 2020
https://bugs.llvm.org/show_bug.cgi?id=48092
Bug ID: 48092
Summary: assembly emission fails to escape symbols starting
with a digit
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Support Libraries
Assignee: unassignedbugs at nondot.org
Reporter: richard-llvm at metafoo.co.uk
CC: llvm-bugs at lists.llvm.org
Testcase:
$ echo 'int n asm("9") = 0;' | clang -x c - -c -fno-integrated-as
/tmp/--9c2337.s: Assembler messages:
/tmp/--9c2337.s:3: Error: Missing symbol name in directive
/tmp/--9c2337.s:3: Error: unrecognized symbol type "9"
[...]
This works fine without -fno-integrated-as. The problem appears to be that the
symbol name is written directly to the output assembly file:
.text
.file "-"
.type 9, at object # @"9"
.bss
.globl 9
.p2align 2
9:
.long 0 # 0x0
.size 9, 4
... instead of being enclosed in double-quotes.
--
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/20201106/0c54ea24/attachment-0001.html>
More information about the llvm-bugs
mailing list