* [committed/doc] fix typos in attribute copy
@ 2018-12-12 21:06 Martin Sebor
0 siblings, 0 replies; only message in thread
From: Martin Sebor @ 2018-12-12 21:06 UTC (permalink / raw)
To: Gcc Patch List
[-- Attachment #1: Type: text/plain, Size: 127 bytes --]
The attached patch committed in r267065 corrects a few minor
typos in the description of attribute copy in the manual.
Martin
[-- Attachment #2: gcc-doc-attr-copy-typos.diff --]
[-- Type: text/x-patch, Size: 3447 bytes --]
gcc/ChangeLog:
* doc/extend.texi (attribute copy): Fix typos.
Index: gcc/doc/extend.texi
===================================================================
--- gcc/doc/extend.texi (revision 267064)
+++ gcc/doc/extend.texi (working copy)
@@ -2658,8 +2658,8 @@ to specify the same set of attributes as their tar
attribute can be used with functions, variables, or types. However,
the kind of symbol to which the attribute is applied (either function
or variable) must match the kind of symbol to which the argument refers.
-The @code{copy} attribute copies only syntaxtic and semantic attributes
-but attributes that affect a symbol's linkage or visibility such as
+The @code{copy} attribute copies only syntactic and semantic attributes
+but not attributes that affect a symbol's linkage or visibility such as
@code{alias}, @code{visibility}, or @code{weak}. The @code{deprecated}
attribute is also not copied. @xref{Common Type Attributes}.
@xref{Common Variable Attributes}.
@@ -2666,7 +2666,7 @@ attribute is also not copied. @xref{Common Type A
For example, the @var{StrongAlias} macro below makes use of the @code{alias}
and @code{copy} attributes to define an alias named @var{alloc} for function
-@var{allocate} declated with attributes @var{alloc_size}, @var{malloc}, and
+@var{allocate} declared with attributes @var{alloc_size}, @var{malloc}, and
@var{nothrow}. Thanks to the @code{__typeof__} operator the alias has
the same type as the target function. As a result of the @code{copy}
attribute the alias also shares the same attributes as the target.
@@ -6338,8 +6338,8 @@ set of attributes as the aliased symbols. The @co
can be used with variables, functions or types. However, the kind
of symbol to which the attribute is applied (either varible or
function) must match the kind of symbol to which the argument refers.
-The @code{copy} attribute copies only syntaxtic and semantic attributes
-but attributes that affect a symbol's linkage or visibility such as
+The @code{copy} attribute copies only syntactic and semantic attributes
+but not attributes that affect a symbol's linkage or visibility such as
@code{alias}, @code{visibility}, or @code{weak}. The @code{deprecated}
attribute is also not copied. @xref{Common Function Attributes}.
@xref{Common Type Attributes}.
@@ -7295,14 +7295,14 @@ The @code{copy} attribute can be used with types,
functions. However, the kind of symbol to which the attribute is
applied (either varible or function) must match the kind of symbol
to which the argument refers.
-The @code{copy} attribute copies only syntaxtic and semantic attributes
-but attributes that affect a symbol's linkage or visibility such as
+The @code{copy} attribute copies only syntactic and semantic attributes
+but not attributes that affect a symbol's linkage or visibility such as
@code{alias}, @code{visibility}, or @code{weak}. The @code{deprecated}
attribute is also not copied. @xref{Common Function Attributes}.
@xref{Common Variable Attributes}.
For example, suppose @code{struct A} below is defined in some third
-partly library header to have the alignment requirement @code{N} and
+party library header to have the alignment requirement @code{N} and
to force a warning whenever a variable of the type is not so aligned
due to attribute @code{packed}. Specifying the @code{copy} attribute
on the definition on the unrelated @code{struct B} has the effect of
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-12-12 21:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-12 21:06 [committed/doc] fix typos in attribute copy Martin Sebor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).