http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51315
--- Comment #11 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2011-12-08 09:12:15 UTC --- Author: ebotcazou Date: Thu Dec 8 09:12:12 2011 New Revision: 182103 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182103 Log: PR tree-optimization/51315 * tree-sra.c (tree_non_mode_aligned_mem_p): Rename to... (tree_non_aligned_mem_p): ...this. Add ALIGN parameter. Look into MEM_REFs and use get_object_or_type_alignment for them. (build_accesses_from_assign): Adjust for above change. (access_precludes_ipa_sra_p): Likewise. ada/ Backport from mainline 2011-09-25 Eric Botcazou <ebotca...@adacore.com> * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not promote the alignment if this doesn't prevent BLKmode access to the object. Added: branches/gcc-4_6-branch/gcc/testsuite/gcc.c-torture/execute/20111208-1.c - copied unchanged from r182102, trunk/gcc/testsuite/gcc.c-torture/execute/20111208-1.c branches/gcc-4_6-branch/gcc/testsuite/gnat.dg/frame_overflow.ads - copied unchanged from r182090, trunk/gcc/testsuite/gnat.dg/frame_overflow.ads Modified: branches/gcc-4_6-branch/gcc/ChangeLog branches/gcc-4_6-branch/gcc/ada/ChangeLog branches/gcc-4_6-branch/gcc/ada/gcc-interface/decl.c branches/gcc-4_6-branch/gcc/testsuite/ChangeLog branches/gcc-4_6-branch/gcc/testsuite/gnat.dg/frame_overflow.adb branches/gcc-4_6-branch/gcc/testsuite/gnat.dg/specs/addr1.ads branches/gcc-4_6-branch/gcc/tree-sra.c