diff options
author | Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | 2001-10-24 16:38:51 +0000 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 2001-10-24 12:38:51 -0400 |
commit | 80965c18cc96b7c538273d7cf34aa1b780e79354 (patch) | |
tree | 48ba44f000ec44932406b9fa2b81135709b66fcc /gcc/print-rtl.c | |
parent | 4cc30a9ea2c7355767554f4063c0195dea8a1ffb (diff) | |
download | gcc-80965c18cc96b7c538273d7cf34aa1b780e79354.tar.gz |
emit-rtl.c (set_mem_attributes): Fix typo in last change.
* emit-rtl.c (set_mem_attributes): Fix typo in last change.
* print-rtl.c (print_rtx, case MEM): Improve display of MEM_DECL.
From-SVN: r46465
Diffstat (limited to 'gcc/print-rtl.c')
-rw-r--r-- | gcc/print-rtl.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c index 3d78dd392f0..b62c698f677 100644 --- a/gcc/print-rtl.c +++ b/gcc/print-rtl.c @@ -453,9 +453,12 @@ print_rtx (in_rtx) case MEM: fputs (" [", outfile); fprintf (outfile, HOST_WIDE_INT_PRINT_DEC, MEM_ALIAS_SET (in_rtx)); - if (MEM_DECL (in_rtx) && DECL_NAME (MEM_DECL (in_rtx))) + if (MEM_DECL (in_rtx)) fprintf (outfile, " %s", - IDENTIFIER_POINTER (DECL_NAME (MEM_DECL (in_rtx)))); + DECL_NAME (MEM_DECL (in_rtx)) + ? IDENTIFIER_POINTER (DECL_NAME (MEM_DECL (in_rtx))) + : TREE_CODE (MEM_DECL (in_rtx)) == RESULT_DECL ? "<result>" + : "<anonymous>"); if (MEM_OFFSET (in_rtx)) { |