Re: [PATCH] dumpfile.c: fix stray dump_loc output (PR tree-optimization/87309)

2018-09-21 Thread David Malcolm
On Wed, 2018-09-19 at 15:51 +0200, Richard Biener wrote: > On Wed, Sep 19, 2018 at 12:42 PM David Malcolm > wrote: > > > > In r262891 I reimplemented this call: > > dump_printf_loc (MSG_NOTE, loc, "=== %s ===\n", name); > > in dump_begin_scope to use direct calls to dump_loc: > > if (dump_fil

Re: [PATCH] dumpfile.c: fix stray dump_loc output (PR tree-optimization/87309)

2018-09-19 Thread Richard Biener
On Wed, Sep 19, 2018 at 12:42 PM David Malcolm wrote: > > In r262891 I reimplemented this call: > dump_printf_loc (MSG_NOTE, loc, "=== %s ===\n", name); > in dump_begin_scope to use direct calls to dump_loc: > if (dump_file) > { > dump_loc (MSG_NOTE, dump_file, loc.get_location_t ())

[PATCH] dumpfile.c: fix stray dump_loc output (PR tree-optimization/87309)

2018-09-19 Thread David Malcolm
In r262891 I reimplemented this call: dump_printf_loc (MSG_NOTE, loc, "=== %s ===\n", name); in dump_begin_scope to use direct calls to dump_loc: if (dump_file) { dump_loc (MSG_NOTE, dump_file, loc.get_location_t ()); fprintf (dump_file, "=== %s ===\n", name); } if (alt_d