diff options
author | Jakub Jelinek <jakub@redhat.com> | 2009-11-25 21:18:37 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2009-11-25 21:18:37 +0100 |
commit | 8a2bbeef66ab5b6d2d2c733ccbed7002933d587d (patch) | |
tree | b176474bab0b73bbe47e99707fc2abea23c9ee8c | |
parent | 42da303a46b048bab9a00ae44fd38ca837984e69 (diff) | |
download | gcc-8a2bbeef66ab5b6d2d2c733ccbed7002933d587d.zip gcc-8a2bbeef66ab5b6d2d2c733ccbed7002933d587d.tar.gz gcc-8a2bbeef66ab5b6d2d2c733ccbed7002933d587d.tar.bz2 |
print-rtl.c (print_rtx): When printing newline, append print_rtx_head and indentation after the newline.
* print-rtl.c (print_rtx): When printing newline, append
print_rtx_head and indentation after the newline.
From-SVN: r154651
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/print-rtl.c | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 55acd66..f099af8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2009-11-25 Jakub Jelinek <jakub@redhat.com> + + * print-rtl.c (print_rtx): When printing newline, append + print_rtx_head and indentation after the newline. + 2009-11-25 Eric Botcazou <ebotcazou@adacore.com> PR target/10127 diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c index be380b1..ff73c4a 100644 --- a/gcc/print-rtl.c +++ b/gcc/print-rtl.c @@ -109,7 +109,8 @@ print_rtx (const_rtx in_rtx) } else if (GET_CODE (in_rtx) > NUM_RTX_CODE) { - fprintf (outfile, "(??? bad code %d\n)", GET_CODE (in_rtx)); + fprintf (outfile, "(??? bad code %d\n%s%*s)", GET_CODE (in_rtx), + print_rtx_head, indent * 2, ""); sawclose = 1; return; } @@ -307,7 +308,8 @@ print_rtx (const_rtx in_rtx) } else if (i == 8 && JUMP_P (in_rtx) && JUMP_LABEL (in_rtx) != NULL) /* Output the JUMP_LABEL reference. */ - fprintf (outfile, "\n -> %d", INSN_UID (JUMP_LABEL (in_rtx))); + fprintf (outfile, "\n%s%*s -> %d", print_rtx_head, indent * 2, "", + INSN_UID (JUMP_LABEL (in_rtx))); else if (i == 0 && GET_CODE (in_rtx) == VALUE) { #ifndef GENERATOR_FILE |