summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2001-03-07 18:44:17 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2001-03-07 18:44:17 +0000
commit9b7137595c2b7bb2b3e1cc2293c8483b15a8a683 (patch)
tree80850b2388b92d6896a75218decd62c239e9b882
parent92cfc4a8446d69d215942652390f3e4b7da319fe (diff)
downloadgcc-9b7137595c2b7bb2b3e1cc2293c8483b15a8a683.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40296 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/lists.c7
-rw-r--r--gcc/toplev.c3
3 files changed, 6 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3da7b2ef53e..d2e146079c1 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -3,6 +3,10 @@
* emit-rtl.c (remove_unnecessary_notes): Verify proper nesting
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>
* fixinc/Makefile.in (FIXINC_DEFS): Add -DHAVE_CONFIG_H.
diff --git a/gcc/lists.c b/gcc/lists.c
index b13d171414a..efba26f88b4 100644
--- a/gcc/lists.c
+++ b/gcc/lists.c
@@ -121,12 +121,7 @@ zap_lists (dummy)
void
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. */
diff --git a/gcc/toplev.c b/gcc/toplev.c
index dd1321c4f31..680820c2a31 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -2171,6 +2171,7 @@ compile_file (name)
init_function_once ();
init_stor_layout_once ();
init_varasm_once ();
+ init_EXPR_INSN_LIST_cache ();
/* The following initialization functions need to generate rtl, so
provide a dummy function context for them. */
@@ -2861,8 +2862,6 @@ rest_of_compilation (decl)
goto exit_rest_of_compilation;
}
- init_EXPR_INSN_LIST_cache ();
-
ggc_collect ();
/* Initialize some variables used by the optimizers. */