summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2014-03-31 01:58:32 (GMT)
committerJason Evans <jasone@canonware.com>2014-03-31 01:58:32 (GMT)
commite181f5aa76d3a9d59a4e0ce46867349334f286d1 (patch)
treed5640666412cc95a30b0c52fb279ca0b5582ab62
parente64b1b7be9319b187360306ceff17ce6cb2d530c (diff)
downloadjemalloc-e181f5aa76d3a9d59a4e0ce46867349334f286d1.zip
jemalloc-e181f5aa76d3a9d59a4e0ce46867349334f286d1.tar.gz
jemalloc-e181f5aa76d3a9d59a4e0ce46867349334f286d1.tar.bz2
Keep frame pointers if using gcc frame intrinsics.
Specify -fno-omit-frame-pointer when using __builtin_frame_address() and __builtin_return_address() for backtracing. This fixes backtracing failures on e.g. i686 for optimized builds.
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index d5c663e..3521a70 100644
--- a/configure.ac
+++ b/configure.ac
@@ -784,6 +784,7 @@ fi
)
if test "x$backtrace_method" = "x" -a "x$enable_prof_gcc" = "x1" \
-a "x$GCC" = "xyes" ; then
+ JE_CFLAGS_APPEND([-fno-omit-frame-pointer])
backtrace_method="gcc intrinsics"
AC_DEFINE([JEMALLOC_PROF_GCC], [ ])
else