aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/except.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f42c44f..87f8f7a 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+Thu Sep 9 17:23:19 1999 Bernd Schmidt <bernds@cygnus.co.uk>
+
+ * except.c (call_get_eh_context): Add root when allocating static
+ tree variable.
+
Thu Sep 9 15:24:59 BST 1999 Richard Earnshaw <rearnsha@arm.com>
* arm.c: Include "ggc.h".
diff --git a/gcc/except.c b/gcc/except.c
index 98dba0c..f74d8fb 100644
--- a/gcc/except.c
+++ b/gcc/except.c
@@ -1101,6 +1101,8 @@ call_get_eh_context ()
make_decl_rtl (fn, NULL_PTR, 1);
assemble_external (fn);
pop_obstacks ();
+
+ ggc_add_tree_root (&fn, 1);
}
expr = build1 (ADDR_EXPR, build_pointer_type (TREE_TYPE (fn)), fn);