"H.J. Lu" <hjl.to...@gmail.com> writes: > Fixing BIGGEST_ALIGNMENT to 16 may require extensive changes. > I am thinking to add DEFAULT_ALIGNMENT with > > #ifndef DEFAULT_ALIGNMENT > #define DEFAULT_ALIGNMENT BIGGEST_ALIGNMENT > #endif > > and use it only for attribute((aligned)).
This does need to be done, but DEFAULT_ALIGNMENT is a poorly chosen name. It should be something more like ATTRIBUTE_ALIGNED_VALUE. Ian