From 12b9f3ac928e1ed7e3aa92cab42beb6317b27981 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sat, 7 Oct 2017 18:48:34 +0200 Subject: 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/predict.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/predict.h') 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 */ -- cgit v1.1