diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2017-10-07 18:48:34 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2017-10-07 16:48:34 +0000 |
commit | 12b9f3ac928e1ed7e3aa92cab42beb6317b27981 (patch) | |
tree | 52d0be8478f0b04ec8cab8d8483d08112708c62e /gcc/predict.h | |
parent | 59e2f25ee754cc258b55fac759afd6d47d8879d8 (diff) | |
download | gcc-12b9f3ac928e1ed7e3aa92cab42beb6317b27981.zip gcc-12b9f3ac928e1ed7e3aa92cab42beb6317b27981.tar.gz gcc-12b9f3ac928e1ed7e3aa92cab42beb6317b27981.tar.bz2 |
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
Diffstat (limited to 'gcc/predict.h')
-rw-r--r-- | gcc/predict.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/predict.h b/gcc/predict.h index 9b8b140..1b73ae2 100644 --- a/gcc/predict.h +++ b/gcc/predict.h @@ -102,4 +102,7 @@ extern void propagate_unlikely_bbs_forward (void); extern void add_reg_br_prob_note (rtx_insn *, profile_probability); +/* In ipa-pure-const.c */ +extern void warn_function_cold (tree); + #endif /* GCC_PREDICT_H */ |