]> gcc.gnu.org Git - gcc.git/commit - gcc/ada/gcc-interface/utils.c
decl.c (gnat_to_gnu_entity): Try to make a packable type for fields of union types...
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 26 Oct 2011 20:45:09 +0000 (20:45 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 26 Oct 2011 20:45:09 +0000 (20:45 +0000)
commite1e5852c9f5e3c4327b0dbfbd255145a3702ff6b
tree2606ea3bdeadfef64ff3f764e8555b8d5436c052
parent0025cb638168df0f3d7a845fa9e11a308a719b05
decl.c (gnat_to_gnu_entity): Try to make a packable type for fields of union types as well.

* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Try to
make a packable type for fields of union types as well.
<is_type>: Use RECORD_OR_UNION_TYPE_P predicate.
(gnat_to_gnu_component_type): Try to make a packable type for fields
of union types as well.
(make_packable_type): Use RECORD_OR_UNION_TYPE_P predicate.
(maybe_pad_type): Try to make a packable type for fields of union types
as well.
(gnat_to_gnu_field): Likewise.
(is_variable_size): Use RECORD_OR_UNION_TYPE_P predicate.
(set_rm_size): Likewise.
(rm_size): Likewise.
* gcc-interface/misc.c (gnat_type_max_size): Likewise.
* gcc-interface/trans.c (add_decl_expr): Likewise.
* gcc-interface/utils.c (finish_record_type): Likewise.
* gcc-interface/utils2.c (build_simple_component_ref): Likewise.

From-SVN: r180540
gcc/ada/ChangeLog
gcc/ada/gcc-interface/decl.c
gcc/ada/gcc-interface/misc.c
gcc/ada/gcc-interface/trans.c
gcc/ada/gcc-interface/utils.c
gcc/ada/gcc-interface/utils2.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/specs/unchecked_union1.ads [moved from gcc/testsuite/gnat.dg/specs/unchecked_union.ads with 88% similarity]
gcc/testsuite/gnat.dg/specs/unchecked_union2.ads [new file with mode: 0644]
This page took 0.07205 seconds and 5 git commands to generate.