This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug rtl-optimization/83512] ICE: in df_compact_blocks, at df-core.c:1729 with -freorder-blocks-algorithm=simple


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

--- Comment #5 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  <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-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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]