Re: Make default duplicate and insert methods of summaries abort; fix fallout

2020-10-26 Thread Jan Hubicka
> > gcc/ChangeLog: > > * symbol-summary.h (function_summary_base::unregister_hooks): > Call disable_insertion_hook and disable_duplication_hook. > (function_summary_base::symtab_insertion): New field. > (function_summary_base::symtab_removal): Likewise. > (function_s

Re: Make default duplicate and insert methods of summaries abort; fix fallout

2020-10-26 Thread Martin Liška
On 10/25/20 2:22 PM, Jan Hubicka wrote: Hi, the default duplicate and insert methods of sumaries produce empty summary that is not useful for anything and makes it easy to introduce bugs. This patch makes the default hooks to abort and summaries that do not need dupicaito/insertion disable the c