aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/a-reatim.adb
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2010-06-23 08:31:57 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2010-06-23 08:31:57 +0200
commit5b599df4d10201f3a83dbbaece526a2a22b49f18 (patch)
tree894847d28e65a7dd99ebd10c39fd1215e393b7d1 /gcc/ada/a-reatim.adb
parentb4d7b435e067d9f3df49ee3ed0a5cf4d6b09f8e8 (diff)
downloadgcc-5b599df4d10201f3a83dbbaece526a2a22b49f18.zip
gcc-5b599df4d10201f3a83dbbaece526a2a22b49f18.tar.gz
gcc-5b599df4d10201f3a83dbbaece526a2a22b49f18.tar.bz2
[multiple changes]
2010-06-23 Jose Ruiz <ruiz@adacore.com> * a-reatim.adb, a-retide.adb: Move the initialization of the tasking run time from Ada.Real_Time.Delays to Ada.Real_Time. This way, calls to Clock (without delays) use a run time which is properly initialized. 2010-06-23 Vincent Celier <celier@adacore.com> * make.adb: Do not set Check_Readonly_Files when setting Must_Compile, when -f -u and a main is specified on the command line. However, attempt to compile even when the ALI file is read-only when Must_Compile is True. 2010-06-23 Thomas Quinot <quinot@adacore.com> * checks.adb, g-pehage.adb, cstand.adb: Minor code factorization. From-SVN: r161248
Diffstat (limited to 'gcc/ada/a-reatim.adb')
-rw-r--r--gcc/ada/a-reatim.adb8
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ada/a-reatim.adb b/gcc/ada/a-reatim.adb
index 355f0db..026c289 100644
--- a/gcc/ada/a-reatim.adb
+++ b/gcc/ada/a-reatim.adb
@@ -32,7 +32,7 @@
-- --
------------------------------------------------------------------------------
-with System.OS_Primitives;
+with System.Tasking;
package body Ada.Real_Time is
@@ -245,5 +245,9 @@ package body Ada.Real_Time is
end To_Time_Span;
begin
- System.OS_Primitives.Initialize;
+ -- Ensure that the tasking run time is initialized when using clock and/or
+ -- delay operations. The initialization routine has the required machinery
+ -- to prevent multiple calls to Initialize.
+
+ System.Tasking.Initialize;
end Ada.Real_Time;