https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80747
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Thu Dec 21 19:28:10 2017 New Revision: 255954 URL: https://gcc.gnu.org/viewcvs?rev=255954&root=gcc&view=rev Log: 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: trunk/gcc/testsuite/gcc.dg/pr80747.c trunk/gcc/testsuite/gcc.dg/pr83512.c Modified: trunk/gcc/ChangeLog trunk/gcc/bb-reorder.c trunk/gcc/cfgrtl.c trunk/gcc/testsuite/ChangeLog