* invoke.texi (Wsuggest-attribute=cold): Document.
commit60722a03da909c304c892f11c97025b5dd6142c5
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 7 Oct 2017 16:48:34 +0000 (7 16:48 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 7 Oct 2017 16:48:34 +0000 (7 16:48 +0000)
tree52d0be8478f0b04ec8cab8d8483d08112708c62e
parentb33f4eb038b5c30bf57de6bb10f40e11481c6be6
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@253513 138bc75d-0d04-0410-961f-82ee72b054a4
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]