aboutsummaryrefslogtreecommitdiff
path: root/gcc/flow.c
diff options
context:
space:
mode:
authorJ"orn Rennecke <amylaar@cygnus.co.uk>1998-10-06 09:03:38 +0000
committerJoern Rennecke <amylaar@gcc.gnu.org>1998-10-06 10:03:38 +0100
commitb707b4509b0eb1b31919e724ef778a9b210a90b0 (patch)
treed886cd126771423714dea20b8ad27de6d6273fa0 /gcc/flow.c
parent87603ed0ee7dd6667ca5098dffb08a120435f713 (diff)
downloadgcc-b707b4509b0eb1b31919e724ef778a9b210a90b0.zip
gcc-b707b4509b0eb1b31919e724ef778a9b210a90b0.tar.gz
gcc-b707b4509b0eb1b31919e724ef778a9b210a90b0.tar.bz2
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/flow.c')
-rw-r--r--gcc/flow.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/flow.c b/gcc/flow.c
index f963c10..d602436 100644
--- a/gcc/flow.c
+++ b/gcc/flow.c
@@ -3171,7 +3171,6 @@ print_rtl_with_bb (outf, rtx_first)
FILE *outf;
rtx rtx_first;
{
- extern int flag_dump_unnumbered;
register rtx tmp_rtx;
if (rtx_first == 0)
@@ -3209,6 +3208,8 @@ print_rtl_with_bb (outf, rtx_first)
for (tmp_rtx = rtx_first; NULL != tmp_rtx; tmp_rtx = NEXT_INSN (tmp_rtx))
{
+ int did_output;
+
if ((bb = start[INSN_UID (tmp_rtx)]) >= 0)
{
fprintf (outf, ";; Start of basic block %d, registers live:",
@@ -3231,13 +3232,12 @@ print_rtl_with_bb (outf, rtx_first)
else if (in_bb_p[ INSN_UID(tmp_rtx)] == IN_MULTIPLE_BB)
fprintf (outf, ";; Insn is in multiple basic blocks\n");
- print_rtl_single (outf, tmp_rtx);
+ did_output = print_rtl_single (outf, tmp_rtx);
if ((bb = end[INSN_UID (tmp_rtx)]) >= 0)
fprintf (outf, ";; End of basic block %d\n", bb);
- if (! flag_dump_unnumbered
- || GET_CODE (tmp_rtx) != NOTE || NOTE_LINE_NUMBER (tmp_rtx) < 0)
+ if (did_output)
putc ('\n', outf);
}
}