https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67486
David Binderman <dcb314 at hotmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |vmakarov at gcc dot gnu.org --- Comment #6 from David Binderman <dcb314 at hotmail dot com> --- I wonder if changing type of static array full_costs from int to long would help solve the problem. Adding vmakarov, who seems to be the author of most of this section of code.