https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119559
Bug ID: 119559
Summary: [15 regression] GOMP: ICE in
modify_call_for_omp_dispatch
Product: gcc
Version: 15.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libgomp
Assignee: unassigned at gcc dot gnu.org
Reporter: ewlu at rivosinc dot com
CC: jakub at gcc dot gnu.org
Target Milestone: ---
Created attachment 60937
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60937&action=edit
freport-bug output
Postcommit is finding the following errors:
FAIL: c-c++-common/gomp/append-args-1.c (test for errors, line 82)
FAIL: c-c++-common/gomp/append-args-1.c -std=c++17 (test for errors, line 82)
FAIL: c-c++-common/gomp/append-args-1.c -std=c++17 (internal compiler error:
in modify_call_for_omp_dispatch, at gimplify.cc:3957)
FAIL: c-c++-common/gomp/append-args-1.c -std=c++17 (test for excess errors)
FAIL: c-c++-common/gomp/append-args-1.c -std=c++26 (test for errors, line 82)
FAIL: c-c++-common/gomp/append-args-1.c -std=c++26 (internal compiler error:
in modify_call_for_omp_dispatch, at gimplify.cc:3957)
FAIL: c-c++-common/gomp/append-args-1.c -std=c++26 (test for excess errors)
FAIL: c-c++-common/gomp/append-args-1.c -std=c++98 (test for errors, line 82)
FAIL: c-c++-common/gomp/append-args-1.c -std=c++98 (internal compiler error:
in modify_call_for_omp_dispatch, at gimplify.cc:3957)
FAIL: c-c++-common/gomp/append-args-1.c -std=c++98 (test for excess errors)
FAIL: c-c++-common/gomp/append-args-1.c (internal compiler error: in
modify_call_for_omp_dispatch, at gimplify.cc:3957)
FAIL: c-c++-common/gomp/append-args-1.c (test for excess errors)
https://github.com/patrick-rivos/gcc-postcommit-ci/issues/2894
Likely caused by r15-9063-gf3899e0fd3f
Tested on r15-9108-gc5d96fd5279
Command/backtrace
$
/scratch/ewlu/ci/triage/baseline/build-gomp-ice/build-gcc-linux-stage2/gcc/xgcc
-B/scratch/ewlu/ci/triage/baseline/build-gomp-ice/build-gcc-linux-stage2/gcc/
/scratch/ewlu/ci/triage/baseline/gcc/gcc/testsuite/c-c++-common/gomp/append-args-1.c
-march=rv64gcv -mabi=lp64d -mcmodel=medlow -fdiagnostics-plain-output
-fopenmp -S -o append-args-1.s -freport-bug
/scratch/ewlu/ci/triage/baseline/gcc/gcc/testsuite/c-c++-common/gomp/append-args-1.c:16:7:
error: argument 1 of 'repl0' must be of 'omp_interop_t'
/scratch/ewlu/ci/triage/baseline/gcc/gcc/testsuite/c-c++-common/gomp/append-args-1.c:17:64:
note: 'append_args' specified here
/scratch/ewlu/ci/triage/baseline/gcc/gcc/testsuite/c-c++-common/gomp/append-args-1.c:41:93:
error: too many 'append_args' clauses
/scratch/ewlu/ci/triage/baseline/gcc/gcc/testsuite/c-c++-common/gomp/append-args-1.c:41:29:
error: variant 'repl4' and base 'base4' have incompatible types
/scratch/ewlu/ci/triage/baseline/gcc/gcc/testsuite/c-c++-common/gomp/append-args-1.c:48:7:
error: argument 4 of 'repl5' must be of 'omp_interop_t'
/scratch/ewlu/ci/triage/baseline/gcc/gcc/testsuite/c-c++-common/gomp/append-args-1.c:49:64:
note: 'append_args' specified here
/scratch/ewlu/ci/triage/baseline/gcc/gcc/testsuite/c-c++-common/gomp/append-args-1.c:57:29:
error: variant 'repl6' and base 'base6' have incompatible types
/scratch/ewlu/ci/triage/baseline/gcc/gcc/testsuite/c-c++-common/gomp/append-args-1.c:
In function 'test':
/scratch/ewlu/ci/triage/baseline/gcc/gcc/testsuite/c-c++-common/gomp/append-args-1.c:82:32:
error: number of list items in 'interop' clause (2) exceeds the number of
'append_args' items (1) for 'declare variant' candidate 'repl3'
/scratch/ewlu/ci/triage/baseline/gcc/gcc/testsuite/c-c++-common/gomp/append-args-1.c:35:21:
note: 'declare variant' candidate 'repl3' declared here
/scratch/ewlu/ci/triage/baseline/gcc/gcc/testsuite/c-c++-common/gomp/append-args-1.c:83:5:
internal compiler error: in modify_call_for_omp_dispatch, at gimplify.cc:3957
0x30eac66 internal_error(char const*, ...)
../../../gcc/gcc/diagnostic-global-context.cc:517
0xd050a5 fancy_abort(char const*, int, char const*)
../../../gcc/gcc/diagnostic.cc:1749
0xb34569 modify_call_for_omp_dispatch
../../../gcc/gcc/gimplify.cc:3957
0x113604b expand_variant_call_expr
../../../gcc/gcc/gimplify.cc:4401
0x113604b gimplify_variant_call_expr
../../../gcc/gcc/gimplify.cc:4503
0x113604b gimplify_call_expr
../../../gcc/gcc/gimplify.cc:4708
0x112116f gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
../../../gcc/gcc/gimplify.cc:19440
0x112304a gimplify_stmt(tree_node**, gimple**)
../../../gcc/gcc/gimplify.cc:8437
0x114a241 gimplify_and_add(tree_node*, gimple**)
../../../gcc/gcc/gimplify.cc:547
0x114a241 gimplify_omp_dispatch
../../../gcc/gcc/gimplify.cc:18932
0x11220b5 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
../../../gcc/gcc/gimplify.cc:20143
0x112304a gimplify_stmt(tree_node**, gimple**)
../../../gcc/gcc/gimplify.cc:8437
0x11218d0 gimplify_statement_list
../../../gcc/gcc/gimplify.cc:2285
0x11218d0 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
../../../gcc/gcc/gimplify.cc:19922
0x112304a gimplify_stmt(tree_node**, gimple**)
../../../gcc/gcc/gimplify.cc:8437
0x11241e9 gimplify_bind_expr
../../../gcc/gcc/gimplify.cc:1680
0x1121155 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
../../../gcc/gcc/gimplify.cc:19672
0x113a80a gimplify_stmt(tree_node**, gimple**)
../../../gcc/gcc/gimplify.cc:8437
0x113a80a gimplify_body(tree_node*, bool)
../../../gcc/gcc/gimplify.cc:20774
0x113ace7 gimplify_function_tree(tree_node*)
../../../gcc/gcc/gimplify.cc:20983
Please submit a full bug report, with preprocessed source.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
Preprocessed source stored into /tmp/ccdZp4H9.out file, please attach this to
your bugreport.