diff options
author | Sandra Loosemore <sandra@codesourcery.com> | 2018-11-26 13:22:19 -0500 |
---|---|---|
committer | Sandra Loosemore <sandra@gcc.gnu.org> | 2018-11-26 13:22:19 -0500 |
commit | 73d062d1184c1118c20aea50a8e2c32ad2d8e19a (patch) | |
tree | e6ed7a2d2741fd226cfdda1f0ec2515b41ddc606 /gcc | |
parent | 17f8ace20e0dd5459dc54681fed423126bb52d44 (diff) | |
download | gcc-73d062d1184c1118c20aea50a8e2c32ad2d8e19a.zip gcc-73d062d1184c1118c20aea50a8e2c32ad2d8e19a.tar.gz gcc-73d062d1184c1118c20aea50a8e2c32ad2d8e19a.tar.bz2 |
re PR c/57182 (Documentation implies -fprofile-arcs required to create .text.unlikely sections)
2018-11-26 Sandra Loosemore <sandra@codesourcery.com>
PR c/57182
gcc/
* doc/invoke.texi (Optimize Options): Document that
-freorder-functions also uses "hot" and "cold" attributes.
From-SVN: r266473
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/doc/invoke.texi | 5 |
2 files changed, 9 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9cffba9..d0b61c0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-11-26 Sandra Loosemore <sandra@codesourcery.com> + + PR c/57182 + * doc/invoke.texi (Optimize Options): Document that + -freorder-functions also uses "hot" and "cold" attributes. + 2018-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com> * config/aarch64/aarch64.c (aarch64_mangle_type): Fix typo in comment. diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index e70db55..93938ab 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -9796,8 +9796,9 @@ subsections @code{.text.hot} for most frequently executed functions and the linker so object file format must support named sections and linker must place them in a reasonable way. -Also profile feedback must be available to make this option effective. See -@option{-fprofile-arcs} for details. +This option isn't effective unless you either provide profile feedback +(see @option{-fprofile-arcs} for details) or manually annotate functions with +@code{hot} or @code{cold} attributes (@pxref{Common Function Attributes}). Enabled at levels @option{-O2}, @option{-O3}, @option{-Os}. |