diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1997-08-02 21:29:08 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1997-08-02 21:29:08 +0000 |
commit | 6a71e6dcddcb7fda76b3790b942955fbe75652af (patch) | |
tree | 54de0a5f8484e6ecc9540962caa62de6586acac7 /gcc/print-rtl.c | |
parent | 86333fd40bb23aec86e2600dbec313e5f17f2967 (diff) | |
download | gcc-6a71e6dcddcb7fda76b3790b942955fbe75652af.tar.gz |
(indent): Move to file level; was static in print_rtx.
(print_inline_rtx): New function.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14633 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/print-rtl.c')
-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; { |