Add a few more cpus to a list of architectures requiring alignment, copy and pasted. Needs to be fixed better upstream.diff -r1.29 -r1.30 pkgsrc/www/webkit-gtk/distinfo
(martin)
@@ -1,8 +1,10 @@ | @@ -1,8 +1,10 @@ | |||
1 | $NetBSD: distinfo,v 1.29 2011/02/27 23:42:09 wiz Exp $ | 1 | $NetBSD: distinfo,v 1.30 2011/03/12 12:15:58 martin Exp $ | |
2 | 2 | |||
3 | SHA1 (webkit-1.2.7.tar.gz) = e9afc573d2459794c3749ba404f2187f9dcc9ed3 | 3 | SHA1 (webkit-1.2.7.tar.gz) = e9afc573d2459794c3749ba404f2187f9dcc9ed3 | |
4 | RMD160 (webkit-1.2.7.tar.gz) = f36b3ae05693e0eeb4d1936ceee52b6fe1517e57 | 4 | RMD160 (webkit-1.2.7.tar.gz) = f36b3ae05693e0eeb4d1936ceee52b6fe1517e57 | |
5 | Size (webkit-1.2.7.tar.gz) = 6615990 bytes | 5 | Size (webkit-1.2.7.tar.gz) = 6615990 bytes | |
6 | SHA1 (patch-ab) = 92a6d6e0def4c3fd77a692a199359255319f7f21 | 6 | SHA1 (patch-ab) = 92a6d6e0def4c3fd77a692a199359255319f7f21 | |
7 | SHA1 (patch-ad) = ef727a30bf78b747402a23fea7bddcc37d70e77d | 7 | SHA1 (patch-ad) = ef727a30bf78b747402a23fea7bddcc37d70e77d | |
8 | SHA1 (patch-af) = 7971cf7d873703e17c002fa660a949f6f6d1c684 | 8 | SHA1 (patch-af) = 7971cf7d873703e17c002fa660a949f6f6d1c684 | |
9 | SHA1 (patch-ag) = cfc37a4476b3e0ee2d74bdf416ac5e6028536df1 | |||
10 | SHA1 (patch-ah) = 4711ba7d5faae0629470fe4a681739971dec9d13 |
$NetBSD: patch-ag,v 1.1 2011/03/12 12:15:58 martin Exp $
It would be easier to list the CPUs where unaligned access is both allowed
and actually faster!
--- WebCore/platform/text/AtomicString.cpp.orig 2010-09-10 15:20:33.000000000 +0200
+++ WebCore/platform/text/AtomicString.cpp 2011-03-12 12:54:41.000000000 +0100
@@ -105,7 +105,7 @@ static inline bool equal(StringImpl* str
// FIXME: perhaps we should have a more abstract macro that indicates when
// going 4 bytes at a time is unsafe
-#if CPU(ARM) || CPU(SH4)
+#if CPU(ARM) || CPU(SH4) || CPU(PPC) || CPU(PPC64) || CPU(SPARC) || CPU(SPARC64) || CPU(MIPS)
const UChar* stringCharacters = string->characters();
for (unsigned i = 0; i != length; ++i) {
if (*stringCharacters++ != *characters++)
$NetBSD: patch-ah,v 1.1 2011/03/12 12:15:58 martin Exp $
--- WebCore/platform/text/StringHash.h.orig 2010-09-10 15:20:33.000000000 +0200
+++ WebCore/platform/text/StringHash.h 2011-03-12 13:04:40.000000000 +0100
@@ -54,7 +54,7 @@ namespace WebCore {
// FIXME: perhaps we should have a more abstract macro that indicates when
// going 4 bytes at a time is unsafe
-#if CPU(ARM) || CPU(SH4)
+#if CPU(ARM) || CPU(SH4) || CPU(PPC) || CPU(PPC64) || CPU(SPARC) || CPU(SPARC64) || CPU(MIPS)
const UChar* aChars = a->characters();
const UChar* bChars = b->characters();
for (unsigned i = 0; i != aLength; ++i) {