Sat Mar 12 12:15:58 2011 UTC ()
Add a few more cpus to a list of architectures requiring alignment, copy
and pasted. Needs to be fixed better upstream.


(martin)
diff -r1.29 -r1.30 pkgsrc/www/webkit-gtk/distinfo
diff -r0 -r1.1 pkgsrc/www/webkit-gtk/patches/patch-ag
diff -r0 -r1.1 pkgsrc/www/webkit-gtk/patches/patch-ah

cvs diff -r1.29 -r1.30 pkgsrc/www/webkit-gtk/distinfo (expand / switch to unified diff)

--- pkgsrc/www/webkit-gtk/distinfo 2011/02/27 23:42:09 1.29
+++ pkgsrc/www/webkit-gtk/distinfo 2011/03/12 12:15:58 1.30
@@ -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
3SHA1 (webkit-1.2.7.tar.gz) = e9afc573d2459794c3749ba404f2187f9dcc9ed3 3SHA1 (webkit-1.2.7.tar.gz) = e9afc573d2459794c3749ba404f2187f9dcc9ed3
4RMD160 (webkit-1.2.7.tar.gz) = f36b3ae05693e0eeb4d1936ceee52b6fe1517e57 4RMD160 (webkit-1.2.7.tar.gz) = f36b3ae05693e0eeb4d1936ceee52b6fe1517e57
5Size (webkit-1.2.7.tar.gz) = 6615990 bytes 5Size (webkit-1.2.7.tar.gz) = 6615990 bytes
6SHA1 (patch-ab) = 92a6d6e0def4c3fd77a692a199359255319f7f21 6SHA1 (patch-ab) = 92a6d6e0def4c3fd77a692a199359255319f7f21
7SHA1 (patch-ad) = ef727a30bf78b747402a23fea7bddcc37d70e77d 7SHA1 (patch-ad) = ef727a30bf78b747402a23fea7bddcc37d70e77d
8SHA1 (patch-af) = 7971cf7d873703e17c002fa660a949f6f6d1c684 8SHA1 (patch-af) = 7971cf7d873703e17c002fa660a949f6f6d1c684
 9SHA1 (patch-ag) = cfc37a4476b3e0ee2d74bdf416ac5e6028536df1
 10SHA1 (patch-ah) = 4711ba7d5faae0629470fe4a681739971dec9d13

File Added: pkgsrc/www/webkit-gtk/patches/Attic/patch-ag
$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++)

File Added: pkgsrc/www/webkit-gtk/patches/Attic/patch-ah
$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) {