From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6759 invoked by alias); 25 Mar 2014 05:44:25 -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 6694 invoked by uid 48); 25 Mar 2014 05:44:21 -0000 From: "hubicka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/60315] [4.8/4.9 Regression] template constructor switch optimization Date: Tue, 25 Mar 2014 05:44: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.8.0 X-Bugzilla-Keywords: compile-time-hog X-Bugzilla-Severity: minor X-Bugzilla-Who: hubicka at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created 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-03/txt/msg02219.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60315 --- Comment #12 from Jan Hubicka --- Created attachment 32442 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32442&action=edit Better patch I am attaching more complete patch. There is quite bad wrong code bug in pure-const that updates declaration because it proves that one of inline clones is pure which does not imply that the offline copy is. The patch also need fix to tree-inline.c that I sent earlier and Richard requested a cleanup for http://gcc.gnu.org/ml/gcc-patches/2014-02/msg00134.html Will do that tomorrow.