Commit 293267bc by Martin Sebor Committed by Martin Sebor

extend.texi (attribute copy): Fix typos.

gcc/ChangeLog:

	* doc/extend.texi (attribute copy): Fix typos.

From-SVN: r267065
parent 348846ff
2018-12-12 Martin Sebor <msebor@redhat.com> 2018-12-12 Martin Sebor <msebor@redhat.com>
* doc/extend.texi (attribute copy): Fix typos.
2018-12-12 Martin Sebor <msebor@redhat.com>
* doc/extend.texi (Function Attributes): Clarify C++ aspects. * doc/extend.texi (Function Attributes): Clarify C++ aspects.
(Variable Attributes): Same. (Variable Attributes): Same.
(Type Attributes): Same. (Type Attributes): Same.
...@@ -2658,15 +2658,15 @@ to specify the same set of attributes as their targets. The @code{copy} ...@@ -2658,15 +2658,15 @@ to specify the same set of attributes as their targets. The @code{copy}
attribute can be used with functions, variables, or types. However, attribute can be used with functions, variables, or types. However,
the kind of symbol to which the attribute is applied (either function 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. or variable) must match the kind of symbol to which the argument refers.
The @code{copy} attribute copies only syntaxtic and semantic attributes The @code{copy} attribute copies only syntactic and semantic attributes
but attributes that affect a symbol's linkage or visibility such as but not attributes that affect a symbol's linkage or visibility such as
@code{alias}, @code{visibility}, or @code{weak}. The @code{deprecated} @code{alias}, @code{visibility}, or @code{weak}. The @code{deprecated}
attribute is also not copied. @xref{Common Type Attributes}. attribute is also not copied. @xref{Common Type Attributes}.
@xref{Common Variable Attributes}. @xref{Common Variable Attributes}.
For example, the @var{StrongAlias} macro below makes use of the @code{alias} 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 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 @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} 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. attribute the alias also shares the same attributes as the target.
...@@ -6338,8 +6338,8 @@ set of attributes as the aliased symbols. The @code{copy} attribute ...@@ -6338,8 +6338,8 @@ set of attributes as the aliased symbols. The @code{copy} attribute
can be used with variables, functions or types. However, the kind can be used with variables, functions or types. However, the kind
of symbol to which the attribute is applied (either varible or of symbol to which the attribute is applied (either varible or
function) must match the kind of symbol to which the argument refers. function) must match the kind of symbol to which the argument refers.
The @code{copy} attribute copies only syntaxtic and semantic attributes The @code{copy} attribute copies only syntactic and semantic attributes
but attributes that affect a symbol's linkage or visibility such as but not attributes that affect a symbol's linkage or visibility such as
@code{alias}, @code{visibility}, or @code{weak}. The @code{deprecated} @code{alias}, @code{visibility}, or @code{weak}. The @code{deprecated}
attribute is also not copied. @xref{Common Function Attributes}. attribute is also not copied. @xref{Common Function Attributes}.
@xref{Common Type Attributes}. @xref{Common Type Attributes}.
...@@ -7295,14 +7295,14 @@ The @code{copy} attribute can be used with types, variables, or ...@@ -7295,14 +7295,14 @@ The @code{copy} attribute can be used with types, variables, or
functions. However, the kind of symbol to which the attribute is functions. However, the kind of symbol to which the attribute is
applied (either varible or function) must match the kind of symbol applied (either varible or function) must match the kind of symbol
to which the argument refers. to which the argument refers.
The @code{copy} attribute copies only syntaxtic and semantic attributes The @code{copy} attribute copies only syntactic and semantic attributes
but attributes that affect a symbol's linkage or visibility such as but not attributes that affect a symbol's linkage or visibility such as
@code{alias}, @code{visibility}, or @code{weak}. The @code{deprecated} @code{alias}, @code{visibility}, or @code{weak}. The @code{deprecated}
attribute is also not copied. @xref{Common Function Attributes}. attribute is also not copied. @xref{Common Function Attributes}.
@xref{Common Variable Attributes}. @xref{Common Variable Attributes}.
For example, suppose @code{struct A} below is defined in some third 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 to force a warning whenever a variable of the type is not so aligned
due to attribute @code{packed}. Specifying the @code{copy} attribute due to attribute @code{packed}. Specifying the @code{copy} attribute
on the definition on the unrelated @code{struct B} has the effect of on the definition on the unrelated @code{struct B} has the effect of
......
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