]> git.ipfire.org Git - thirdparty/gcc.git/commit
decl.c (gnat_to_gnu_entity): Rewrite the handling of constrained discriminated record...
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 29 Sep 2009 10:54:12 +0000 (10:54 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 29 Sep 2009 10:54:12 +0000 (10:54 +0000)
commit95c1c4bb9ae848b5b801dace9f32c8460430aaa8
tree9918c7b18a8e3e2c5fd23096c54d62a01f7b8e95
parent1dd61ee507f808d0fdffee0ed3c17377e424bdd7
decl.c (gnat_to_gnu_entity): Rewrite the handling of constrained discriminated record subtypes.

* decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Rewrite the handling
of constrained discriminated record subtypes.
(components_to_record): Declare the type of the variants and of the
qualified union.
(build_subst_list): Move around.
(compute_field_positions): Rename into...
(build_position_list): ...this.  Return a TREE_VEC.
(annotate_rep): Adjust for above renaming.
(build_variant_list): New static function.
(create_field_decl_from): Likewise.
(get_rep_part): Likewise.
(get_variant_part): Likewise.
(create_variant_part_from): Likewise.
(copy_and_substitute_in_size): Likewise.

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