From 21076c8ec342f7610a684e60bee243f111a2d0fd Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Sun, 12 Sep 2004 10:27:04 -0700 Subject: [PATCH] print-rtl.c (print_decl_name): New. * print-rtl.c (print_decl_name): New. (print_mem_expr): Use it. From-SVN: r87395 --- gcc/ChangeLog | 5 +++++ gcc/print-rtl.c | 29 +++++++++++++++++++++++------ 2 files changed, 28 insertions(+), 6 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 81f42f3cd26..df4dd94b39e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-09-12 Richard Henderson ", outfile); - if (DECL_NAME (TREE_OPERAND (expr, 1))) - fprintf (outfile, ".%s", - IDENTIFIER_POINTER (DECL_NAME (TREE_OPERAND (expr, 1)))); + fputc ('.', outfile); + print_decl_name (outfile, TREE_OPERAND (expr, 1)); } else if (TREE_CODE (expr) == INDIRECT_REF) { @@ -86,12 +102,13 @@ print_mem_expr (FILE *outfile, tree expr) print_mem_expr (outfile, TREE_OPERAND (expr, 0)); fputs (")", outfile); } - else if (DECL_NAME (expr)) - fprintf (outfile, " %s", IDENTIFIER_POINTER (DECL_NAME (expr))); else if (TREE_CODE (expr) == RESULT_DECL) fputs (" ", outfile); else - fputs (" ", outfile); + { + fputc (' ', outfile); + print_decl_name (outfile, expr); + } } #endif -- 2.30.2