From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1151 invoked by alias); 2 Dec 2012 10:11:53 -0000 Received: (qmail 1067 invoked by uid 48); 2 Dec 2012 10:11:35 -0000 From: "Joost.VandeVondele at mat dot ethz.ch" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/55555] [4.8 Regression] miscompilation at -O2 (tree-pre?) Date: Sun, 02 Dec 2012 10:11: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: 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.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: 2012-12/txt/msg00085.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55555 --- Comment #5 from Joost VandeVondele 2012-12-02 10:11:34 UTC --- (In reply to comment #4) > Hmm, this seems to be caused by > Forced statement unreachable: pretmp_516 = coef_x[pretmp_515]; > Forced statement unreachable: pretmp_513 = coef_x[pretmp_512]; > Forced statement unreachable: pretmp_479 = coef_x[pretmp_478]; > > I am not exactly fortran guru. Can someone double check that there are no out > of bounds accesses into these? > > Honza I'm pretty sure there are no out-of-bounds. In particular coef_x is easy to check, it is only used as coef_x(:,lxp) where lxp is the loop bound 0..lp consistent with its def. Of course maybe the FE does something inconsistent ? Also this runs fine: fortran -O0 -fsanitize=address PR55555.f90 ; ./a.out