https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120604
--- Comment #5 from David Binderman <dcb314 at hotmail dot com> --- (In reply to Uroš Bizjak from comment #4) > Unfortunately I > have very limited knowledge on how to fix signed overflow, so I would really > appreciate some help here. Suggest use a type with more bits in it. I have seen wide-ints used for situations like this, but I don't know if they are suitable here. See trunk/gcc/wide-int.h