[Ada] Consolidate handling of implicit dereferences
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 9 Mar 2020 17:20:59 +0000 (17:20 +0000)
committerPierre-Marie de Rodat <derodat@adacore.com>
Fri, 19 Jun 2020 08:17:30 +0000 (04:17 -0400)
commitbb24f34350078f92e8740713a4d241cb4c2fc9a7
tree6e4e3bffd31b3e3527869692a45623cf56e4a5b1
parentc95f808ddd5046573423c9d1ee148645e5340738
[Ada] Consolidate handling of implicit dereferences

2020-06-19  Eric Botcazou  <ebotcazou@adacore.com>

gcc/ada/

* gcc-interface/trans.c (adjust_for_implicit_deref): Delete.
(maybe_implicit_deref): Likewise.
(Attribute_to_gnu): Replace calls to maybe_implicit_deref by calls
to maybe_padded_object.
(Call_to_gnu): Likewise.
(gnat_to_gnu) <N_Indexed_Component>: Likewise.
<N_Slice>: Likewise.
<N_Selected_Component>: Likewise.
<N_Free_Statement>: Remove call to adjust_for_implicit_deref and
manually make sure that the designated type is complete.
* gcc-interface/utils2.c (build_simple_component_ref): Add comment.
gcc/ada/gcc-interface/trans.c
gcc/ada/gcc-interface/utils2.c