ref: 8c439da4eadb59afb704b97e12bfab45fc802698
parent: 49d4effeea9107d18f6897255139d30fc80204df
author: Rudi Heitbaum <rudi@heitbaum.com>
date: Sat Mar 9 12:39:20 EST 2024
Extended asm with C operands doesn’t work at top level
fix the following test in the meson.build
stderr:
testfile.c:6:34: error: expected ')' before '::' token
6 |__asm__ (""::)
| ~ ^~
| )
testfile.c:6:37: error: expected ';' at end of input
6 |__asm__ (""::)
| ^
| ;
-----------
Checking if "compiler supports gcc-style inline assembly" compiles: NO
refer:
- https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41045
Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com>
Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
--- a/meson.build
+++ b/meson.build
@@ -227,7 +227,7 @@
#error GCC before 3.4 has critical bugs compiling inline assembly
#endif
#endif
- __asm__ (""::)''',+ int main(int argc, char ** argv) { __asm__ (""::); }''',name : 'compiler supports gcc-style inline assembly')
opus_conf.set('OPUS_ARM_INLINE_ASM', 1)--
⑨