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.
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 =>