]> git.ipfire.org Git - thirdparty/gcc.git/commit
Backpor from mainline
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 12 Jun 2018 10:09:20 +0000 (10:09 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 12 Jun 2018 10:09:20 +0000 (10:09 +0000)
commit92e047e7751db6da3f343f14e25ce257812f6310
tree34efb7251758cc18f905d09bb47b726eaa25bbb8
parent99c7270971f393623ae2de2d5e13e583472f69b3
Backpor from mainline
2018-06-02  Eric Botcazou  <ebotcazou@adacore.com>

* 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: r261482
gcc/ada/ChangeLog
gcc/ada/gcc-interface/decl.c
gcc/ada/gcc-interface/utils.c