This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/3187] gcc lays down two copies of constructors



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]