[llvm-branch-commits] [libunwind] c0fde75 - [libunwind] Define _Unwind_Backtrace for powerpc, sparc
Fangrui Song via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Feb 7 09:38:19 PST 2022
Author: Sam James
Date: 2022-02-07T09:38:08-08:00
New Revision: c0fde7580aac12143d63291af452e261808dc4ec
URL: https://github.com/llvm/llvm-project/commit/c0fde7580aac12143d63291af452e261808dc4ec
DIFF: https://github.com/llvm/llvm-project/commit/c0fde7580aac12143d63291af452e261808dc4ec.diff
LOG: [libunwind] Define _Unwind_Backtrace for powerpc, sparc
Add SPARC to the list of platforms for which we provide a full
unwind implementation which leads to _Unwind_Backtrace being defined within
libunwind.so.
Likewise for PPC (see D118320 for background).
Reviewed By: #libunwind, MaskRay, Arfrever
Differential Revision: https://reviews.llvm.org/D119068
(cherry picked from commit 022011078054c133777e1c3f8ea927bdef97f1fc)
Added:
Modified:
libunwind/src/config.h
Removed:
################################################################################
diff --git a/libunwind/src/config.h b/libunwind/src/config.h
index 560edda04eaa9..5ae1604f657dd 100644
--- a/libunwind/src/config.h
+++ b/libunwind/src/config.h
@@ -109,13 +109,10 @@
#define _LIBUNWIND_SUPPORT_FRAME_APIS
#endif
-#if defined(__i386__) || defined(__x86_64__) || \
- defined(__ppc__) || defined(__ppc64__) || defined(__powerpc64__) || \
- (!defined(__APPLE__) && defined(__arm__)) || \
- defined(__aarch64__) || \
- defined(__mips__) || \
- defined(__riscv) || \
- defined(__hexagon__)
+#if defined(__i386__) || defined(__x86_64__) || defined(__powerpc__) || \
+ (!defined(__APPLE__) && defined(__arm__)) || defined(__aarch64__) || \
+ defined(__mips__) || defined(__riscv) || defined(__hexagon__) || \
+ defined(__sparc__)
#if !defined(_LIBUNWIND_BUILD_SJLJ_APIS)
#define _LIBUNWIND_BUILD_ZERO_COST_APIS
#endif
More information about the llvm-branch-commits
mailing list