[Bug c++/49568] [4.7 regression] g++.dg/torture/pr41257-2.C FAILs to link on Tru64 UNIX

ro at CeBiTec dot Uni-Bielefeld.DE gcc-bugzilla@gcc.gnu.org
Fri Jul 1 10:04:00 GMT 2011


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



More information about the Gcc-bugs mailing list