Re: [5/10] Add tree_to_shwi and tree_to_uhwi

2013-11-18 Thread Richard Sandiford
Richard Biener writes: > On Sat, Nov 16, 2013 at 2:03 PM, Richard Sandiford > wrote: >> Add tree_to_shwi and tree_to_uhwi. Initially tree_to_uhwi returns a >> HOST_WIDE_INT, so that it's a direct replacement for tree_low_cst. >> Patch 10 makes it return unsigned HOST_WIDE_INT instead. > > Possib

Re: [5/10] Add tree_to_shwi and tree_to_uhwi

2013-11-18 Thread Richard Biener
On Sat, Nov 16, 2013 at 2:03 PM, Richard Sandiford wrote: > Add tree_to_shwi and tree_to_uhwi. Initially tree_to_uhwi returns a > HOST_WIDE_INT, so that it's a direct replacement for tree_low_cst. > Patch 10 makes it return unsigned HOST_WIDE_INT instead. Possibly same naming issue (though we al

[5/10] Add tree_to_shwi and tree_to_uhwi

2013-11-16 Thread Richard Sandiford
Add tree_to_shwi and tree_to_uhwi. Initially tree_to_uhwi returns a HOST_WIDE_INT, so that it's a direct replacement for tree_low_cst. Patch 10 makes it return unsigned HOST_WIDE_INT instead. Thanks, Richard gcc/ * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.