[PATCH] D118320: llvm-libunwind build fix for GCC on PPC32

Arfrever Frehtes Taifersar Arahesis via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 27 00:20:26 PST 2022


Arfrever added inline comments.


================
Comment at: libunwind/include/__libunwind_config.h:58
 #  define _LIBUNWIND_HIGHEST_DWARF_REGISTER _LIBUNWIND_HIGHEST_DWARF_REGISTER_PPC64
-# elif defined(__ppc__)
+# elif defined(__ppc__) || defined(__PPC__)
 #  define _LIBUNWIND_TARGET_PPC 1
----------------
It would probably suffice:
```
# elif defined(__powerpc__)
```
Similarly in other places.


================
Comment at: libunwind/src/assembly.h:219
+#if defined(__ppc__) || defined(__PPC__) || defined(__powerpc64__)
 #define PPC_LEFT_SHIFT(index) << (index)
 #endif
----------------
```
#if defined(__powerpc__) || defined(__powerpc64__)
```


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

https://reviews.llvm.org/D118320



More information about the llvm-commits mailing list