https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97695
--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jan Hubicka <hubi...@gcc.gnu.org>: https://gcc.gnu.org/g:ab4664eb73f9401a5ca65d21cdf87d69fe0026dc commit r11-4700-gab4664eb73f9401a5ca65d21cdf87d69fe0026dc Author: Jan Hubicka <j...@suse.cz> Date: Wed Nov 4 00:19:59 2020 +0100 Fix copying of clone_info while reshaping clone tree. 2020-11-04 Jan Hubicka <hubi...@ucw.cz> PR ipa/97695 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Fix ICE with in dumping code. (cgraph_node::remove): Save clone info before releasing it and pass it to unregister. * cgraph.h (symtab_node::unregister): Add clone_info parameter. (cgraph_clone::unregister): Likewise. * cgraphclones.c (cgraph_node::find_replacement): Copy clone info * symtab-clones.cc (clone_infos_t::duplicate): Remove. (clone_info::get_create): Simplify. * symtab.c (symtab_node::unregister): Pass around clone info. * varpool.c (varpool_node::remove): Update.