Browse code

configure: fix arm inline asm checks

Commit 8c893aa3cd5 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: James Almer <jamrial@gmail.com>
(cherry picked from commit ad94f1c8abe68a2b38536cc96a31327c6be7b105)

John Cox authored on 2018/05/31 01:30:31
Showing 1 changed files
... ...
@@ -1036,7 +1036,7 @@ EOF
1036 1036
 
1037 1037
 check_insn(){
1038 1038
     log check_insn "$@"
1039
-    check_inline_asm ${1}_inline "$2"
1039
+    check_inline_asm ${1}_inline "\"$2\""
1040 1040
     check_as ${1}_external "$2"
1041 1041
 }
1042 1042