diff options
author | Stephen Kyle <stephen.kyle@arm.com> | 2018-07-25 10:43:06 +0100 |
---|---|---|
committer | Eugene Kliuchnikov <eustas@google.com> | 2018-07-25 11:43:06 +0200 |
commit | d4cd6cdf1cd52b75f871b6d75b1c8941454371db (patch) | |
tree | 8cc1350175fec10e612965d8719e86737a5a0e55 /java | |
parent | 8a073bd9e2d44b9b93411098989c31e63dc84753 (diff) | |
download | brotli-d4cd6cdf1cd52b75f871b6d75b1c8941454371db.zip brotli-d4cd6cdf1cd52b75f871b6d75b1c8941454371db.tar.gz brotli-d4cd6cdf1cd52b75f871b6d75b1c8941454371db.tar.bz2 |
platform: fix unaligned 64-bit accesses on AArch32 (#702)
Ensures that Aarch32 Arm builds with an Armv8 compiler do not set
BROTLI_64_BITS.
This scenario is possible with ChromeOS builds, as they may use a
toolchain with the target armv7-cros-gnueabi, but with -march=armv8.
This will set __ARM_ARCH to 8 (defining BROTLI_TARGET_ARMV8), but will
also set __ARM_32BIT_STATE and not __ARM_64BIT_STATE. Without this,
illegal 64-bit non-word-aligned reads (LDRD) may be emitted.
Also fix unaligned 64-bit reads on AArch32 - STRD was still possible to
emit.
Diffstat (limited to 'java')
0 files changed, 0 insertions, 0 deletions