From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12338 invoked by alias); 23 Jul 2006 15:14:40 -0000 Received: (qmail 12325 invoked by uid 48); 23 Jul 2006 15:14:34 -0000 Date: Sun, 23 Jul 2006 15:14:00 -0000 Subject: [Bug middle-end/28463] New: Using -fdump-tree-optimized causes a huge compile time memory regression X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "rguenth at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-07/txt/msg01751.txt.bz2 List-Id: Enabling some tree dumps causes a tramp3d-v4 compile to run into swap, requiring about 50% more ram than a non-dumped compile. Pinskia suggests Index: gcc/cgraph.c =================================================================== --- gcc/cgraph.c (revision 115684) +++ gcc/cgraph.c (working copy) @@ -509,7 +509,7 @@ cgraph_remove_node (struct cgraph_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; Index: gcc/cgraphunit.c =================================================================== --- gcc/cgraphunit.c (revision 115684) +++ gcc/cgraphunit.c (working copy) @@ -1466,7 +1466,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; but there may be non-GCable cost of dumping itself. -- Summary: Using -fdump-tree-optimized causes a huge compile time memory regression Product: gcc Version: 4.1.2 Status: UNCONFIRMED Keywords: memory-hog Severity: normal Priority: P3 Component: middle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: rguenth at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28463