aboutsummaryrefslogtreecommitdiff
path: root/gcc/toplev.c
diff options
context:
space:
mode:
authorZack Weinberg <zack@codesourcery.com>2001-09-05 17:48:26 +0000
committerZack Weinberg <zack@gcc.gnu.org>2001-09-05 17:48:26 +0000
commitae6f2a1c8f3e37eb82527e52b8961daa2bb7e652 (patch)
tree97c534b8bbefaf5aa35ed9ba21f1d2ca66906f42 /gcc/toplev.c
parentc946ec44f8df9914de1f6719db783a2b62be4fd7 (diff)
downloadgcc-ae6f2a1c8f3e37eb82527e52b8961daa2bb7e652.zip
gcc-ae6f2a1c8f3e37eb82527e52b8961daa2bb7e652.tar.gz
gcc-ae6f2a1c8f3e37eb82527e52b8961daa2bb7e652.tar.bz2
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
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r--gcc/toplev.c8
1 files changed, 7 insertions, 1 deletions
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 ();