From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 82465 invoked by alias); 21 Jul 2015 22:10:27 -0000 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 Received: (qmail 82402 invoked by uid 48); 21 Jul 2015 22:10:18 -0000 From: "wschmidt at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/66868] [5/6 Regression] wrong code generated with -O3 (dead code removal?) Date: Tue, 21 Jul 2015 22:10:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 5.1.1 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: wschmidt at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-07/txt/msg01861.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66868 --- Comment #4 from Bill Schmidt --- Hm. I compiled it as stated and I see a bunch of code that appears to be storing the ".disk/" string. So it doesn't look like dead code elimination. Perhaps a branch is short circuiting this, or the address of where to store it has been corrupted. I don't have any way to confirm that I'm reproducing the problem when I compile, from what's given here. It might be helpful to provide the full test case without ellipses, and the failure message given by the test.