CVSROOT: /cvs
Module name: ports
Changes by: [email protected] 2017/08/24 06:28:52
Modified files:
archivers/lz4 : Makefile
Log message:
lz4 has several methods to handle unaligned access,
method 0: memcpy, "safe and portable"
method 1: __packed, "safe if your compiler supports it", used by default on
most arches.
method 2: direct access. "portable but violate C standard" (er, so not really
portable...)
"It can generate buggy code on targets which assembly generation depends on
alignment.
But in some circumstances, it's the only known way to get the most performance
(ie
GCC + ARMv6)".
The recent update to the port switched to method 2 if __ARM_ARCH_6K__ is
defined,
but this causes a bus error on armv7. Change to forcing __packed instead
(method 1)
to avoid the issue.
All worked out by, and diff from, Markus Hennecke.