[PATCH] D116857: [libunwind] [sparc] Add SPARCv9 support

Arfrever Frehtes Taifersar Arahesis via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 29 00:36:43 PST 2022


Arfrever added a comment.

In D116857#3281390 <https://reviews.llvm.org/D116857#3281390>, @thesamesam wrote:

> Apparently I have both `_LIBUNWIND_TARGET_SPARC` and `_LIBUNWIND_TARGET_SPARC64` set?

This happens when libunwind is configured with `-DLIBUNWIND_ENABLE_CROSS_UNWINDING=ON` passed to cmake.
Then https://github.com/llvm/llvm-project/blob/8faf2a0638d3e8d9411d55c3e5dfb7b452f35ca2/libunwind/CMakeLists.txt#L325-L328 does NOT enable `_LIBUNWIND_IS_NATIVE_ONLY`.
Then `#else // !_LIBUNWIND_IS_NATIVE_ONLY` block in `libunwind/include/__libunwind_config.h` is enabled and it contains (with changes from this patchset):

  # define _LIBUNWIND_TARGET_SPARC 1
  # define _LIBUNWIND_TARGET_SPARC64 1


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D116857/new/

https://reviews.llvm.org/D116857



More information about the llvm-commits mailing list