From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19648 invoked by alias); 28 Nov 2007 10:15:15 -0000 Received: (qmail 19297 invoked by uid 48); 28 Nov 2007 10:14:59 -0000 Date: Wed, 28 Nov 2007 10:15:00 -0000 Message-ID: <20071128101459.19296.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug bootstrap/34255] scope-blocks-on-a-diet patch diverges -g from non-g output code In-Reply-To: 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-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-11/txt/msg02761.txt.bz2 ------- Comment #1 from rguenth at gcc dot gnu dot org 2007-11-28 10:14 ------- Confirmed. The mentioned patch has been applied to the trunk already. > The patch not only causes -g divergence, it also accidentally drops subblocks > that need to be kept around for the sake of generating debug information for > them. This is certainly bad and needs to be (is already) fixed. > http://gcc.gnu.org/ml/gcc-patches/2007-07/msg01745.html regresses the property > that code output with -g must be the same as that without -g. make > bootstrap-debug demonstrates that several files miscompare after this patch, > and don't if the patch is reversed. This causes memory-usage regressions for non-debug builds, for example for tramp3d-v4 at -O2 -Dleafify=flatten which (peak) memory-usage grows from 807MB to 1248MB. (Worse if you also add -fopenmp, less worse if you drop -Dleafify=flatten) The following two patches http://gcc.gnu.org/ml/gcc-patches/2007-11/msg00523.html http://gcc.gnu.org/ml/gcc-patches/2007-11/msg00524.html probably address the latter problem in a more efficient way. -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rguenth at gcc dot gnu dot | |org Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2007-11-28 10:14:58 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34255