exp_dbug.adb (Debug_Renaming_Declaration): Process underlying types.
authorPierre-Marie de Rodat <derodat@adacore.com>
Tue, 11 Oct 2016 10:35:43 +0000 (10:35 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 11 Oct 2016 10:35:43 +0000 (10:35 +0000)
commit656b031126ee1679e97b03484cd870d68dd387a9
tree8ee7e92fd6e2a32018317f96b606021e045aed70
parent4bb4acee6878e291e3972feb6dcd154bce915190
exp_dbug.adb (Debug_Renaming_Declaration): Process underlying types.

* exp_dbug.adb (Debug_Renaming_Declaration): Process underlying types.
Emit GNAT encodings for object renamings involving record components
whose normalized bit offset is not null.
* uintp.h (UI_No_Uint): Declare.
* gcc-interface/gigi.h (can_materialize_object_renaming_p): New.
* gcc-interface/utils.c (can_materialize_object_renaming_p): New
function.
* gcc-interface/trans.c (gnat_to_gnu) <N_Object_Renaming_Declaration>:
In code generation mode, materialize all renamings as long as they need
debug info and we are not optimizing.

From-SVN: r240985
gcc/ada/ChangeLog
gcc/ada/exp_dbug.adb
gcc/ada/gcc-interface/gigi.h
gcc/ada/gcc-interface/trans.c
gcc/ada/gcc-interface/utils.c
gcc/ada/uintp.h