[Bug tree-optimization/78607] [7 Regression] ICE: verify_flow_info failed (error: missing barrier after block 2)

segher at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Dec 1 02:05:00 GMT 2016


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

--- Comment #1 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Author: segher
Date: Thu Dec  1 02:04:10 2016
New Revision: 243092

URL: https://gcc.gnu.org/viewcvs?rev=243092&root=gcc&view=rev
Log:
combine: Emit a barrier after unconditional trap (PR78607)

After an unconditional trap there should be a barrier.  In most cases
one is automatically inserted, but not if the trap is the final insn in
the instruction stream.  We need to emit one explicitly.


        PR rtl-optimization/78607
        * combine.c (try_combine): Emit a barrier after a unconditional trap.

gcc/testsuite/
        PR rtl-optimization/78607
        * gcc.c-torture/compile/pr78607.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.c-torture/compile/pr78607.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/combine.c
    trunk/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list