]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Get rid of Sy/Sm mixing (Actions)
authorBob Duff <duff@adacore.com>
Fri, 10 Oct 2025 16:40:42 +0000 (12:40 -0400)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Mon, 3 Nov 2025 14:15:16 +0000 (15:15 +0100)
commit256263b1d9036714b0a4fe2ab9fda84d3df8699c
tree2f7f123b8570af242817c54d234e103ef74c201f
parent3b28ad158ebd51f417fd757b32ee4780e669319f
ada: Get rid of Sy/Sm mixing (Actions)

We should not mix "syntactic" and "semantic" for the same field
in different node kinds.

The Actions field is both syntactic and semantic. This patch
makes it always syntactic.

No change in overall compiler behavior.

gcc/ada/ChangeLog:

* gen_il-gen.adb (N_Short_Circuit):
Make Actions syntactic.
(N_Case_Expression_Alternative): Likewise.
* gen_il-gen-gen_nodes.adb (Create_Type):
No longer exempt Actions from the syntactic/semantic ordering rule.
(Check_For_Syntactic_Field_Mismatch):
No longer exempt Actions from the syntactic/semantic mixing rule.
* sinfo.ads (N_Compound_Statement):
Add comment.
gcc/ada/gen_il-gen-gen_nodes.adb
gcc/ada/gen_il-gen.adb
gcc/ada/sinfo.ads