aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-operands.c
diff options
context:
space:
mode:
authorDaniel Berlin <dberlin@dberlin.org>2005-03-30 22:10:47 +0000
committerDaniel Berlin <dberlin@gcc.gnu.org>2005-03-30 22:10:47 +0000
commitd19e9499fc4f7cf1bbcc48a8c7947d5818827a7f (patch)
treef6eaaa98001b2da1eb839c4603dc4bf351b73e15 /gcc/tree-ssa-operands.c
parent12527dcee33276926ce75f6117544205982291e9 (diff)
downloadgcc-d19e9499fc4f7cf1bbcc48a8c7947d5818827a7f.zip
gcc-d19e9499fc4f7cf1bbcc48a8c7947d5818827a7f.tar.gz
gcc-d19e9499fc4f7cf1bbcc48a8c7947d5818827a7f.tar.bz2
tree-ssa-alias.c (compute_flow_insensitive_aliasing): Make sure subvars get marked properly in tags for grouping.
2005-03-30 Daniel Berlin <dberlin@dberlin.org> * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Make sure subvars get marked properly in tags for grouping. (add_pointed_to_var): Mark only actual pointed to variables/subvars in addresses needed. (create_overlap_variables_for): Clear call clobbered on original variable. * tree-ssa-operands.c (get_asm_expr_operands): Don't let regular addresable vars with subvars into list. * tree-ssa.c (verify_ssa_name): Verify original is not used where subvar should be. From-SVN: r97285
Diffstat (limited to 'gcc/tree-ssa-operands.c')
-rw-r--r--gcc/tree-ssa-operands.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/tree-ssa-operands.c b/gcc/tree-ssa-operands.c
index 1ef06db..916814d 100644
--- a/gcc/tree-ssa-operands.c
+++ b/gcc/tree-ssa-operands.c
@@ -1370,6 +1370,17 @@ get_asm_expr_operands (tree stmt)
EXECUTE_IF_SET_IN_BITMAP (addressable_vars, 0, i, bi)
{
tree var = referenced_var (i);
+
+ /* Subvars are explicitly represented in this list, so
+ we don't need the original to be added to the clobber
+ ops, but the original *will* be in this list because
+ we keep the addressability of the original
+ variable up-to-date so we don't screw up the rest of
+ the backend. */
+ if (var_can_have_subvars (var)
+ && get_subvars_for_var (var) != NULL)
+ continue;
+
add_stmt_operand (&var, s_ann, opf_is_def);
}