[llvm-bugs] [Bug 44017] New: Can't override default max nesting depth for integrated assembly with clang frontend
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Nov 15 14:23:56 PST 2019
https://bugs.llvm.org/show_bug.cgi?id=44017
Bug ID: 44017
Summary: Can't override default max nesting depth for
integrated assembly with clang frontend
Product: clang
Version: 9.0
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: renat at idrisov.info
CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
richard-llvm at metafoo.co.uk
Created attachment 22818
--> https://bugs.llvm.org/attachment.cgi?id=22818&action=edit
Sample program
Hi All,
I can't find a way to override `-asm-macro-max-nesting-depth` with clang.
$ cat bug1.s
.macro FOO start, end
.if \start <= \end
nop
FOO %(\start+1), \end
.endif
.endm
LEAF(__test)
FOO 1 50
$ clang -x assembler-with-cpp -integrated-as -o bug1.obj bug1.s
...
<instantiation>:3:13: error: macros cannot be nested more than 20 levels deep.
Use -asm-macro-max-nesting-depth to increase this limit.
...
$ clang -x assembler-with-cpp -integrated-as -Xassembler
-asm-macro-max-nesting-depth=100 -o bug1.obj bug1.s
clang: error: unsupported argument '-asm-macro-max-nesting-depth=100' to option
'Xassembler'
$ clang --version
clang version 9.0.1-+2019110812332108004e858e4ac00-1~exp1~20191108215024.72
Target: x86_64-pc-linux-gnu
Thanks!
--
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/20191115/161070f3/attachment-0001.html>
More information about the llvm-bugs
mailing list