summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2013-04-03 01:39:37 +0000
committerAaron Ballman <aaron@aaronballman.com>2013-04-03 01:39:37 +0000
commit56be6ba5e422ac0e6f80337c8d278ff7cd6b857d (patch)
tree36f249bc1079fcb247ca0c37621cb8e7b9fd8aa0 /llvm/lib/Support
parenta0e9d39b55f5282dcf508b8174922fb642bd7f1d (diff)
downloadbcm5719-llvm-56be6ba5e422ac0e6f80337c8d278ff7cd6b857d.tar.gz
bcm5719-llvm-56be6ba5e422ac0e6f80337c8d278ff7cd6b857d.zip
Attempting to fix the build on older GCC versions.
llvm-svn: 178604
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/Host.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Support/Host.cpp b/llvm/lib/Support/Host.cpp
index 372b7fcc6c4..c353cc6887a 100644
--- a/llvm/lib/Support/Host.cpp
+++ b/llvm/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)
OpenPOWER on IntegriCloud