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

--- Comment #7 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot 
Uni-Bielefeld.DE> 2011-07-01 10:03:24 UTC ---
> The declaration of the destructor itself do have COMDAT flag.
> The following patch should fix the problem:
> Index: ipa.c
> ===================================================================
> --- ipa.c       (revision 175748)
> +++ ipa.c       (working copy)
> @@ -871,9 +871,9 @@ function_and_variable_visibility (bool w
>
>              We also need to arrange the thunk into the same comdat group as
>              the function it reffers to.  */
                                  ^ typo

> +          DECL_COMDAT (node->decl) = DECL_COMDAT (decl_node->decl);
>           if (DECL_ONE_ONLY (decl_node->decl))
>             {
> -             DECL_COMDAT (node->decl) = DECL_COMDAT (decl_node->decl);
>               DECL_COMDAT_GROUP (node->decl) = DECL_COMDAT_GROUP
> (decl_node->decl);
>               if (DECL_ONE_ONLY (decl_node->decl) && !node->same_comdat_group)
>                 {

I can include it in this weekend's bootstrap.

    Rainer

Reply via email to