On Wed, Jan 28, 2009 at 09:26:13PM +0100, Dominique Pelle wrote: > One way to ensure alignment of sb_data on 8 bytes would be > to reorder fields in sblock_S as follows: > > *************** > *** 4961,4968 **** > typedef struct sblock_S sblock_T; > struct sblock_S > { > - sblock_T *sb_next; /* next block in list */ > int sb_used; /* nr of bytes already in use */ > char_u sb_data[1]; /* data, actually longer */ > }; > > --- 4961,4968 ---- > typedef struct sblock_S sblock_T; > struct sblock_S > { > int sb_used; /* nr of bytes already in use */ > + sblock_T *sb_next; /* next block in list */ > char_u sb_data[1]; /* data, actually longer, must be > aligned on 8 bytes */ > }; > > > Does this fix it? I don't have a 64-bit machine to test....
This fixed it for me on IA64 with the prctl environment. -- James GPG Key: 1024D/61326D40 2003-09-02 James Vega <james...@jamessan.com>
signature.asc
Description: Digital signature