diff options
author | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-02-15 18:36:16 +0000 |
---|---|---|
committer | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-02-15 18:36:16 +0000 |
commit | 29e4566cee3ded04a2b0a6d538d86962e4227b25 (patch) | |
tree | 1b4083e3da8dae77376ffb0717557ef0a7be9e34 /gcc/tree-ssa.c | |
parent | 8ba7ed0c182bdf89793a29696da08cb9977e9554 (diff) | |
download | gcc-29e4566cee3ded04a2b0a6d538d86962e4227b25.tar.gz |
PR debug/47106
PR debug/47402
* tree-flow.h (referenced_var_lookup): Add fn parameter.
Adjust all callers.
* tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
* tree-flow-inline.h: Adjust.
* gimple-pretty-print.c: Adjust.
* tree-into-ssa.c: Adjust.
* tree-ssa.c: Adjust.
* cfgexpand.c: Adjust.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170185 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa.c')
-rw-r--r-- | gcc/tree-ssa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa.c b/gcc/tree-ssa.c index cc8c83d7c00..a787f710360 100644 --- a/gcc/tree-ssa.c +++ b/gcc/tree-ssa.c @@ -1930,7 +1930,7 @@ maybe_optimize_var (tree var, bitmap addresses_taken, bitmap not_reg_needs) /* If the variable is not in the list of referenced vars then we do not need to touch it nor can we rename it. */ - if (!referenced_var_lookup (DECL_UID (var))) + if (!referenced_var_lookup (cfun, DECL_UID (var))) return false; if (TREE_ADDRESSABLE (var) |