From 95a16c4dbb26ecf4e7477eb4bb00a24b34402731 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Wed, 3 Apr 2013 01:39:37 +0000 Subject: Attempting to fix the build on older GCC versions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178604 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/Host.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Support/Host.cpp b/lib/Support/Host.cpp index 372b7fc..c353cc6 100644 --- a/lib/Support/Host.cpp +++ b/lib/Support/Host.cpp @@ -113,7 +113,8 @@ static bool GetX86CpuIDAndInfo(unsigned value, unsigned *rEAX, } static bool OSHasAVXSupport() { -#if defined(__GNUC__) +#if defined( __GNUC__ ) && \ + (__GNUC__ > 4 || __GNUC__ == 4 && __GNUC_MINOR__ >= 4) int rEAX, rEDX; __asm__ ("xgetbv" : "=a" (rEAX), "=d" (rEDX) : "c" (0)); #elif defined(_MSC_VER) -- cgit v1.1