projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a964ad5
)
Attempting to fix the build on older GCC versions.
author
Aaron Ballman
<aaron@aaronballman.com>
Wed, 3 Apr 2013 01:39:37 +0000
(
01:39
+0000)
committer
Aaron Ballman
<aaron@aaronballman.com>
Wed, 3 Apr 2013 01:39:37 +0000
(
01:39
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178604
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/Host.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/Host.cpp
b/lib/Support/Host.cpp
index 372b7fcc6c41c237edf1d55a7000760c4320a7fe..c353cc6887aa90a66f742e8749137241ad200d49 100644
(file)
--- a/
lib/Support/Host.cpp
+++ b/
lib/Support/Host.cpp
@@
-113,7
+113,8
@@
static bool GetX86CpuIDAndInfo(unsigned value, unsigned *rEAX,
}
static bool OSHasAVXSupport() {
\r
-#if defined(__GNUC__)
\r
+#if defined( __GNUC__ ) && \
\r
+ (__GNUC__ > 4 || __GNUC__ == 4 && __GNUC_MINOR__ >= 4)
\r
int rEAX, rEDX;
\r
__asm__ ("xgetbv" : "=a" (rEAX), "=d" (rEDX) : "c" (0));
\r
#elif defined(_MSC_VER)
\r