https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103224
Bug ID: 103224 Summary: [12 Regression] FAIL: libgomp.c/../libgomp.c-c++-common/target-in-reduction- 2.c (internal compiler error) by r12-5146 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libgomp Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com CC: jakub at gcc dot gnu.org Target Milestone: --- On Linux/x86, r12-5146 caused: $ /export/project/git/gcc-bisect/master/r12-5147/bld/./gcc/xgcc -B/export/project/git/gcc-bisect/master/r12-5147/bld/./gcc/ -B/export/project/git/gcc-bisect/master/r12-5147/usr/x86_64-pc-linux-gnu/bin/ -B/export/project/git/gcc-bisect/master/r12-5147/usr/x86_64-pc-linux-gnu/lib/ -isystem /export/project/git/gcc-bisect/master/r12-5147/usr/x86_64-pc-linux-gnu/include -isystem /export/project/git/gcc-bisect/master/r12-5147/usr/x86_64-pc-linux-gnu/sys-include -fchecking=1 ../../../../../gcc/libgomp/testsuite/libgomp.c/../libgomp.c-c++-common/target-in-reduction-2.c -B/export/project/git/gcc-bisect/master/r12-5147/bld/x86_64-pc-linux-gnu/./libgomp/ -B/export/project/git/gcc-bisect/master/r12-5147/bld/x86_64-pc-linux-gnu/./libgomp/.libs -I/export/project/git/gcc-bisect/master/r12-5147/bld/x86_64-pc-linux-gnu/./libgomp -I../../../../../gcc/libgomp/testsuite/../../include -I../../../../../gcc/libgomp/testsuite/.. -fmessage-length=0 -fno-diagnostics-show-caret -fdiagnostics-color=never -fopenmp -O2 -L/export/project/git/gcc-bisect/master/r12-5147/bld/x86_64-pc-linux-gnu/./libgomp/.libs -lm -o ./target-in-reduction-2.exe ../../../../../gcc/libgomp/testsuite/libgomp.c/../libgomp.c-c++-common/target-in-reduction-2.c: In function ??foo??: ../../../../../gcc/libgomp/testsuite/libgomp.c/../libgomp.c-c++-common/target-in-reduction-2.c:35:13: internal compiler error: Segmentation fault 0xea0e2f crash_signal ../../../gcc/gcc/toplev.c:322 0xbc36ef omp_add_variable ../../../gcc/gcc/gimplify.c:7143 0xbc9793 gimplify_scan_omp_clauses ../../../gcc/gcc/gimplify.c:10070 0xbd0e32 gimplify_omp_workshare ../../../gcc/gcc/gimplify.c:13694 0xbd2060 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ../../../gcc/gcc/gimplify.c:15191 0xbd67e6 gimplify_stmt(tree_node**, gimple**) ../../../gcc/gcc/gimplify.c:7031 0xbd47bb gimplify_statement_list ../../../gcc/gcc/gimplify.c:2012 0xbd47bb gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ../../../gcc/gcc/gimplify.c:15105 0xbd67e6 gimplify_stmt(tree_node**, gimple**) ../../../gcc/gcc/gimplify.c:7031 0xbd4216 gimplify_and_add(tree_node*, gimple**) ../../../gcc/gcc/gimplify.c:494 0xbd4216 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ../../../gcc/gcc/gimplify.c:15276 0xbd67e6 gimplify_stmt(tree_node**, gimple**) ../../../gcc/gcc/gimplify.c:7031 0xbd47bb gimplify_statement_list ../../../gcc/gcc/gimplify.c:2012 0xbd47bb gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ../../../gcc/gcc/gimplify.c:15105 0xbd67e6 gimplify_stmt(tree_node**, gimple**) ../../../gcc/gcc/gimplify.c:7031 0xbd704f gimplify_bind_expr ../../../gcc/gcc/gimplify.c:1426 0xbd3107 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ../../../gcc/gcc/gimplify.c:14861 0xbed037 gimplify_stmt(tree_node**, gimple**) ../../../gcc/gcc/gimplify.c:7031 0xbed037 gimplify_body(tree_node*, bool) ../../../gcc/gcc/gimplify.c:15906 0xbed4ad gimplify_function_tree(tree_node*) ../../../gcc/gcc/gimplify.c:16060 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. $