Hans Leidekker hans@it.vu.nl writes:
Clearly GCC is the odd one out. When a double is embedded in a structure GCC does not adjust the alignment of the structure to the size of a double.
So, should we add -malign-double to the compiler flags?
No, that would break Unix compatibility. We have to explicitly pad the structures that need it.