https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102172
Bug ID: 102172 Summary: ice in determine_exit_conditions, at tree-ssa-loop-manip.c:1049 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- For this C code: char **Gif_ClipImage_gfi_0; int Gif_ClipImage_y, Gif_ClipImage_shift; void Gif_ClipImage() { for (; Gif_ClipImage_y >= Gif_ClipImage_shift; Gif_ClipImage_y++) Gif_ClipImage_gfi_0[Gif_ClipImage_shift] = Gif_ClipImage_gfi_0[Gif_ClipImage_y]; } compiled by recent gcc trunk and compiler flag -O3 -march=bdver2, does this: $ /home/dcb/gcc/results/bin/gcc -c -O3 -march=bdver2 bug753.c during GIMPLE pass: aprefetch bug753.c: In function ‘Gif_ClipImage’: bug753.c:3:6: internal compiler error: in determine_exit_conditions, at tree-ssa-loop-manip.c:1049 3 | void Gif_ClipImage() { | ^~~~~~~~~~~~~ 0xf070ff determine_exit_conditions(loop*, tree_niter_desc*, unsigned int, tree_node**, tree_node**, tree_node**, tree_code*, tree_node**) ../../trunk.git/gcc/tree-ssa-loop-manip.c:1049 0xf070ff tree_transform_and_unroll_loop(loop*, unsigned int, edge_def*, tree_niter_desc*, void (*)(loop*, void*), void*) The bug first starts sometime between git hash f8977166135de09f, dated 20210824 and git hash 3ac6b5cff1eca4e1, dated 20210825.