Commit 1d79197a by Richard Kenner

(indent): Move to file level; was static in print_rtx.

(print_inline_rtx): New function.

From-SVN: r14633
parent a0c94d6d
/* Print RTL for GNU C Compiler. /* Print RTL for GNU C Compiler.
Copyright (C) 1987, 1988, 1992 Free Software Foundation, Inc. Copyright (C) 1987, 1988, 1992, 1997 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -47,6 +47,8 @@ char spaces[] = " ...@@ -47,6 +47,8 @@ char spaces[] = "
static int sawclose = 0; static int sawclose = 0;
static int indent;
/* Names for patterns. Non-zero only when linked with insn-output.c. */ /* Names for patterns. Non-zero only when linked with insn-output.c. */
extern char **insn_name_ptr; extern char **insn_name_ptr;
...@@ -57,7 +59,6 @@ static void ...@@ -57,7 +59,6 @@ static void
print_rtx (in_rtx) print_rtx (in_rtx)
register rtx in_rtx; register rtx in_rtx;
{ {
static int indent;
register int i, j; register int i, j;
register char *format_ptr; register char *format_ptr;
register int is_insn; register int is_insn;
...@@ -223,6 +224,20 @@ print_rtx (in_rtx) ...@@ -223,6 +224,20 @@ print_rtx (in_rtx)
sawclose = 1; sawclose = 1;
} }
/* Print an rtx on the current line of FILE. Initially indent IND
characters. */
void
print_inline_rtx (outf, x, ind)
FILE *outf;
rtx x;
{
sawclose = 0;
indent = ind;
outfile = outf;
print_rtx (x);
}
/* Call this function from the debugger to see what X looks like. */ /* Call this function from the debugger to see what X looks like. */
void void
...@@ -274,7 +289,7 @@ debug_rtx_list (x, n) ...@@ -274,7 +289,7 @@ debug_rtx_list (x, n)
The found insn is returned to enable further debugging analysis. */ The found insn is returned to enable further debugging analysis. */
rtx rtx
debug_rtx_find(x, uid) debug_rtx_find (x, uid)
rtx x; rtx x;
int uid; int uid;
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment