Commit e9f9692b by Matthew Wilcox Committed by Mark Mitchell

extend.texi: Document behavior of __attribute__((aligned)) on typedefs.

	* doc/extend.texi: Document behavior of __attribute__((aligned))
	on typedefs.

From-SVN: r125747
parent c3a1ef9d
2007-06-15 Matthew Wilcox <matthew@wil.cx>
* doc/extend.texi: Document behavior of __attribute__((aligned))
on typedefs.
2007-06-15 Mark Mitchell <mark@codesourcery.com> 2007-06-15 Mark Mitchell <mark@codesourcery.com>
* rtlanal.c (note_stores): Improve documentation. * rtlanal.c (note_stores): Improve documentation.
......
...@@ -3153,8 +3153,11 @@ copy operations more efficient, because the compiler can use whatever ...@@ -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 instructions copy the biggest chunks of memory when performing copies to
or from the variables or fields that you have aligned this way. or from the variables or fields that you have aligned this way.
The @code{aligned} attribute can only increase the alignment; but you When used on a struct, or struct member, the @code{aligned} attribute can
can decrease it by specifying @code{packed} as well. See below. 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 Note that the effectiveness of @code{aligned} attributes may be limited
by inherent limitations in your linker. On many systems, the linker is by inherent limitations in your linker. On many systems, the linker is
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment