diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2008-03-08 12:12:47 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2008-03-08 12:12:47 +0000 |
commit | 8f5893ab523ac3d89e80560c6a2e6a2e88a44bd7 (patch) | |
tree | 503f1746603678cbf086a3d219cece863b1b97d3 /gcc/ada/decl.c | |
parent | ba436c3b5c91bbe4c4ce3e122429dda3b47c26ee (diff) | |
download | gcc-8f5893ab523ac3d89e80560c6a2e6a2e88a44bd7.zip gcc-8f5893ab523ac3d89e80560c6a2e6a2e88a44bd7.tar.gz gcc-8f5893ab523ac3d89e80560c6a2e6a2e88a44bd7.tar.bz2 |
decl.c (gnat_to_gnu_entity): Do not bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
* decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
From-SVN: r133032
Diffstat (limited to 'gcc/ada/decl.c')
-rw-r--r-- | gcc/ada/decl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/ada/decl.c b/gcc/ada/decl.c index 2c88c0f..c75de3f 100644 --- a/gcc/ada/decl.c +++ b/gcc/ada/decl.c @@ -1484,7 +1484,7 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, int definition) such values), we only get the good bits, since the unused bits are uninitialized. Both goals are accomplished by wrapping the modular value in an enclosing struct. */ - if (Is_Packed_Array_Type (gnat_entity)) + if (Is_Packed_Array_Type (gnat_entity)) { tree gnu_field_type = gnu_type; tree gnu_field; @@ -1499,7 +1499,6 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, int definition) their size, which may seem counter-intuitive but makes it possible to easily overlay them on modular types. */ TYPE_ALIGN (gnu_type) = TYPE_ALIGN (gnu_field_type); - TYPE_USER_ALIGN (gnu_type) = TYPE_USER_ALIGN (gnu_field_type); TYPE_PACKED (gnu_type) = 1; /* Create a stripped-down declaration of the original type, mainly |