utils2.c (known_alignment): Derive the alignment from pointed-to types only if it...
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 24 Jun 2008 18:15:36 +0000 (18:15 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 24 Jun 2008 18:15:36 +0000 (18:15 +0000)
commit324ed5a676f020e3bd4b37f40028025d1e915bbf
tree1f4c859fa21f77b99e36f9bd2885a7fe48b8f631
parenta057a4f13b2599c7fa19bf08b9617b6b3f67d2d7
utils2.c (known_alignment): Derive the alignment from pointed-to types only if it is otherwise unknown.

* 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.

From-SVN: r137081
gcc/ada/ChangeLog
gcc/ada/utils2.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/warn5.adb [new file with mode: 0644]