[all-commits] [llvm/llvm-project] 815b9f: [hwasan] Replace _Unwind_Word with uintptr_t

Fangrui Song via All-commits all-commits at lists.llvm.org
Sat Nov 6 22:35:04 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 815b9f53d85e32e13bf318be24e7ece0617ff85d
      https://github.com/llvm/llvm-project/commit/815b9f53d85e32e13bf318be24e7ece0617ff85d
  Author: Fangrui Song <i at maskray.me>
  Date:   2021-11-06 (Sat, 06 Nov 2021)

  Changed paths:
    M compiler-rt/lib/hwasan/hwasan_exceptions.cpp

  Log Message:
  -----------
  [hwasan] Replace _Unwind_Word with uintptr_t

GCC introduced `__attribute__((mode(unwind_word)))` to work around
Cell Broadband Engine SPU (which was removed from GCC in 2019-09),
which is irrelevant to hwasan.
_Unwind_GetGR/_Unwind_GetCFA from llvm-project/libunwind don't use unwind_word.

Using _Unwind_Word can lead to build failures if libunwind's unwind.h is
preferred over unwind.h in the Clang resource directory (e.g. built with GCC).




More information about the All-commits mailing list