https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42413
--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Marc Poulhies <[email protected]>: https://gcc.gnu.org/g:46f5e13f7ca038f80c5bce90a006b1036f32d502 commit r17-1192-g46f5e13f7ca038f80c5bce90a006b1036f32d502 Author: Eric Botcazou <[email protected]> Date: Wed Apr 8 23:51:18 2026 +0200 ada: Replace Activation_Chain_Entity field by Has_Activation_Chain_Entity flag The former lives on selected nodes while the latter lives on scope entities. This is more consistent because 1) activation chains are entities attached to a scope and 2) master entities already use the Has_Master_Entity flag. The ultimate goal is to make transient scopes compatible with task types. No functional changes. gcc/ada/ChangeLog: PR ada/42413 * gen_il-fields.ads (Opt_Field_Enum): Remove Activation_Chain_Entity and add Has_Activation_Chain_Entity. * gen_il-gen-gen_entities.adb (Entity_Kind): Add new semantic flag Has_Activation_Chain_Entity. * gen_il-gen-gen_nodes.adb (N_Subprogram_Body): Remove Activation_Chain_Entity field. (N_Task_Body): Likewise. (N_Package_Declaration): Likewise. (N_Block_Statement): Likewise. (N_Extended_Return_Statement): Likewise. (N_Entry_Body): Likewise. * einfo.ads (Has_Activation_Chain_Entity): Document new flag. * sinfo.ads (Activation_Chain_Entity): Delete documentation. * exp_ch9.adb (Build_Activation_Chain_Entity): Replace uses of Activation_Chain_Entity by Has_Activation_Chain_Entity. (Build_Task_Activation_Call): Retrieve the activation chain entity by means of new helper function Activation_Chain_Entity. (Build_Task_Allocate_Block): Set Has_Activation_Chain_Entity in lieu of Activation_Chain_Entity. (Expand_N_Task_Body): Likewise. (Find_Enclosing_Context): Fix handling of N_Entry_Body. * sem_ch7.adb (May_Need_Implicit_Body): Replace test on Activation_Chain_Entity by Has_Activation_Chain_Entity.
