From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1465 invoked by alias); 26 Mar 2013 15:20:17 -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 1228 invoked by uid 48); 26 Mar 2013 15:20:11 -0000 From: "jason at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/34949] Dead code in empty destructors. Date: Tue, 26 Mar 2013 15:20:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: jason 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: --- X-Bugzilla-Changed-Fields: Attachment #29731 is obsolete 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 X-SW-Source: 2013-03/txt/msg01916.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34949 Jason Merrill changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #29731|0 |1 is obsolete| | --- Comment #12 from Jason Merrill 2013-03-26 15:20:10 UTC --- Created attachment 29732 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29732 clobber the whole object Actually, I guess he was suggesting clobbering all of *this, not just the vptrs, which makes sense since the object is dead at the end of its destructor. This patch still needs more back end work to be useful.