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

            Bug ID: 95426
           Summary: libgccjit.so: error: RTL check: expected elt 2 type
                    'B', have '0' (rtx barrier) in BLOCK_FOR_INSN
           Product: gcc
           Version: 10.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: jit
          Assignee: dmalcolm at gcc dot gnu.org
          Reporter: bouanto at zoho dot com
  Target Milestone: ---

Hi.
I found this bug that happens when generating some code with libgccjit:

during RTL pass: expand
libgccjit.so: error: RTL check: expected elt 2 type 'B', have '0' (rtx barrier)
in BLOCK_FOR_INSN, at rtl.h:1485
0x7f2a2317d365 rtl_check_failed_type1(rtx_def const*, int, int, char const*,
int, char const*)
        ../../gcc/gcc/rtl.c:860
0x7f2a23091bf7 BLOCK_FOR_INSN(rtx_def*)
        ../../gcc/gcc/rtl.h:1485
0x7f2a23091f82 BLOCK_FOR_INSN(rtx_def*)
        ../../gcc/gcc/rtl.h:1469
0x7f2a23091f82 rtl_verify_bb_pointers
        ../../gcc/gcc/cfgrtl.c:2778
0x7f2a2359e6e6 rtl_verify_flow_info_1
        ../../gcc/gcc/cfgrtl.c:2832
0x7f2a2359e6e6 rtl_verify_flow_info
        ../../gcc/gcc/cfgrtl.c:3076
0x7f2a23582a06 verify_flow_info()
        ../../gcc/gcc/cfghooks.c:267
0x7f2a244a966d checking_verify_flow_info
        ../../gcc/gcc/cfghooks.h:212
0x7f2a244a966d try_optimize_cfg
        ../../gcc/gcc/cfgcleanup.c:3009
0x7f2a244a966d cleanup_cfg(int)
        ../../gcc/gcc/cfgcleanup.c:3174
0x7f2a2357f90a execute
        ../../gcc/gcc/cfgexpand.c:6732

I'm not sure what causes this issue and, again, dumping a reproducer dumps a
file with an empty create_code function.
Is there any compile-time option I need to enable to be able to create a
reproducer?

Thanks to fix this issue.

Reply via email to