Re: wide-int, C++ front end

2014-01-02 Thread Jason Merrill
On 01/01/2014 09:41 PM, Mike Stump wrote: Jason, are the C++ patches with this change to them Ok? Yes. Jason

Re: wide-int, C++ front end

2014-01-01 Thread Mike Stump
On Nov 26, 2013, at 1:34 AM, Richard Biener wrote: > On Mon, Nov 25, 2013 at 9:05 PM, Richard Sandiford > wrote: >> Jason Merrill writes: >>> On 11/23/2013 02:20 PM, Mike Stump wrote: @@ -2605,8 +2606,7 @@ cp_tree_equal (tree t1, tree t2) switch (code1) { case IN

Re: wide-int, C++ front end

2013-11-26 Thread Richard Biener
On Mon, Nov 25, 2013 at 9:05 PM, Richard Sandiford wrote: > Jason Merrill writes: >> On 11/23/2013 02:20 PM, Mike Stump wrote: >>> @@ -2605,8 +2606,7 @@ cp_tree_equal (tree t1, tree t2) >>> switch (code1) >>> { >>> case INTEGER_CST: >>> - return TREE_INT_CST_LOW (t1) == TREE_

Re: wide-int, C++ front end

2013-11-25 Thread Jason Merrill
On 11/25/2013 03:05 PM, Richard Sandiford wrote: wi::eq_p (t1, t2) asserts that t1 and t2 are the same precision and ignores signedness; it just tests whether they are the same bitstring. wi::to_widest (t1) == wi::to_widest (t2) compares them as logical numbers, taking sign into account and allow

Re: wide-int, C++ front end

2013-11-25 Thread Richard Sandiford
Jason Merrill writes: > On 11/23/2013 02:20 PM, Mike Stump wrote: >> @@ -2605,8 +2606,7 @@ cp_tree_equal (tree t1, tree t2) >> switch (code1) >> { >> case INTEGER_CST: >> - return TREE_INT_CST_LOW (t1) == TREE_INT_CST_LOW (t2) >> -&& TREE_INT_CST_HIGH (t1) == TREE_INT_CST_

Re: wide-int, C++ front end

2013-11-25 Thread Kenneth Zadeck
fixed on the wide-int branch 205363. On 11/23/2013 09:00 PM, Jason Merrill wrote: On 11/23/2013 02:20 PM, Mike Stump wrote: @@ -2605,8 +2606,7 @@ cp_tree_equal (tree t1, tree t2) switch (code1) { case INTEGER_CST: - return TREE_INT_CST_LOW (t1) == TREE_INT_CST_LOW (t2) -

Re: wide-int, c front end

2013-11-25 Thread Joseph S. Myers
On Sat, 23 Nov 2013, Mike Stump wrote: > Richi has asked the we break the wide-int patch so that the individual > port and front end maintainers can review their parts without have to go > through the entire patch. This patch covers the c front end. > > Ok? OK. -- Joseph S. Myers jos...@cod

Re: wide-int, C++ front end

2013-11-23 Thread Jason Merrill
On 11/23/2013 02:20 PM, Mike Stump wrote: @@ -2605,8 +2606,7 @@ cp_tree_equal (tree t1, tree t2) switch (code1) { case INTEGER_CST: - return TREE_INT_CST_LOW (t1) == TREE_INT_CST_LOW (t2) - && TREE_INT_CST_HIGH (t1) == TREE_INT_CST_HIGH (t2); + return wi::to_widest

wide-int, C++ front end

2013-11-23 Thread Mike Stump
Richi has asked the we break the wide-int patch so that the individual port and front end maintainers can review their parts without have to go through the entire patch.This patch covers the C++ front end. Ok? cp: * call.c: Include wide-int.h. (type_passed_as): Use INT_CST_L

wide-int, c front end

2013-11-23 Thread Mike Stump
Richi has asked the we break the wide-int patch so that the individual port and front end maintainers can review their parts without have to go through the entire patch.This patch covers the c front end. Ok? c: * c-decl.c (check_bitfield_type_and_width): Use TYPE_SIGN.