[libunwind] 0220110 - [libunwind] Define _Unwind_Backtrace for powerpc, sparc

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 7 09:37:12 PST 2022


Author: Sam James
Date: 2022-02-07T09:37:09-08:00
New Revision: 022011078054c133777e1c3f8ea927bdef97f1fc

URL: https://github.com/llvm/llvm-project/commit/022011078054c133777e1c3f8ea927bdef97f1fc
DIFF: https://github.com/llvm/llvm-project/commit/022011078054c133777e1c3f8ea927bdef97f1fc.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

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 cfe-commits mailing list