[Ada] Fix incorrect computation of Component_Size in ASIS mode
commit689a9609741f8286ba6974632fe0791a063228e3
authorpmderodat <pmderodat@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 9 Oct 2018 15:06:50 +0000 (9 15:06 +0000)
committerpmderodat <pmderodat@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 9 Oct 2018 15:06:50 +0000 (9 15:06 +0000)
tree63fbf5a293c7b24c26396ba37f45eae1f2b6c734
parent5e8c91e3c27ab94e0b347385235690aa0cbd2458
[Ada] Fix incorrect computation of Component_Size in ASIS mode

2018-10-09  Eric Botcazou  <ebotcazou@adacore.com>

gcc/ada/

* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: If
this is not a definition, retrieve the expression in all cases
even if we are just annotating types.
* gcc-interface/trans.c (gnat_to_gnu): Also translate Size
attribute for constrained types in this mode.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@264983 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/ChangeLog
gcc/ada/gcc-interface/decl.c
gcc/ada/gcc-interface/trans.c