diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2005-04-19 04:34:10 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2005-04-19 04:34:10 +0000 |
commit | 32a87d454ab2c6d64f0cd525bb0f8e202c7202da (patch) | |
tree | 915a04c90fa9a75147206a08966c57d7e44ce733 | |
parent | 0d620686ce0e753b29f54fd19fc901a78b09949c (diff) | |
download | gcc-32a87d454ab2c6d64f0cd525bb0f8e202c7202da.zip gcc-32a87d454ab2c6d64f0cd525bb0f8e202c7202da.tar.gz gcc-32a87d454ab2c6d64f0cd525bb0f8e202c7202da.tar.bz2 |
tree-cfg.c (dump_function_to_file): Use cfun info only if it refers to the function being dumped.
* tree-cfg.c (dump_function_to_file): Use cfun info only if it
refers to the function being dumped.
From-SVN: r98367
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree-cfg.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3dc660e..a716177 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-04-19 Alexandre Oliva <aoliva@redhat.com> + + * tree-cfg.c (dump_function_to_file): Use cfun info only if it + refers to the function being dumped. + 2005-04-18 Daniel Jacobowitz <dan@codesourcery.com> * varasm.c (assemble_start_function): Remove reset of in_section. diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index cfdf14c..28af511 100644 --- a/gcc/tree-cfg.c +++ b/gcc/tree-cfg.c @@ -5167,7 +5167,7 @@ dump_function_to_file (tree fn, FILE *file, int flags) /* When GIMPLE is lowered, the variables are no longer available in BIND_EXPRs, so display them separately. */ - if (cfun && cfun->unexpanded_var_list) + if (cfun && cfun->decl == fn && cfun->unexpanded_var_list) { ignore_topmost_bind = true; @@ -5183,7 +5183,7 @@ dump_function_to_file (tree fn, FILE *file, int flags) } } - if (cfun && cfun->cfg && basic_block_info) + if (cfun && cfun->decl == fn && cfun->cfg && basic_block_info) { /* Make a CFG based dump. */ check_bb_profile (ENTRY_BLOCK_PTR, file); |