Commit 3028439e authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] work around gcc-3.x inlining bugs

Force inlining even when gcc-3.x is too confused to do it for us.
parent b85b717c
#ifndef __LINUX_COMPILER_H #ifndef __LINUX_COMPILER_H
#define __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 /* 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 a mechanism by which the user can annotate likely branch directions and
expect the blocks to be reordered appropriately. Define __builtin_expect expect the blocks to be reordered appropriately. Define __builtin_expect
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment