From 3ec60ac9878de5d0317ad38fc545080a4bfaa74f Mon Sep 17 00:00:00 2001 From: "snappy.mirrorbot@gmail.com" Date: Wed, 4 Jul 2012 09:28:33 +0000 Subject: [PATCH] Mark ARMv4 as not supporting unaligned accesses (not just ARMv5 and ARMv6); apparently Debian still targets these by default, giving us segfaults on armel. R=sanjay git-svn-id: https://snappy.googlecode.com/svn/trunk@64 03e5f5b5-db94-4691-08a0-1a8bf15f6143 --- snappy-stubs-internal.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/snappy-stubs-internal.h b/snappy-stubs-internal.h index 6817c2b..12393b6 100644 --- a/snappy-stubs-internal.h +++ b/snappy-stubs-internal.h @@ -118,6 +118,8 @@ static const int64 kint64max = static_cast(0x7FFFFFFFFFFFFFFFLL); // This is a mess, but there's not much we can do about it. #elif defined(__arm__) && \ + !defined(__ARM_ARCH_4__) && \ + !defined(__ARM_ARCH_4T__) && \ !defined(__ARM_ARCH_5__) && \ !defined(__ARM_ARCH_5T__) && \ !defined(__ARM_ARCH_5TE__) && \