提交 ad94f1c8 编写于 作者: J John Cox 提交者: James Almer

configure: fix arm inline asm checks

Commit 8c893aa3 removed quotes that were required to detect
inline asm in clang:

check_insn armv5te qadd r0, r0, r0
.../test.c:1:34: error: expected string literal in 'asm'
void foo(void){ __asm__ volatile(qadd r0, r0, r0); }

The correct code is:

void foo(void){ __asm__ volatile("qadd r0, r0, r0"); }

Commit message written by Frank Liberato <liberato@chromium.org>
Signed-off-by: NJames Almer <jamrial@gmail.com>
上级 b7487720
......@@ -1042,7 +1042,7 @@ EOF
check_insn(){
log check_insn "$@"
check_inline_asm ${1}_inline "$2"
check_inline_asm ${1}_inline "\"$2\""
check_as ${1}_external "$2"
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册