with Itypes; use Itypes;
with Lib; use Lib;
with Lib.Xref; use Lib.Xref;
+with Local_Restrict;
with Namet; use Namet;
with Nmake; use Nmake;
with Nlists; use Nlists;
Check_Ghost_Context (Nam, N);
end if;
+ if Is_Entity_Name (Subp) then
+ Local_Restrict.Check_Call
+ (Call => N, Callee => Ultimate_Alias (Nam));
+ else
+ Local_Restrict.Check_Call (Call => N);
+ end if;
+
-- If we are calling the current subprogram from immediately within its
-- body, then that is the case where we can sometimes detect cases of
-- infinite recursion statically. Do not try this in case restriction