Branch: Tag:

2017-11-04

2017-11-04 13:02:35 by Marcus Comstedt <marcus@mc.pp.se>

Build: Disable unaligned access on arm32

When building in a 32-bit chroot on Arch Linux on arm64, the GCC
define __ARM_FEATURE_UNALIGNED is set to 1 even though unaligned
accesses are not supported in 32 bit mode. Add a test on __arch64__
as well to prevent issues.

290:   #define GC2   #endif    - #if defined(i386) || defined(__powerpc__) || defined(__x86_64__) || defined(__ARM_FEATURE_UNALIGNED) + #if defined(i386) || defined(__powerpc__) || defined(__x86_64__) || (defined(__aarch64__) && defined(__ARM_FEATURE_UNALIGNED))   #ifndef HANDLES_UNALIGNED_MEMORY_ACCESS   #define HANDLES_UNALIGNED_MEMORY_ACCESS   #endif