Commit 455419a5 by Richard Henderson Committed by Richard Henderson

lists.c (init_EXPR_INSN_LIST_cache): Don't need to zap the cache every function if ggc_p.

        * lists.c (init_EXPR_INSN_LIST_cache): Don't need to zap the
        cache every function if ggc_p.

From-SVN: r29872
parent a6de7040
Fri Oct 8 11:58:34 1999 Richard Henderson <rth@cygnus.com>
* lists.c (init_EXPR_INSN_LIST_cache): Don't need to zap the
cache every function if ggc_p.
Fri Oct 8 18:46:11 1999 Bernd Schmidt <bernds@cygnus.co.uk> Fri Oct 8 18:46:11 1999 Bernd Schmidt <bernds@cygnus.co.uk>
* jump.c (duplicate_loop_exit_test): Use copy_insn/copy_insn_1 * jump.c (duplicate_loop_exit_test): Use copy_insn/copy_insn_1
......
...@@ -120,15 +120,22 @@ zap_lists (dummy) ...@@ -120,15 +120,22 @@ zap_lists (dummy)
void void
init_EXPR_INSN_LIST_cache () init_EXPR_INSN_LIST_cache ()
{ {
static int initialized; if (ggc_p)
if (!initialized)
{ {
initialized = 1; static int initialized;
ggc_add_root (&unused_expr_list, 1, 1, zap_lists); if (!initialized)
{
initialized = 1;
ggc_add_root (&unused_expr_list, 1, 1, zap_lists);
}
/* No need to squish the lists across functions with GC enabled. */
}
else
{
unused_expr_list = NULL;
unused_insn_list = NULL;
} }
unused_expr_list = NULL;
unused_insn_list = NULL;
} }
/* This function will free up an entire list of EXPR_LIST nodes. */ /* This function will free up an entire list of EXPR_LIST nodes. */
......
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