Fix stack noinline

Certain function must never be automatically inlined by gcc because
they are stack heavy or called recursively.  This patch flags all
such functions I've found as 'noinline' to prevent gcc from making
the optimization.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
Brian Behlendorf
2010-08-26 10:58:36 -07:00
parent 18a89ba43d
commit 60948de1ef
3 changed files with 21 additions and 7 deletions
+6
View File
@@ -75,6 +75,12 @@ extern "C" {
#include <sys/sysevent/dev.h>
#include <sys/sunddi.h>
/*
* Stack
*/
#define noinline __attribute__((noinline))
/*
* Debugging
*/