invoke.texi (Wsuggest-attribute=cold): Document.
authorJan Hubicka <hubicka@ucw.cz>
Sat, 7 Oct 2017 16:48:34 +0000 (18:48 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sat, 7 Oct 2017 16:48:34 +0000 (16:48 +0000)
commit12b9f3ac928e1ed7e3aa92cab42beb6317b27981
tree52d0be8478f0b04ec8cab8d8483d08112708c62e
parent59e2f25ee754cc258b55fac759afd6d47d8879d8
invoke.texi (Wsuggest-attribute=cold): Document.

* invoke.texi (Wsuggest-attribute=cold): Document.
* common.opt (Wsuggest-attribute=cold): New
* ipa-pure-const.c (warn_function_cold): New function.
* predict.c (compute_function_frequency): Use it.
* predict.h (warn_function_cold): Declare.

* gcc.dg/cold-1.c: New testcase.

From-SVN: r253513
gcc/ChangeLog
gcc/common.opt
gcc/doc/invoke.texi
gcc/ipa-pure-const.c
gcc/predict.c
gcc/predict.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cold-1.c [new file with mode: 0644]