[flac-dev] [PATCH] fix LLVM compile

Olivier Tristan o.tristan at uvi.net
Mon Feb 27 13:11:27 UTC 2017


Hi guys,

Please find attached a patch that fixes the OSX build with llvm
only __asm__ is supported but GCC support both so it's not an issue using
this one AFAIK.

lvqcl can probably confirm this.

Thanks !



-- 
Olivier Tristan
Research & Development
www.uvi.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xiph.org/pipermail/flac-dev/attachments/20170227/631ac282/attachment.html>
-------------- next part --------------
diff --git a/src/libFLAC/cpu.c b/src/libFLAC/cpu.c
index 67a076d..bf0708c 100644
--- a/src/libFLAC/cpu.c
+++ b/src/libFLAC/cpu.c
@@ -81,7 +81,7 @@ cpu_xgetbv_x86(void)
 	return (uint32_t)_xgetbv(0);
 #elif defined __GNUC__
 	uint32_t lo, hi;
-	asm volatile (".byte 0x0f, 0x01, 0xd0" : "=a"(lo), "=d"(hi) : "c" (0));
+	__asm__ volatile (".byte 0x0f, 0x01, 0xd0" : "=a"(lo), "=d"(hi) : "c" (0));
 	return lo;
 #else
 	return 0;


More information about the flac-dev mailing list