sh.c (sh_output_mi_thunk): Check cfun->cfg instead of basic_block_info.
* config/sh/sh.c (sh_output_mi_thunk): Check cfun->cfg instead of basic_block_info. Call init_flow and find_basic_blocks before dbr_schedule if needed. From-SVN: r99710
This commit is contained in:
parent
84c53dddc9
commit
652ad06233
2 changed files with 15 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
2005-05-14 Kaz Kojima <kkojima@gcc.gnu.org>
|
||||
|
||||
* config/sh/sh.c (sh_output_mi_thunk): Check cfun->cfg instead
|
||||
of basic_block_info. Call init_flow and find_basic_blocks
|
||||
before dbr_schedule if needed.
|
||||
|
||||
2005-05-14 Kazu Hirata <kazu@cs.umass.edu>
|
||||
|
||||
* tree-optimize.c (init_tree_optimization_passes): Move
|
||||
|
|
|
@ -10301,7 +10301,7 @@ sh_output_mi_thunk (FILE *file, tree thunk_fndecl ATTRIBUTE_UNUSED,
|
|||
/* Initialize the bitmap obstacks. */
|
||||
bitmap_obstack_initialize (NULL);
|
||||
bitmap_obstack_initialize (®_obstack);
|
||||
if (! basic_block_info)
|
||||
if (! cfun->cfg)
|
||||
init_flow ();
|
||||
rtl_register_cfg_hooks ();
|
||||
find_basic_blocks (insns);
|
||||
|
@ -10315,7 +10315,14 @@ sh_output_mi_thunk (FILE *file, tree thunk_fndecl ATTRIBUTE_UNUSED,
|
|||
sh_reorg ();
|
||||
|
||||
if (optimize > 0 && flag_delayed_branch)
|
||||
{
|
||||
if (! cfun->cfg)
|
||||
{
|
||||
init_flow ();
|
||||
find_basic_blocks (insns);
|
||||
}
|
||||
dbr_schedule (insns, dump_file);
|
||||
}
|
||||
shorten_branches (insns);
|
||||
final_start_function (insns, file, 1);
|
||||
final (insns, file, 1);
|
||||
|
|
Loading…
Add table
Reference in a new issue