Commit 3dac89f7 by Arnaud Charlet

[multiple changes]

2010-09-10  Arnaud Charlet  <charlet@adacore.com>

	* s-tporft.adb, s-taskin.ads (Register_Foreign_Thread): Move
	initialization of Task_Alternate_Stack here, cleaner since in case of
	ranvescar, Restricted_Ada_Task_Control_Block is not initialized
	implicitly.

2010-09-10  Thomas Quinot  <quinot@adacore.com>

	* s-fileio.adb, a-dirval.adb: Minor reformatting.

From-SVN: r164151
parent 96cb32ac
2010-09-10 Arnaud Charlet <charlet@adacore.com>
* s-tporft.adb, s-taskin.ads (Register_Foreign_Thread): Move
initialization of Task_Alternate_Stack here, cleaner since in case of
ranvescar, Restricted_Ada_Task_Control_Block is not initialized
implicitly.
2010-09-10 Thomas Quinot <quinot@adacore.com>
* s-fileio.adb, a-dirval.adb: Minor reformatting.
2010-09-10 Emmanuel Briot <briot@adacore.com> 2010-09-10 Emmanuel Briot <briot@adacore.com>
* prj-util.adb (Executable_Of): Fix CE when the project does not * prj-util.adb (Executable_Of): Fix CE when the project does not
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
-- B o d y -- -- B o d y --
-- (POSIX Version) -- -- (POSIX Version) --
-- -- -- --
-- Copyright (C) 2004-2009, Free Software Foundation, Inc. -- -- Copyright (C) 2004-2010, Free Software Foundation, Inc. --
-- -- -- --
-- GNAT is free software; you can redistribute it and/or modify it under -- -- GNAT 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- -- -- terms of the GNU General Public License as published by the Free Soft- --
...@@ -47,7 +47,7 @@ package body Ada.Directories.Validity is ...@@ -47,7 +47,7 @@ package body Ada.Directories.Validity is
-- Is_Valid_Path_Name -- -- Is_Valid_Path_Name --
------------------------ ------------------------
function Is_Valid_Path_Name (Name : String) return Boolean is function Is_Valid_Path_Name (Name : String) return Boolean is
begin begin
-- A path name cannot be empty and cannot contain any NUL character -- A path name cannot be empty and cannot contain any NUL character
......
...@@ -385,7 +385,7 @@ package body System.File_IO is ...@@ -385,7 +385,7 @@ package body System.File_IO is
end Errno_Message; end Errno_Message;
function Errno_Message function Errno_Message
(Name : String; (Name : String;
Errno : Integer := OS_Lib.Errno) return String Errno : Integer := OS_Lib.Errno) return String
is is
begin begin
......
...@@ -523,7 +523,7 @@ package System.Tasking is ...@@ -523,7 +523,7 @@ package System.Tasking is
-- Activator writes it, once, before Self starts executing. Thereafter, -- Activator writes it, once, before Self starts executing. Thereafter,
-- Self only reads it. -- Self only reads it.
Task_Alternate_Stack : System.Address := System.Null_Address; Task_Alternate_Stack : System.Address;
-- The address of the alternate signal stack for this task, if any -- The address of the alternate signal stack for this task, if any
-- --
-- Protection: Only accessed by Self -- Protection: Only accessed by Self
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
-- -- -- --
-- B o d y -- -- B o d y --
-- -- -- --
-- Copyright (C) 2002-2009, Free Software Foundation, Inc. -- -- Copyright (C) 2002-2010, Free Software Foundation, Inc. --
-- -- -- --
-- GNARL is free software; you can redistribute it and/or modify it under -- -- 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- -- -- terms of the GNU General Public License as published by the Free Soft- --
...@@ -86,6 +86,10 @@ begin ...@@ -86,6 +86,10 @@ begin
Self_Id.Deferral_Level := 0; Self_Id.Deferral_Level := 0;
-- We do not provide an alternate stack for foreign threads
Self_Id.Common.Task_Alternate_Stack := Null_Address;
System.Soft_Links.Create_TSD (Self_Id.Common.Compiler_Data); System.Soft_Links.Create_TSD (Self_Id.Common.Compiler_Data);
-- ??? -- ???
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment