------- Comment #6 from jakub at gcc dot gnu dot org  2009-12-16 17:20 -------
Created an attachment (id=19322)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19322&action=view)
gcc45-pr42386.patch

Fix for this testcase.  If we already at maybe_clone_body time know that
the ctor or dtor will not be emitted in the current TU, we shouldn't create any
same_body/same_comdat_group relations between the symbols.
The question is if for DECL_DEFER_OUTPUT we might decide later on that it is
really DECL_EXTERNAL (i.e. not clear DECL_EXTERNAL on it).
Alternatively same_comdat_group could be only considered for !DECL_EXTERNAL
decls.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42386

Reply via email to