aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Support/Compiler.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-03 20:47:12 +0000
committerChris Lattner <sabre@nondot.org>2010-03-03 20:47:12 +0000
commitee1e0619ac44b59e8694f0d506a58b7f76f2e635 (patch)
tree0149a7664fd152d542839231f1679b2963d3069a /include/llvm/Support/Compiler.h
parentf9bb4c0ba3cd719009d94f1dec8d0f7af56c6d82 (diff)
downloadexternal_llvm-ee1e0619ac44b59e8694f0d506a58b7f76f2e635.zip
external_llvm-ee1e0619ac44b59e8694f0d506a58b7f76f2e635.tar.gz
external_llvm-ee1e0619ac44b59e8694f0d506a58b7f76f2e635.tar.bz2
don't use always_inline with gcc 3.4, it has some unimplemented features
and is too old to really care about the performance of the generated compiler. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97662 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/Compiler.h')
-rw-r--r--include/llvm/Support/Compiler.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/Support/Compiler.h b/include/llvm/Support/Compiler.h
index 1376e46..881a0fe 100644
--- a/include/llvm/Support/Compiler.h
+++ b/include/llvm/Support/Compiler.h
@@ -78,7 +78,9 @@
// ALWAYS_INLINE - On compilers where we have a directive to do so, mark a
// method "always inline" because it is performance sensitive.
-#if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
+// GCC 3.4 supported this but is buggy in various cases and produces
+// unimplemented errors, just use it in GCC 4.0 and later.
+#if __GNUC__ > 3
#define ALWAYS_INLINE __attribute__((always_inline))
#else
// TODO: No idea how to do this with MSVC.