diff options
| author | Andrew Morton <akpm@osdl.org> | 2004-02-18 16:38:18 -0800 |
|---|---|---|
| committer | David S. Miller <davem@nuts.davemloft.net> | 2004-02-18 16:38:18 -0800 |
| commit | ce9209830680a4f351614fcc07ac6ea03d99012e (patch) | |
| tree | 61060b62594babcbc95d77d930469beeff168bba /include/linux/compiler.h | |
| parent | b882d4443755e112e90d1fc7049adff7c75aba17 (diff) | |
[PATCH] Add noinline attribute
From: Andi Kleen <ak@muc.de>
This patch adds the `noinline' function attribute. It can be used to
explicitly tell the compiler to not inline functions.
We need this due to what is, IMO, a bug present in gcc-3.4 and current
gcc-3.5 CVS: the compiler is inlining init/main.c:rest_init() inside
init/main.c:start_kernel(), despite the fact that thay are declared to be
placed in different text sections.
Diffstat (limited to 'include/linux/compiler.h')
| -rw-r--r-- | include/linux/compiler.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/compiler.h b/include/linux/compiler.h index cc46aa0584f9..aeee438b861a 100644 --- a/include/linux/compiler.h +++ b/include/linux/compiler.h @@ -96,6 +96,10 @@ # define __attribute_const__ /* unimplemented */ #endif +#ifndef noinline +#define noinline +#endif + /* Optimization barrier */ #ifndef barrier # define barrier() __memory_barrier() |
