]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Cleanup of Analyze_Aspect_Specifications and related code
authorBob Duff <duff@adacore.com>
Thu, 26 Mar 2026 22:25:58 +0000 (18:25 -0400)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Fri, 29 May 2026 08:49:51 +0000 (10:49 +0200)
commit7800a1fd21ace20a07bdbd577cfcbaf1c319c39d
treef1732236bdff4bf42d60b8fde65d1db95ceff29d
parente3c554aee2858c82ab861ff404168e7bc4513abe
ada: Cleanup of Analyze_Aspect_Specifications and related code

Rename Decorate to be Decorate_Aspect_Links; seems more readable.
Change it to support N_Attribute_Definition_Clause in addition
to N_Pragma. Move most calls to it into Insert_Aitem.

Move call to Set_Has_Delayed_Rep_Aspects to be near
calls to Set_Has_Delayed_Aspects.

Make Anod and Eloc variables more local to where they are used.

Misc comment improvements, including removing some useless ones.

gcc/ada/ChangeLog:

* sem_ch13.adb (Delay_Aspect): Remove the side effect.
(Decorate): Rename to be Decorate_Aspect_Links.
Generalize.
(Insert_Aitem): Call Decorate_Aspect_Links.
* aspects.ads: Minor comment improvement: we don't need to worry;
we just need to do it.
* einfo.ads: Minor comment improvement.
gcc/ada/aspects.ads
gcc/ada/einfo.ads
gcc/ada/sem_ch13.adb