+2019-06-27 Martin Liska <mliska@suse.cz>
+
+ * lto-dump.c (struct symbol_entry): Add default dtor.
+ (struct variable_entry): Likewise.
+ (struct function_entry): Likewise.
+ (dump_list_functions): Release memory.
+ (dump_list_variables): Likewise.
+
2019-06-24 Jan Hubicka <jh@suse.cz>
* lto-common.c (compare_tree_sccs_1): Compare CXX_ODR_P;
symbol_entry (symtab_node *node_): node (node_)
{}
+ virtual ~symbol_entry ()
+ {}
+
char* get_name () const
{
if (flag_lto_dump_demangle)
variable_entry (varpool_node *node_): symbol_entry (node_)
{}
+ virtual ~variable_entry ()
+ {}
+
virtual size_t get_size () const
{
varpool_node *vnode = dyn_cast<varpool_node *> (node);
function_entry (cgraph_node *node_): symbol_entry (node_)
{}
+ virtual ~function_entry ()
+ {}
+
virtual void dump ()
{
symbol_entry :: dump ();
int i=0;
symbol_entry* e;
FOR_EACH_VEC_ELT (v, i, e)
- e->dump ();
+ {
+ e->dump ();
+ delete e;
+ }
}
/* Dump list of variables and their details. */
int i=0;
symbol_entry* e;
FOR_EACH_VEC_ELT (v, i, e)
- e->dump ();
+ {
+ e->dump ();
+ delete e;
+ }
}
/* Dump symbol list. */
+2019-06-27 Martin Liska <mliska@suse.cz>
+
+ * libgcov-util.c (gcov_profile_merge): Release allocated
+ memory.
+ (calculate_overlap): Likewise.
+
2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
* config.host: Add libef_ppc.a to the extra files for powerpc-darwin.
tgt_tail = gi_ptr;
}
+ free (in_src_not_tgt);
+ free (tgt_infos);
+
return 0;
}
}
+ free (all_infos);
+
if (overlap_obj_level)
printf(" SUM:%36s overlap = %6.2f%% (%5.2f%% %5.2f%%)\n",
"", sum_val*100, sum_cum_1*100, sum_cum_2*100);