From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6012 invoked by alias); 14 Jan 2013 14:46:26 -0000 Received: (qmail 4897 invoked by uid 55); 14 Jan 2013 14:45:51 -0000 From: "rguenther at suse dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/50199] [4.7/4.8 Regression] wrong code with -flto -fno-merge-constants Date: Mon, 14 Jan 2013 14:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Keywords: lto, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenther at suse dot de X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.0 X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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: 2013-01/txt/msg01176.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50199 --- Comment #14 from rguenther at suse dot de 2013-01-14 14:45:48 UTC --- On 1/11/13 5:02 PM, jakub at gcc dot gnu.org wrote: > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50199 > > Jakub Jelinek changed: > > What |Removed |Added > ---------------------------------------------------------------------------- > CC| |jakub at gcc dot gnu.org > > --- Comment #13 from Jakub Jelinek 2013-01-11 16:02:24 UTC --- > I guess it is again too late to really fix this for 4.8, can we at least error > out on -fno-merge-constants used together with -flto ? We'll still fail for > targets that don't support mergeable string sections, but generally, it makes > no sense to use -fno-merge-constants together with -flto. We could, I suppose. I'm not sure this isn't an issue without LTO though (possibly way harder to trigger though).