From fc315b476948df23d6d9594b0d0107daafeaf8a7 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Mon, 19 Nov 2018 09:52:41 +0000 Subject: [PATCH] Fix typos in packed attribute documentation * doc/extend.texi (Common Type Attributes): Fix typos. From-SVN: r266267 --- gcc/ChangeLog | 4 ++++ gcc/doc/extend.texi | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dbabb6c3150..0b8ab0c754e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2018-11-19 Jonathan Wakely + + * doc/extend.texi (Common Type Attributes): Fix typos. + 2018-11-19 Martin Liska PR gcov-profile/88045 diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index d230da977d4..0dff5e86ed1 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. -- 2.30.2