aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-dfa.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2012-05-11 14:08:30 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2012-05-11 14:08:30 +0000
commit835c9db01f44e7346c5764f3c7abc654e9faa2e7 (patch)
tree539ec93dd09e2b8bae3be79be3efdd6dbaa6de1b /gcc/tree-dfa.c
parent6083578b4123a41fc9001dbb27ea568c3d442ad4 (diff)
downloadgcc-835c9db01f44e7346c5764f3c7abc654e9faa2e7.zip
gcc-835c9db01f44e7346c5764f3c7abc654e9faa2e7.tar.gz
gcc-835c9db01f44e7346c5764f3c7abc654e9faa2e7.tar.bz2
tree-flow.h (referenced_var_check_and_insert): Remove.
2012-05-11 Richard Guenther <rguenther@suse.de> * tree-flow.h (referenced_var_check_and_insert): Remove. (find_new_referenced_vars): Likewise. * tree-dfa.c (referenced_var_check_and_insert): Make static. (find_new_referenced_vars_1, find_new_referenced_vars): Remove. * tree-inline.c (copy_bb): Use find_referenced_vars_in instead of find_new_referenced_vars. * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise. From-SVN: r187408
Diffstat (limited to 'gcc/tree-dfa.c')
-rw-r--r--gcc/tree-dfa.c38
1 files changed, 2 insertions, 36 deletions
diff --git a/gcc/tree-dfa.c b/gcc/tree-dfa.c
index 3494fc9..3b60ba1 100644
--- a/gcc/tree-dfa.c
+++ b/gcc/tree-dfa.c
@@ -462,9 +462,7 @@ find_vars_r (tree *tp, int *walk_subtrees, void *data ATTRIBUTE_UNUSED)
return NULL_TREE;
}
-/* Find referenced variables in STMT. In contrast with
- find_new_referenced_vars, this function will not mark newly found
- variables for renaming. */
+/* Find referenced variables in STMT. */
void
find_referenced_vars_in (gimple stmt)
@@ -505,7 +503,7 @@ referenced_var_lookup (struct function *fn, unsigned int uid)
/* Check if TO is in the referenced_vars hash table and insert it if not.
Return true if it required insertion. */
-bool
+static bool
referenced_var_check_and_insert (tree to)
{
tree h, *loc;
@@ -667,38 +665,6 @@ mark_symbols_for_renaming (gimple stmt)
}
-/* Find all variables within the gimplified statement that were not
- previously visible to the function and add them to the referenced
- variables list. */
-
-static tree
-find_new_referenced_vars_1 (tree *tp, int *walk_subtrees,
- void *data ATTRIBUTE_UNUSED)
-{
- tree t = *tp;
-
- if (TREE_CODE (t) == VAR_DECL && !var_ann (t))
- {
- add_referenced_var (t);
- mark_sym_for_renaming (t);
- }
-
- if (IS_TYPE_OR_DECL_P (t))
- *walk_subtrees = 0;
-
- return NULL;
-}
-
-
-/* Find any new referenced variables in STMT. */
-
-void
-find_new_referenced_vars (gimple stmt)
-{
- walk_gimple_op (stmt, find_new_referenced_vars_1, NULL);
-}
-
-
/* If EXP is a handled component reference for a structure, return the
base variable. The access range is delimited by bit positions *POFFSET and
*POFFSET + *PMAX_SIZE. The access size is *PSIZE bits. If either