[PATCH] Introduce __BIGGEST_ALIGNMENT__ macro

mats petersson mats at planetcatfish.com
Sat Dec 13 13:15:53 PST 2014


So, what kind of documentation would you like to see?

The GCC docs here:
https://gcc.gnu.org/onlinedocs/gcc/Variable-Attributes.html

say: GCC also provides a target specific macro __BIGGEST_ALIGNMENT__, which
is the largest alignment ever used for any data type on the target machine
you are compiling for.

--
Mats

On 13 December 2014 at 20:24, Joerg Sonnenberger <joerg at britannica.bec.de>
wrote:

> On Sat, Dec 13, 2014 at 08:00:26PM +0000, mats petersson wrote:
> > Would it help to have some sort of test that tries to check the natural
> > alignment needed for various built in types - including vector types
> (such
> > as the ones used by SSE and AVX), and compare that with this constant?
> >
> > Or are you simply concerned that "this doesn't help much, since it
> doesn't
> > fix binaries already produced"?
>
> It doesn't help, so at the very least it has to be documented
> appropiately.
>
> Joerg
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141213/72f36e17/attachment.html>


More information about the cfe-commits mailing list