From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29453 invoked by alias); 23 Oct 2012 14:32:19 -0000 Received: (qmail 29379 invoked by uid 48); 23 Oct 2012 14:32:03 -0000 From: "hubicka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/55005] [4.8 Regression] gcc.c-torture/execute/loop-3.c FAILs with -fPIC Date: Tue, 23 Oct 2012 14:32: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-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: hubicka at gcc dot gnu.org 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-10/txt/msg02060.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55005 --- Comment #6 from Jan Hubicka 2012-10-23 14:32:02 UTC --- This is similar case as do-1.f90. We have: Statement _6 = m_5 * 2147483647; is executed at most 2 (bounded by 2) + 1 times in loop 1. coming from: while (i--) { g (i * 2147483647); } This overflows for i==4 and leads to undefined effect. So I think the testcase is invalid. Honza