summaryrefslogtreecommitdiff
path: root/gcc/ada/restrict.ads
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2004-06-14 15:19:14 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2004-06-14 15:19:14 +0200
commitcc335f4371177761ce88a58a7d5e710f202635fb (patch)
tree266a6f41571fc8312848e6fb01e822f77dd66135 /gcc/ada/restrict.ads
parent14ba6d00aaf750cc165764cf09a66c53d2a005a5 (diff)
downloadgcc-cc335f4371177761ce88a58a7d5e710f202635fb.tar.gz
[multiple changes]
2004-06-14 Pascal Obry <obry@gnat.com> * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on Windows. Fix minor typo. * mlib-tgt-mingw.adb: New implementation using the GCC -shared option which is now supported on Windows. With this implementation using the Library Project feature is no different on Windows than on UNIX. 2004-06-14 Vincent Celier <celier@gnat.com> * makegpr.adb (Compile_Sources): Nothing to do when there are no non-Ada sources. * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment * prj-part.adb (Parse_Single_Project): When a duplicate project name is found, show the project name and the path of the previously parsed project file. 2004-06-14 Ed Schonberg <schonberg@gnat.com> * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an array, avoid copying the actual before the call. 2004-06-14 Thomas Quinot <quinot@act-europe.fr> * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools. Instead, allocate memory on worst-case alignment assumptions, and then return an aligned address within the allocated zone. 2004-06-14 Robert Dewar <dewar@gnat.com> * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to elab entities in predefined units in No_Run_Time_Mode. (Gen_Adainit_C): Same fix (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined units in No_Run_Time_Mode (Gen_Elab_Calls_C): Same fix * symbols-vms-alpha.adb: Minor reformatting * g-debpoo.ads: Minor reformatting * lib.adb (In_Same_Extended_Unit): Version working on node id's * lib.ads (In_Same_Extended_Unit): Version working on node id's * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit working on nodes. * make.adb: Minor reformatting * par-ch12.adb: Minor reformatting * par-prag.adb: Add dummy entry for pragma Profile_Warnings * prj-strt.adb: Minor reformatting * restrict.ads, restrict.adb: Redo handling of profile restrictions to be more general. * sem_attr.adb: Minor reformatting * sem_ch7.adb: Minor reformatting * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc for type in the same unit as the object declaration. * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows static string expressions and not just string literals. Minor reformatting (Set_Warning): Reset restriction warning flag for restriction pragma Implement pragma Profile_Warnings Implement pragma Profile (Restricted) Give obolescent messages for old restrictions and pragmas * snames.h, snames.ads, snames.adb: Add new entry for pragma Profile_Warnings. * s-rident.ads: Add declarations for restrictions required by profile Restricted and profile Ravenscar. * targparm.ads, targparm.adb: Allow pragma Profile in system.ads * gnat_ugn.texi: Correct some missing entries in the list of GNAT configuration pragmas. From-SVN: r83099
Diffstat (limited to 'gcc/ada/restrict.ads')
-rw-r--r--gcc/ada/restrict.ads36
1 files changed, 19 insertions, 17 deletions
diff --git a/gcc/ada/restrict.ads b/gcc/ada/restrict.ads
index 0766bb824a7..b2658d03331 100644
--- a/gcc/ada/restrict.ads
+++ b/gcc/ada/restrict.ads
@@ -200,11 +200,11 @@ package Restrict is
-- handlers are present. This function is called by Gigi when it needs to
-- expand an AT END clean up identifier with no exception handler.
- function Process_Restriction_Synonyms (Id : Name_Id) return Name_Id;
- -- Id is the name of a restriction. If it is one of synonyms that we
- -- allow for historical purposes (for list see System.Rident), then
- -- the proper official name is returned. Otherwise the argument is
- -- returned unchanged.
+ function Process_Restriction_Synonyms (N : Node_Id) return Name_Id;
+ -- Id is a node whose Chars field contains the name of a restriction.
+ -- If it is one of synonyms that we allow for historical purposes (for
+ -- list see System.Rident), then the proper official name is returned.
+ -- Otherwise the Chars field of the argument is returned unchanged.
function Restriction_Active (R : All_Restrictions) return Boolean;
pragma Inline (Restriction_Active);
@@ -213,13 +213,20 @@ package Restrict is
-- active. Always use Check_Restriction to record a violation.
function Restricted_Profile return Boolean;
- -- Tests to see if tasking operations follow the GNAT restricted run time
- -- profile.
-
- procedure Set_Ravenscar (N : Node_Id);
- -- Enables the set of restrictions for Ravenscar. N is the corresponding
- -- pragma node, which is used for error messages on any constructs that
- -- violate the profile.
+ -- Tests if set of restrictions corresponding to Profile (Restricted) is
+ -- currently in effect (set by pragma Profile, or by an appropriate set
+ -- of individual Restrictions pragms). Returns True only if all the
+ -- required restrictions are set.
+
+ procedure Set_Profile_Restrictions
+ (P : Profile_Name;
+ N : Node_Id;
+ Warn : Boolean);
+ -- Sets the set of restrictions associated with the given profile
+ -- name. N is the node of the construct to which error messages
+ -- are to be attached as required. Warn is set True for the case
+ -- of Profile_Warnings where the restrictions are set as warnings
+ -- rather than legality requirements.
procedure Set_Restriction
(R : All_Boolean_Restrictions;
@@ -235,11 +242,6 @@ package Restrict is
-- Similar to the above, except that this is used for the case of a
-- parameter restriction, and the corresponding value V is given.
- procedure Set_Restricted_Profile (N : Node_Id);
- -- Enables the set of restrictions for pragma Restricted_Run_Time. N is
- -- the corresponding pragma node, which is used for error messages on
- -- constructs that violate the profile.
-
function Tasking_Allowed return Boolean;
pragma Inline (Tasking_Allowed);
-- Tests to see if tasking operations are allowed by the current