diff options
author | J"orn Rennecke <amylaar@cygnus.co.uk> | 1998-10-06 09:03:38 +0000 |
---|---|---|
committer | Joern Rennecke <amylaar@gcc.gnu.org> | 1998-10-06 10:03:38 +0100 |
commit | b707b4509b0eb1b31919e724ef778a9b210a90b0 (patch) | |
tree | d886cd126771423714dea20b8ad27de6d6273fa0 /gcc/print-rtl.c | |
parent | 87603ed0ee7dd6667ca5098dffb08a120435f713 (diff) | |
download | gcc-b707b4509b0eb1b31919e724ef778a9b210a90b0.tar.gz |
Cleanup for -fdump-unnumbered:
* flags.h (flag_dump_unnumbered): Declare.
* toplev.c (flag_dump_unnumbered): Don't declare.
* print-rtl.c (flags.h): Include.
(print_rtl_single): Add return value.
* rtl.h (print_rtl_single): Update declaration.
* flow.c (flag_dump_unnumbered): Don't declare.
(print_rtl_with_bb): Use return value of print_rtl_single.
From-SVN: r22865
Diffstat (limited to 'gcc/print-rtl.c')
-rw-r--r-- | gcc/print-rtl.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c index 415a2cc8ad4..e3b36fe0a26 100644 --- a/gcc/print-rtl.c +++ b/gcc/print-rtl.c @@ -24,6 +24,7 @@ Boston, MA 02111-1307, USA. */ #include "rtl.h" #include "bitmap.h" #include "real.h" +#include "flags.h" /* How to print out a register name. @@ -54,7 +55,11 @@ static int indent; extern char **insn_name_ptr; +/* Nonzero means suppress output of instruction numbers and line number + notes in debugging dumps. + This must be defined here so that programs like gencodes can be linked. */ int flag_dump_unnumbered = 0; + /* Print IN_RTX onto OUTFILE. This is the recursive part of printing. */ static void @@ -409,8 +414,9 @@ print_rtl (outf, rtx_first) } /* Like print_rtx, except specify a file. */ +/* Return nonzero if we actually printed anything. */ -void +int print_rtl_single (outf, x) FILE *outf; rtx x; @@ -422,5 +428,7 @@ print_rtl_single (outf, x) { print_rtx (x); putc ('\n', outf); + return 1; } + return 0; } |