trans.c (Gigi_Types_Compatible): New predicate.
commit3016ec8a616241f5672e9f0e826688295f60a99f
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 27 May 2019 10:44:55 +0000 (27 10:44 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 27 May 2019 10:44:55 +0000 (27 10:44 +0000)
tree155c2489d5abc75e88405b6368a1b418e1ed27cd
parent7a0877c042afed1392a103d18e03b645f87392b8
trans.c (Gigi_Types_Compatible): New predicate.

* gcc-interface/trans.c (Gigi_Types_Compatible): New predicate.
(Identifier_to_gnu): Use it to assert that the type of the identifier
and that of its entity are compatible for gigi.  Rename a couple of
local variables and separate the processing of the result type.

From-SVN: r271650
gcc/ada/ChangeLog
gcc/ada/gcc-interface/trans.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/limited_with7.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/limited_with7.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/limited_with7_pkg.ads [new file with mode: 0644]