diff options
author | schwab <schwab@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-06-17 19:13:46 +0000 |
---|---|---|
committer | schwab <schwab@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-06-17 19:13:46 +0000 |
commit | 68d9a03dd747819d812a7e8eff215eaf5c3be4cf (patch) | |
tree | 587f1d49ea96f7810153c044c93c919f4f125f84 | |
parent | 5e988977a11731a7d2cac5a1f8ccd700576fb3cf (diff) | |
download | gcc-68d9a03dd747819d812a7e8eff215eaf5c3be4cf.tar.gz |
* print-rtl.c (print_rtx): Print space before vector, not after.
(debug_rtx): Clear sawclose before printing.
(debug_rtx_list): Print newline after each list element.
(debug_rtx_range): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54712 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/print-rtl.c | 11 |
2 files changed, 15 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 094dc639a72..bb963cd9c26 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2002-06-17 Andreas Schwab <schwab@suse.de> + + * print-rtl.c (print_rtx): Print space before vector, not after. + (debug_rtx): Clear sawclose before printing. + (debug_rtx_list): Print newline after each list element. + (debug_rtx_range): Likewise. + 2002-06-17 Richard Henderson <rth@redhat.com> * function.h (struct function) [funcdef_no]: Rename profile_label_no. diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c index f4c92d4ca62..88de967a056 100644 --- a/gcc/print-rtl.c +++ b/gcc/print-rtl.c @@ -323,7 +323,7 @@ print_rtx (in_rtx) print_rtx_head, indent * 2, ""); sawclose = 0; } - fputs ("[ ", outfile); + fputs (" [", outfile); if (NULL != XVEC (in_rtx, i)) { indent += 2; @@ -338,7 +338,7 @@ print_rtx (in_rtx) if (sawclose) fprintf (outfile, "\n%s%*s", print_rtx_head, indent * 2, ""); - fputs ("] ", outfile); + fputs ("]", outfile); sawclose = 1; indent -= 2; break; @@ -616,6 +616,7 @@ debug_rtx (x) rtx x; { outfile = stderr; + sawclose = 0; print_rtx (x); fprintf (stderr, "\n"); } @@ -652,7 +653,10 @@ debug_rtx_list (x, n) } for (i = count, insn = x; i > 0 && insn != 0; i--, insn = NEXT_INSN (insn)) - debug_rtx (insn); + { + debug_rtx (insn); + fprintf (stderr, "\n"); + } } /* Call this function to print an rtx list from START to END inclusive. */ @@ -664,6 +668,7 @@ debug_rtx_range (start, end) while (1) { debug_rtx (start); + fprintf (stderr, "\n"); if (!start || start == end) break; start = NEXT_INSN (start); |