summaryrefslogtreecommitdiff
path: root/gcc/print-rtl.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2009-11-25 20:18:37 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2009-11-25 20:18:37 +0000
commit434b69b980f5834656679332f8e4e376cc433bdb (patch)
treeb176474bab0b73bbe47e99707fc2abea23c9ee8c /gcc/print-rtl.c
parentfe9e47878f3c8603f455dc647510b611ac00a956 (diff)
downloadgcc-434b69b980f5834656679332f8e4e376cc433bdb.tar.gz
* print-rtl.c (print_rtx): When printing newline, append
print_rtx_head and indentation after the newline. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154651 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/print-rtl.c')
-rw-r--r--gcc/print-rtl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c
index be380b11edb..ff73c4afb05 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