[doc PATCH] document when GCC ignores attribute aligned

Martin Sebor msebor@gmail.com
Tue Dec 4 03:23:00 GMT 2018

Last week we agreed to clarify that attribute aligned on a function
can decrease its alignment if it hasn't been previously declared
with one.  Attached is this change.

Besides the above, I also mention that the attribute specifies
the alignment of the first instruction of the function (in case
that wasn't obvious) , and that it has no effect in the absence
of a definition.

I wrote some tests to convince myself this actually works as
I expected.  Where it does I add those tests to the testsuite
via this patch.  Where it doesn't I opened a bug (PR 88345).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc-doc-attr-func-align.diff
Type: text/x-patch
Size: 3912 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20181204/5306c87c/attachment.bin>

More information about the Gcc-patches mailing list