summaryrefslogtreecommitdiff
path: root/gcc/ada/s-traent.ads
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2014-07-30 12:46:03 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2014-07-30 12:46:03 +0000
commit060058e0c6d74c2f3d8a5a02f2c2f6a40aa207a7 (patch)
treeedf3ff7d4d7c657a4d5bac94ea980f2fbfb23581 /gcc/ada/s-traent.ads
parent88e572e7cad4fd7b4da0946b5ae876aff924bdeb (diff)
downloadgcc-060058e0c6d74c2f3d8a5a02f2c2f6a40aa207a7.tar.gz
2014-07-30 Bob Duff <duff@adacore.com>
* s-tasuti.ads, s-tasuti.adb (Make_Independent): Change this from a procedure to a function, so that it can more easily be called before the "begin" of a task. * s-taasde.ads (Delay_Block): Make this type immutably limited, so we can use a build-in-place function call to initialize Timer_Queue in the body. * a-rttiev.adb, s-asthan-vms-alpha.adb, s-asthan-vms-ia64.adb, * s-interr.adb, s-interr-hwint.adb, s-interr-sigaction.adb, * s-interr-vms.adb, s-taasde.adb: Each independent task now calls Make_Independent before reaching its "begin", to avoid race conditions. This causes the activating task to wait until after Make_Independent is complete before proceeding. In addition, we initialize data structures used by independent tasks before activating those tasks, to avoid possible use of uninitialized data. * s-interr.ads, s-intman.ads, s-taspri-posix.ads, s-tasdeb.ads: Minor comment fixes. 2014-07-30 Bob Duff <duff@adacore.com> * a-exctra.ads, s-traent-vms.ads, s-traent.ads (Tracebacks_Array): Move the declaration of Tracebacks_Array from Ada.Exceptions.Traceback to System.Traceback_Entries (s-traent.ads and s-traent-vms.ads). Add subtypes renaming Tracebacks_Array in Ada.Exceptions.Traceback. * g-debpoo.adb: Refer to Tracebacks_Array in its new home. 2014-07-30 Arnaud Charlet <charlet@adacore.com> * a-tasatt.adb: Remove old comments. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213256 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/s-traent.ads')
-rw-r--r--gcc/ada/s-traent.ads4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/ada/s-traent.ads b/gcc/ada/s-traent.ads
index 1dbb9ec15d6..74f53fd361d 100644
--- a/gcc/ada/s-traent.ads
+++ b/gcc/ada/s-traent.ads
@@ -6,7 +6,7 @@
-- --
-- S p e c --
-- --
--- Copyright (C) 2003-2013, Free Software Foundation, Inc. --
+-- Copyright (C) 2003-2014, Free Software Foundation, Inc. --
-- --
-- This specification is derived from the Ada Reference Manual for use with --
-- GNAT. The copyright notice above, and the license provisions that follow --
@@ -49,6 +49,8 @@ package System.Traceback_Entries is
Null_TB_Entry : constant Traceback_Entry := System.Null_Address;
-- This is the value to be used when initializing an entry
+ type Tracebacks_Array is array (Positive range <>) of Traceback_Entry;
+
function PC_For (TB_Entry : Traceback_Entry) return System.Address;
pragma Inline (PC_For);
-- Returns the address of the call instruction associated with the