diff options
author | Matthew Wilcox <matthew@wil.cx> | 2007-06-16 00:33:01 +0700 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2007-06-15 17:33:01 +0000 |
commit | e9f9692b8e2fc785122da79746837e7e42b39f7b (patch) | |
tree | 64c2b0a950160d9aad2bf0f6f6118e76ba26209b /gcc/doc | |
parent | c3a1ef9da91830ce359ad89a5cfec2fa9de509ef (diff) | |
download | gcc-e9f9692b8e2fc785122da79746837e7e42b39f7b.zip gcc-e9f9692b8e2fc785122da79746837e7e42b39f7b.tar.gz gcc-e9f9692b8e2fc785122da79746837e7e42b39f7b.tar.bz2 |
extend.texi: Document behavior of __attribute__((aligned)) on typedefs.
* doc/extend.texi: Document behavior of __attribute__((aligned))
on typedefs.
From-SVN: r125747
Diffstat (limited to 'gcc/doc')
-rw-r--r-- | gcc/doc/extend.texi | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index baeff30..c957757 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -3153,8 +3153,11 @@ copy operations more efficient, because the compiler can use whatever instructions copy the biggest chunks of memory when performing copies to or from the variables or fields that you have aligned this way. -The @code{aligned} attribute can only increase the alignment; but you -can decrease it by specifying @code{packed} as well. See below. +When used on a struct, or struct member, the @code{aligned} attribute can +only increase the alignment; in order to decrease it, the @code{packed} +attribute must be specified as well. When used as part of a typedef, the +@code{aligned} attribute can both increase and decrease alignment, and +specifying the @code{packed} attribute will generate a warning. Note that the effectiveness of @code{aligned} attributes may be limited by inherent limitations in your linker. On many systems, the linker is |