diff options
author | Jan Hubicka <hubicka@gcc.gnu.org> | 2005-07-12 22:06:49 +0000 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2005-07-12 22:06:49 +0000 |
commit | 7fac66d43ca6cae23140f6dc6be408d49f731d12 (patch) | |
tree | 14e86f3aaf1e0d285c00b18ab0dce26d5e8a46f6 /gcc/tree-ssa-operands.c | |
parent | a2af50436f16c10f22f55188f9e429633c2532ec (diff) | |
download | gcc-7fac66d43ca6cae23140f6dc6be408d49f731d12.zip gcc-7fac66d43ca6cae23140f6dc6be408d49f731d12.tar.gz gcc-7fac66d43ca6cae23140f6dc6be408d49f731d12.tar.bz2 |
tree-ssa-operands.c (parse_ssa_operands): Fix formatting.
* tree-ssa-operands.c (parse_ssa_operands): Fix formatting.
(get_expr_operands): Fix thinko wrt flags and subvars.
From-SVN: r101947
Diffstat (limited to 'gcc/tree-ssa-operands.c')
-rw-r--r-- | gcc/tree-ssa-operands.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/tree-ssa-operands.c b/gcc/tree-ssa-operands.c index 34c0992..98b4766 100644 --- a/gcc/tree-ssa-operands.c +++ b/gcc/tree-ssa-operands.c @@ -896,7 +896,8 @@ parse_ssa_operands (tree stmt) if (TREE_CODE (lhs) == VIEW_CONVERT_EXPR) lhs = TREE_OPERAND (lhs, 0); - if (TREE_CODE (lhs) != ARRAY_REF && TREE_CODE (lhs) != ARRAY_RANGE_REF + if (TREE_CODE (lhs) != ARRAY_REF + && TREE_CODE (lhs) != ARRAY_RANGE_REF && TREE_CODE (lhs) != BIT_FIELD_REF && TREE_CODE (lhs) != REALPART_EXPR && TREE_CODE (lhs) != IMAGPART_EXPR) @@ -1325,9 +1326,10 @@ get_expr_operands (tree stmt, tree *expr_p, int flags) bool exact; if (overlap_subvar (offset, size, sv, &exact)) { + bool subvar_flags = flags; if (!exact) - flags &= ~opf_kill_def; - add_stmt_operand (&sv->var, s_ann, flags); + subvar_flags &= ~opf_kill_def; + add_stmt_operand (&sv->var, s_ann, subvar_flags); } } } |