[Ada] Small tweak to gnat_to_gnu_param

Eric Botcazou botcazou@adacore.com
Fri May 8 14:46:44 GMT 2020


We mark the type of In parameters in Ada with the const qualifier, but it is 
stripped by free_lang_data_in_type so do not do it in LTO mode.

Tested on x86-64/Linux, applied on the mainline.


2020-05-08  Eric Botcazou  <ebotcazou@adacore.com>

	* gcc-interface/decl.c (gnat_to_gnu_param): Do not make a variant of
	the type in LTO mode.

-- 
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.diff
Type: text/x-patch
Size: 975 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200508/b5e5ac35/attachment-0001.bin>


More information about the Gcc-patches mailing list