mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-05 10:50:51 +08:00
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
This commit is contained in:
parent
17f8ace20e
commit
73d062d118
@ -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.
|
||||
|
@ -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}.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user