https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89234
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Sat Feb 9 08:50:05 2019 New Revision: 268716 URL: https://gcc.gnu.org/viewcvs?rev=268716&root=gcc&view=rev Log: Backported from mainline 2019-02-08 Jakub Jelinek <ja...@redhat.com> 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. Added: branches/gcc-8-branch/gcc/testsuite/g++.dg/ubsan/pr89234.C Modified: branches/gcc-8-branch/gcc/ChangeLog branches/gcc-8-branch/gcc/except.c branches/gcc-8-branch/gcc/testsuite/ChangeLog