[PATCH] D119068: [libunwind] [sparc] Define _Unwind_Backtrace

Sam James via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 5 21:15:46 PST 2022


thesamesam created this revision.
thesamesam added reviewers: libunwind, koakuma, MaskRay, Arfrever.
Herald added subscribers: libcxx-commits, luke957, s.egerton, simoncook, fedor.sergeev, jyknight.
Herald added a project: libunwind.
Herald added 1 blocking reviewer(s): libunwind.
thesamesam requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead.
Herald added a project: LLVM.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D119068

Files:
  libunwind/src/config.h


Index: libunwind/src/config.h
===================================================================
--- libunwind/src/config.h
+++ libunwind/src/config.h
@@ -109,13 +109,11 @@
 #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(__ppc__) ||            \
+    defined(__ppc64__) || defined(__powerpc64__) ||                            \
+    (!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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119068.406226.patch
Type: text/x-patch
Size: 1184 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220206/bd9cf69a/attachment.bin>


More information about the llvm-commits mailing list