From: Richard Henderson Date: Sun, 12 Sep 2004 17:27:04 +0000 (-0700) Subject: print-rtl.c (print_decl_name): New. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=21076c8ec342f7610a684e60bee243f111a2d0fd;p=gcc.git print-rtl.c (print_decl_name): New. * print-rtl.c (print_decl_name): New. (print_mem_expr): Use it. From-SVN: r87395 --- 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