[Bug rtl-optimization/80747] [6 Regression] gcc.dg/tree-ssa/tailrecursion-4.c fails with ICE when compiled with options "-fprofile-use -freorder-blocks-and-partition"
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jun 25 17:05:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80747
--- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Jun 25 17:05:01 2018
New Revision: 262049
URL: https://gcc.gnu.org/viewcvs?rev=262049&root=gcc&view=rev
Log:
Backported from mainline
2017-12-21 Jakub Jelinek <jakub@redhat.com>
PR rtl-optimization/80747
PR rtl-optimization/83512
* cfgrtl.c (force_nonfallthru_and_redirect): When splitting
succ edge from ENTRY, copy partition from e->dest to the newly
created bb.
* bb-reorder.c (reorder_basic_blocks_simple): If last_tail is
ENTRY, use BB_PARTITION of its successor block as current_partition.
Don't copy partition when splitting succ edge from ENTRY.
* gcc.dg/pr80747.c: New test.
* gcc.dg/pr83512.c: New test.
Added:
branches/gcc-6-branch/gcc/testsuite/gcc.dg/pr80747.c
branches/gcc-6-branch/gcc/testsuite/gcc.dg/pr83512.c
Modified:
branches/gcc-6-branch/gcc/ChangeLog
branches/gcc-6-branch/gcc/bb-reorder.c
branches/gcc-6-branch/gcc/cfgrtl.c
branches/gcc-6-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list