2006-10-31 Robert Dewar <dewar@adacore.com>
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 31 Oct 2006 18:01:28 +0000 (18:01 +0000)
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 31 Oct 2006 18:01:28 +0000 (18:01 +0000)
commitd1cf00c6585d3de72209a429aa1a1974d894524d
treed1570e776b06742e3b57c6e0e7ceb94a384bca91
parentf564b304996f4ddcc7b8ddf7ed124a051625c3e1
2006-10-31  Robert Dewar  <dewar@adacore.com>

        * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
        variant records
        (Layout_Variant_Record): Retrieve the discriminants from the entity
rather than from the type definition, because in the case of a full
type for a private type we need to take the discriminants from the
partial view.
        (Layout_Component_List): When applying the Max operator to variants with
        a nonstatic size, check whether either operand is static and scale that
        operand from bits to storage units before applying Max.
(Layout_Type): In VMS, if a C-convention access type has no explicit
size clause (and does not inherit one in the case of a derived type),
then the size is reset to 32 from 64.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118283 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/layout.adb