]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Be paranoid about the alignment of the storage arrays.
authorJulian Seward <jseward@acm.org>
Fri, 25 Nov 2005 02:47:00 +0000 (02:47 +0000)
committerJulian Seward <jseward@acm.org>
Fri, 25 Nov 2005 02:47:00 +0000 (02:47 +0000)
git-svn-id: svn://svn.valgrind.org/vex/trunk@1470

VEX/priv/main/vex_util.c

index 0436e8ffa8641b6d0e9c1a419223e5c584096972..43159e0acfe5c87c3d6dd7dc566973e6b4fcf082 100644 (file)
@@ -64,7 +64,7 @@
 */
 #define N_TEMPORARY_BYTES 2400000
 
-static HChar  temporary[N_TEMPORARY_BYTES];
+static HChar  temporary[N_TEMPORARY_BYTES] __attribute__((aligned(8)));
 static HChar* temporary_first = &temporary[0];
 static HChar* temporary_curr  = &temporary[0];
 static HChar* temporary_last  = &temporary[N_TEMPORARY_BYTES-1];
@@ -73,7 +73,7 @@ static ULong  temporary_bytes_allocd_TOT = 0;
 
 #define N_PERMANENT_BYTES 1000
 
-static HChar  permanent[N_TEMPORARY_BYTES];
+static HChar  permanent[N_TEMPORARY_BYTES] __attribute__((aligned(8)));
 static HChar* permanent_first = &permanent[0];
 static HChar* permanent_curr  = &permanent[0];
 static HChar* permanent_last  = &permanent[N_TEMPORARY_BYTES-1];