This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/3187] gcc lays down two copies of constructors
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Dec 2009 20:09:52 -0000
- Subject: [Bug c++/3187] gcc lays down two copies of constructors
- References: <bug-3187-2475@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #36 from jakub at gcc dot gnu dot org 2009-12-01 20:09 -------
Subject: Bug 3187
Author: jakub
Date: Tue Dec 1 20:09:37 2009
New Revision: 154880
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=154880
Log:
PR c++/3187
* optimize.c (cdtor_comdat_group): New function.
(maybe_clone_body): Also optimize DECL_COMDAT base/complete cdtors
and in that case put also the deleting dtor in the same comdat group
as base and complete dtor if dtor is virtual.
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/optimize.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3187