OSDN Git Service

PR tree-optimization/51315
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Dec 2011 09:12:12 +0000 (09:12 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Dec 2011 09:12:12 +0000 (09:12 +0000)
commit0334e3517428232d77212b58cee75f7ac4911020
tree61f826addd55e2e6ab199ef533248206a8647a5e
parent21bfaf58702f8c28848928cf0db9457cf263c38f
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  <ebotcazou@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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@182103 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/ada/ChangeLog
gcc/ada/gcc-interface/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/20111208-1.c [new file with mode: 0644]
gcc/testsuite/gnat.dg/frame_overflow.adb
gcc/testsuite/gnat.dg/frame_overflow.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/specs/addr1.ads
gcc/tree-sra.c