diff options
author | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-04-19 04:34:10 +0000 |
---|---|---|
committer | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-04-19 04:34:10 +0000 |
commit | b8bc99ef62e75350ba9e5642f01a2bba81531b46 (patch) | |
tree | 915a04c90fa9a75147206a08966c57d7e44ce733 /gcc/tree-cfg.c | |
parent | e6a991bd68e359b68170c4dee32ab34f878f6561 (diff) | |
download | gcc-b8bc99ef62e75350ba9e5642f01a2bba81531b46.tar.gz |
* tree-cfg.c (dump_function_to_file): Use cfun info only if it
refers to the function being dumped.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98367 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-cfg.c')
-rw-r--r-- | gcc/tree-cfg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index cfdf14c1ca1..28af511d175 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); |