re PR c++/3187 (gcc lays down two copies of constructors)
authorJakub Jelinek <jakub@redhat.com>
Tue, 1 Dec 2009 20:09:37 +0000 (21:09 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 1 Dec 2009 20:09:37 +0000 (21:09 +0100)
commit24b3ff2c53806d3ddf1b93dcc04dfc538597effa
tree62394a41ad82988135717beeaf066964e1b17af1
parent4f2eb765d71a0bdf740ec57900916bf9cf9dcf9a
re PR c++/3187 (gcc lays down two copies of constructors)

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.

From-SVN: r154880
gcc/cp/ChangeLog
gcc/cp/optimize.c