diff options
author | Gvozden Neskovic <[email protected]> | 2016-06-29 22:31:25 +0200 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-07-11 16:53:02 -0700 |
commit | 590c9a09946939a389e1f01dadd27efb4b2fe8fd (patch) | |
tree | 103a2f98877f7a67bbd204c8bdbe0348275741ea /module/zfs/vdev_raidz_math_scalar.c | |
parent | 5c27b296055301f13103ca0aa98c2ded01dcd9a0 (diff) |
Allow building with `CFLAGS="-O0"`
If compiled with -O0, gcc doesn't do any stack frame coalescing
and -Wframe-larger-than=1024 is triggered in debug mode.
Starting with gcc 4.8, new opt level -Og is introduced for debugging, which
does not trigger this warning.
Fix bench zio size, using SPA_OLD_MAXBLOCKSHIFT
Signed-off-by: Gvozden Neskovic <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #4799
Diffstat (limited to 'module/zfs/vdev_raidz_math_scalar.c')
-rw-r--r-- | module/zfs/vdev_raidz_math_scalar.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/module/zfs/vdev_raidz_math_scalar.c b/module/zfs/vdev_raidz_math_scalar.c index 39b90a344..846b2e5e4 100644 --- a/module/zfs/vdev_raidz_math_scalar.c +++ b/module/zfs/vdev_raidz_math_scalar.c @@ -211,6 +211,14 @@ static const struct { #include "vdev_raidz_math_impl.h" +/* + * If compiled with -O0, gcc doesn't do any stack frame coalescing + * and -Wframe-larger-than=1024 is triggered in debug mode. + * Starting with gcc 4.8, new opt level -Og is introduced for debugging, which + * does not trigger this warning. + */ +#pragma GCC diagnostic ignored "-Wframe-larger-than=" + DEFINE_GEN_METHODS(scalar); DEFINE_REC_METHODS(scalar); |