re PR rtl-optimization/47414 (wrong code with -O -freorder-blocks -fschedule-insns2...
authorRichard Guenther <rguenther@suse.de>
Tue, 25 Jan 2011 09:55:54 +0000 (09:55 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 25 Jan 2011 09:55:54 +0000 (09:55 +0000)
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.

From-SVN: r169223

gcc/ChangeLog
gcc/tree-ssa-alias.c

index 25e2bc4e30e0ecc09b9d9cb295d9dfa23ba29954..01211edec485ba01359a824815b105c9ec02d1bb 100644 (file)
@@ -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.
index 3f6fec1574a764f9b692ffdf5b9aed6062142f56..78275dec857428c8abc53a49ff7b0f7672ebdfdf 100644 (file)
@@ -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);