diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2018-11-19 09:52:41 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2018-11-19 09:52:41 +0000 |
commit | fc315b476948df23d6d9594b0d0107daafeaf8a7 (patch) | |
tree | 587ae118ff57bfdb1ee8fa9c4628f58f55f554fc | |
parent | 3087ed26fbcbe13a84b03b04b9a971c725ffd643 (diff) | |
download | gcc-fc315b476948df23d6d9594b0d0107daafeaf8a7.zip gcc-fc315b476948df23d6d9594b0d0107daafeaf8a7.tar.gz gcc-fc315b476948df23d6d9594b0d0107daafeaf8a7.tar.bz2 |
Fix typos in packed attribute documentation
* doc/extend.texi (Common Type Attributes): Fix typos.
From-SVN: r266267
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/doc/extend.texi | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dbabb6c..0b8ab0c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2018-11-19 Jonathan Wakely <jwakely@redhat.com> + + * doc/extend.texi (Common Type Attributes): Fix typos. + 2018-11-19 Martin Liska <mliska@suse.cz> PR gcov-profile/88045 diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index d230da9..0dff5e8 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -7317,7 +7317,7 @@ or @code{__pointer__} for the mode used to represent pointers. @item packed @cindex @code{packed} type attribute -This attribute, attached to @code{struct}, @code{union}, or C++ @code{class} +This attribute, attached to a @code{struct}, @code{union}, or C++ @code{class} type definition, specifies that each of its members (other than zero-width bit-fields) is placed to minimize the memory required. This is equivalent to specifying the @code{packed} attribute on each of the members. @@ -7349,7 +7349,7 @@ struct __attribute__ ((__packed__)) my_packed_struct @}; @end smallexample -You may only specify the @code{packed} attribute attribute on the definition +You may only specify the @code{packed} attribute on the definition of an @code{enum}, @code{struct}, @code{union}, or @code{class}, not on a @code{typedef} that does not also define the enumerated type, structure, union, or class. |