http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49235
--- Comment #9 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-06-06 10:13:27 UTC --- Author: rguenth Date: Mon Jun 6 10:13:23 2011 New Revision: 174688 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174688 Log: 2011-06-06 Richard Guenther <rguent...@suse.de> PR tree-optimization/48702 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs only when we know the base address is within bounds. * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not assume the base address of TARGET_MEM_REFs is in bounds. (indirect_refs_may_alias_p): Fix TARGET_MEM_REF without index tests. * gcc.dg/torture/pr48702.c: New testcase. Backport from mainline 2011-05-31 Jakub Jelinek <ja...@redhat.com> PR rtl-optimization/49235 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx. (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST. * gcc.dg/pr49235.c: New test. Added: branches/gcc-4_6-branch/gcc/testsuite/gcc.dg/pr49235.c branches/gcc-4_6-branch/gcc/testsuite/gcc.dg/torture/pr48702.c Modified: branches/gcc-4_6-branch/gcc/ChangeLog branches/gcc-4_6-branch/gcc/testsuite/ChangeLog branches/gcc-4_6-branch/gcc/tree-ssa-address.c branches/gcc-4_6-branch/gcc/tree-ssa-alias.c