]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Fix fallout of recent change related to task activation
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 26 Nov 2025 15:20:39 +0000 (16:20 +0100)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Fri, 9 Jan 2026 10:57:13 +0000 (11:57 +0100)
The Move_Activation_Chain routine is not available in all runtime libraries.

gcc/ada/ChangeLog:

* exp_ch6.adb (Expand_N_Extended_Return_Statement): Do not call
Move_Activation_Chain if it is not available in the runtime library.

gcc/ada/exp_ch6.adb

index 48627649a309e529e9223833eb8e1d92a97f8294..981cb2c8684036106b6a63bfff42d61d7358cdea 100644 (file)
@@ -5920,6 +5920,12 @@ package body Exp_Ch6 is
 
       function Move_Activation_Chain (Func_Id : Entity_Id) return Node_Id is
       begin
+         --  Move_Activation_Chain is not universally available
+
+         if not RTE_Available (RE_Move_Activation_Chain) then
+            return Make_Null_Statement (Loc);
+         end if;
+
          return
            Make_Procedure_Call_Statement (Loc,
              Name                   =>