https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80747

--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Dec 22 08:53:37 2017
New Revision: 255971

URL: https://gcc.gnu.org/viewcvs?rev=255971&root=gcc&view=rev
Log:
        Backported from mainline
        2017-12-21  Jakub Jelinek  <ja...@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-7-branch/gcc/testsuite/gcc.dg/pr80747.c
    branches/gcc-7-branch/gcc/testsuite/gcc.dg/pr83512.c
Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/bb-reorder.c
    branches/gcc-7-branch/gcc/cfgrtl.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog

Reply via email to