aboutsummaryrefslogtreecommitdiff
path: root/lib/libunwind/src/libunwind.cpp
diff options
context:
space:
mode:
authorKoakuma <koachan@protonmail.com>2022-02-13 22:16:22 +0700
committerGitHub <noreply@github.com>2022-02-13 17:16:22 +0200
commit55fa349ad946aaa4e2ff5a5dc2a3f0d6bce64282 (patch)
treefbd8365132d929851ec418d048a90aaafd1d575e /lib/libunwind/src/libunwind.cpp
parentb5f8fb85e64022ed1ee59ff70753577839ad41b6 (diff)
downloadzig-55fa349ad946aaa4e2ff5a5dc2a3f0d6bce64282.tar.gz
zig-55fa349ad946aaa4e2ff5a5dc2a3f0d6bce64282.zip
Import SPARCv9 libunwind
Import LLVM's D32450/D116857 patch to enable unwinding support on SPARCv9 systems.
Diffstat (limited to 'lib/libunwind/src/libunwind.cpp')
-rw-r--r--lib/libunwind/src/libunwind.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libunwind/src/libunwind.cpp b/lib/libunwind/src/libunwind.cpp
index dca403c863..ac01246e86 100644
--- a/lib/libunwind/src/libunwind.cpp
+++ b/lib/libunwind/src/libunwind.cpp
@@ -69,6 +69,8 @@ _LIBUNWIND_HIDDEN int __unw_init_local(unw_cursor_t *cursor,
# define REGISTER_KIND Registers_mips_newabi
#elif defined(__mips__)
# warning The MIPS architecture is not supported with this ABI and environment!
+#elif defined(__sparc__) && defined(__arch64__)
+# define REGISTER_KIND Registers_sparc64
#elif defined(__sparc__)
# define REGISTER_KIND Registers_sparc
#elif defined(__riscv)