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: unassignedb...@nondot.org
Reporter: richard-l...@metafoo.co.uk
CC: llvm-bugs@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,@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs