Small fix to PLACEHOLDER_EXPR handling in loc_list_from_tree_1
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 10 Dec 2020 14:35:28 +0000 (15:35 +0100)
committerEric Botcazou <ebotcazou@adacore.com>
Thu, 10 Dec 2020 14:45:16 +0000 (15:45 +0100)
commit237a8e8d5647e45aca2736906033291d49545a2c
tree247d418f01fe3af909e2be04b690e24cda4d2f4c
parent8c60696b699e0b22cc12ae628473f0a23f90c82e
Small fix to PLACEHOLDER_EXPR handling in loc_list_from_tree_1

This 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.

gcc/ChangeLog:
* dwarf2out.c (loc_list_from_tree_1) <PLACEHOLDER_EXPR>: Deal with
a nested context type
gcc/dwarf2out.c