ada: Fix aspect Linker_Section ignored on subprogram body
commit3b3e181be8e628e2ebddb3133f7247366e06aa09
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 8 May 2023 14:17:33 +0000 (8 16:17 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Thu, 15 Jun 2023 07:59:33 +0000 (15 09:59 +0200)
tree627dc735fcaaa9272b06e4610b8b434d7dc0db63
parentbe54247f74f54ec883e7677a78d6ec1bd97b1e76
ada: Fix aspect Linker_Section ignored on subprogram body

The compiler is waiting for the freeze node of the body, but it is never
generated since the freezing of the body is not delayed.  The change also
removes an obsolete piece of code.

gcc/ada/

* sem_ch13.adb (Analyze_Aspect_Specifications): Add missing items
in the list of aspects handled by means of Insert_Pragma.
<Aspect_Linker_Section>: Remove obsolete code.  Do not delay the
processing of the aspect if the entity is already frozen.
gcc/ada/sem_ch13.adb