diff options
author | Richard Henderson <rth@redhat.com> | 2004-07-23 15:37:23 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2004-07-23 15:37:23 -0700 |
commit | ab8907ef75b71c987932a299bddf04cb73907c69 (patch) | |
tree | 6fa3fcbf916c4e6bd0c3081ee4de2cf5ae950925 /gcc/tree-alias-common.c | |
parent | 5aa33bdb4f75939b9467a4580aa13bb6997f192c (diff) | |
download | gcc-ab8907ef75b71c987932a299bddf04cb73907c69.zip gcc-ab8907ef75b71c987932a299bddf04cb73907c69.tar.gz gcc-ab8907ef75b71c987932a299bddf04cb73907c69.tar.bz2 |
expr.c (expand_expr_real_1): Don't handle non-local variables.
* expr.c (expand_expr_real_1): Don't handle non-local variables.
* expr.h (fix_lexical_addr): Remove.
* function.c (NEED_SEPARATE_AP): Remove.
(fix_lexical_addr): Remove.
* tree-alias-common.c (get_alias_var_decl): Check TREE_STATIC,
not null decl_function_context.
(create_alias_vars): Likewise.
* tree-cfg.c (make_ctrl_stmt_edges): Don't check for non-local labels.
(simple_goto_p): Likewise.
* tree-dfa.c (add_referenced_var): Don't check for non-local variables.
* tree-ssa-ccp.c (get_default_value): Likewise.
* tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
* tree.c (needs_to_live_in_memory): Likewise.
* tree-flow-inline.h (may_be_aliased): Move...
* tree-ssa-alias.c (may_be_aliased): ... here. Enhance check for
when TREE_STATIC variables may be addressable.
From-SVN: r85099
Diffstat (limited to 'gcc/tree-alias-common.c')
-rw-r--r-- | gcc/tree-alias-common.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gcc/tree-alias-common.c b/gcc/tree-alias-common.c index a7ce22d..d1a8568 100644 --- a/gcc/tree-alias-common.c +++ b/gcc/tree-alias-common.c @@ -154,11 +154,7 @@ get_alias_var_decl (tree decl) newvar = create_alias_var (decl); /* Assign globals to global var for purposes of intraprocedural analysis. */ - if ((DECL_CONTEXT (decl) == NULL - || TREE_PUBLIC (decl) - || TREE_STATIC (decl) - || decl_function_context (decl) == NULL) - && decl != pta_global_var) + if (TREE_STATIC (decl) && decl != pta_global_var) { current_alias_ops->addr_assign (current_alias_ops, get_alias_var (pta_global_var), @@ -1016,7 +1012,7 @@ create_alias_vars (void) { var = TREE_VALUE (vars); if (TREE_CODE (var) != LABEL_DECL - && decl_function_context (var) == NULL + && TREE_STATIC (var) && DECL_INITIAL (var)) find_func_aliases (var); } |