re PR rtl-optimization/89234 (ICE in get_eh_region_and_lp_from_rtx at gcc/except...
authorJakub Jelinek <jakub@redhat.com>
Fri, 8 Feb 2019 10:26:33 +0000 (11:26 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 8 Feb 2019 10:26:33 +0000 (11:26 +0100)
commit89cfdb7e5ba6f5e00e13473790ef787189c59c01
tree2931d159ae46c428e63ba2e351baa7b8eb5db846
parent4af50e13a035804b80551e4649cc2b055588ffc8
re PR rtl-optimization/89234 (ICE in get_eh_region_and_lp_from_rtx at gcc/except.c:1824)

PR rtl-optimization/89234
* except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
(copy_reg_eh_region_note_backward): Likewise.

* g++.dg/ubsan/pr89234.C: New test.

From-SVN: r268669
gcc/ChangeLog
gcc/except.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ubsan/pr89234.C [new file with mode: 0644]