Commit 0b8c3649 by Martin Sebor Committed by Martin Sebor

extend.texi (attribute packed): Correct typos.


gcc/ChangeLog:

	* doc/extend.texi (attribute packed): Correct typos.

From-SVN: r265076
parent 02f83058
2018-10-11 Martin Sebor <msebor@redhat.com> 2018-10-11 Martin Sebor <msebor@redhat.com>
* doc/extend.texi (attribute packed): Correct typos.
2018-10-11 Martin Sebor <msebor@redhat.com>
* doc/extend.texi (attribute flatten): Mention interaction with * doc/extend.texi (attribute flatten): Mention interaction with
noinline. noinline.
...@@ -6221,13 +6221,13 @@ int f (struct Data *pd, const char *s) ...@@ -6221,13 +6221,13 @@ int f (struct Data *pd, const char *s)
@item packed @item packed
@cindex @code{packed} variable attribute @cindex @code{packed} variable attribute
The @code{packed} attribute specifies that a variable or structure field The @code{packed} attribute specifies that a structure member should have
should have the smallest possible alignment---one byte for a variable, the smallest possible alignment---one bit for a bit-field and one byte
and one bit for a field, unless you specify a larger value with the otherwise, unless a larger value is specified with the @code{aligned}
@code{aligned} attribute. attribute. The attribute does not apply to non-member objects.
Here is a structure in which the field @code{x} is packed, so that it For example in the structure below, the member array @code{x} is packed
immediately follows @code{a}: so that it immediately follows @code{a} with no intervening padding:
@smallexample @smallexample
struct foo struct foo
......
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