https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78501
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- (In reply to prathamesh3492 from comment #2) > Hi, > From the trace, it seems ptrdiff_type_node is set to NULL for ada ? > Either we can guard setting range for CFN_BUILTIN_STRLEN by checking > ptrtdiff_type_node is non null, or make vrp_val_max return NULL if type is > NULL. > I am trying to reproduce on x86_64-unknown-linux-gnu. > > Thanks, > Prathamesh Looks like gimple-ssa-sprintf.c also unconditionally uses it. I suppose we should move its initialization to build_common_tree_nodes, it's built from the PTRDIFF_TYPE target macro. See how size_type_node is built. Also move unsigned_ptrdiff_type_node.