re PR rtl-optimization/87475 (ICE in patch_jump_insn, at cfgrtl.c:1275)
authorJakub Jelinek <jakub@redhat.com>
Fri, 16 Nov 2018 16:43:49 +0000 (17:43 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 16 Nov 2018 16:43:49 +0000 (17:43 +0100)
commita09ad34709696a3d02ae588e7a595fd379b885b0
tree6dc7bca638b39ef4d7674face7c249f65785cde0
parentb41835733bc337580a0de6b8ba5de4b00d391fc6
re PR rtl-optimization/87475 (ICE in patch_jump_insn, at cfgrtl.c:1275)

PR rtl-optimization/87475
* cfgrtl.c (patch_jump_insn): Allow redirection failure for
CROSSING_JUMP_P insns.
(cfg_layout_redirect_edge_and_branch): Don't ICE if ret is NULL.

* g++.dg/opt/pr87475.C: New test.

From-SVN: r266219
gcc/ChangeLog
gcc/cfgrtl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/pr87475.C [new file with mode: 0644]