From a28b26db0eabb4745b347abe84f06ab2a7dd0582 Mon Sep 17 00:00:00 2001 From: Julian Seward Date: Fri, 25 Nov 2005 02:47:00 +0000 Subject: [PATCH] Be paranoid about the alignment of the storage arrays. git-svn-id: svn://svn.valgrind.org/vex/trunk@1470 --- VEX/priv/main/vex_util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]; -- 2.47.2