|author||Quentin Armitage <firstname.lastname@example.org>||2010-03-24 12:26:46 -0500|
|committer||Jeffrey C. Ollie <email@example.com>||2010-03-24 12:26:46 -0500|
Fix alignment on architectures where doubles are 64bit aligned, but pointers are smallerfedora-1.4
The tst-ikstack test fails on architectures where doubles are 64bit aligned, but pointers are smaller, hence ppc, sparc and arm have the problems. The issue is that the ikstack and ikschunk structures are not necessarily aligned to 64bits, and in fact ikschunk, with 32bit pointers, is 20 bytes long, and hence not aligned. The patch forces alignment of the two structures, and more importantly makes the sizes of the structs multiples of the size of a double. I have made a couple of other small changes: i) The ALIGN macro for a pointer that was already aligned was adding DEFAULT_ALIGNMENT bytes unnecessarily. The amendment also means that the parameter to the macro is only processed once. ii) The changing of char data to char data in the ikschunk struct avoids a wasted allocation of 4 bytes.
Diffstat (limited to 'ChangeLog')
0 files changed, 0 insertions, 0 deletions