[Bug rtl-optimization/89234] [7/8/9 Regression] ICE in get_eh_region_and_lp_from_rtx at gcc/except.c:1824

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Feb 8 10:27:00 GMT 2019


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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Feb  8 10:26:33 2019
New Revision: 268669

URL: https://gcc.gnu.org/viewcvs?rev=268669&root=gcc&view=rev
Log:
        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:
    trunk/gcc/testsuite/g++.dg/ubsan/pr89234.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/except.c
    trunk/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list