https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86736
--- Comment #6 from Iain Sandoe <iains at gcc dot gnu.org> --- 62017 would seem to suggest that we've generated bad code for the stage#3 tree_fits_shwi_p function (which would be a separate issue) but maybe the tree shouldn't be null anyway.