From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28103 invoked by alias); 5 Oct 2014 04:56:42 -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 27767 invoked by uid 55); 5 Oct 2014 04:56:33 -0000 From: "hubicka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/61144] [4.9/5 Regression] Invalid optimizations for extern vars with local weak definitions Date: Sun, 05 Oct 2014 04:56:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: hubicka at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.9.2 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution 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/msg00312.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61144 Jan Hubicka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #31 from Jan Hubicka --- Author: hubicka Date: Sun Oct 5 04:52:19 2014 New Revision: 215896 URL: https://gcc.gnu.org/viewcvs?rev=215896&root=gcc&view=rev Log: PR ipa/61144 * varpool.c (ctor_for_folding): Do not fold WEAK symbols. * gcc.dg/tree-ssa/pr61144.c: New testcase. Added: branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/tree-ssa/pr61144.c Modified: branches/gcc-4_9-branch/gcc/ChangeLog branches/gcc-4_9-branch/gcc/testsuite/ChangeLog branches/gcc-4_9-branch/gcc/varpool.c --- Comment #32 from Jan Hubicka --- Fixed now both on branch and mainline. --- Comment #33 from Jan Hubicka --- Fixed now both on branch and mainline.