https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82977
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Also, because strlen_to_stridx is only useful if warn_stringop_truncation, I think if it is turned into a pointer to hash_map, then it could be left NULL if !warn_stringop_truncation, and all the strlen_to_stridx related stuff only performed if strlen_to_stridx != NULL.