From 43359148b252b9501b0b570b8d48d02fb301b6c8 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Wed, 29 Dec 2021 17:50:28 -0500 Subject: [PATCH] tree-pretty-print: still indent unhandled codes It would be nice to handle language-specific codes in the tree pretty-printer, but until then we can at least indent them appropriately. gcc/ChangeLog: * tree-pretty-print.c (do_niy): Add spc parameter. (NIY): Pass it. (print_call_name): Add spc local variable. --- gcc/tree-pretty-print.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c index c2bdfb5..3526625 100644 --- a/gcc/tree-pretty-print.c +++ b/gcc/tree-pretty-print.c @@ -53,19 +53,19 @@ static const char *op_symbol (const_tree); static void newline_and_indent (pretty_printer *, int); static void maybe_init_pretty_print (FILE *); static void print_struct_decl (pretty_printer *, const_tree, int, dump_flags_t); -static void do_niy (pretty_printer *, const_tree, dump_flags_t); +static void do_niy (pretty_printer *, const_tree, int, dump_flags_t); #define INDENT(SPACE) do { \ int i; for (i = 0; i