diff options
author | Richard Guenther <rguenther@suse.de> | 2009-06-02 15:33:29 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2009-06-02 15:33:29 +0000 |
commit | 69596c692d784340f5a7f828cceab6176db05ff0 (patch) | |
tree | 8a8f050d3da137043c2ba31803682d442cd92117 | |
parent | beb7e0305db4d7c2ecfb8040eb11c13fa17c1854 (diff) | |
download | gcc-69596c692d784340f5a7f828cceab6176db05ff0.zip gcc-69596c692d784340f5a7f828cceab6176db05ff0.tar.gz gcc-69596c692d784340f5a7f828cceab6176db05ff0.tar.bz2 |
tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE for field decls.
2009-06-02 Richard Guenther <rguenther@suse.de>
* tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
for field decls.
From-SVN: r148086
-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 153046d..75c798c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2009-06-02 Richard Guenther <rguenther@suse.de> + + * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE + for field decls. + 2009-06-02 Alexandre Oliva <aoliva@redhat.com> * cfgexpand.c (gimple_expand_cfg): Discard the source location diff --git a/gcc/tree-ssa-sccvn.c b/gcc/tree-ssa-sccvn.c index 4ee4e39..3a4415c 100644 --- a/gcc/tree-ssa-sccvn.c +++ b/gcc/tree-ssa-sccvn.c @@ -555,7 +555,7 @@ copy_reference_ops_from_ref (tree ref, VEC(vn_reference_op_s, heap) **result) && integer_zerop (DECL_FIELD_OFFSET (temp.op0)) && integer_zerop (DECL_FIELD_BIT_OFFSET (temp.op0)) && host_integerp (TYPE_SIZE (TREE_TYPE (temp.op0)), 0)) - temp.op0 = TYPE_SIZE (TREE_TYPE (temp.op0)); + temp.op0 = DECL_SIZE (temp.op0); break; case ARRAY_RANGE_REF: case ARRAY_REF: |