https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60436
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |jakub at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org --- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 34089 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34089&action=edit gcc5-pr60436.patch Untested fix. For add_map we have code to handle this. But if add_map is false too many times, we can still overflow. This patch forces add_map to true if highest is too high.