aboutsummaryrefslogtreecommitdiff
path: root/gcc/print-rtl.c
diff options
context:
space:
mode:
authorJ"orn Rennecke <joern.rennecke@st.com>2006-07-17 14:44:48 +0000
committerJoern Rennecke <amylaar@gcc.gnu.org>2006-07-17 15:44:48 +0100
commit24a7799ea4d03dd01fe537ac2da65b41f6039bae (patch)
treeff661fb5805de209002f680c01355880f73d6feb /gcc/print-rtl.c
parent9d335249c9fe3535dfbb0af94617d32890d74702 (diff)
downloadgcc-24a7799ea4d03dd01fe537ac2da65b41f6039bae.zip
gcc-24a7799ea4d03dd01fe537ac2da65b41f6039bae.tar.gz
gcc-24a7799ea4d03dd01fe537ac2da65b41f6039bae.tar.bz2
re PR other/28251 (dumped addresses makes diffing dumps unusable)
gcc: PR other/28251 * tree.h (dump_addr): Declare. * print-tree.c (dump_addr): New function. (print_node_brief, print_node): Use it. * print-rtl.c (print_rtx): Likewise. * common.opt (-fdump-noaddr): New option. * doc/invoke.texi (-fdump-noaddr): Document. * loop-unroll.c (si_info_hash): Make hash independent of addresses. (ve_info_hash): Likewise. gcc/testsuite: PR other/28251 gcc.c-torture/unsorted/dump-noaddr.c: New test. gcc.c-torture/unsorted/dump-noaddr.x: New driver. From-SVN: r115519
Diffstat (limited to 'gcc/print-rtl.c')
-rw-r--r--gcc/print-rtl.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c
index 73e3710..a9c1a93 100644
--- a/gcc/print-rtl.c
+++ b/gcc/print-rtl.c
@@ -283,12 +283,9 @@ print_rtx (rtx in_rtx)
case NOTE_INSN_BLOCK_BEG:
case NOTE_INSN_BLOCK_END:
- fprintf (outfile, " ");
- if (flag_dump_unnumbered)
- fprintf (outfile, "#");
- else
- fprintf (outfile, "%p",
- (char *) NOTE_BLOCK (in_rtx));
+#ifndef GENERATOR_FILE
+ dump_addr (outfile, " ", NOTE_BLOCK (in_rtx));
+#endif
sawclose = 1;
break;
@@ -539,7 +536,9 @@ print_rtx (rtx in_rtx)
break;
case 't':
- fprintf (outfile, " %p", (void *) XTREE (in_rtx, i));
+#ifndef GENERATOR_FILE
+ dump_addr (outfile, " ", XTREE (in_rtx, i));
+#endif
break;
case '*':