diff options
author | Richard Guenther <rguenther@suse.de> | 2009-06-03 09:54:09 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2009-06-03 09:54:09 +0000 |
commit | 2f2c62a01c83501641695f64c88139386552bd35 (patch) | |
tree | 9c3a92749cc734472585b3acd0c23fb9a39c3988 | |
parent | f353609778d9079592f24a6abcad0ae21e78b7e3 (diff) | |
download | gcc-2f2c62a01c83501641695f64c88139386552bd35.zip gcc-2f2c62a01c83501641695f64c88139386552bd35.tar.gz gcc-2f2c62a01c83501641695f64c88139386552bd35.tar.bz2 |
tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE consistently.
2009-06-03 Richard Guenther <rguenther@suse.de>
* tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
consistently.
From-SVN: r148120
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree-ssa-sccvn.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5a524b4..b289d6c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2009-06-03 Richard Guenther <rguenther@suse.de> + + * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE + consistently. + 2009-06-03 Shujing Zhao <pearly.zhao@oracle.com> * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, diff --git a/gcc/tree-ssa-sccvn.c b/gcc/tree-ssa-sccvn.c index 3a4415c..03fea75 100644 --- a/gcc/tree-ssa-sccvn.c +++ b/gcc/tree-ssa-sccvn.c @@ -554,7 +554,7 @@ copy_reference_ops_from_ref (tree ref, VEC(vn_reference_op_s, heap) **result) && TREE_CODE (DECL_CONTEXT (temp.op0)) == UNION_TYPE && integer_zerop (DECL_FIELD_OFFSET (temp.op0)) && integer_zerop (DECL_FIELD_BIT_OFFSET (temp.op0)) - && host_integerp (TYPE_SIZE (TREE_TYPE (temp.op0)), 0)) + && host_integerp (DECL_SIZE (temp.op0), 0)) temp.op0 = DECL_SIZE (temp.op0); break; case ARRAY_RANGE_REF: |