Bug 103224 - [12 Regression] FAIL: libgomp.c/../libgomp.c-c++-common/target-in-reduction-2.c (internal compiler error) by r12-5146
Summary: [12 Regression] FAIL: libgomp.c/../libgomp.c-c++-common/target-in-reduction-2...
Status: RESOLVED DUPLICATE of bug 103192
Alias: None
Product: gcc
Classification: Unclassified
Component: libgomp (show other bugs)
Version: 12.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-13 16:48 UTC by H.J. Lu
Modified: 2021-11-16 18:48 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description H.J. Lu 2021-11-13 16:48:09 UTC
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.
$
Comment 1 Jakub Jelinek 2021-11-13 18:27:18 UTC
No, it was happening before already, and is a gimplify.o miscompilation.

*** This bug has been marked as a duplicate of bug 103192 ***