OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8b18df
)
Restrict __builtin_assume_aligned to gcc 4.7+
author
Michael J. Spencer
<bigcheesegs@gmail.com>
Wed, 2 Jan 2013 20:23:49 +0000
(20:23 +0000)
committer
Michael J. Spencer
<bigcheesegs@gmail.com>
Wed, 2 Jan 2013 20:23:49 +0000
(20:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171408
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Support/Compiler.h
patch
|
blob
|
history
diff --git
a/include/llvm/Support/Compiler.h
b/include/llvm/Support/Compiler.h
index
c2ee882
..
5ed30a4
100644
(file)
--- a/
include/llvm/Support/Compiler.h
+++ b/
include/llvm/Support/Compiler.h
@@
-240,7
+240,8
@@
/// \macro LLVM_ASSUME_ALIGNED
/// \brief Returns a pointer with an assumed alignment.
-#if defined(__GNUC__) && !defined(__clang__)
+#if !defined(__clang__) && ((__GNUC__ > 4) \
+ || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7))
// FIXME: Enable on clang when it supports it.
# define LLVM_ASSUME_ALIGNED(p, a) __builtin_assume_aligned(p, a)
#else