Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-02-07 20:37:08 +0300
committerFangrui Song <i@maskray.me>2022-02-07 20:37:09 +0300
commit022011078054c133777e1c3f8ea927bdef97f1fc (patch)
treecb8f21c7d805fad936f345230293a36d517e32b1 /libunwind/src/config.h
parent20e17323cd90d04f38cf35d70a3b7cac37d2e15d (diff)
[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
Diffstat (limited to 'libunwind/src/config.h')
-rw-r--r--libunwind/src/config.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/libunwind/src/config.h b/libunwind/src/config.h
index 560edda04eaa..5ae1604f657d 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