[Ada] Assorted LTO fixes
Eric Botcazou
botcazou@adacore.com
Wed Feb 3 10:27:09 GMT 2021
This polishes a few rough edges visible in LTO mode.
Tested on x86-64/Linux, applied on mainline, 10 and 9 branches.
2021-02-03 Eric Botcazou <ebotcazou@adacore.com>
* 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.
--
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.diff
Type: text/x-patch
Size: 3753 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20210203/23ce34cd/attachment.bin>
More information about the Gcc-patches
mailing list