diff options
author | Martin Sebor <msebor@redhat.com> | 2018-10-12 03:18:23 +0000 |
---|---|---|
committer | Martin Sebor <msebor@gcc.gnu.org> | 2018-10-11 21:18:23 -0600 |
commit | 0b8c3649a512c4cd1a846a2f3e86150e824cbb41 (patch) | |
tree | 7ba06f11547c14bcd18ad37ee54dc75e3ac17705 /gcc | |
parent | 02f8305836b792c8ce66fe811e5e9964f674a5ef (diff) | |
download | gcc-0b8c3649a512c4cd1a846a2f3e86150e824cbb41.zip gcc-0b8c3649a512c4cd1a846a2f3e86150e824cbb41.tar.gz gcc-0b8c3649a512c4cd1a846a2f3e86150e824cbb41.tar.bz2 |
extend.texi (attribute packed): Correct typos.
gcc/ChangeLog:
* doc/extend.texi (attribute packed): Correct typos.
From-SVN: r265076
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/doc/extend.texi | 12 |
2 files changed, 10 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5aded93..67b3921 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 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 noinline. diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index 87021cd..34ecc4f 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -6221,13 +6221,13 @@ int f (struct Data *pd, const char *s) @item packed @cindex @code{packed} variable attribute -The @code{packed} attribute specifies that a variable or structure field -should have the smallest possible alignment---one byte for a variable, -and one bit for a field, unless you specify a larger value with the -@code{aligned} attribute. +The @code{packed} attribute specifies that a structure member should have +the smallest possible alignment---one bit for a bit-field and one byte +otherwise, unless a larger value is specified with the @code{aligned} +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 -immediately follows @code{a}: +For example in the structure below, the member array @code{x} is packed +so that it immediately follows @code{a} with no intervening padding: @smallexample struct foo |