]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Minor tweaks to processing of Aggregate aspect
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 10 May 2024 15:11:24 +0000 (17:11 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Fri, 14 Jun 2024 07:34:18 +0000 (09:34 +0200)
commit34935c45c6e13093f9e2c2b1bc36483818152e9c
tree0359fe1c3102d63a1cbb8835ce6278d30c91a343
parent02263316169d4299df24ef91b4d469d3a3d50220
ada: Minor tweaks to processing of Aggregate aspect

The main one is to give the error for Aggregate applied to array types from
Analyze_Aspects_At_Freeze_Point instead of Check_Aspect_At_Freeze_Point, as
for the other aspects.  The message is also changed to be more direct.

gcc/ada/

* aspects.ads (Operational_Aspect): Alphabetize.
* sem_ch13.ads (Analyze_Aspects_At_Freeze_Point): Fix description.
* sem_ch13.adb (Analyze_Aspects_At_Freeze_Point) <Aggregate>: Give
the error for array types here instead of...
(Analyze_Aspect_Specifications) <Aggregate>: Adjust comment.
(Check_Aspect_At_Freeze_Point) <Aggregate>: ...here.
gcc/ada/aspects.ads
gcc/ada/sem_ch13.adb
gcc/ada/sem_ch13.ads