mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-09 10:31:14 +00:00
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
This commit is contained in:
parent
a84f3d9a97
commit
14c85cbf54
@ -78,7 +78,9 @@
|
|||||||
|
|
||||||
// ALWAYS_INLINE - On compilers where we have a directive to do so, mark a
|
// ALWAYS_INLINE - On compilers where we have a directive to do so, mark a
|
||||||
// method "always inline" because it is performance sensitive.
|
// 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))
|
#define ALWAYS_INLINE __attribute__((always_inline))
|
||||||
#else
|
#else
|
||||||
// TODO: No idea how to do this with MSVC.
|
// TODO: No idea how to do this with MSVC.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user