[llvm-commits] [llvm] r97662 - /llvm/trunk/include/llvm/Support/Compiler.h

Chris Lattner sabre at nondot.org
Wed Mar 3 12:47:12 PST 2010


Author: lattner
Date: Wed Mar  3 14:47:12 2010
New Revision: 97662

URL: http://llvm.org/viewvc/llvm-project?rev=97662&view=rev
Log:
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.

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=97662&r1=97661&r2=97662&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/Compiler.h (original)
+++ llvm/trunk/include/llvm/Support/Compiler.h Wed Mar  3 14:47:12 2010
@@ -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.





More information about the llvm-commits mailing list