]> git.ipfire.org Git - thirdparty/gcc.git/commit - include/ChangeLog
* errors.h (warning, error, fatal, internal_error): Mark as cold.
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Mar 2007 18:57:27 +0000 (18:57 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Mar 2007 18:57:27 +0000 (18:57 +0000)
commit5de92639376d02c091b93418f3d4a0b25b92c26f
tree6db0f16a08d3e0f5d8feea8a59bd2d27420fa52d
parent4ea69e9efb4ab33b0ce910662afedbc496d319fa
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122632 138bc75d-0d04-0410-961f-82ee72b054a4
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