[all-commits] [llvm/llvm-project] 68c507: unwind: use a more portable endianness check in EHABI
Saleem Abdulrasool via All-commits
all-commits at lists.llvm.org
Fri May 29 08:28:58 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 68c50708d1f2b9aee3f10ec710df0b1387f701e5
https://github.com/llvm/llvm-project/commit/68c50708d1f2b9aee3f10ec710df0b1387f701e5
Author: Saleem Abdulrasool <compnerd at compnerd.org>
Date: 2020-05-29 (Fri, 29 May 2020)
Changed paths:
M libunwind/src/Unwind-EHABI.cpp
Log Message:
-----------
unwind: use a more portable endianness check in EHABI
The ARM specific code was trying to determine endianness using the
`__LITTLE_ENDIAN__` macro which is not guaranteed to be defined.
When not defined, it makes libunwind to build the big-endian code even
when the compiler builds for a little-endian target.
This change allows building libunwind with the `musl-gcc` toolchain
which does not define `__LITTLE_ENDIAN__`. Use `__BYTE_ORDER__`
instead.
Patch by Idan Freiberg!
More information about the All-commits
mailing list