sh.c (sh_output_mi_thunk): Initialize bitmap obstacks before calling life_analysis...
authorKaz Kojima <kkojima@gcc.gnu.org>
Fri, 26 Nov 2004 01:56:36 +0000 (01:56 +0000)
committerKaz Kojima <kkojima@gcc.gnu.org>
Fri, 26 Nov 2004 01:56:36 +0000 (01:56 +0000)
* config/sh/sh.c (sh_output_mi_thunk): Initialize bitmap obstacks
before calling life_analysis and release them after.

From-SVN: r91317

gcc/ChangeLog
gcc/config/sh/sh.c

index de1aaa9677d04326be37eba2101de8a9a42e778b..8358ecf4647359e2e325cd628d98b4536c3c6ad7 100644 (file)
@@ -1,3 +1,8 @@
+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>
 
        * tree-ssa-forwprop.c (substitute_single_use_vars): Remove
index 162f5c66d7a92f36a3e845ebd1b3b6a6e683c9e3..8416b29d7ade5a4adae18177d3a615ea2aec4d14 100644 (file)
@@ -9821,6 +9821,9 @@ sh_output_mi_thunk (FILE *file, tree thunk_fndecl ATTRIBUTE_UNUSED,
 
   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)
        init_flow ();
       rtl_register_cfg_hooks ();
@@ -9845,6 +9848,10 @@ sh_output_mi_thunk (FILE *file, tree thunk_fndecl ATTRIBUTE_UNUSED,
     {
       /* Release all memory allocated by flow.  */
       free_basic_block_vars ();
+
+      /* Release the bitmap obstacks.  */
+      bitmap_obstack_release (&reg_obstack);
+      bitmap_obstack_release (NULL);
     }
 
   reload_completed = 0;