https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97880
Bug ID: 97880
Summary: [9/10/11 Regression] ICE in emit_library_call_value_1,
at calls.c:5298
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: [email protected]
Target Milestone: ---
With option -ftrapv at -O0, down to version r7 :
$ cat z1.c
void f ()
{
#pragma acc parallel loop tile(2, 3)
for (int i = 0; i < 8; i++)
for (long j = 0; j < 8; j++);
}
$ gcc-6 -c z1.c -fopenacc -ftrapv -O0
$
$ gcc-11-20201115 -c z1.c -fopenacc
$ gcc-11-20201115 -c z1.c -fopenacc -ftrapv -O1
$
$ gcc-11-20201115 -c z1.c -fopenacc -ftrapv -O0
during RTL pass: expand
z1.c: In function 'f._omp_fn.0':
z1.c:3:11: internal compiler error: in emit_library_call_value_1, at
calls.c:5298
3 | #pragma acc parallel loop tile(2, 3)
| ^~~
0x7304a0 emit_library_call_value_1(int, rtx_def*, rtx_def*, libcall_type,
machine_mode, int, std::pair<rtx_def*, machine_mode>*)
../../gcc/calls.c:5296
0xa3b4c8 emit_library_call_value(rtx_def*, rtx_def*, libcall_type,
machine_mode, rtx_def*, machine_mode, rtx_def*, machine_mode)
../../gcc/rtl.h:4258
0xa3b4c8 expand_binop(machine_mode, optab_tag, rtx_def*, rtx_def*, rtx_def*,
int, optab_methods)
../../gcc/optabs.c:1837
0x83bd01 expand_mult(machine_mode, rtx_def*, rtx_def*, rtx_def*, int, bool)
../../gcc/expmed.c:3571
0x858a04 expand_expr_real_2(separate_ops*, rtx_def*, machine_mode,
expand_modifier)
../../gcc/expr.c:9175
0x74af02 expand_gimple_stmt_1
../../gcc/cfgexpand.c:3816
0x74af02 expand_gimple_stmt
../../gcc/cfgexpand.c:3877
0x74fb37 expand_gimple_basic_block
../../gcc/cfgexpand.c:5918
0x75219e execute
../../gcc/cfgexpand.c:6602