summaryrefslogtreecommitdiffstats
path: root/gcc/ada/restrict.adb
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2007-12-13 10:28:48 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2007-12-13 10:28:48 +0000
commit320cad80efcc3e6495d3d9971b0904d2c1cb5f34 (patch)
treeeddd27c4be020fe79f5bbbaa037be2af9394de2d /gcc/ada/restrict.adb
parente7084ad5a3335a2812b9f430ed3cb1c8464cf7aa (diff)
downloadppe42-gcc-320cad80efcc3e6495d3d9971b0904d2c1cb5f34.tar.gz
ppe42-gcc-320cad80efcc3e6495d3d9971b0904d2c1cb5f34.zip
2007-12-06 Bob Duff <duff@adacore.com>
* restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New procedure to be called from the back end to check the No_Implicit_Dynamic_Code restriction. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130847 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/restrict.adb')
-rw-r--r--gcc/ada/restrict.adb21
1 files changed, 10 insertions, 11 deletions
diff --git a/gcc/ada/restrict.adb b/gcc/ada/restrict.adb
index ac1d254f85e..85134080835 100644
--- a/gcc/ada/restrict.adb
+++ b/gcc/ada/restrict.adb
@@ -101,19 +101,18 @@ package body Restrict is
procedure Check_Elaboration_Code_Allowed (N : Node_Id) is
begin
- -- Avoid calling Namet.Unlock/Lock except when there is an error.
- -- Even in the error case it is a bit dubious, either gigi needs
- -- the table locked or it does not! ???
-
- if Restrictions.Set (No_Elaboration_Code)
- and then not Suppress_Restriction_Message (N)
- then
- Namet.Unlock;
- Check_Restriction (No_Elaboration_Code, N);
- Namet.Lock;
- end if;
+ Check_Restriction (No_Elaboration_Code, N);
end Check_Elaboration_Code_Allowed;
+ -----------------------------------------
+ -- Check_Implicit_Dynamic_Code_Allowed --
+ -----------------------------------------
+
+ procedure Check_Implicit_Dynamic_Code_Allowed (N : Node_Id) is
+ begin
+ Check_Restriction (No_Implicit_Dynamic_Code, N);
+ end Check_Implicit_Dynamic_Code_Allowed;
+
----------------------------------
-- Check_No_Implicit_Heap_Alloc --
----------------------------------
OpenPOWER on IntegriCloud