From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11910 invoked by alias); 29 Feb 2012 16:45:24 -0000 Received: (qmail 11893 invoked by uid 22791); 29 Feb 2012 16:45:22 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 29 Feb 2012 16:45:08 +0000 From: "jamborm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/52430] [4.4 Regression] firefox miscompilation Date: Wed, 29 Feb 2012 17:02: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: jamborm at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jamborm at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.4.7 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-02/txt/msg02838.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52430 --- Comment #3 from Martin Jambor 2012-02-29 16:45:04 UTC --- Created attachment 26787 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26787 Proposed untested fix n_cloning_candidates is zero because ipcp_initialize_node_lattices thinks that growStorageBy does not need to be preserved because it only checks node->needed, which is false. In 4.5, we use cgraph_only_called_directly_p for this purpose which also tests node->local.externally_visible, which is what the attached patch, currently under bootstrap and testing, does too. With the patch at and -Os, we do not clone calculateNewCapacity and the problem therefore does not occur.