diff options
author | bonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-02-15 09:15:56 +0000 |
---|---|---|
committer | bonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-02-15 09:15:56 +0000 |
commit | 562d71e815ab06366be965829e291b264cfdd7b5 (patch) | |
tree | 1615cb62d40221497e159fa5d08ee5fb0cbdb56f /gcc/cfg.c | |
parent | 15348a37ae1808663e1cf7bf164e9e61b969f2e4 (diff) | |
download | gcc-562d71e815ab06366be965829e291b264cfdd7b5.tar.gz |
2006-02-15 Paolo Bonzini <bonzini@gnu.org>
* cfg.c (dump_flow_info): Get dump flags as an additional parameter.
(debug_flow_info): Pass it.
* alias.c (rest_of_handle_cfg): Adjust calls to dump_flow_info.
* bb-reorder.c (reorder_basic_blocks): Likewise.
* cfgcleanup.c (rest_of_handle_jump2): Likewise.
* cse.c (rest_of_handle_cse, rest_of_handle_cse2): Likewise.
* flow.c (life_analysis, recompute_reg_usage): Likewise.
* gcse.c (gcse_main, bypass_jumps): Likewise.
* ifcvt.c (rest_of_handle_if_conversion): Likewise.
* local-alloc.c (rest_of_handle_local_alloc): Likewise.
* loop-init.c (rtl_loop_init, rtl_loop_done): Likewise.
* profile.c (compute_branch_probabilities, branch_prob): Likewise.
* rtl.h (dump_flow_info): Adjust prototype.
* tracer.c (rest_of_handle_tracer, tracer): Likewise.
* var-tracking.c (variable_tracking_main): Likewise.
* passes.c (execute_todo): Obey TDF_BLOCKS for RTL.
* tree-dump.c (enable_rtl_dump_file): Enable the details and blocks
options.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@111020 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfg.c')
-rw-r--r-- | gcc/cfg.c | 14 |
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 |