From ab3b6795050315a7dbedca349f1185050fb73765 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Tue, 14 Sep 2004 22:09:47 +0200 Subject: [PATCH] * cfg.c (expunge_block): Revert previous change adding ggc_free call. From-SVN: r87506 --- gcc/ChangeLog | 4 ++++ gcc/cfg.c | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b29684fef37..0b65dda7144 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2004-09-14 Jan Hubicka + + * cfg.c (expunge_block): Revert previous change adding ggc_free call. + 2004-09-14 Mark Mitchell * config.gcc: Do not build a shared libgcc for arm-none-eabi. diff --git a/gcc/cfg.c b/gcc/cfg.c index 3164ba0d06c..3c2ef48d884 100644 --- a/gcc/cfg.c +++ b/gcc/cfg.c @@ -266,7 +266,11 @@ expunge_block (basic_block b) unlink_block (b); BASIC_BLOCK (b->index) = NULL; n_basic_blocks--; - ggc_free (b); + /* We should be able to ggc_free here, but we are not. + The dead SSA_NAMES are left pointing to dead statements that are pointing + to dead basic blocks making garbage collector to die. + We should be able to release all dead SSA_NAMES and at the same time we should + clear out BB pointer of dead statements consistently. */ } /* Create an edge connecting SRC and DEST with flags FLAGS. Return newly -- 2.30.2