This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r122632 - in /trunk: gcc/ChangeLog gcc/c-common...
- From: hubicka at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Tue, 06 Mar 2007 18:57:28 -0000
- Subject: r122632 - in /trunk: gcc/ChangeLog gcc/c-common...
Author: hubicka
Date: Tue Mar 6 18:57:27 2007
New Revision: 122632
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122632
Log:
* 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.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-common.c
trunk/gcc/doc/extend.texi
trunk/gcc/errors.h
trunk/gcc/function.h
trunk/gcc/predict.c
trunk/gcc/predict.def
trunk/include/ChangeLog
trunk/include/ansidecl.h