diff options
author | Brian Behlendorf <behlendorf1@llnl.gov> | 2010-08-26 10:58:36 -0700 |
---|---|---|
committer | Brian Behlendorf <behlendorf1@llnl.gov> | 2010-08-31 08:38:49 -0700 |
commit | 60948de1ef976aabaa3630707bcc8b5867508507 (patch) | |
tree | 12d5530b229402e5b9f939f52eff043e84d3da76 /lib | |
parent | 18a89ba43d3e5e8a31d50838c93ec26d1cb27429 (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 <behlendorf1@llnl.gov>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libzpool/include/sys/zfs_context.h | 6 |
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 */ |