]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Get rid of unused node/entity fields (Set_ only)
authorBob Duff <duff@adacore.com>
Wed, 8 Oct 2025 16:29:35 +0000 (12:29 -0400)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Mon, 3 Nov 2025 14:15:15 +0000 (15:15 +0100)
commit280d165843e05ab682a7855b218d856836829a6d
tree4ccb7a49a207f3739b51ffb70986d584a5a968cb
parent77691b9ff59fbf87ad70c3f2b6fad41ee469f078
ada: Get rid of unused node/entity fields (Set_ only)

The following fields are Set_ but not used in GNAT. We get rid of them
or document them as follows:

    - Has_Pragma_Controlled
Remove.
    - Corresponding_Entry_Body
Document that it is used by codepeer.
    - Is_Activation_Record
Document that it is used by llvm.
    - Is_Discriminant_Check_Function
Document that it is used by codepeer.
    - Original_Access_Type
No change (already documented that it is used by codepeer).

gcc/ada/ChangeLog:

* einfo.ads (Has_Pragma_Controlled): Remove.
(Is_Activation_Record): Document usage by llvm.
* gen_il-fields.ads (Opt_Field_Enum):
Remove Has_Pragma_Controlled.
* gen_il-gen-gen_entities.adb (Access_Kind):
Remove Has_Pragma_Controlled.
* sem_prag.adb:
Remove setting of Has_Pragma_Controlled.
* sinfo.ads (Corresponding_Entry_Body):
Document usage by codepeer.
gcc/ada/einfo.ads
gcc/ada/gen_il-fields.ads
gcc/ada/gen_il-gen-gen_entities.adb
gcc/ada/sem_prag.adb
gcc/ada/sinfo.ads