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

            Bug ID: 103594
           Summary: [12 Regression] ICE in get, at cgraph.h:1335
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---
            Target: x86_64-unknown-linux-gnu

gcc 12.0.0 20211205 snapshot (g:c9419faef0bfaf31e6a6f744baa064892e0d105c) ICEs
when compiling gcc/testsuite/gcc.c-torture/compile/pr37433.c and a few other
testcases w/ -O1:

% x86_64-unknown-linux-gnu-gcc-12.0.0 -O1 -c
gcc/testsuite/gcc.c-torture/compile/pr37433.c
during RTL pass: expand
gcc/testsuite/gcc.c-torture/compile/pr37433.c: In function 'regex_subst':
gcc/testsuite/gcc.c-torture/compile/pr37433.c:6:11: internal compiler error: in
get, at cgraph.h:1335
    6 |   return (*(int (*)(int))subst) (0);
      |          ~^~~~~~~~~~~~~~~~~~~~~~~~~
0x79e142 cgraph_node::get(tree_node const*)
       
/var/tmp/portage/sys-devel/gcc-12.0.0_p20211205/work/gcc-12-20211205/gcc/cgraph.h:1335
0x7a0d8e cgraph_node::get(tree_node const*)
       
/var/tmp/portage/sys-devel/gcc-12.0.0_p20211205/work/gcc-12-20211205/gcc/config/i386/i386.c:15988
0x7a0d8e ix86_call_use_plt_p(rtx_def*)
       
/var/tmp/portage/sys-devel/gcc-12.0.0_p20211205/work/gcc-12-20211205/gcc/config/i386/i386.c:15994
0x7a0d8e ix86_call_use_plt_p(rtx_def*)
       
/var/tmp/portage/sys-devel/gcc-12.0.0_p20211205/work/gcc-12-20211205/gcc/config/i386/i386.c:15986
0x12eea5a ix86_expand_call(rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*,
bool)
       
/var/tmp/portage/sys-devel/gcc-12.0.0_p20211205/work/gcc-12-20211205/gcc/config/i386/i386-expand.c:9136
0x1797462 gen_call_value(rtx_def*, rtx_def*, rtx_def*, rtx_def*)
       
/var/tmp/portage/sys-devel/gcc-12.0.0_p20211205/work/gcc-12-20211205/gcc/config/i386/i386.md:14694
0x1215a38 target_gen_call_value
       
/var/tmp/portage/sys-devel/gcc-12.0.0_p20211205/work/gcc-12-20211205/gcc/config/i386/i386.md:14618
0x9a1273 emit_call_1
       
/var/tmp/portage/sys-devel/gcc-12.0.0_p20211205/work/gcc-12-20211205/gcc/calls.c:466
0x9a8e64 expand_call(tree_node*, rtx_def*, int)
       
/var/tmp/portage/sys-devel/gcc-12.0.0_p20211205/work/gcc-12-20211205/gcc/calls.c:3606
0xaef80e expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
       
/var/tmp/portage/sys-devel/gcc-12.0.0_p20211205/work/gcc-12-20211205/gcc/expr.c:11536
0xafcd7e store_expr(tree_node*, rtx_def*, int, bool, bool)
       
/var/tmp/portage/sys-devel/gcc-12.0.0_p20211205/work/gcc-12-20211205/gcc/expr.c:6087
0xafe560 expand_assignment(tree_node*, tree_node*, bool)
       
/var/tmp/portage/sys-devel/gcc-12.0.0_p20211205/work/gcc-12-20211205/gcc/expr.c:5819
0x9be46b expand_call_stmt
       
/var/tmp/portage/sys-devel/gcc-12.0.0_p20211205/work/gcc-12-20211205/gcc/cfgexpand.c:2829
0x9be46b expand_gimple_stmt_1
       
/var/tmp/portage/sys-devel/gcc-12.0.0_p20211205/work/gcc-12-20211205/gcc/cfgexpand.c:3864
0x9be46b expand_gimple_stmt
       
/var/tmp/portage/sys-devel/gcc-12.0.0_p20211205/work/gcc-12-20211205/gcc/cfgexpand.c:4028
0x9c482f expand_gimple_basic_block
       
/var/tmp/portage/sys-devel/gcc-12.0.0_p20211205/work/gcc-12-20211205/gcc/cfgexpand.c:6069
0x9c6396 execute
       
/var/tmp/portage/sys-devel/gcc-12.0.0_p20211205/work/gcc-12-20211205/gcc/cfgexpand.c:6795

Reply via email to