Please find attached a one line patch:

> Commit 8c893aa3cd5 removed quotes that were required to detect
>     inline asm in clank:
>
>     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"); }


Thanks
Frank
From 58c96127b6f1510b956b2280049d1c3778e3cab4 Mon Sep 17 00:00:00 2001
From: "liber...@chromium.org" <liber...@chromium.org>
Date: Tue, 29 May 2018 11:35:04 -0700
Subject: [PATCH] Replace quotes for inline asm detection.

Commit 8c893aa3cd5 removed quotes that were required to detect
inline asm in clank:

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"); }
---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index 22eeca22a5..4dbee8d349 100755
--- a/configure
+++ b/configure
@@ -1040,7 +1040,7 @@ EOF
 
 check_insn(){
     log check_insn "$@"
-    check_inline_asm ${1}_inline "$2"
+    check_inline_asm ${1}_inline "\"$2\""
     check_as ${1}_external "$2"
 }
 
-- 
2.17.0.921.gf22659ad46-goog

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to