diff options
author | amylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-07-17 14:44:48 +0000 |
---|---|---|
committer | amylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-07-17 14:44:48 +0000 |
commit | 969239ad7a968dbd55294c9af7ca665b900942aa (patch) | |
tree | ff661fb5805de209002f680c01355880f73d6feb /gcc/print-rtl.c | |
parent | 8e659d3072a90ecfd60e39b8e766f60282da3a70 (diff) | |
download | gcc-969239ad7a968dbd55294c9af7ca665b900942aa.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115519 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/print-rtl.c')
-rw-r--r-- | gcc/print-rtl.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c index 73e3710cea2..a9c1a932bde 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 '*': |