From: Richard Guenther Date: Tue, 25 Jan 2011 09:55:54 +0000 (+0000) Subject: re PR rtl-optimization/47414 (wrong code with -O -freorder-blocks -fschedule-insns2... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5bd6e6526ce2f3d5a530f8fe6103d5339027c7d3;p=gcc.git re PR rtl-optimization/47414 (wrong code with -O -freorder-blocks -fschedule-insns2 -fno-early-inlining -fstrict-aliasing -ftracer) 2011-01-25 Richard Guenther PR middle-end/47414 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the correct type for TBAA. From-SVN: r169223 --- 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 + + 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 * 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);