On 10/11/18 9:03 PM, Martin Sebor wrote:
> The manual says that:
> 
>   The 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...
> 
> The variable part doesn't actually reflect reality: GCC and all
> other compilers I tested ignore the attribute with a warning on
> non-member objects, and only honor it on members.
> 
> The part that reads "and one bit for a field" is also incorrect:
> it most likely meant to say bit-field.
> 
> The attached change fixes both of these issues.
> 
> Martin
> 
> gcc-doc-attr-packed.diff
> 
> gcc/ChangeLog:
> 
>       * doc/extend.texi (attribute packed): Correct typos.
OK.
jeff

Reply via email to