aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/restrict.adb
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2014-10-17 11:20:50 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2014-10-17 11:20:50 +0200
commit43c58950be209f57279c16f4663437956eb5a593 (patch)
treeac2ce43d8b87906a4f1c44c43fc8feeb03aaee9a /gcc/ada/restrict.adb
parentfa2e6e2570459be86a7a47482ad7bd2a7115982a (diff)
downloadgcc-43c58950be209f57279c16f4663437956eb5a593.zip
gcc-43c58950be209f57279c16f4663437956eb5a593.tar.gz
gcc-43c58950be209f57279c16f4663437956eb5a593.tar.bz2
[multiple changes]
2014-10-17 Robert Dewar <dewar@adacore.com> * exp_ch9.adb (Expand_N_Task_Body): Add defense against previous errors. * freeze.adb (Freeze_Entity): Add defense against checking null scope for generic. * restrict.adb (Tasking_Allowed): Add test for No_Run_Time mode. * sem_ch13.adb (Freeze_Entity_Checks): Add defense against previous errors. * sem_ch9.adb (Analyze_Task_Type_Declaration): Give error if in No_Run_Time mode. 2014-10-17 Robert Dewar <dewar@adacore.com> * prj-makr.adb: Minor reformatting. 2014-10-17 Robert Dewar <dewar@adacore.com> * gnatcmd.adb, make.adb, prj-part.adb, gnatlink.adb, prj-nmsc.adb, prj-conf.adb, prj-env.adb: Use Is_Directory_Separator where possible. 2014-10-17 Ed Schonberg <schonberg@adacore.com> * exp_prag.adb (Undo_Initialization): If Initialize_Scalars is enabled, code will be generated for some composite types to initialize an object after its declaration. If there is a subsequent Import pragma for the object, that code must be removed as specified byw the semantics of the pragma, and to prevent out-of-order elaboration issues in the back-end. 2014-10-17 Hristian Kirtchev <kirtchev@adacore.com> * exp_ch4.adb (Expand_N_Op_Concat): Keep concatenation operator wrapping mechanism under debug flag -gnatd.h. * debug.adb: Claim debug switch -gnatd.h. From-SVN: r216384
Diffstat (limited to 'gcc/ada/restrict.adb')
-rw-r--r--gcc/ada/restrict.adb3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/ada/restrict.adb b/gcc/ada/restrict.adb
index f2e6a1f..13732fb7 100644
--- a/gcc/ada/restrict.adb
+++ b/gcc/ada/restrict.adb
@@ -1533,7 +1533,8 @@ package body Restrict is
begin
return not Restrictions.Set (No_Tasking)
and then (not Restrictions.Set (Max_Tasks)
- or else Restrictions.Value (Max_Tasks) > 0);
+ or else Restrictions.Value (Max_Tasks) > 0)
+ and then not No_Run_Time_Mode;
end Tasking_Allowed;
end Restrict;