diff options
author | Martin Sebor <msebor@redhat.com> | 2018-11-09 17:17:47 +0000 |
---|---|---|
committer | Martin Sebor <msebor@redhat.com> | 2018-11-09 17:17:47 +0000 |
commit | 06a1e91ffd0b802c19b9051fa0ec577b18856373 (patch) | |
tree | c03d55a7a70661243c37eb7fddc8bd2d673e9754 /gcc/doc/tm.texi | |
parent | 7a68f3d7cdb0006f5a75c96fc276f1e3b99e1705 (diff) |
PR c/87795 - Excessive alignment permitted for functions and labels
gcc/c-family/ChangeLog:
PR c/87795
* c-common.c (check_user_alignment): Use MAX_OFILE_ALIGNMENT.
gcc/testsuite/ChangeLog:
PR c/87795
* gcc.dg/attr-aligned.c: New test.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@265977 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/doc/tm.texi')
-rw-r--r-- | gcc/doc/tm.texi | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index 54ca5183493..ce3e9ff2f8f 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -1081,8 +1081,11 @@ If not defined, the default value is @code{STACK_BOUNDARY}. @defmac MAX_OFILE_ALIGNMENT Biggest alignment supported by the object file format of this machine. Use this macro to limit the alignment which can be specified using the -@code{__attribute__ ((aligned (@var{n})))} construct. If not defined, -the default value is @code{BIGGEST_ALIGNMENT}. +@code{__attribute__ ((aligned (@var{n})))} construct for functions and +objects with static storage duration. The alignment of automatic +objects may exceed the object file format maximum up to the maximum +supported by GCC. If not defined, the default value is +@code{BIGGEST_ALIGNMENT}. On systems that use ELF, the default (in @file{config/elfos.h}) is the largest supported 32-bit ELF section alignment representable on |