diff options
author | Chris Lattner <sabre@nondot.org> | 2010-03-03 20:47:12 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-03-03 20:47:12 +0000 |
commit | 86ec2e8436cee014cf3193ae1530840a295f7389 (patch) | |
tree | eb2683fa715738c8479ac324ef3ede8e35069f21 | |
parent | c747febd51e2457e178beed6ad5da94237abd5f0 (diff) | |
download | bcm5719-llvm-86ec2e8436cee014cf3193ae1530840a295f7389.tar.gz bcm5719-llvm-86ec2e8436cee014cf3193ae1530840a295f7389.zip |
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.
llvm-svn: 97662
-rw-r--r-- | llvm/include/llvm/Support/Compiler.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/Compiler.h b/llvm/include/llvm/Support/Compiler.h index 1376e4664c2..881a0fea23e 100644 --- a/llvm/include/llvm/Support/Compiler.h +++ b/llvm/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. |