https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85594
Bug ID: 85594 Summary: ICE during expand when compiling with -fwrapv -fopenmp Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: kristerw at gcc dot gnu.org Target Milestone: --- Compiling gcc/testsuite/gcc.dg/gomp/pr81768-2.c with "-fwrapv -fopenmp" fails with an ICE: > gcc -S -fwrapv -fopenmp pr81768-2.c during RTL pass: expand ../pr81768-2.c: In function 'foo._omp_fn.1': ../pr81768-2.c:10:9: internal compiler error: in make_decl_rtl, at varasm.c:1322 #pragma omp target parallel for schedule(static, 32) collapse(3) ^~~ 0x5d230c make_decl_rtl(tree_node*) ../../gcc/gcc/varasm.c:1318 0x7c79bc expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ../../gcc/gcc/expr.c:9965 0x7d05de expand_expr ../../gcc/gcc/expr.h:280 0x7d05de expand_expr_addr_expr_1 ../../gcc/gcc/expr.c:7946 0x7d0465 expand_expr_addr_expr_1 ../../gcc/gcc/expr.c:7992 0x7c698d expand_expr_addr_expr ../../gcc/gcc/expr.c:8067 0x7c698d expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ../../gcc/gcc/expr.c:11239 0x7433a0 expand_normal ../../gcc/gcc/expr.h:286 0x7433a0 do_compare_and_jump ../../gcc/gcc/dojump.c:1196 0x744253 do_jump_1(tree_code, tree_node*, tree_node*, rtx_code_label*, rtx_code_label*, profile_probability) ../../gcc/gcc/dojump.c:261 0x6dc3cc expand_gimple_cond ../../gcc/gcc/cfgexpand.c:2495 0x6dc3cc expand_gimple_basic_block ../../gcc/gcc/cfgexpand.c:5674 0x6dff66 execute ../../gcc/gcc/cfgexpand.c:6425 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.