[Ada] Fix missing resolution data for secondary dispatch table with LTO

Eric Botcazou ebotcazou@adacore.com
Tue Jun 12 10:20:00 GMT 2018


Dispatch tables are implemented the same way as in the C++ front-end, i.e. by 
importing and then exporting them to break the inherent circularity.  There 
was a glitch in gigi that was preventing the two views from being merged in 
the case of secondary dispatch tables in LTO mode.

Fixed thusly, tested on x86-64/Linux, applied on mainline, 8 and 7 branches.


2018-06-12  Eric Botcazou  <ebotcazou@adacore.com>

	* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Do not get
	the expression of a dispatch table that is not being defined.
	<E_Record_Subtype>: Remove obsolete kludge.

-- 
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.diff
Type: text/x-patch
Size: 2333 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180612/07ec7259/attachment.bin>


More information about the Gcc-patches mailing list