* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: If this is
commitb74295a705a2c31551cabce206185f7ee3e8515e
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 2 Jun 2018 11:11:40 +0000 (2 11:11 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 2 Jun 2018 11:11:40 +0000 (2 11:11 +0000)
tree5c09157db8861d050ecc205a2deefa265593408f
parent67df65c7cc9df5d94202c4ba0bbd058e24a85589
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: If this is
not a definition, retrieve the expression only if it's a compile-time
known value if we are just annotating types.

* gcc-interface/utils.c (convert): Do not try to upcast properly for a
conversion between tagged types in type_annotate_only mode.

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