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/68182] [6 Regression] ICE in reorder_basic_blocks_simple building libitm/beginend.cc


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

--- Comment #4 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Author: segher
Date: Mon Nov  9 03:57:19 2015
New Revision: 229983

URL: https://gcc.gnu.org/viewcvs?rev=229983&root=gcc&view=rev
Log:
Fix bb-reorder problem with degenerate cond_jump (PR68182)

The code mistakenly thinks any cond_jump has two successors.  This is
not true if both destinations are the same, as can happen with weird
patterns as in the PR.


        PR rtl-optimization/68182
        * gcc/bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
        branch with only one successor just like unconditional branches.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/bb-reorder.c

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