diff options
Diffstat (limited to 'gcc/c-family/c-pretty-print.c')
-rw-r--r-- | gcc/c-family/c-pretty-print.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gcc/c-family/c-pretty-print.c b/gcc/c-family/c-pretty-print.c index d445187907d..edeccce7a12 100644 --- a/gcc/c-family/c-pretty-print.c +++ b/gcc/c-family/c-pretty-print.c @@ -846,8 +846,7 @@ pp_c_function_definition (c_pretty_printer *pp, tree t) pp_declarator (pp, t); pp_needs_newline (pp) = true; pp_statement (pp, DECL_SAVED_TREE (t)); - pp_newline (pp); - pp_flush (pp); + pp_newline_and_flush (pp); } @@ -2142,7 +2141,8 @@ pp_c_expression (c_pretty_printer *pp, tree e) break; case SSA_NAME: - if (!DECL_ARTIFICIAL (SSA_NAME_VAR (e))) + if (SSA_NAME_VAR (e) + && !DECL_ARTIFICIAL (SSA_NAME_VAR (e))) pp_c_expression (pp, SSA_NAME_VAR (e)); else pp_c_ws_string (pp, M_("<unknown>")); @@ -2361,8 +2361,7 @@ print_c_tree (FILE *file, tree t) pp_statement (pp, t); - pp_newline (pp); - pp_flush (pp); + pp_newline_and_flush (pp); } /* Print the tree T in full, on stderr. */ |