https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87156

Iain Buclaw <ibuclaw at gdcproject dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ibuclaw at gdcproject dot org

--- Comment #6 from Iain Buclaw <ibuclaw at gdcproject dot org> ---
(In reply to Jan Hubicka from comment #3)
> Does the attached patch fix the bootstrap?
> Index: cgraphclones.c
> ===================================================================
> --- cgraphclones.c      (revision 264180)
> +++ cgraphclones.c      (working copy)
> @@ -967,6 +967,8 @@ cgraph_node::create_version_clone_with_b
>    SET_DECL_ASSEMBLER_NAME (new_decl, DECL_NAME (new_decl));
>    SET_DECL_RTL (new_decl, NULL);
>  
> +  DECL_VIRTUAL_P (new_decl) = 0;
> +
>    /* When the old decl was a con-/destructor make sure the clone isn't.  */
>    DECL_STATIC_CONSTRUCTOR (new_decl) = 0;
>    DECL_STATIC_DESTRUCTOR (new_decl) = 0;

I just got round to checking this, and reached the same conclusion without
realising you already made a patch.

Has this been posted yet?

Reply via email to