Commit 864e0cbd by Arnaud Charlet

[multiple changes]

2009-11-30  Robert Dewar  <dewar@adacore.com>

	* g-alleve.adb: Minor code reorganization (use conditional expressions)

2009-11-30  Thomas Quinot  <quinot@adacore.com>

	* a-tasatt.adb, s-taprop-dummy.adb (Ada.Task_Attributes.Reference):
	Remove unreachable code.
	(System.Task_Primitives.Operations.Initialize, dummy version):
	Use plain Program_Error rather than call to
	System.Error_Reporting.Shutdown.

From-SVN: r154766
parent 979bbe90
...@@ -221,7 +221,6 @@ ...@@ -221,7 +221,6 @@
-- general use 'Unchecked_Access instead of 'Access as the package can be -- general use 'Unchecked_Access instead of 'Access as the package can be
-- instantiated from within a local context. -- instantiated from within a local context.
with System.Error_Reporting;
with System.Storage_Elements; with System.Storage_Elements;
with System.Task_Primitives.Operations; with System.Task_Primitives.Operations;
with System.Tasking; with System.Tasking;
...@@ -237,8 +236,7 @@ pragma Elaborate_All (System.Tasking.Task_Attributes); ...@@ -237,8 +236,7 @@ pragma Elaborate_All (System.Tasking.Task_Attributes);
package body Ada.Task_Attributes is package body Ada.Task_Attributes is
use System.Error_Reporting, use System.Tasking.Initialization,
System.Tasking.Initialization,
System.Tasking, System.Tasking,
System.Tasking.Task_Attributes, System.Tasking.Task_Attributes,
Ada.Exceptions; Ada.Exceptions;
...@@ -424,9 +422,6 @@ package body Ada.Task_Attributes is ...@@ -424,9 +422,6 @@ package body Ada.Task_Attributes is
end; end;
end if; end if;
pragma Assert (Shutdown ("Should never get here in Reference"));
return null;
exception exception
when Tasking_Error | Program_Error => when Tasking_Error | Program_Error =>
raise; raise;
......
...@@ -38,8 +38,6 @@ pragma Polling (Off); ...@@ -38,8 +38,6 @@ pragma Polling (Off);
-- Turn off polling, we do not want ATC polling to take place during tasking -- Turn off polling, we do not want ATC polling to take place during tasking
-- operations. It causes infinite loops and other problems. -- operations. It causes infinite loops and other problems.
with System.Error_Reporting;
package body System.Task_Primitives.Operations is package body System.Task_Primitives.Operations is
use System.Tasking; use System.Tasking;
...@@ -192,9 +190,7 @@ package body System.Task_Primitives.Operations is ...@@ -192,9 +190,7 @@ package body System.Task_Primitives.Operations is
procedure Initialize (Environment_Task : Task_Id) is procedure Initialize (Environment_Task : Task_Id) is
No_Tasking : Boolean; No_Tasking : Boolean;
begin begin
No_Tasking := raise Program_Error with "Tasking not implemented on this configuration";
System.Error_Reporting.Shutdown
("Tasking not implemented on this configuration");
end Initialize; end Initialize;
procedure Initialize (S : in out Suspension_Object) is procedure Initialize (S : in out Suspension_Object) is
......
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