* basic-block. (profile_record): New struct, moved from passes.c.
authorSteven Bosscher <steven@gcc.gnu.org>
Tue, 9 Oct 2012 20:37:11 +0000 (20:37 +0000)
committerSteven Bosscher <steven@gcc.gnu.org>
Tue, 9 Oct 2012 20:37:11 +0000 (20:37 +0000)
commitaa4723d7f56dd0c690c514b50c917c827a3d56dd
tree784313dcb1809538918556fac30dbf561f9d8332
parentca4277584fa6e046279dd3e75fdaa53881d9eaf3
* basic-block. (profile_record): New struct, moved from passes.c.

* cfghooks.h (struct cfg_hooks) <account_profile_record>: New hook.
(account_profile_record): New prototype.
* cfghooks.c (account_profile_record): New function.
* tree-cfg.c (gimple_account_profile_record): New function
(gimple_cfg_hooks): Add it.
* cfgrtl.c (rtl_account_profile_record): New function
(rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): Add it.
* passes.c (check_profile_consistency): Simplify.  Move IR-dependent
code around using cfghooks machinery.

From-SVN: r192271
gcc/ChangeLog
gcc/basic-block.h
gcc/cfghooks.c
gcc/cfghooks.h
gcc/cfgrtl.c
gcc/passes.c
gcc/tree-cfg.c