[Ada] Do not generate elaboration code for alignment aspect
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 4 Jun 2020 08:15:33 +0000 (10:15 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Wed, 15 Jul 2020 13:42:55 +0000 (09:42 -0400)
commit4c1e539511beba77c4bc803a2f86bc91e37d6827
tree2377bcf4855009c2092052eb2bb81781af4aba92
parentae6fec84da802171366537fcd497955d527aa201
[Ada] Do not generate elaboration code for alignment aspect

gcc/ada/

* einfo.ads (Delayed Freezing and Elaboration): Adjust description.
* freeze.adb (Freeze_Object_Declaration): Likewise.
* sem_ch3.adb (Delayed_Aspect_Present): Likewise.  Do not return
true for Alignment.
* sem_ch13.adb (Analyze_Aspect_Specifications): Do not always delay
for Alignment.  Moreover, for Alignment and various Size aspects,
do not delay if the expression is an attribute whose prefix is the
Standard package.
gcc/ada/einfo.ads
gcc/ada/freeze.adb
gcc/ada/sem_ch13.adb
gcc/ada/sem_ch3.adb