aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandra Loosemore <sandra@codesourcery.com>2015-01-02 17:53:13 -0500
committerSandra Loosemore <sandra@gcc.gnu.org>2015-01-02 17:53:13 -0500
commitdd8d9ac47687708366b2e13dfa3a0ad31534cd74 (patch)
treed037e3eea126a406c68001417acbda71c0745e11
parentb0e657557c7c35cf1966292b6e373ccd5a9ecd65 (diff)
downloadgcc-dd8d9ac47687708366b2e13dfa3a0ad31534cd74.zip
gcc-dd8d9ac47687708366b2e13dfa3a0ad31534cd74.tar.gz
gcc-dd8d9ac47687708366b2e13dfa3a0ad31534cd74.tar.bz2
invoke.texi ([-fopt-info]): Fix markup, consolidate discussion of defaults, light copy-editing.
2015-01-02 Sandra Loosemore <sandra@codesourcery.com> gcc/ * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate discussion of defaults, light copy-editing. From-SVN: r219154
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/doc/invoke.texi99
2 files changed, 58 insertions, 46 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index fcb7923..714bfd8 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
+
+ * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
+ discussion of defaults, light copy-editing.
+
2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
* tsan.c (instrument_expr): corrected previous checkin.
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 9b978ee..1b3f1d6 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -6772,52 +6772,37 @@ Enable all the available tree dumps with the flags provided in this option.
@opindex fopt-info
Controls optimization dumps from various optimization passes. If the
@samp{-@var{options}} form is used, @var{options} is a list of
-@samp{-} separated options to select the dump details and
-optimizations. If @var{options} is not specified, it defaults to
-@option{optimized} for details and @option{optall} for optimization
-groups. If the @var{filename} is not specified, it defaults to
-@file{stderr}. Note that the output @var{filename} will be overwritten
-in case of multiple translation units. If a combined output from
-multiple translation units is desired, @file{stderr} should be used
-instead.
+@samp{-} separated option keywords to select the dump details and
+optimizations.
-The options can be divided into two groups, 1) options describing the
-verbosity of the dump, and 2) options describing which optimizations
+The @var{options} can be divided into two groups: options describing the
+verbosity of the dump, and options describing which optimizations
should be included. The options from both the groups can be freely
mixed as they are non-overlapping. However, in case of any conflicts,
-the latter options override the earlier options on the command
-line. Though multiple -fopt-info options are accepted, only one of
-them can have @option{=filename}. If other filenames are provided then
-all but the first one are ignored.
+the later options override the earlier options on the command
+line.
-The dump verbosity has the following options
+The following options control the dump verbosity:
@table @samp
@item optimized
Print information when an optimization is successfully applied. It is
up to a pass to decide which information is relevant. For example, the
-vectorizer passes print the source location of loops which got
+vectorizer passes print the source location of loops which are
successfully vectorized.
@item missed
Print information about missed optimizations. Individual passes
-control which information to include in the output. For example,
-
-@smallexample
-gcc -O2 -ftree-vectorize -fopt-info-vec-missed
-@end smallexample
-
-will print information about missed optimization opportunities from
-vectorization passes on stderr.
+control which information to include in the output.
@item note
Print verbose information about optimizations, such as certain
transformations, more detailed messages about decisions etc.
@item all
Print detailed optimization information. This includes
-@var{optimized}, @var{missed}, and @var{note}.
+@samp{optimized}, @samp{missed}, and @samp{note}.
@end table
-The second set of options describes a group of optimizations and may
-include one or more of the following.
+One or more of the following option keywords can be used to describe a
+group of optimizations:
@table @samp
@item ipa
@@ -6833,47 +6818,69 @@ Enable dumps from all optimizations. This is a superset of
the optimization groups listed above.
@end table
-For example,
+If @var{options} is
+omitted, it defaults to @samp{optimized-optall}, which means to dump all
+info about successful optimizations from all the passes.
+
+If the @var{filename} is provided, then the dumps from all the
+applicable optimizations are concatenated into the @var{filename}.
+Otherwise the dump is output onto @file{stderr}. Though multiple
+@option{-fopt-info} options are accepted, only one of them can include
+a @var{filename}. If other filenames are provided then all but the
+first such option are ignored.
+
+Note that the output @var{filename} is overwritten
+in case of multiple translation units. If a combined output from
+multiple translation units is desired, @file{stderr} should be used
+instead.
+
+In the following example, the optimization info is output to
+@file{stderr}:
+
+@smallexample
+gcc -O3 -fopt-info
+@end smallexample
+
+This example:
@smallexample
gcc -O3 -fopt-info-missed=missed.all
@end smallexample
+@noindent
outputs missed optimization report from all the passes into
-@file{missed.all}.
+@file{missed.all}, and this one:
-As another example,
@smallexample
-gcc -O3 -fopt-info-inline-optimized-missed=inline.txt
+gcc -O2 -ftree-vectorize -fopt-info-vec-missed
@end smallexample
-will output information about missed optimizations as well as
-optimized locations from all the inlining passes into
-@file{inline.txt}.
-
-If the @var{filename} is provided, then the dumps from all the
-applicable optimizations are concatenated into the @file{filename}.
-Otherwise the dump is output onto @file{stderr}. If @var{options} is
-omitted, it defaults to @option{all-optall}, which means dump all
-available optimization info from all the passes. In the following
-example, all optimization info is output on to @file{stderr}.
+@noindent
+prints information about missed optimization opportunities from
+vectorization passes on @file{stderr}.
+Note that @option{-fopt-info-vec-missed} is equivalent to
+@option{-fopt-info-missed-vec}.
+As another example,
@smallexample
-gcc -O3 -fopt-info
+gcc -O3 -fopt-info-inline-optimized-missed=inline.txt
@end smallexample
-Note that @option{-fopt-info-vec-missed} behaves the same as
-@option{-fopt-info-missed-vec}.
+@noindent
+outputs information about missed optimizations as well as
+optimized locations from all the inlining passes into
+@file{inline.txt}.
-As another example, consider
+Finally, consider:
@smallexample
gcc -fopt-info-vec-missed=vec.miss -fopt-info-loop-optimized=loop.opt
@end smallexample
+@noindent
Here the two output filenames @file{vec.miss} and @file{loop.opt} are
in conflict since only one output file is allowed. In this case, only
the first option takes effect and the subsequent options are
-ignored. Thus only the @file{vec.miss} is produced which contains
+ignored. Thus only @file{vec.miss} is produced which contains
dumps from the vectorizer about missed opportunities.
@item -frandom-seed=@var{number}