audacia/lib-src/libflac/bypass-constraint-problem.p...

12 lines
472 B
Diff

--- ../flac-1.3.1/src/libFLAC/cpu.c 2014-11-26 19:19:47.000000000 -0600
+++ src/libFLAC/cpu.c 2015-05-01 04:21:19.000000000 -0500
@@ -475,7 +475,7 @@
{
#if (defined _MSC_VER || defined __INTEL_COMPILER) && defined FLAC__AVX_SUPPORTED
return (FLAC__uint32)_xgetbv(0);
-#elif defined __GNUC__
+#elif defined __GNUC__ && !(__GNUC__ == 4 && __GNUC_MINOR__ == 0)
FLAC__uint32 lo, hi;
asm volatile (".byte 0x0f, 0x01, 0xd0" : "=a"(lo), "=d"(hi) : "c" (0));
return lo;