extend.texi (Inline): Add missing return keyword to examples.

* doc/extend.texi (Inline): Add missing return keyword to examples.
	(Function Attributes, Variable Attributes, Pragmas): Hyphenate
	"command-line".

From-SVN: r158962
This commit is contained in:
Jonathan Wakely 2010-05-01 16:31:17 +00:00 committed by Jonathan Wakely
parent d4d437e4b5
commit bcbc9564cd
2 changed files with 15 additions and 9 deletions

View File

@ -1,3 +1,9 @@
2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
* doc/extend.texi (Inline): Add missing return keyword to examples.
(Function Attributes, Variable Attributes, Pragmas): Hyphenate
"command-line".
2010-04-30 Eric Botcazou <ebotcazou@adacore.com> 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
* tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of

View File

@ -2616,7 +2616,7 @@ an inlined PLT.
@cindex indirect calls on ARM @cindex indirect calls on ARM
This attribute specifies how a particular function is called on This attribute specifies how a particular function is called on
ARM@. Both attributes override the @option{-mlong-calls} (@pxref{ARM Options}) ARM@. Both attributes override the @option{-mlong-calls} (@pxref{ARM Options})
command line switch and @code{#pragma long_calls} settings. The command-line switch and @code{#pragma long_calls} settings. The
@code{long_call} attribute indicates that the function might be far @code{long_call} attribute indicates that the function might be far
away from the call site and require a different (more expensive) away from the call site and require a different (more expensive)
calling sequence. The @code{short_call} attribute always places calling sequence. The @code{short_call} attribute always places
@ -4166,7 +4166,7 @@ The @code{shared} attribute is only available on Microsoft Windows@.
@cindex @code{tls_model} attribute @cindex @code{tls_model} attribute
The @code{tls_model} attribute sets thread-local storage model The @code{tls_model} attribute sets thread-local storage model
(@pxref{Thread-Local}) of a particular @code{__thread} variable, (@pxref{Thread-Local}) of a particular @code{__thread} variable,
overriding @option{-ftls-model=} command line switch on a per-variable overriding @option{-ftls-model=} command-line switch on a per-variable
basis. basis.
The @var{tls_model} argument should be one of @code{global-dynamic}, The @var{tls_model} argument should be one of @code{global-dynamic},
@code{local-dynamic}, @code{initial-exec} or @code{local-exec}. @code{local-dynamic}, @code{initial-exec} or @code{local-exec}.
@ -4949,7 +4949,7 @@ declaration, like this:
static inline int static inline int
inc (int *a) inc (int *a)
@{ @{
(*a)++; return (*a)++;
@} @}
@end smallexample @end smallexample
@ -4967,7 +4967,7 @@ extern int inc (int *a);
inline int inline int
inc (int *a) inc (int *a)
@{ @{
(*a)++; return (*a)++;
@} @}
@end smallexample @end smallexample
@ -12240,7 +12240,7 @@ subsequent functions.
@table @code @table @code
@item memregs @var{number} @item memregs @var{number}
@cindex pragma, memregs @cindex pragma, memregs
Overrides the command line option @code{-memregs=} for the current Overrides the command-line option @code{-memregs=} for the current
file. Use with care! This pragma must be before any function in the file. Use with care! This pragma must be before any function in the
file, and mixing different memregs values in different objects may file, and mixing different memregs values in different objects may
make them incompatible. This pragma is useful when a make them incompatible. This pragma is useful when a
@ -12484,7 +12484,7 @@ to be a small power of two and specifies the new alignment in bytes.
@enumerate @enumerate
@item @code{#pragma pack(@var{n})} simply sets the new alignment. @item @code{#pragma pack(@var{n})} simply sets the new alignment.
@item @code{#pragma pack()} sets the alignment to the one that was in @item @code{#pragma pack()} sets the alignment to the one that was in
effect when compilation started (see also command line option effect when compilation started (see also command-line option
@option{-fpack-struct[=<n>]} @pxref{Code Gen Options}). @option{-fpack-struct[=<n>]} @pxref{Code Gen Options}).
@item @code{#pragma pack(push[,@var{n}])} pushes the current alignment @item @code{#pragma pack(push[,@var{n}])} pushes the current alignment
setting on an internal stack and then optionally sets the new alignment. setting on an internal stack and then optionally sets the new alignment.
@ -12553,7 +12553,7 @@ are controllable and which option controls them.
@var{kind} is @samp{error} to treat this diagnostic as an error, @var{kind} is @samp{error} to treat this diagnostic as an error,
@samp{warning} to treat it like a warning (even if @option{-Werror} is @samp{warning} to treat it like a warning (even if @option{-Werror} is
in effect), or @samp{ignored} if the diagnostic is to be ignored. in effect), or @samp{ignored} if the diagnostic is to be ignored.
@var{option} is a double quoted string which matches the command line @var{option} is a double quoted string which matches the command-line
option. option.
@example @example
@ -12562,14 +12562,14 @@ option.
#pragma GCC diagnostic ignored "-Wformat" #pragma GCC diagnostic ignored "-Wformat"
@end example @end example
Note that these pragmas override any command line options. Also, Note that these pragmas override any command-line options. Also,
while it is syntactically valid to put these pragmas anywhere in your while it is syntactically valid to put these pragmas anywhere in your
sources, the only supported location for them is before any data or sources, the only supported location for them is before any data or
functions are defined. Doing otherwise may result in unpredictable functions are defined. Doing otherwise may result in unpredictable
results depending on how the optimizer manages your sources. If the results depending on how the optimizer manages your sources. If the
same option is listed multiple times, the last one specified is the same option is listed multiple times, the last one specified is the
one that is in effect. This pragma is not intended to be a general one that is in effect. This pragma is not intended to be a general
purpose replacement for command line options, but for implementing purpose replacement for command-line options, but for implementing
strict control over project policies. strict control over project policies.
@end table @end table