From: Eric Botcazou Date: Wed, 9 Jan 2019 08:25:55 +0000 (+0000) Subject: invoke.texi (-Os): Add reference to -finline-functions. X-Git-Tag: releases/gcc-7.5.0~668 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=768dd81d69821a6afedf96686e786f6a7a75c0a0;p=thirdparty%2Fgcc.git invoke.texi (-Os): Add reference to -finline-functions. * 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 066ff5a2895f..4e9b5fd35ea5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2019-01-09 Eric Botcazou + + * 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 revert: diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 09a9b077212b..a41d275e89d4 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -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