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
This commit is contained in:
Ed Maste 2020-01-08 20:37:03 +00:00
parent f10405323a
commit 7cf3f9952d
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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