Diego Biurrun
2018-06-07 21:01:08 UTC
Commit 8c893aa3cd5 removed quotes that were required to detect
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); }
void foo(void){ __asm__ volatile("qadd r0, r0, r0"); }
--- a/configure
+++ b/configure
@@ -866,7 +866,7 @@ EOF
check_insn(){
- check_inline_asm ${1}_inline "$2"
+ check_inline_asm ${1}_inline "\"$2\""
check_as ${1}_external "$2"
}
This does not look like the correct fix to me. The required quotescheck_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); }
void foo(void){ __asm__ volatile("qadd r0, r0, r0"); }
--- a/configure
+++ b/configure
@@ -866,7 +866,7 @@ EOF
check_insn(){
- check_inline_asm ${1}_inline "$2"
+ check_inline_asm ${1}_inline "\"$2\""
check_as ${1}_external "$2"
}
should be part of the convenience function instead. Notice how calls
to check_insn and check_inline_asm differ in the way they quote their
arguments. There should be no need for this inconsistency.
I'll look into it.
Diego