2018-03-20 Martin Liska <mliska@suse.cz>
PR ipa/84825
* predict.c (rebuild_frequencies): Handle case when we have
PROFILE_ABSENT, but flag_guess_branch_prob is false.
2018-03-20 Martin Liska <mliska@suse.cz>
PR ipa/84825
* g++.dg/ipa/pr84825.C: New test.
From-SVN: r258683
+2018-03-20 Martin Liska <mliska@suse.cz>
+
+ PR ipa/84825
+ * predict.c (rebuild_frequencies): Handle case when we have
+ PROFILE_ABSENT, but flag_guess_branch_prob is false.
+
2018-03-20 Jakub Jelinek <jakub@redhat.com>
PR target/84990
}
else if (profile_status_for_fn (cfun) == PROFILE_READ)
update_max_bb_count ();
+ else if (profile_status_for_fn (cfun) == PROFILE_ABSENT
+ && !flag_guess_branch_prob)
+ ;
else
gcc_unreachable ();
timevar_pop (TV_REBUILD_FREQUENCIES);
+2018-03-20 Martin Liska <mliska@suse.cz>
+
+ PR ipa/84825
+ * g++.dg/ipa/pr84825.C: New test.
+
2018-03-20 Martin Liska <mliska@suse.cz>
* gcc.dg/lto/chkp-ctor-merge_0.c: Remove.
--- /dev/null
+/* PR ipa/84658 */
+/* { dg-options "-O3 --param early-inlining-insns=0 -fno-guess-branch-probability" } */
+
+struct a;
+struct b;
+struct c {
+ virtual a *d(b *);
+};
+struct a {
+ virtual a e();
+};
+struct f {
+ virtual ~f();
+};
+struct g : f, a {};
+struct b : c, virtual g {
+ b *d(b *h) { return h; }
+} i;