https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104026
Bug ID: 104026
Summary: [12 Regression] ICE in wide_int_to_tree_1, at
tree.c:1755 via tree-vect-loop-manip.c:673
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: middle-end
Assignee: unassigned at gcc dot gnu.org
Reporter: burnus at gcc dot gnu.org
Target Milestone: ---
Host: x86_64-gnu-linux
Target: amdgcn-amdhsa
Seems to be very new as the build yesterday still worked. Happens when
compiling newlib with the AMDGCN-targeting compiler:
newlib/libc/stdlib/ecvtbuf.c:268:1: internal compiler error: in
wide_int_to_tree_1, at tree.c:1755
268 | ecvtbuf (double invalue,
| ^~~~~~~
0x7f0966 wide_int_to_tree_1
src/gcc-mainline/gcc/tree.c:1755
0x12a41bc wide_int_to_tree(tree_node*, poly_int<1u,
generic_wide_int<wide_int_ref_storage<false, true> > > const&)
src/gcc-mainline/gcc/tree.c:1867
0x12a41bc build_int_cst(tree_node*, poly_int<1u, long>)
src/gcc-mainline/gcc/tree.c:1507
0x1251bd7 vect_set_loop_controls_directly
src/gcc-mainline/gcc/tree-vect-loop-manip.c:673