Commit 60b68e56 by Robert Dewar Committed by Arnaud Charlet

checks.adb, [...]: Minor reformatting.

2012-10-05  Robert Dewar  <dewar@adacore.com>

	* checks.adb, checks.ads, s-tassta.adb, s-stposu.adb, s-spsufi.adb,
	s-spsufi.ads, exp_ch4.adb: Minor reformatting.

From-SVN: r192125
parent 5707e389
2012-10-05 Robert Dewar <dewar@adacore.com>
* checks.adb, checks.ads, s-tassta.adb, s-stposu.adb, s-spsufi.adb,
s-spsufi.ads, exp_ch4.adb: Minor reformatting.
2012-10-05 Yannick Moy <moy@adacore.com> 2012-10-05 Yannick Moy <moy@adacore.com>
* switch-c.adb, checks.adb, checks.ads, sem_prag.adb, exp_ch4.adb, * switch-c.adb, checks.adb, checks.ads, sem_prag.adb, exp_ch4.adb,
......
...@@ -1207,10 +1207,9 @@ package body Checks is ...@@ -1207,10 +1207,9 @@ package body Checks is
Analyze_And_Resolve (Op); Analyze_And_Resolve (Op);
end; end;
-- Here we know the result is Long_Long_Integer'Base, -- Here we know the result is Long_Long_Integer'Base, of that it has
-- or that it has been rewritten because the parent -- been rewritten because the parent operation is a conversion. See
-- is a conversion (see Conversion_Optimization in -- Conversion_Optimization.Apply_Arithmetic_Overflow_Checked_Suppressed.
-- Apply_Arithmetic_Overflow_Checked_Suppressed).
else else
pragma Assert pragma Assert
......
...@@ -320,7 +320,7 @@ package Checks is ...@@ -320,7 +320,7 @@ package Checks is
-- --
-- Overflow checks are applied to the operands of a comparison operation. -- Overflow checks are applied to the operands of a comparison operation.
-- In this case, the comparison is done on the result Long_Long_Integer -- In this case, the comparison is done on the result Long_Long_Integer
-- or Bignum values, without raising any exception. -- or Bignum values, without raising any exceptions.
-- --
-- Overflow checks are applied to the left operand of a membership test. -- Overflow checks are applied to the left operand of a membership test.
-- In this case no exception is raised if a Long_Long_Integer or Bignum -- In this case no exception is raised if a Long_Long_Integer or Bignum
......
...@@ -7084,7 +7084,7 @@ package body Exp_Ch4 is ...@@ -7084,7 +7084,7 @@ package body Exp_Ch4 is
Typl := Base_Type (Typl); Typl := Base_Type (Typl);
-- Deal with overflow checks in MINIMIZED/ELIMINATED mode and if that -- Deal with overflow checks in MINIMIZED/ELIMINATED mode and if that
-- results in not having a comparison operation anymore, we are done. -- means we no longer have a comparison operation, we are all done.
Expand_Compare_Minimize_Eliminate_Overflow (N); Expand_Compare_Minimize_Eliminate_Overflow (N);
...@@ -7678,7 +7678,7 @@ package body Exp_Ch4 is ...@@ -7678,7 +7678,7 @@ package body Exp_Ch4 is
Binary_Op_Validity_Checks (N); Binary_Op_Validity_Checks (N);
-- Deal with overflow checks in MINIMIZED/ELIMINATED mode and if that -- Deal with overflow checks in MINIMIZED/ELIMINATED mode and if that
-- results in not having a comparison operation anymore, we are done. -- means we no longer have a comparison operation, we are all done.
Expand_Compare_Minimize_Eliminate_Overflow (N); Expand_Compare_Minimize_Eliminate_Overflow (N);
...@@ -7728,7 +7728,7 @@ package body Exp_Ch4 is ...@@ -7728,7 +7728,7 @@ package body Exp_Ch4 is
Binary_Op_Validity_Checks (N); Binary_Op_Validity_Checks (N);
-- Deal with overflow checks in MINIMIZED/ELIMINATED mode and if that -- Deal with overflow checks in MINIMIZED/ELIMINATED mode and if that
-- results in not having a comparison operation anymore, we are done. -- means we no longer have a comparison operation, we are all done.
Expand_Compare_Minimize_Eliminate_Overflow (N); Expand_Compare_Minimize_Eliminate_Overflow (N);
...@@ -7778,7 +7778,7 @@ package body Exp_Ch4 is ...@@ -7778,7 +7778,7 @@ package body Exp_Ch4 is
Binary_Op_Validity_Checks (N); Binary_Op_Validity_Checks (N);
-- Deal with overflow checks in MINIMIZED/ELIMINATED mode and if that -- Deal with overflow checks in MINIMIZED/ELIMINATED mode and if that
-- results in not having a comparison operation anymore, we are done. -- means we no longer have a comparison operation, we are all done.
Expand_Compare_Minimize_Eliminate_Overflow (N); Expand_Compare_Minimize_Eliminate_Overflow (N);
...@@ -7828,7 +7828,7 @@ package body Exp_Ch4 is ...@@ -7828,7 +7828,7 @@ package body Exp_Ch4 is
Binary_Op_Validity_Checks (N); Binary_Op_Validity_Checks (N);
-- Deal with overflow checks in MINIMIZED/ELIMINATED mode and if that -- Deal with overflow checks in MINIMIZED/ELIMINATED mode and if that
-- results in not having a comparison operation anymore, we are done. -- means we no longer have a comparison operation, we are all done.
Expand_Compare_Minimize_Eliminate_Overflow (N); Expand_Compare_Minimize_Eliminate_Overflow (N);
...@@ -8263,7 +8263,7 @@ package body Exp_Ch4 is ...@@ -8263,7 +8263,7 @@ package body Exp_Ch4 is
Binary_Op_Validity_Checks (N); Binary_Op_Validity_Checks (N);
-- Deal with overflow checks in MINIMIZED/ELIMINATED mode and if -- Deal with overflow checks in MINIMIZED/ELIMINATED mode and if
-- that results in not having a /= operation anymore, we are done. -- means we no longer have a /= operation, we are all done.
Expand_Compare_Minimize_Eliminate_Overflow (N); Expand_Compare_Minimize_Eliminate_Overflow (N);
......
...@@ -2,8 +2,7 @@ ...@@ -2,8 +2,7 @@
-- -- -- --
-- GNAT COMPILER COMPONENTS -- -- GNAT COMPILER COMPONENTS --
-- -- -- --
-- S Y S T E M . S T O R A G E _ P O O L S . S U B P O O L S . -- -- SYSTEM.STORAGE_POOLS.SUBPOOLS.FINALIZATION --
-- F I N A L I Z A T I O N --
-- -- -- --
-- B o d y -- -- B o d y --
-- -- -- --
...@@ -31,6 +30,7 @@ ...@@ -31,6 +30,7 @@
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
with Ada.Unchecked_Deallocation; with Ada.Unchecked_Deallocation;
with System.Finalization_Masters; use System.Finalization_Masters; with System.Finalization_Masters; use System.Finalization_Masters;
package body System.Storage_Pools.Subpools.Finalization is package body System.Storage_Pools.Subpools.Finalization is
......
...@@ -2,8 +2,7 @@ ...@@ -2,8 +2,7 @@
-- -- -- --
-- GNAT COMPILER COMPONENTS -- -- GNAT COMPILER COMPONENTS --
-- -- -- --
-- S Y S T E M . S T O R A G E _ P O O L S . S U B P O O L S . -- -- SYSTEM.STORAGE_POOLS.SUBPOOLS.FINALIZATION --
-- F I N A L I Z A T I O N --
-- -- -- --
-- S p e c -- -- S p e c --
-- -- -- --
...@@ -33,6 +32,10 @@ ...@@ -33,6 +32,10 @@
pragma Compiler_Unit; pragma Compiler_Unit;
package System.Storage_Pools.Subpools.Finalization is package System.Storage_Pools.Subpools.Finalization is
-- The pragma is needed because package System.Storage_Pools.Subpools which
-- is already preelaborated now depends on this unit.
pragma Preelaborate; pragma Preelaborate;
procedure Finalize_And_Deallocate (Subpool : in out Subpool_Handle); procedure Finalize_And_Deallocate (Subpool : in out Subpool_Handle);
......
...@@ -31,11 +31,13 @@ ...@@ -31,11 +31,13 @@
with Ada.Exceptions; use Ada.Exceptions; with Ada.Exceptions; use Ada.Exceptions;
with Ada.Unchecked_Conversion; with Ada.Unchecked_Conversion;
with System.Address_Image; with System.Address_Image;
with System.Finalization_Masters; use System.Finalization_Masters; with System.Finalization_Masters; use System.Finalization_Masters;
with System.IO; use System.IO; with System.IO; use System.IO;
with System.Soft_Links; use System.Soft_Links; with System.Soft_Links; use System.Soft_Links;
with System.Storage_Elements; use System.Storage_Elements; with System.Storage_Elements; use System.Storage_Elements;
with System.Storage_Pools.Subpools.Finalization; with System.Storage_Pools.Subpools.Finalization;
use System.Storage_Pools.Subpools.Finalization; use System.Storage_Pools.Subpools.Finalization;
......
...@@ -1905,11 +1905,11 @@ package body System.Tasking.Stages is ...@@ -1905,11 +1905,11 @@ package body System.Tasking.Stages is
C := All_Tasks_List; C := All_Tasks_List;
P := null; P := null;
while C /= null loop while C /= null loop
-- If Free_On_Termination is set, do nothing here, and let
-- the task free itself if not already done, otherwise we -- If Free_On_Termination is set, do nothing here, and let the
-- risk a race condition where Vulnerable_Free_Task is called -- task free itself if not already done, otherwise we risk a race
-- in the loop below, while the task calls Free_Task itself, -- condition where Vulnerable_Free_Task is called in the loop below,
-- in Terminate_Task. -- while the task calls Free_Task itself, in Terminate_Task.
if C.Common.Parent = Self_ID if C.Common.Parent = Self_ID
and then C.Master_of_Task >= CM and then C.Master_of_Task >= CM
......
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