From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11800 invoked by alias); 13 Nov 2012 01:13:23 -0000 Received: (qmail 11484 invoked by uid 48); 13 Nov 2012 01:12:47 -0000 From: "ian at airs dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/55305] invalid aggregate constprop Date: Tue, 13 Nov 2012 01:13: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: blocker X-Bugzilla-Who: ian at airs dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC 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-11/txt/msg01098.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55305 Ian Lance Taylor changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hubicka at gcc dot gnu.org, | |jamborm at gcc dot gnu.org --- Comment #1 from Ian Lance Taylor 2012-11-13 01:12:46 UTC --- The bug occurs in the IPA const-prop pass. The compiler incorrectly decides that f2 always invokes f3 with a constant aggregate parameter. This is incorrect. There are two calls to f2, and they use different values. The bug was introduced after 2012-11-05. I suspect this patch: 2012-11-07 Martin Jambor PR tree-optimization/53787 but I have not proven that that is the problem.