https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70488
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 38153 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38153&action=edit gcc6-pr70488.patch I think tree_fits_uhwi_p is the right test. The code uses unsigned HOST_WIDE_INT, so doesn't need objects that fit into half of address space.