summaryrefslogtreecommitdiff
path: root/gcc/cfg.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cfg.c')
-rw-r--r--gcc/cfg.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/gcc/cfg.c b/gcc/cfg.c
index feac79bc71c..1ed6f1f0742 100644
--- a/gcc/cfg.c
+++ b/gcc/cfg.c
@@ -528,17 +528,13 @@ dump_bb_info (basic_block bb, bool header, bool footer, int flags,
}
void
-dump_flow_info (FILE *file)
+dump_flow_info (FILE *file, int flags)
{
basic_block bb;
- if (file == dump_file
- && (dump_flags & TDF_SLIM)
- && !(dump_flags & TDF_DETAILS))
- return;
-
/* There are no pseudo registers after reload. Don't dump them. */
- if (reg_n_info && !reload_completed)
+ if (reg_n_info && !reload_completed
+ && (flags & TDF_DETAILS) != 0)
{
unsigned int i, max = max_reg_num ();
fprintf (file, "%d registers.\n", max);
@@ -589,7 +585,7 @@ dump_flow_info (FILE *file)
fprintf (file, "\n%d basic blocks, %d edges.\n", n_basic_blocks, n_edges);
FOR_EACH_BB (bb)
{
- dump_bb_info (bb, true, true, TDF_DETAILS, "", file);
+ dump_bb_info (bb, true, true, flags, "", file);
check_bb_profile (bb, file);
}
@@ -599,7 +595,7 @@ dump_flow_info (FILE *file)
void
debug_flow_info (void)
{
- dump_flow_info (stderr);
+ dump_flow_info (stderr, TDF_DETAILS);
}
void