PR gcov-profile/78582
* gcc.dg/pr78582.c: New test.
PR gcov-profile/78582
* tree-profile.c (gimple_gen_time_profiler): Make one extra BB
to prevent PHI argument clash.
From-SVN: r242958
+2016-11-29 Martin Liska <mliska@suse.cz>
+
+ PR gcov-profile/78582
+ * tree-profile.c (gimple_gen_time_profiler): Make one extra BB
+ to prevent PHI argument clash.
+
2016-11-29 Claudiu Zissulescu <claziss@synopsys.com>
* config/arc/arc.opt (marclinux): Fix typo.
+2016-11-29 Martin Liska <mliska@suse.cz>
+
+ PR gcov-profile/78582
+ * gcc.dg/pr78582.c: New test.
+
2016-11-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
* testsuite/gcc.dg/pr31096-1.c: Use __{U,}INT32_TYPE__ for
gimple_gen_time_profiler (unsigned tag, unsigned base)
{
tree type = get_gcov_type ();
- basic_block cond_bb
- = split_edge (single_succ_edge (ENTRY_BLOCK_PTR_FOR_FN (cfun)));
-
+ basic_block entry = ENTRY_BLOCK_PTR_FOR_FN (cfun);
+ basic_block cond_bb = split_edge (single_succ_edge (entry));
basic_block update_bb = split_edge (single_succ_edge (cond_bb));
+ split_edge (single_succ_edge (update_bb));
edge true_edge = single_succ_edge (cond_bb);
true_edge->flags = EDGE_TRUE_VALUE;