]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
invoke.texi (-Os): Add reference to -finline-functions.
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 9 Jan 2019 08:25:55 +0000 (08:25 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 9 Jan 2019 08:25:55 +0000 (08:25 +0000)
* doc/invoke.texi (-Os): Add reference to -finline-functions.
(-finline-small-functions): Add references to -O3 and -Os.
(-findirect-inlining): Likewise.
(-finline-functions): Add references to -Os, -fprofile-use and
-fauto-profile.

From-SVN: r267755

gcc/ChangeLog
gcc/doc/invoke.texi

index 066ff5a2895fc93c0189736f297b1dd794aae5c3..4e9b5fd35ea5f4f4c1a359ee30f9c56068ccecf7 100644 (file)
@@ -1,3 +1,11 @@
+2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * doc/invoke.texi (-Os): Add reference to -finline-functions.
+       (-finline-small-functions): Add references to -O3 and -Os.
+       (-findirect-inlining): Likewise.
+       (-finline-functions): Add references to -Os, -fprofile-use and
+       -fauto-profile.
+
 2019-01-03  Iain Sandoe  <iain@sandoe.co.uk>
 
        revert:
index 09a9b077212b2e7abfef4a0f92b2eea4b88c4f0a..a41d275e89d45514503810437b5249fd183d9b68 100644 (file)
@@ -7136,14 +7136,17 @@ results.  This is the default.
 @item -Os
 @opindex Os
 Optimize for size.  @option{-Os} enables all @option{-O2} optimizations that
-do not typically increase code size.  It also performs further
-optimizations designed to reduce code size.
+do not typically increase code size.
 
 @option{-Os} disables the following optimization flags:
 @gccoptlist{-falign-functions  -falign-jumps  -falign-loops @gol
 -falign-labels  -freorder-blocks  -freorder-blocks-algorithm=stc @gol
 -freorder-blocks-and-partition  -fprefetch-loop-arrays}
 
+It also enables @option{-finline-functions}, causes the compiler to tune for
+code size rather than execution speed, and performs further optimizations
+designed to reduce code size.
+
 @item -Ofast
 @opindex Ofast
 Disregard strict standards compliance.  @option{-Ofast} enables all
@@ -7261,7 +7264,7 @@ heuristically decides which functions are simple enough to be worth integrating
 in this way.  This inlining applies to all functions, even those not declared
 inline.
 
-Enabled at level @option{-O2}.
+Enabled at level @option{-O2}, @option{-O3}, @option{-Os}.
 
 @item -findirect-inlining
 @opindex findirect-inlining
@@ -7270,7 +7273,7 @@ time thanks to previous inlining.  This option has any effect only
 when inlining itself is turned on by the @option{-finline-functions}
 or @option{-finline-small-functions} options.
 
-Enabled at level @option{-O2}.
+Enabled at level @option{-O2}, @option{-O3}, @option{-Os}.
 
 @item -finline-functions
 @opindex finline-functions
@@ -7282,7 +7285,8 @@ If all calls to a given function are integrated, and the function is
 declared @code{static}, then the function is normally not output as
 assembler code in its own right.
 
-Enabled at level @option{-O3}.
+Enabled at levels @option{-O3}, @option{-Os}.  Also enabled
+by @option{-fprofile-use} and @option{-fauto-profile}.
 
 @item -finline-functions-called-once
 @opindex finline-functions-called-once