This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r253513 - in /trunk/gcc: ChangeLog common.opt d...
- From: hubicka at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Sat, 07 Oct 2017 16:48:34 -0000
- Subject: r253513 - in /trunk/gcc: ChangeLog common.opt d...
Author: hubicka
Date: Sat Oct 7 16:48:34 2017
New Revision: 253513
URL: https://gcc.gnu.org/viewcvs?rev=253513&root=gcc&view=rev
Log:
* 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.
Added:
trunk/gcc/testsuite/gcc.dg/cold-1.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/common.opt
trunk/gcc/doc/invoke.texi
trunk/gcc/ipa-pure-const.c
trunk/gcc/predict.c
trunk/gcc/predict.h
trunk/gcc/testsuite/ChangeLog