[Ada] Make Gigi_Equivalent_Type idempotent
Eric Botcazou
ebotcazou@adacore.com
Mon Jun 6 10:03:00 GMT 2016
This fixes a small regression in ASIS mode introduced by the new elaboration
model for subprograms. Tested on x86_64-suse-linux, applied on the mainline.
2016-06-06 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/decl.c (Gigi_Equivalent_Type): Make sure equivalent
types are present before returning them. Remove final assertion.
(gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Adjust to
above change.
<E_Protected_Type>: Likewise.
--
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.diff
Type: text/x-patch
Size: 2202 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20160606/0f752cfc/attachment.bin>
More information about the Gcc-patches
mailing list