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

--- Comment #4 from Paul Hua <paul.hua.gm at gmail dot com> ---
(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;

Yes, fixed. Thanks.

Reply via email to