diff options
| author | Andrew Morton <akpm@digeo.com> | 2003-03-10 07:42:00 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-03-10 07:42:00 -0800 |
| commit | 3028439efd88feebbc2b05dfaf782192a219f818 (patch) | |
| tree | d456a836e3c55d0aae2edaeb69e670a9501ccd63 /include/linux/compiler.h | |
| parent | b85b717cb5b85f8af683dfa73791e21d0491146b (diff) | |
[PATCH] work around gcc-3.x inlining bugs
Force inlining even when gcc-3.x is too confused to do it for us.
Diffstat (limited to 'include/linux/compiler.h')
| -rw-r--r-- | include/linux/compiler.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/compiler.h b/include/linux/compiler.h index e92f4723c1e2..a28d0d51b851 100644 --- a/include/linux/compiler.h +++ b/include/linux/compiler.h @@ -1,6 +1,12 @@ #ifndef __LINUX_COMPILER_H #define __LINUX_COMPILER_H +#if (__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1) +#define inline __inline__ __attribute__((always_inline)) +#define __inline__ __inline__ __attribute__((always_inline)) +#define __inline __inline__ __attribute__((always_inline)) +#endif + /* Somewhere in the middle of the GCC 2.96 development cycle, we implemented a mechanism by which the user can annotate likely branch directions and expect the blocks to be reordered appropriately. Define __builtin_expect |
