aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gcc-interface/misc.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@gcc.gnu.org>2020-05-25 10:15:12 +0200
committerGiuliano Belinassi <giuliano.belinassi@usp.br>2020-08-17 13:04:15 -0300
commit0ee8729e60dbc048c2bb82f906aa3b7adc61d216 (patch)
treeaf161e71ee78a6cfcd0c9867d3c0f857827e5fad /gcc/ada/gcc-interface/misc.c
parentf76b9058afc8a71258db23a1d9b583892db61038 (diff)
downloadgcc-0ee8729e60dbc048c2bb82f906aa3b7adc61d216.zip
gcc-0ee8729e60dbc048c2bb82f906aa3b7adc61d216.tar.gz
gcc-0ee8729e60dbc048c2bb82f906aa3b7adc61d216.tar.bz2
Fix missing back-annotation for derived types
Gigi fails to back-annotate the Present_Expr field of variants present in a type derived from a discriminated untagged record type, which is for example visible in the output -gnatRj. gcc/ada/ChangeLog * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Tidy up. (build_variant_list): Add GNAT_VARIANT_PART parameter and annotate its variants if it is present. Adjust the recursive call by passing the variant subpart of variants, if any. (copy_and_substitute_in_layout): Rename GNU_SUBST_LIST to SUBST_LIST and adjust throughout. For a type, pass the variant part in the call to build_variant_list.
Diffstat (limited to 'gcc/ada/gcc-interface/misc.c')
0 files changed, 0 insertions, 0 deletions