===================================================================
@@ -2857,7 +2857,7 @@ coverage_init (const char *filename, const char* s
strcat (main_input_file_name, source_name);
}
- if (flag_branch_probabilities)
+ if (flag_branch_probabilities && !flag_auto_profile)
read_counts_file (da_file_name, 0);
/* Reads at most one auxiliary GCDA file since we don't support merging */
===================================================================
@@ -1850,6 +1850,13 @@ auto_profile (void)
pop_cfun ();
}
+ cgraph_pre_profiling_inlining_done = true;
+ cgraph_process_module_scope_statics ();
+ /* Now perform link to allow cross module inlining. */
+ cgraph_do_link ();
+ varpool_do_link ();
+ cgraph_unify_type_alias_sets ();
+
return TODO_rebuild_cgraph_edges;
}