decl.c (gnat_to_gnu_entity): If this is not a definition...
commite812d4dd5df9befff0bc077349453e6126a8807d
authorEric Botcazou <ebotcazou@adacore.com>
Sat, 2 Jun 2018 11:11:40 +0000 (2 11:11 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sat, 2 Jun 2018 11:11:40 +0000 (2 11:11 +0000)
tree5c09157db8861d050ecc205a2deefa265593408f
parentfcf7081cf9b5f2ccbc5167806fb8e377f100efec
decl.c (gnat_to_gnu_entity): If this is not a definition...

* 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.

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