Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Jan 2020 20:37:04 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r356513 - in head/contrib/llvm-project/libunwind: include src
Message-ID:  <202001082037.008Kb4kH089848@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Wed Jan  8 20:37:03 2020
New Revision: 356513
URL: https://svnweb.freebsd.org/changeset/base/356513

Log:
  libunwind: untested attempt to fix sparc64 build
  
  sparc64 is the only architecture currently using the DWARF unwinder from
  GCC 4.2.1.  Old GCC and related libraries are being removed soon; absent
  other changes sparc64 would be left with no unwinder when that happens.
  
  Instead, commit these changes which should at least allow the LLVM
  unwinder to build.  Someone with access to the obolete sparc64 hardware
  supported by FreeBSD will need to test the result.
  
  PR:		233405
  Submitted by:	cem

Modified:
  head/contrib/llvm-project/libunwind/include/__libunwind_config.h
  head/contrib/llvm-project/libunwind/src/config.h

Modified: head/contrib/llvm-project/libunwind/include/__libunwind_config.h
==============================================================================
--- head/contrib/llvm-project/libunwind/include/__libunwind_config.h	Wed Jan  8 19:08:44 2020	(r356512)
+++ head/contrib/llvm-project/libunwind/include/__libunwind_config.h	Wed Jan  8 20:37:03 2020	(r356513)
@@ -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

Modified: head/contrib/llvm-project/libunwind/src/config.h
==============================================================================
--- head/contrib/llvm-project/libunwind/src/config.h	Wed Jan  8 19:08:44 2020	(r356512)
+++ head/contrib/llvm-project/libunwind/src/config.h	Wed Jan  8 20:37:03 2020	(r356513)
@@ -104,7 +104,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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202001082037.008Kb4kH089848>