From fb28119a38457f37400c5d5f5bf73deb674400f3 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sat, 14 Nov 2015 01:21:55 +0100 Subject: [PATCH] Check inline assembly code using __asm__ __volatile__ --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 813e7259..bee45450 100644 --- a/configure.ac +++ b/configure.ac @@ -410,7 +410,7 @@ AS_IF([test "$enable_asm" != "no"],[ #else # error !x86_64 #endif -__asm__("pxor %xmm12,%xmm6"); +__asm__ __volatile__ ("pxor %xmm12,%xmm6"); ]])], [AC_MSG_RESULT(yes) AC_DEFINE([HAVE_AMD64_ASM], [1], [x86_64 asm code can be used]) @@ -433,7 +433,7 @@ AS_IF([test "$enable_asm" != "no"],[ #else # error !x86_64 #endif -__asm__("vpunpcklqdq %xmm0,%xmm13,%xmm0"); +__asm__ __volatile__ ("vpunpcklqdq %xmm0,%xmm13,%xmm0"); ]])], [AC_MSG_RESULT(yes) AC_DEFINE([HAVE_AVX_ASM], [1], [AVX opcodes are supported])