]> git.hungrycats.org Git - linux/commit
[PATCH] Add noinline attribute
authorAndrew Morton <akpm@osdl.org>
Thu, 19 Feb 2004 00:38:18 +0000 (16:38 -0800)
committerDavid S. Miller <davem@nuts.davemloft.net>
Thu, 19 Feb 2004 00:38:18 +0000 (16:38 -0800)
commitce9209830680a4f351614fcc07ac6ea03d99012e
tree61060b62594babcbc95d77d930469beeff168bba
parentb882d4443755e112e90d1fc7049adff7c75aba17
[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.
include/linux/compiler-gcc3.h
include/linux/compiler.h