diff options
author | Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | 1997-08-02 21:29:08 +0000 |
---|---|---|
committer | Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | 1997-08-02 21:29:08 +0000 |
commit | 34a7e9114c6910b11f7331b2326873b6a078fe7f (patch) | |
tree | 54de0a5f8484e6ecc9540962caa62de6586acac7 | |
parent | 3391777cb44d8e427462b3ffd4bc7ad0d181381e (diff) |
(indent): Move to file level; was static in print_rtx.
(print_inline_rtx): New function.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@14633 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/print-rtl.c | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c index 7c268197a74..1073288aff6 100644 --- a/gcc/print-rtl.c +++ b/gcc/print-rtl.c @@ -1,5 +1,5 @@ /* 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. @@ -47,6 +47,8 @@ char spaces[] = " static int sawclose = 0; +static int indent; + /* Names for patterns. Non-zero only when linked with insn-output.c. */ extern char **insn_name_ptr; @@ -57,7 +59,6 @@ static void print_rtx (in_rtx) register rtx in_rtx; { - static int indent; register int i, j; register char *format_ptr; register int is_insn; @@ -223,6 +224,20 @@ print_rtx (in_rtx) 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. */ void @@ -274,7 +289,7 @@ debug_rtx_list (x, n) The found insn is returned to enable further debugging analysis. */ rtx -debug_rtx_find(x, uid) +debug_rtx_find (x, uid) rtx x; int uid; { |