]> git.ipfire.org Git - thirdparty/gcc.git/commit
decl.c (gnat_to_gnu_entity): Tidy up.
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 20 Jan 2014 10:51:46 +0000 (10:51 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 20 Jan 2014 10:51:46 +0000 (10:51 +0000)
commit44e9e3ec85bf048bcb73f7a013afbd573466972e
tree0abf9652349928c6a4a433eef4046071074ba0cb
parent59f5c969a5c5ac08e450ae74c260d57db574a5d0
decl.c (gnat_to_gnu_entity): Tidy up.

* gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Record_Subtype>:
Tidy up.  For a subtype with discriminants and variant part, if a
variant is statically selected and the fields all have a constant
position, put them in order of increasing position.  Likewise if
no variant part but representation clause is present.
* gcc-interface/utils.c (make_packable_type): Robustify.
(maybe_pad_type): Use local variable and tidy up condition.  If no
alignment is specified, use the original one.
(create_type_stub_decl): Minor tweak.
(convert) <case VECTOR_CST>: Fix typo.
<case CONSTRUCTOR>: Deal with padding types around the same type.
Do not punt on missing fields.
(unchecked_convert): Call finish_record_type to lay out the special
record types made for conversions from/to problematic integer types.
Bump the alignment of CONSTRUCTORs before converting them to a more
aligned type.

From-SVN: r206796
gcc/ada/ChangeLog
gcc/ada/gcc-interface/decl.c
gcc/ada/gcc-interface/utils.c