Re: [PATCH 2/5] dumpfile.c: eliminate special-casing of dump_file/alt_dump_file

2018-07-31 Thread Richard Biener
On Tue, Jul 31, 2018 at 5:34 PM David Malcolm wrote: > > On Tue, 2018-07-31 at 14:53 +0200, Richard Biener wrote: > > On Fri, Jul 27, 2018 at 11:48 PM David Malcolm > > wrote: > > > > > > With the addition of optinfo, the various dump_* calls had three > > > parts: > > > - optionally print to dum

Re: [PATCH 2/5] dumpfile.c: eliminate special-casing of dump_file/alt_dump_file

2018-07-31 Thread David Malcolm
On Tue, 2018-07-31 at 14:53 +0200, Richard Biener wrote: > On Fri, Jul 27, 2018 at 11:48 PM David Malcolm > wrote: > > > > With the addition of optinfo, the various dump_* calls had three > > parts: > > - optionally print to dump_file > > - optionally print to alt_dump_file > > - optionally make

Re: [PATCH 2/5] dumpfile.c: eliminate special-casing of dump_file/alt_dump_file

2018-07-31 Thread Richard Biener
On Fri, Jul 27, 2018 at 11:48 PM David Malcolm wrote: > > With the addition of optinfo, the various dump_* calls had three parts: > - optionally print to dump_file > - optionally print to alt_dump_file > - optionally make an optinfo_item and add it to the pending optinfo, > creating it for dump_

[PATCH 2/5] dumpfile.c: eliminate special-casing of dump_file/alt_dump_file

2018-07-27 Thread David Malcolm
With the addition of optinfo, the various dump_* calls had three parts: - optionally print to dump_file - optionally print to alt_dump_file - optionally make an optinfo_item and add it to the pending optinfo, creating it for dump_*_loc calls. However, this split makes it difficult to implement t