aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/s-taprob.adb
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/s-taprob.adb')
-rw-r--r--gcc/ada/s-taprob.adb9
1 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ada/s-taprob.adb b/gcc/ada/s-taprob.adb
index a5f6278..4a5b6af 100644
--- a/gcc/ada/s-taprob.adb
+++ b/gcc/ada/s-taprob.adb
@@ -7,7 +7,7 @@
-- B o d y --
-- --
-- Copyright (C) 1991-1994, Florida State University --
--- Copyright (C) 1995-2003, Ada Core Technologies --
+-- Copyright (C) 1995-2004, Ada Core Technologies --
-- --
-- GNARL 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- --
@@ -46,6 +46,9 @@ with System.Parameters;
with System.Traces;
-- used for Send_Trace_Info
+with System.Soft_Links.Tasking;
+-- Used for Init_Tasking_Soft_Links
+
package body System.Tasking.Protected_Objects is
use System.Task_Primitives.Operations;
@@ -137,4 +140,8 @@ package body System.Tasking.Protected_Objects is
end if;
end Unlock;
+begin
+ -- Ensure that tasking soft links are set when using protected objects
+
+ System.Soft_Links.Tasking.Init_Tasking_Soft_Links;
end System.Tasking.Protected_Objects;