From ae6f2a1c8f3e37eb82527e52b8961daa2bb7e652 Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Wed, 5 Sep 2001 17:48:26 +0000 Subject: function.c (ggc_mark_struct_function): Mark f->outer. * function.c (ggc_mark_struct_function): Mark f->outer. * toplev.c (rest_of_compilation): Clear DECL_SAVED_INSNS here... * integrate.c (output_inline_function): ... not here. From-SVN: r45419 --- gcc/toplev.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'gcc/toplev.c') diff --git a/gcc/toplev.c b/gcc/toplev.c index 50699e6..f9f02f3 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -3773,7 +3773,13 @@ rest_of_compilation (decl) /* We're done with this function. Free up memory if we can. */ free_after_parsing (cfun); if (! DECL_DEFER_OUTPUT (decl)) - free_after_compilation (cfun); + { + free_after_compilation (cfun); + + /* Clear integrate.c's pointer to the cfun structure we just + destroyed. */ + DECL_SAVED_INSNS (decl) = 0; + } cfun = 0; ggc_collect (); -- cgit v1.1