[llvm-commits] [llvm] r171408 - /llvm/trunk/include/llvm/Support/Compiler.h
Michael J. Spencer
bigcheesegs at gmail.com
Wed Jan 2 12:23:49 PST 2013
Author: mspencer
Date: Wed Jan 2 14:23:49 2013
New Revision: 171408
URL: http://llvm.org/viewvc/llvm-project?rev=171408&view=rev
Log:
Restrict __builtin_assume_aligned to gcc 4.7+
Modified:
llvm/trunk/include/llvm/Support/Compiler.h
Modified: llvm/trunk/include/llvm/Support/Compiler.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/Compiler.h?rev=171408&r1=171407&r2=171408&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/Compiler.h (original)
+++ llvm/trunk/include/llvm/Support/Compiler.h Wed Jan 2 14:23:49 2013
@@ -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
More information about the llvm-commits
mailing list