aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.h
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2007-03-06 19:57:27 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2007-03-06 18:57:27 +0000
commit52bf96d2f299e9e69db82b5d0ae7186ab949339b (patch)
tree6db0f16a08d3e0f5d8feea8a59bd2d27420fa52d /gcc/function.h
parent20f326d7103a4d9d821a54ad5fa030c8a9aa2478 (diff)
downloadgcc-52bf96d2f299e9e69db82b5d0ae7186ab949339b.zip
gcc-52bf96d2f299e9e69db82b5d0ae7186ab949339b.tar.gz
gcc-52bf96d2f299e9e69db82b5d0ae7186ab949339b.tar.bz2
errors.h (warning, [...]): Mark as cold.
* errors.h (warning, error, fatal, internal_error): Mark as cold. * predict.c (maybe_hot_bb): Cold functions are never hot; hot functions are hot. (probably_cold_bb_p): Cold functions are cold. (probably_never_executed_bb_p): Cold functions are cold. (tree_bb_level_predictions): Predict calls to cold functions as not taken. (compute_function_frequency): Check hot/cold attributes. * function.h (function_frequency): Update comments. * predict.def (PRED_COLD_FUNCTION): Predict cold function. * c-common.c (handle_hot_attribute, handle_cold_attribute): New. (c_common_att): Add cold and hot. * doc/extend.texi (hot,cold attributes): Document. * ansidecl.h (ATTRIBUTE_COLD, ATTRIBUTE_HOT): New. From-SVN: r122632
Diffstat (limited to 'gcc/function.h')
-rw-r--r--gcc/function.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/function.h b/gcc/function.h
index e02077f..8543194 100644
--- a/gcc/function.h
+++ b/gcc/function.h
@@ -168,12 +168,12 @@ DEF_VEC_ALLOC_P(temp_slot_p,gc);
enum function_frequency {
/* This function most likely won't be executed at all.
- (set only when profile feedback is available). */
+ (set only when profile feedback is available or via function attribute). */
FUNCTION_FREQUENCY_UNLIKELY_EXECUTED,
/* The default value. */
FUNCTION_FREQUENCY_NORMAL,
/* Optimize this function hard
- (set only when profile feedback is available). */
+ (set only when profile feedback is available or via function attribute). */
FUNCTION_FREQUENCY_HOT
};