Commit c9ffaa8d by Kaz Kojima

sh.c (sh_output_mi_thunk): Initialize bitmap obstacks before calling…

sh.c (sh_output_mi_thunk): Initialize bitmap obstacks before calling life_analysis and release them after.

	* config/sh/sh.c (sh_output_mi_thunk): Initialize bitmap obstacks
	before calling life_analysis and release them after.

From-SVN: r91317
parent fbafc26f
2004-11-25 Kaz Kojima <kkojima@gcc.gnu.org>
* config/sh/sh.c (sh_output_mi_thunk): Initialize bitmap obstacks
before calling life_analysis and release them after.
2004-11-25 Kazu Hirata <kazu@cs.umass.edu> 2004-11-25 Kazu Hirata <kazu@cs.umass.edu>
* tree-ssa-forwprop.c (substitute_single_use_vars): Remove * tree-ssa-forwprop.c (substitute_single_use_vars): Remove
......
...@@ -9821,6 +9821,9 @@ sh_output_mi_thunk (FILE *file, tree thunk_fndecl ATTRIBUTE_UNUSED, ...@@ -9821,6 +9821,9 @@ sh_output_mi_thunk (FILE *file, tree thunk_fndecl ATTRIBUTE_UNUSED,
if (optimize > 0 && flag_schedule_insns_after_reload) if (optimize > 0 && flag_schedule_insns_after_reload)
{ {
/* Initialize the bitmap obstacks. */
bitmap_obstack_initialize (NULL);
bitmap_obstack_initialize (&reg_obstack);
if (! basic_block_info) if (! basic_block_info)
init_flow (); init_flow ();
rtl_register_cfg_hooks (); rtl_register_cfg_hooks ();
...@@ -9845,6 +9848,10 @@ sh_output_mi_thunk (FILE *file, tree thunk_fndecl ATTRIBUTE_UNUSED, ...@@ -9845,6 +9848,10 @@ sh_output_mi_thunk (FILE *file, tree thunk_fndecl ATTRIBUTE_UNUSED,
{ {
/* Release all memory allocated by flow. */ /* Release all memory allocated by flow. */
free_basic_block_vars (); free_basic_block_vars ();
/* Release the bitmap obstacks. */
bitmap_obstack_release (&reg_obstack);
bitmap_obstack_release (NULL);
} }
reload_completed = 0; reload_completed = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment