Commit 232f749b by Richard Henderson Committed by Richard Henderson

lists.c (init_EXPR_INSN_LIST_cache): Don't check initialized.

        * lists.c (init_EXPR_INSN_LIST_cache): Don't check initialized.
        * toplev.c (rest_of_compilation): Call init_EXPR_INSN_LIST_cache ...
        (compile_file): ... here.

From-SVN: r40296
parent 542d73ae
...@@ -3,6 +3,10 @@ ...@@ -3,6 +3,10 @@
* emit-rtl.c (remove_unnecessary_notes): Verify proper nesting * emit-rtl.c (remove_unnecessary_notes): Verify proper nesting
of block notes and exception handling notes. of block notes and exception handling notes.
* lists.c (init_EXPR_INSN_LIST_cache): Don't check initialized.
* toplev.c (rest_of_compilation): Call init_EXPR_INSN_LIST_cache ...
(compile_file): ... here.
2001-03-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 2001-03-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* fixinc/Makefile.in (FIXINC_DEFS): Add -DHAVE_CONFIG_H. * fixinc/Makefile.in (FIXINC_DEFS): Add -DHAVE_CONFIG_H.
......
...@@ -121,12 +121,7 @@ zap_lists (dummy) ...@@ -121,12 +121,7 @@ zap_lists (dummy)
void void
init_EXPR_INSN_LIST_cache () init_EXPR_INSN_LIST_cache ()
{ {
static int initialized;
if (!initialized)
{
initialized = 1;
ggc_add_root (&unused_expr_list, 1, 1, zap_lists); ggc_add_root (&unused_expr_list, 1, 1, zap_lists);
}
} }
/* This function will free up an entire list of EXPR_LIST nodes. */ /* This function will free up an entire list of EXPR_LIST nodes. */
......
...@@ -2171,6 +2171,7 @@ compile_file (name) ...@@ -2171,6 +2171,7 @@ compile_file (name)
init_function_once (); init_function_once ();
init_stor_layout_once (); init_stor_layout_once ();
init_varasm_once (); init_varasm_once ();
init_EXPR_INSN_LIST_cache ();
/* The following initialization functions need to generate rtl, so /* The following initialization functions need to generate rtl, so
provide a dummy function context for them. */ provide a dummy function context for them. */
...@@ -2861,8 +2862,6 @@ rest_of_compilation (decl) ...@@ -2861,8 +2862,6 @@ rest_of_compilation (decl)
goto exit_rest_of_compilation; goto exit_rest_of_compilation;
} }
init_EXPR_INSN_LIST_cache ();
ggc_collect (); ggc_collect ();
/* Initialize some variables used by the optimizers. */ /* Initialize some variables used by the optimizers. */
......
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