]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Fix Ultimate_Overlaid_Entity to match the SPARK RM semantics
authorClaire Dross <dross@adacore.com>
Tue, 25 Nov 2025 16:40:31 +0000 (17:40 +0100)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Fri, 9 Jan 2026 10:57:12 +0000 (11:57 +0100)
commit5772cf81657acb20550ca627bcbd7e7ade26ff26
tree95449fea0276a8d18be1c162b6e5a4ee0b5aab33
parent315965cf4e47118152e7e9bf7086ccf833cafa91
ada: Fix Ultimate_Overlaid_Entity to match the SPARK RM semantics

The Ultimate_Overlaid_Entity function should return the root of the
last precisely supported address clause as per the definition in the
SPARK RM.

gcc/ada/ChangeLog:

* sem_util.ads (Overlaid_Entity): Return the root of the address
clause of an object if it is precisely supported in SPARK.
* sem_util.adb (Ultimate_Overlaid_Entity): Use Overlaid_Entity to
match the SPARK RM semantics.
* sem_prag.adb (Analyze_Global_Item): Only check for overlays on
variables.
(Analyze_Initialization_Item): Likewise.
(Analyze_Input_Item): Likewise.
gcc/ada/sem_prag.adb
gcc/ada/sem_util.adb
gcc/ada/sem_util.ads