Small fix to PLACEHOLDER_EXPR handling in loc_list_from_tree_1
Eric Botcazou
botcazou@adacore.com
Thu Dec 10 14:45:45 GMT 2020
This case handles the discriminated record types of Ada: the PLACEHOLDER_EXPR
is the "template" expression for the discriminant in the type definition. Now
for some components, typically arrays whose upper bound is the discriminant,
the compiler creates a local subtype for the component, so the code needs to
be able to deal with this nested type.
Tested on x86-64/Linux, applied on the mainline as obvious.
2020-12-10 Eric Botcazou <ebotcazou@adacore.com>
* dwarf2out.c (loc_list_from_tree_1) <PLACEHOLDER_EXPR>: Deal with
a nested context type
--
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.diff
Type: text/x-patch
Size: 898 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20201210/ee79d08e/attachment.bin>
More information about the Gcc-patches
mailing list