Small tweak to gnat_to_gnu_param
authorEric Botcazou <ebotcazou@gcc.gnu.org>
Fri, 8 May 2020 14:36:53 +0000 (16:36 +0200)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Fri, 8 May 2020 15:24:15 +0000 (17:24 +0200)
commitdb4062a0cbe00ce4075a4d7f68a2ff15165cd72b
tree30eecbf1d1fde76d652ae4fbb123f931b9f46b72
parent2b42509f8b7bdf0a27a6687a941663380b485416
Small tweak to gnat_to_gnu_param

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.

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