Re: Fix unguarded uses of tree_to_uhwi

2017-09-20 Thread Richard Biener
On September 20, 2017 2:15:19 PM GMT+02:00, Richard Sandiford wrote: >This patch uses tree_fits_uhwi_p to protect a previously unguarded >use of tree_to_uhwi. Without this we would ICE for variable-sized >types. > >Tested on aarch64-linux-gnu, x86_64-linux-gnu and >powerpc64le-linus-gnu. >OK to

Fix unguarded uses of tree_to_uhwi

2017-09-20 Thread Richard Sandiford
This patch uses tree_fits_uhwi_p to protect a previously unguarded use of tree_to_uhwi. Without this we would ICE for variable-sized types. Tested on aarch64-linux-gnu, x86_64-linux-gnu and powerpc64le-linus-gnu. OK to install? Richard 2017-09-20 Richard Sandiford Alan Hayward