diff options
author | Piotr Trojanek <trojanek@adacore.com> | 2021-09-29 19:51:33 +0200 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2021-10-11 13:38:10 +0000 |
commit | 736f9bed34c0420063c3c01b520099711040d345 (patch) | |
tree | 04a4c86a4310cb786ef985599c6c33d2eaafefe7 /gcc/ipa-modref.c | |
parent | 1bafcab05cbff1cc98e3ca867b4474401eec729b (diff) | |
download | gcc-736f9bed34c0420063c3c01b520099711040d345.zip gcc-736f9bed34c0420063c3c01b520099711040d345.tar.gz gcc-736f9bed34c0420063c3c01b520099711040d345.tar.bz2 |
[Ada] Move rewriting of boxes in aggregates from resolution to expansion
gcc/ada/
* exp_aggr.adb (Initialize_Record_Component): Add assertion
about one of the parameters, so that illegal attempts to
initialize record components with Empty node are detected early
on.
(Build_Record_Aggr_Code): Handle boxes in aggregate component
associations just the components with no initialization in
Build_Record_Init_Proc.
* sem_aggr.adb (Resolve_Record_Aggregate): For components that
require simple initialization carry boxes from resolution to
expansion.
* sem_util.adb (Needs_Simple_Initialization): Remove redundant
paren.
Diffstat (limited to 'gcc/ipa-modref.c')
0 files changed, 0 insertions, 0 deletions