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

            Bug ID: 99224
           Summary: [9/10/11 Regression] ICE in location_wrapper_p, at
                    tree.h:4052
           Product: gcc
           Version: 11.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 f (char *c, ...)
{
  __builtin_next_arg (*c);
}


$ gcc-11-20210221 -c z1.c
during RTL pass: expand
z1.c: In function 'f':
z1.c:3:3: internal compiler error: Segmentation fault
    3 |   __builtin_next_arg (*c);
      |   ^~~~~~~~~~~~~~~~~~~~~~~
0xb5eaff crash_signal
        ../../gcc/toplev.c:327
0xdd3254 location_wrapper_p(tree_node const*)
        ../../gcc/tree.h:4052
0xdd3254 tree_strip_any_location_wrapper(tree_node*)
        ../../gcc/tree.h:4064
0xdd3254 integer_zerop(tree_node const*)
        ../../gcc/tree.c:2664
0x72d9c7 fold_builtin_next_arg(tree_node*, bool)
        ../../gcc/builtins.c:12606
0x73a149 expand_builtin(tree_node*, rtx_def*, rtx_def*, machine_mode, int)
        ../../gcc/builtins.c:9725
0x85d220 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        ../../gcc/expr.c:11276
0x75e65a expand_expr
        ../../gcc/expr.h:282
0x75e65a expand_call_stmt
        ../../gcc/cfgexpand.c:2840
0x75e65a expand_gimple_stmt_1
        ../../gcc/cfgexpand.c:3844
0x75e65a expand_gimple_stmt
        ../../gcc/cfgexpand.c:4008
0x763237 expand_gimple_basic_block
        ../../gcc/cfgexpand.c:6045
0x76596e execute
        ../../gcc/cfgexpand.c:6729

Reply via email to