From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11997 invoked by alias); 31 Oct 2014 09:28:33 -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 11966 invoked by uid 48); 31 Oct 2014 09:28:29 -0000 From: "Joost.VandeVondele at mat dot ethz.ch" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/63311] [4.9/5 Regression] -O1 optimization introduces valgrind warning Date: Fri, 31 Oct 2014 09:30: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-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: Joost.VandeVondele at mat dot ethz.ch X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.9.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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: 2014-10/txt/msg02481.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63311 Joost VandeVondele changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |Joost.VandeVondele at mat dot ethz | |.ch --- Comment #5 from Joost VandeVondele --- (In reply to Jakub Jelinek from comment #3) > Started with r208687 , so possibly a latent bug is no longer latent after > the FE changes. It also reproduces with a C instead of with a Fortran testcase (as derived from the .original dump). To be attached in a second: > gcc -O1 -std=c11 -g PR63311.c -lm && valgrind ./a.out ==36918== Conditional jump or move depends on uninitialised value(s) ==36918== at 0x40056C: test (PR63311.c:41) ==36918== by 0x40061F: main (PR63311.c:130) ==36918== ERROR SUMMARY: 4 errors from 1 contexts (suppressed: 6 from 6) > gcc -O0 -std=c11 -g PR63311.c -lm && valgrind ./a.out ==36936== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 6 from 6)