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

            Bug ID: 107076
           Summary: ICE in gen_untyped_call, at config/i386/i386.md:15992
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gs...@t-online.de
  Target Milestone: ---

Affects versions down to r6 :


$ cat z1.c
void *h ();
void g ();
__attribute__ ((target_clones ("default", "arch=slm")))
void f ()
{
  g (__builtin_apply(h(), __builtin_apply_args(), 0));
}


$ gcc-13-20220925 -c z1.c
during RTL pass: expand
z1.c: In function 'f.arch_slm':
z1.c:6:3: internal compiler error: Segmentation fault
    6 |   g (__builtin_apply(h(), __builtin_apply_args(), 0));
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0xce3e8f crash_signal
        ../../gcc/toplev.cc:314
0x14a2403 gen_untyped_call(rtx_def*, rtx_def*, rtx_def*)
        ../../gcc/config/i386/i386.md:15992
0xff0da8 target_gen_untyped_call
        ../../gcc/config/i386/i386.md:16199
0x860621 expand_builtin_apply
        ../../gcc/builtins.cc:1750
0x86d346 expand_builtin(tree_node*, rtx_def*, rtx_def*, machine_mode, int)
        ../../gcc/builtins.cc:7521
0x991cd0 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        ../../gcc/expr.cc:11689
0x99ba63 store_expr(tree_node*, rtx_def*, int, bool, bool)
        ../../gcc/expr.cc:6155
0x99d06e expand_assignment(tree_node*, tree_node*, bool)
        ../../gcc/expr.cc:5876
0x88dcc2 expand_call_stmt
        ../../gcc/cfgexpand.cc:2829
0x88dcc2 expand_gimple_stmt_1
        ../../gcc/cfgexpand.cc:3880
0x88dcc2 expand_gimple_stmt
        ../../gcc/cfgexpand.cc:4044
0x892cf7 expand_gimple_basic_block
        ../../gcc/cfgexpand.cc:6096
0x8957be execute
        ../../gcc/cfgexpand.cc:6822

Reply via email to