]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
print-rtl.c (print_rtx): When printing newline, append print_rtx_head and indentation...
authorJakub Jelinek <jakub@redhat.com>
Wed, 25 Nov 2009 20:18:37 +0000 (21:18 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 25 Nov 2009 20:18:37 +0000 (21:18 +0100)
* print-rtl.c (print_rtx): When printing newline, append
print_rtx_head and indentation after the newline.

From-SVN: r154651

gcc/ChangeLog
gcc/print-rtl.c

index 55acd66d12990feb2883563dafb0e4692ead8d36..f099af8851e88150edf84dd3c3d06329cdb3eb64 100644 (file)
@@ -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
index be380b11edb07bb647be48be89c15243b076bd71..ff73c4afb05f4f7e050056632808f165294647be 100644 (file)
@@ -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