[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PULL 10/11] Make avx2 configure test work with -O2

From: Paolo Bonzini
Subject: [Qemu-devel] [PULL 10/11] Make avx2 configure test work with -O2
Date: Mon, 6 Jun 2016 19:35:19 +0200

From: "Dr. David Alan Gilbert" <address@hidden>

When configured with --extra-cflags=-O2 gcc optimised out the test
and the readelf failed the check leaving avx2 disabled.

Signed-off-by: Dr. David Alan Gilbert <address@hidden>
Message-Id: <address@hidden>
Reviewed-by: Liang Li <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index 6d01d96..08952af 100755
--- a/configure
+++ b/configure
@@ -1783,7 +1783,7 @@ fi
 cat > $TMPC << EOF
 static void bar(void) {}
 static void *bar_ifunc(void) {return (void*) bar;}
-static void foo(void) __attribute__((ifunc("bar_ifunc")));
+void foo(void) __attribute__((ifunc("bar_ifunc")));
 int main(void) { foo(); return 0; }
 if compile_prog "-mavx2" "" ; then

reply via email to

[Prev in Thread] Current Thread [Next in Thread]