[PATCH] Introduce __BIGGEST_ALIGNMENT__ macro
Joerg Sonnenberger
joerg at britannica.bec.de
Sat Dec 13 10:06:52 PST 2014
On Sat, Dec 13, 2014 at 05:51:27PM +0000, mats petersson wrote:
> Add a predefined macro reflecting the largest alignment required by
> the archiecture, in bytes. This is useful for allocator designs that
> need to know the system alignment requirements. It reflects the
> TargetInfo.SuitableAlignment, converted to bytes (using CharWidth).
The one issue I have with this is that exports data that may change in
the future. What is the stability guarantee for it? Consider i386 -- for
a very long time, nothing required more than 32bit alignment. Only the
introduction of SSE2 changed that.
Joerg
More information about the cfe-commits
mailing list