Re: [PATCH] middle-end/97855 - avoid recursing into pp_printf

2021-03-04 Thread Richard Biener
; case annot_expr_no_vector_kind: > > pp_string (pp, ", no-vector"); > > break; > > @@ -3205,7 +3257,8 @@ dump_generic_node (pretty_printer *pp, tree node, int > > spc, dump_flags_t flags, > >dump_generic_node (pp, CHREC_LEFT (node), spc, flags, f

Re: [PATCH] middle-end/97855 - avoid recursing into pp_printf

2021-03-04 Thread Jakub Jelinek via Gcc-patches
On Thu, Mar 04, 2021 at 09:08:35AM +0100, Richard Biener wrote: > 2021-03-04 Richard Biener > > PR middle-end/97855 > * tree-pretty-print.c: Poison pp_printf. > (dump_decl_name): Avoid use of pp_printf. > (dump_block_node): Likewise. > (dump_generic_node): Likewise

[PATCH] middle-end/97855 - avoid recursing into pp_printf

2021-03-04 Thread Richard Biener
When diagnostic messages use pretty-printer formats like %D or %E the pp_printf invocation can end up in tree pretty-printers which then have to avoid using pp_printf themselves since this function is not re-entrant. The following removes all pp_printf uses from tree-pretty-print.c fixing the obse