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: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
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._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs