]> gcc.gnu.org Git - gcc.git/blobdiff - gcc/ada/sem_res.adb
ada: New Local_Restrictions and User_Aspect aspects.
[gcc.git] / gcc / ada / sem_res.adb
index b8d8e701ae31e283580e010969fcbc834fcde2d3..e7b0b8ba7e1e87701f4f2abf494c88f74999bfb4 100644 (file)
@@ -46,6 +46,7 @@ with Inline;         use Inline;
 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;
@@ -6783,6 +6784,13 @@ package body Sem_Res is
          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
This page took 0.031642 seconds and 5 git commands to generate.