]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
sem_parg.adb, [...] (Collect_Subprogram_Inputs_Outputs): Make subprogram public.
authorYannick Moy <moy@adacore.com>
Thu, 31 Jul 2014 12:24:57 +0000 (12:24 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Thu, 31 Jul 2014 12:24:57 +0000 (14:24 +0200)
2014-07-31  Yannick Moy  <moy@adacore.com>

* sem_parg.adb, sem_prag.ads (Collect_Subprogram_Inputs_Outputs):
Make subprogram public.

From-SVN: r213344

gcc/ada/ChangeLog
gcc/ada/sem_prag.adb
gcc/ada/sem_prag.ads

index c1698288919f43922d5d074f426a570c3ba0c6b8..1519eaa0e5382e02fe7580cf736eaf671a259d4d 100644 (file)
@@ -1,3 +1,8 @@
+2014-07-31  Yannick Moy  <moy@adacore.com>
+
+       * sem_parg.adb, sem_prag.ads (Collect_Subprogram_Inputs_Outputs):
+       Make subprogram public.
+
 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
 
        * exp_ch9.adb (Expand_N_Protected_Type_Declaration): New
index 10ffab9d5b09ef68711d517200e146b747a40a60..2f04875b286dc6e06a49ca5e37616fa165879aca 100644 (file)
@@ -237,17 +237,6 @@ package body Sem_Prag is
    --  with visible refinement available in the corresponding mode. Flag
    --  Has_Null_State is set when at least state has a null refinement.
 
-   procedure Collect_Subprogram_Inputs_Outputs
-     (Subp_Id      : Entity_Id;
-      Subp_Inputs  : in out Elist_Id;
-      Subp_Outputs : in out Elist_Id;
-      Global_Seen  : out Boolean);
-   --  Subsidiary to the analysis of pragma Depends, Global, Refined_Depends
-   --  and Refined_Global. Gather all inputs and outputs of subprogram Subp_Id
-   --  in lists Subp_Inputs and Subp_Outputs. If the case where the subprogram
-   --  has no inputs and/oroutputs, the returned list is No_Elist. Global_Seen
-   --  is set when the related subprogram has pragma [Refined_]Global.
-
    function Find_Related_Subprogram_Or_Body
      (Prag      : Node_Id;
       Do_Checks : Boolean := False) return Node_Id;
index 354886dc868f5172a81638f8632cbb081cad9383..a97595c0f4d452241b065fe3ad819946452ee09b 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---          Copyright (C) 1992-2013, Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-2014, Free Software Foundation, Inc.         --
 --                                                                          --
 -- GNAT is free software;  you can  redistribute it  and/or modify it under --
 -- terms of the  GNU General Public License as published  by the Free Soft- --
@@ -170,6 +170,18 @@ package Sem_Prag is
    --  state, variable or package instantiation denoted by Item_Id requires the
    --  use of indicator/option Part_Of. If this is the case, emit an error.
 
+   procedure Collect_Subprogram_Inputs_Outputs
+     (Subp_Id      : Entity_Id;
+      Subp_Inputs  : in out Elist_Id;
+      Subp_Outputs : in out Elist_Id;
+      Global_Seen  : out Boolean);
+   --  Used during the analysis of pragmas Depends, Global, Refined_Depends,
+   --  and Refined_Global. Also used by GNATprove. Gathers all inputs and
+   --  outputs of subprogram Subp_Id in lists Subp_Inputs and Subp_Outputs.
+   --  If subprogram has no inputs and/or outputs, then the returned list
+   --  is No_Elist. Global_Seen is set when the related subprogram has
+   --  pragma [Refined_]Global.
+
    function Delay_Config_Pragma_Analyze (N : Node_Id) return Boolean;
    --  N is a pragma appearing in a configuration pragma file. Most such
    --  pragmas are analyzed when the file is read, before parsing and analyzing