From: Martin Sebor Date: Fri, 12 Oct 2018 03:18:23 +0000 (+0000) Subject: extend.texi (attribute packed): Correct typos. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0b8c3649a512c4cd1a846a2f3e86150e824cbb41;p=gcc.git extend.texi (attribute packed): Correct typos. gcc/ChangeLog: * doc/extend.texi (attribute packed): Correct typos. From-SVN: r265076 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5aded93b4e2..67b39211811 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2018-10-11 Martin Sebor + + * doc/extend.texi (attribute packed): Correct typos. + 2018-10-11 Martin Sebor * doc/extend.texi (attribute flatten): Mention interaction with diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index 87021cd8e6e..34ecc4f8d14 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