Re: PR 61136: wide-int fallout in int_const_binop_1

2014-05-11 Thread Richard Biener
On Sat, May 10, 2014 at 9:11 PM, Richard Sandiford wrote: > The wide-int version of int_const_binop_1 has: > > static tree > int_const_binop_1 (enum tree_code code, const_tree arg1, const_tree parg2, >int overflowable) > { > [...] > tree type = TREE_TYPE (arg1); > [...] >

Re: PR 61136: wide-int fallout in int_const_binop_1

2014-05-10 Thread Mike Stump
On May 10, 2014, at 12:11 PM, Richard Sandiford wrote: > The new conversion can't be right because it loses overflow information. > The question then is whether this function should be prepared to handle > mismatched arguments (as the pre-wide-int version effectively did, since > it did everythin

PR 61136: wide-int fallout in int_const_binop_1

2014-05-10 Thread Richard Sandiford
The wide-int version of int_const_binop_1 has: static tree int_const_binop_1 (enum tree_code code, const_tree arg1, const_tree parg2, int overflowable) { [...] tree type = TREE_TYPE (arg1); [...] wide_int arg2 = wide_int::from (parg2, TYPE_PRECISION (type),