* utils2.c (known_alignment): Derive the alignment from pointed-to
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Jun 2008 18:15:36 +0000 (18:15 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Jun 2008 18:15:36 +0000 (18:15 +0000)
commitb2c48b2799d33cca7f44c437a4043ca4daa40c1f
tree1f4c859fa21f77b99e36f9bd2885a7fe48b8f631
parent95e0564c2bd9631d959778d55a3af5a65a4f4b1c
* utils2.c (known_alignment): Derive the alignment from pointed-to
types only if it is otherwise unknown.
<INTEGER_CST>: Tidy.
<MULT_EXPR>: Likewise.
<POINTER_PLUS_EXPR>: If the alignment of the offset is unknown, use
that of the base.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@137081 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/ChangeLog
gcc/ada/utils2.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/warn5.adb [new file with mode: 0644]