[Bug 233405] sparc64: DWARF unwinder required for GCC 4.2.1 retirement

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Nov 9 01:36:53 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233405

--- Comment #7 from Conrad Meyer <cem at freebsd.org> ---
FWIW, I think this is all that is needed to fix libunwind on sparc64:

--- include/__libunwind_config.h        (revision 354566)
+++ include/__libunwind_config.h        (working copy)
@@ -124,7 +124,7 @@
   #define _LIBUNWIND_TARGET_SPARC 1
   #define _LIBUNWIND_HIGHEST_DWARF_REGISTER
_LIBUNWIND_HIGHEST_DWARF_REGISTER_SPARC
   #define _LIBUNWIND_CONTEXT_SIZE 16
-  #define _LIBUNWIND_CURSOR_SIZE 23
+  #define _LIBUNWIND_CURSOR_SIZE 28
 # else
 #  error "Unsupported architecture."
 # endif
--- src/config.h        (revision 354566)
+++ src/config.h        (working copy)
@@ -104,7 +106,8 @@
     (!defined(__APPLE__) && defined(__arm__)) ||                              
\
     (defined(__arm64__) || defined(__aarch64__)) ||                           
\
     defined(__mips__) ||                                                      
\
-    defined(__riscv)
+    defined(__riscv) ||                                                       
\
+    defined(__sparc__)
 #if !defined(_LIBUNWIND_BUILD_SJLJ_APIS)
 #define _LIBUNWIND_BUILD_ZERO_COST_APIS
 #endif

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list