From 91ff3114492f368a651ee790c8311eb6fadf3e8e Mon Sep 17 00:00:00 2001 From: Aliaksey Kandratsenka Date: Sun, 14 Feb 2021 22:36:55 -0800 Subject: don't default to generic_fp without frame pointers I.e. on x86-64 and riscv. --- src/stacktrace.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/stacktrace.cc b/src/stacktrace.cc index 140dff1..2a2c648 100644 --- a/src/stacktrace.cc +++ b/src/stacktrace.cc @@ -231,7 +231,9 @@ static bool get_stack_impl_inited; static GetStackImplementation *get_stack_impl = &impl__instrument; #elif defined(HAVE_GST_win32) static GetStackImplementation *get_stack_impl = &impl__win32; -#elif defined(HAVE_GST_generic_fp) && (!defined(HAVE_GST_libunwind) || defined(TCMALLOC_DONT_PREFER_LIBUNWIND)) +#elif defined(HAVE_GST_generic_fp) && !defined(NO_FRAME_POINTER) \ + && !defined(__riscv) \ + && (!defined(HAVE_GST_libunwind) || defined(TCMALLOC_DONT_PREFER_LIBUNWIND)) static GetStackImplementation *get_stack_impl = &impl__generic_fp; #elif defined(HAVE_GST_x86) && defined(TCMALLOC_DONT_PREFER_LIBUNWIND) static GetStackImplementation *get_stack_impl = &impl__x86; -- cgit v1.2.1