llvm-project/libunwind/include
Sam James cd20e579df [unwind] fix build with GCC on PPC32
Originally reported downstream in Gentoo: https://bugs.gentoo.org/832140

```
/var/tmp/portage/sys-libs/llvm-libunwind-13.0.0/work/libunwind/src/libunwind.cpp:77:3: error: #error Architecture not supported
   77 | # error Architecture not supported
      |   ^~~~~
[...]
/var/tmp/portage/sys-libs/llvm-libunwind-13.0.0/work/libunwind/src/libunwind.cpp: In function ‘int __unw_init_local(unw_cursor_t*, unw_context_t*)’:
/var/tmp/portage/sys-libs/llvm-libunwind-13.0.0/work/libunwind/src/libunwind.cpp:80:57: error: ‘REGISTER_KIND’ was not declared in this scope
   80 |   new (reinterpret_cast<UnwindCursor<LocalAddressSpace, REGISTER_KIND> *>(cursor))
      |                                                         ^~~~~~~~~~~~~
[...]
```

PPC is actually a supported architecture, but GCC (tested with 11.2.0)
on powerpc32 seems to only define: `__PPC__, _ARCH_PPC, __PPC,
__powerpc` and //not// `__ppc__`.

This instead uses `__powerpc__` which should be around on PPC32
and PPC64 (but we check it after PPC64, so it's fine).

Signed-off-by: Sam James <sam@gentoo.org>
Differential Revision: https://reviews.llvm.org/D118320
2022-01-27 23:05:11 +01:00
..
mach-o [runtimes][NFC] Remove filenames at the top of the license notice 2021-11-17 16:30:52 -05:00
CMakeLists.txt [libunwind][cmake] Create `LIBUNWIND_INSTALL_INCLUDE_DIR` CACHE PATH 2022-01-10 21:31:52 +00:00
__libunwind_config.h [unwind] fix build with GCC on PPC32 2022-01-27 23:05:11 +01:00
libunwind.h [ARM][libunwind] add PACBTI-M support for libunwind 2021-12-08 09:44:45 +00:00
unwind.h [runtimes][NFC] Remove filenames at the top of the license notice 2021-11-17 16:30:52 -05:00
unwind_arm_ehabi.h [ARM][libunwind] add PACBTI-M support for libunwind 2021-12-08 09:44:45 +00:00
unwind_itanium.h [runtimes][NFC] Remove filenames at the top of the license notice 2021-11-17 16:30:52 -05:00