combine: Emit a barrier after unconditional trap (PR78607)
authorSegher Boessenkool <segher@kernel.crashing.org>
Thu, 1 Dec 2016 02:04:10 +0000 (03:04 +0100)
committerSegher Boessenkool <segher@gcc.gnu.org>
Thu, 1 Dec 2016 02:04:10 +0000 (03:04 +0100)
commit0f09127808018c479214478d3f79e0ac40a3c55b
treec69848023a1231979a3e106f46baf23fb8e7cbdb
parente95a3eb3c67bfb9a2d3e954e272545d033e8dd7f
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.

From-SVN: r243092
gcc/ChangeLog
gcc/combine.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr78607.c [new file with mode: 0644]