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

--- Comment #5 from Thomas Preud'homme <thopre01 at gcc dot gnu.org> ---
(In reply to Paul Hua from comment #4)
> (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.

Likewise for me on gcc23.

Reply via email to