]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c-family/c-common.c
errors.h (warning, [...]): Mark as cold.
authorJan Hubicka <jh@suse.cz>
Tue, 6 Mar 2007 18:57:27 +0000 (19:57 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 6 Mar 2007 18:57:27 +0000 (18:57 +0000)
commit52bf96d2f299e9e69db82b5d0ae7186ab949339b
tree6db0f16a08d3e0f5d8feea8a59bd2d27420fa52d
parent20f326d7103a4d9d821a54ad5fa030c8a9aa2478
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
gcc/ChangeLog
gcc/c-common.c
gcc/doc/extend.texi
gcc/errors.h
gcc/function.h
gcc/predict.c
gcc/predict.def
include/ChangeLog
include/ansidecl.h