Assorted LTO fixes for Ada
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 3 Feb 2021 10:11:26 +0000 (11:11 +0100)
committerEric Botcazou <ebotcazou@adacore.com>
Wed, 3 Feb 2021 10:12:50 +0000 (11:12 +0100)
commitfc130ab54fd9a254f07426f9c180c367b039d7f9
treefe1aeb09dfc044ff08612650600835286de256b1
parente3f9f80bfa9e58a90dfe75631921c78660342daf
Assorted LTO fixes for Ada

This polishes a few rough edges visible in LTO mode.

gcc/ada/
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Make the
two fields of the fat pointer type addressable, and do not make the
template type read-only.
<E_Record_Type>: If the type has discriminants mark it as may_alias.
* gcc-interface/utils.c (make_dummy_type): Likewise.
(build_dummy_unc_pointer_types): Likewise.
gcc/ada/gcc-interface/decl.c
gcc/ada/gcc-interface/utils.c