[Ada] Fix strange behavior of Object_Size for packed array subtype
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 31 May 2018 10:46:02 +0000 (10:46 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Thu, 31 May 2018 10:46:02 +0000 (10:46 +0000)
commit21afc4facd1ac4f62f7bd8ca0a3997fdb8ed1230
tree0c0b16eb90408ddbe5c5e9659027efce382ee2dd
parent42e4b796dccc43e0a30cd26186037f3fda7639fd
[Ada] Fix strange behavior of Object_Size for packed array subtype

2018-05-31  Eric Botcazou  <ebotcazou@adacore.com>

gcc/ada/

* gcc-interface/decl.c (gnat_to_gnu_entity) <discrete_type>: Do not
deal with the ___XP suffix for packed array types here...
<E_Array_Subtype>: ...or here when processing the implementation type
but when processing the original type instead.  Do not reuse the DECL
of the implementation type for the original type.  Tidy up.

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