Re: [PATCH v2] Replace C/C++ void_zero_node with a VOID_CST tree code

2014-05-20 Thread Jason Merrill
OK. I've committed my patch. Jason

[PATCH v2] Replace C/C++ void_zero_node with a VOID_CST tree code

2014-05-20 Thread Richard Sandiford
This is an updated version of the patch to replace void_zero_node with void_node. The main controversial point/hack in the original was that it handled void_node in the gimplifier as a zero constant. Jason sent me a patch that traps the dummy object in the front end, meaning that it no longer esc

Re: Replace C/C++ void_zero_node with a VOID_CST tree code

2014-05-19 Thread Richard Biener
On Mon, May 19, 2014 at 12:03 PM, Richard Sandiford wrote: > Richard Biener writes: >> On Mon, May 19, 2014 at 11:27 AM, Richard Sandiford >> wrote: >>> Richard Biener writes: On Sat, May 17, 2014 at 10:15 AM, Richard Sandiford wrote: > The main thing keeping zero-precision wide-

Re: Replace C/C++ void_zero_node with a VOID_CST tree code

2014-05-19 Thread Richard Sandiford
Richard Biener writes: > On Mon, May 19, 2014 at 11:27 AM, Richard Sandiford > wrote: >> Richard Biener writes: >>> On Sat, May 17, 2014 at 10:15 AM, Richard Sandiford >>> wrote: The main thing keeping zero-precision wide-ints alive was void_zero_node, a tree used in the C and C++ fro

Re: Replace C/C++ void_zero_node with a VOID_CST tree code

2014-05-19 Thread Richard Biener
On Mon, May 19, 2014 at 11:27 AM, Richard Sandiford wrote: > Richard Biener writes: >> On Sat, May 17, 2014 at 10:15 AM, Richard Sandiford >> wrote: >>> The main thing keeping zero-precision wide-ints alive was void_zero_node, >>> a tree used in the C and C++ frontends that has type VOID_TYPE bu

Re: Replace C/C++ void_zero_node with a VOID_CST tree code

2014-05-19 Thread Richard Sandiford
Richard Biener writes: > On Sat, May 17, 2014 at 10:15 AM, Richard Sandiford > wrote: >> The main thing keeping zero-precision wide-ints alive was void_zero_node, >> a tree used in the C and C++ frontends that has type VOID_TYPE but code >> INTEGER_CST. >> >> Richard B. asked me to replace the IN

Re: Replace C/C++ void_zero_node with a VOID_CST tree code

2014-05-19 Thread Richard Biener
On Sat, May 17, 2014 at 10:15 AM, Richard Sandiford wrote: > The main thing keeping zero-precision wide-ints alive was void_zero_node, > a tree used in the C and C++ frontends that has type VOID_TYPE but code > INTEGER_CST. > > Richard B. asked me to replace the INTEGER_CST with a new constant typ

Re: Replace C/C++ void_zero_node with a VOID_CST tree code

2014-05-17 Thread Richard Sandiford
Richard Sandiford writes: > The main thing keeping zero-precision wide-ints alive was void_zero_node, > a tree used in the C and C++ frontends that has type VOID_TYPE but code > INTEGER_CST. > > Richard B. asked me to replace the INTEGER_CST with a new constant type, > here called VOID_CST. Most

Replace C/C++ void_zero_node with a VOID_CST tree code

2014-05-17 Thread Richard Sandiford
The main thing keeping zero-precision wide-ints alive was void_zero_node, a tree used in the C and C++ frontends that has type VOID_TYPE but code INTEGER_CST. Richard B. asked me to replace the INTEGER_CST with a new constant type, here called VOID_CST. Most of it is straight-forward. The one pe