From: Julian Seward Date: Fri, 25 Nov 2005 02:47:00 +0000 (+0000) Subject: Be paranoid about the alignment of the storage arrays. X-Git-Tag: svn/VALGRIND_3_1_1^2~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a28b26db0eabb4745b347abe84f06ab2a7dd0582;p=thirdparty%2Fvalgrind.git Be paranoid about the alignment of the storage arrays. git-svn-id: svn://svn.valgrind.org/vex/trunk@1470 --- diff --git a/VEX/priv/main/vex_util.c b/VEX/priv/main/vex_util.c index 0436e8ffa8..43159e0acf 100644 --- a/VEX/priv/main/vex_util.c +++ b/VEX/priv/main/vex_util.c @@ -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];