summaryrefslogtreecommitdiffstats
path: root/lib/libzpool
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2010-08-26 10:58:36 -0700
committerBrian Behlendorf <[email protected]>2010-08-31 08:38:49 -0700
commit60948de1ef976aabaa3630707bcc8b5867508507 (patch)
tree12d5530b229402e5b9f939f52eff043e84d3da76 /lib/libzpool
parent18a89ba43d3e5e8a31d50838c93ec26d1cb27429 (diff)
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 <[email protected]>
Diffstat (limited to 'lib/libzpool')
-rw-r--r--lib/libzpool/include/sys/zfs_context.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libzpool/include/sys/zfs_context.h b/lib/libzpool/include/sys/zfs_context.h
index 55b117c21..f2776566c 100644
--- a/lib/libzpool/include/sys/zfs_context.h
+++ b/lib/libzpool/include/sys/zfs_context.h
@@ -76,6 +76,12 @@ extern "C" {
#include <sys/sunddi.h>
/*
+ * Stack
+ */
+
+#define noinline __attribute__((noinline))
+
+/*
* Debugging
*/