summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2011-01-25 09:55:54 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2011-01-25 09:55:54 +0000
commitc2af9e570b0e957fcaaaeb20d79188e14d0cd1b1 (patch)
treec42b712b81720fd52dda1ebf264bc58cec02ee41
parentfa6ed0e9c91479ca1df6edb6dfc50736b7587249 (diff)
downloadgcc-c2af9e570b0e957fcaaaeb20d79188e14d0cd1b1.tar.gz
2011-01-25 Richard Guenther <rguenther@suse.de>
PR middle-end/47414 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the correct type for TBAA. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169223 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/tree-ssa-alias.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 25e2bc4e30e..01211edec48 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2011-01-25 Richard Guenther <rguenther@suse.de>
+
+ PR middle-end/47414
+ * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
+ correct type for TBAA.
+
2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
* graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
diff --git a/gcc/tree-ssa-alias.c b/gcc/tree-ssa-alias.c
index 3f6fec1574a..78275dec857 100644
--- a/gcc/tree-ssa-alias.c
+++ b/gcc/tree-ssa-alias.c
@@ -808,7 +808,8 @@ indirect_ref_may_alias_decl_p (tree ref1 ATTRIBUTE_UNUSED, tree base1,
return aliasing_component_refs_p (ref1, TREE_TYPE (ptrtype1),
ref1_alias_set, base1_alias_set,
offset1, max_size1,
- ref2, TREE_TYPE (base2),
+ ref2, TREE_TYPE
+ (reference_alias_ptr_type (ref2)),
ref2_alias_set, base2_alias_set,
offset2, max_size2, true);