aboutsummaryrefslogtreecommitdiffstats
path: root/config/zfs-build.m4
diff options
context:
space:
mode:
authorRichard Elling <[email protected]>2019-04-14 11:04:54 -0700
committerBrian Behlendorf <[email protected]>2019-04-14 11:04:54 -0700
commitd5d2ef2b268096f96d7fdf0743976d2a64cf51a2 (patch)
treee9bc7c28479f4c5a3f83328e12e1b84e52f21254 /config/zfs-build.m4
parent7dcd31883299b3ee3801dd701f7a986a0af9b2f9 (diff)
compile with -fno-omit-frame-pointer
By default, depending on the version, gcc can reuse the frame pointer register. This is a micro-optimization that might help on some very old x86 processors. However, it also makes dynamic tracing less useful because the stacks cannot be easily observed. This rule change instructs gcc to use the -fno-omit-frame-pointer option when compiling. Reviewed-by: Olaf Faaland <[email protected]> Reviewed by: Brian Behlendorf <[email protected]> Signed-off-by: Richard Elling <[email protected]> Closes #8617
Diffstat (limited to 'config/zfs-build.m4')
-rw-r--r--config/zfs-build.m41
1 files changed, 1 insertions, 0 deletions
diff --git a/config/zfs-build.m4 b/config/zfs-build.m4
index 6e305996e..8e221f2d7 100644
--- a/config/zfs-build.m4
+++ b/config/zfs-build.m4
@@ -157,6 +157,7 @@ AC_DEFUN([ZFS_AC_CONFIG_ALWAYS], [
ZFS_AC_CONFIG_ALWAYS_CC_NO_BOOL_COMPARE
ZFS_AC_CONFIG_ALWAYS_CC_FRAME_LARGER_THAN
ZFS_AC_CONFIG_ALWAYS_CC_NO_FORMAT_TRUNCATION
+ ZFS_AC_CONFIG_ALWAYS_CC_NO_OMIT_FRAME_POINTER
ZFS_AC_CONFIG_ALWAYS_CC_ASAN
ZFS_AC_CONFIG_ALWAYS_TOOLCHAIN_SIMD
ZFS_AC_CONFIG_ALWAYS_ARCH