From 63c2d00ca70c962e229d8353772f53b49c20680f Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Mon, 24 Jul 2006 11:42:52 +0000 Subject: [PATCH] re PR middle-end/28463 (Using -fdump-tree-optimized causes a huge compile time memory regression) 2006-07-24 Richard Guenther PR middle-end/28463 * cgraph.c (cgraph_remove_node): Do not check if dumps are enabled. * cgraphunit.c (cgraph_optimize): Likewise. From-SVN: r115714 --- gcc/ChangeLog | 7 +++++++ gcc/cgraph.c | 2 +- gcc/cgraphunit.c | 1 - 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b03da442bc8..226a63b8646 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2006-07-24 Richard Guenther + + PR middle-end/28463 + * cgraph.c (cgraph_remove_node): Do not check if dumps + are enabled. + * cgraphunit.c (cgraph_optimize): Likewise. + 2006-07-24 Jan Hubicka PR rtl-optimization/28071 diff --git a/gcc/cgraph.c b/gcc/cgraph.c index 5dd0afb24cb..e20c8d5336e 100644 --- a/gcc/cgraph.c +++ b/gcc/cgraph.c @@ -509,7 +509,7 @@ cgraph_remove_node (struct cgraph_node *node) kill_body = true; } - if (kill_body && !dump_enabled_p (TDI_tree_all) && flag_unit_at_a_time) + if (kill_body && flag_unit_at_a_time) { DECL_SAVED_TREE (node->decl) = NULL; DECL_STRUCT_FUNCTION (node->decl) = NULL; diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index c0e41495ac9..db44cb8c242 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -1536,7 +1536,6 @@ cgraph_optimize (void) /* Double check that all inline clones are gone and that all function bodies have been released from memory. */ if (flag_unit_at_a_time - && !dump_enabled_p (TDI_tree_all) && !(sorrycount || errorcount)) { struct cgraph_node *node; -- 2.30.2