Commit fc315b47 by Jonathan Wakely Committed by Jonathan Wakely

Fix typos in packed attribute documentation

	* doc/extend.texi (Common Type Attributes): Fix typos.

From-SVN: r266267
parent 3087ed26
2018-11-19 Jonathan Wakely <jwakely@redhat.com>
* doc/extend.texi (Common Type Attributes): Fix typos.
2018-11-19 Martin Liska <mliska@suse.cz> 2018-11-19 Martin Liska <mliska@suse.cz>
PR gcov-profile/88045 PR gcov-profile/88045
...@@ -7317,7 +7317,7 @@ or @code{__pointer__} for the mode used to represent pointers. ...@@ -7317,7 +7317,7 @@ or @code{__pointer__} for the mode used to represent pointers.
@item packed @item packed
@cindex @code{packed} type attribute @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 type definition, specifies that each of its members (other than zero-width
bit-fields) is placed to minimize the memory required. This is equivalent bit-fields) is placed to minimize the memory required. This is equivalent
to specifying the @code{packed} attribute on each of the members. to specifying the @code{packed} attribute on each of the members.
...@@ -7349,7 +7349,7 @@ struct __attribute__ ((__packed__)) my_packed_struct ...@@ -7349,7 +7349,7 @@ struct __attribute__ ((__packed__)) my_packed_struct
@}; @};
@end smallexample @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}, of an @code{enum}, @code{struct}, @code{union}, or @code{class},
not on a @code{typedef} that does not also define the enumerated type, not on a @code{typedef} that does not also define the enumerated type,
structure, union, or class. structure, union, or class.
......
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