]> git.sesse.net Git - ffmpeg/commitdiff
configure: fix arm inline asm checks
authorJohn Cox <jc@kynesim.co.uk>
Wed, 30 May 2018 16:30:31 +0000 (17:30 +0100)
committerJames Almer <jamrial@gmail.com>
Wed, 6 Jun 2018 13:38:01 +0000 (10:38 -0300)
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>
configure

index 53224f0ed55cefb16720a0f1efe3e478f00cc063..625cfef2ffff3e60d372231cde4a3703b36ca1e1 100755 (executable)
--- a/configure
+++ b/configure
@@ -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"
 }