]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
g-moreex.adb: Add comments.
authorRobert Dewar <dewar@adacore.com>
Fri, 17 Apr 2009 13:07:12 +0000 (13:07 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Fri, 17 Apr 2009 13:07:12 +0000 (15:07 +0200)
2009-04-17  Robert Dewar  <dewar@adacore.com>

* g-moreex.adb: Add comments.

* s-auxdec.ads: Add ??? comment for uncommented pragma Warnings (Off)

* s-auxdec-vms_64.ads: Add ??? comment for uncommented pragma
Warnings (Off)

* prepcomp.adb: Add ??? comment

* a-tasatt.adb: Minor reformatting

* g-trasym-vms-alpha.adb: Add ??? comment

* g-trasym-vms-ia64.adb: Add ??? comment

* xoscons.adb: Minor reformatting

* s-tassta.adb: Minor reformatting

* s-scaval.adb: Add ??? comment

* stand.ads: Minor code clean up (remove junk with of Namet)

* s-strcom.adb, s-strcom.ads, s-string.adb, s-string.ads, s-sopco3.adb,
s-sopco3.ads, s-strops.adb, s-strops.ads, s-sopco5.adb, s-sopco5.ads,
s-wchcnv.adb, s-wchcnv.ads, s-ststop.adb, s-ststop.ads, s-soflin.adb,
s-soflin.ads, s-traceb.adb, s-traceb.ads, s-traent.adb, s-traent.ads,
s-secsta.adb, s-secsta.ads, s-utf_32.adb, s-utf_32.ads, s-wchcon.adb,
s-wchjis.adb, s-wchcon.ads, s-wchjis.ads, s-sopco4.adb, s-sopco4.ads,
s-stache.adb, s-stache.ads, s-stoele.adb, s-stoele.ads, s-stalib.adb,
s-stalib.ads, s-os_lib.ads, s-purexc.ads: Remove no longer needed
Warnings off pragmas.

From-SVN: r146262

50 files changed:
gcc/ada/ChangeLog
gcc/ada/a-tasatt.adb
gcc/ada/g-moreex.adb
gcc/ada/g-trasym-vms-alpha.adb
gcc/ada/g-trasym-vms-ia64.adb
gcc/ada/prepcomp.adb
gcc/ada/s-auxdec-vms_64.ads
gcc/ada/s-auxdec.ads
gcc/ada/s-os_lib.ads
gcc/ada/s-purexc.ads
gcc/ada/s-scaval.adb
gcc/ada/s-secsta.adb
gcc/ada/s-secsta.ads
gcc/ada/s-soflin.adb
gcc/ada/s-soflin.ads
gcc/ada/s-sopco3.adb
gcc/ada/s-sopco3.ads
gcc/ada/s-sopco4.adb
gcc/ada/s-sopco4.ads
gcc/ada/s-sopco5.adb
gcc/ada/s-sopco5.ads
gcc/ada/s-stache.adb
gcc/ada/s-stache.ads
gcc/ada/s-stalib.adb
gcc/ada/s-stalib.ads
gcc/ada/s-stoele.adb
gcc/ada/s-stoele.ads
gcc/ada/s-strcom.adb
gcc/ada/s-strcom.ads
gcc/ada/s-string.adb
gcc/ada/s-string.ads
gcc/ada/s-strops.adb
gcc/ada/s-strops.ads
gcc/ada/s-ststop.adb
gcc/ada/s-ststop.ads
gcc/ada/s-tassta.adb
gcc/ada/s-traceb.adb
gcc/ada/s-traceb.ads
gcc/ada/s-traent.adb
gcc/ada/s-traent.ads
gcc/ada/s-utf_32.adb
gcc/ada/s-utf_32.ads
gcc/ada/s-wchcnv.adb
gcc/ada/s-wchcnv.ads
gcc/ada/s-wchcon.adb
gcc/ada/s-wchcon.ads
gcc/ada/s-wchjis.adb
gcc/ada/s-wchjis.ads
gcc/ada/stand.ads
gcc/ada/xoscons.adb

index 8cecbe3551ad2381f775460c49af5e2dcb2f4f9e..6fee481ee697554fb0aa070def189dd95d43268d 100644 (file)
@@ -1,3 +1,38 @@
+2009-04-17  Robert Dewar  <dewar@adacore.com>
+
+       * g-moreex.adb: Add comments.
+
+       * s-auxdec.ads: Add ??? comment for uncommented pragma Warnings (Off)
+
+       * s-auxdec-vms_64.ads: Add ??? comment for uncommented pragma
+       Warnings (Off)
+
+       * prepcomp.adb: Add ??? comment
+
+       * a-tasatt.adb: Minor reformatting
+
+       * g-trasym-vms-alpha.adb: Add ??? comment
+
+       * g-trasym-vms-ia64.adb: Add ??? comment
+
+       * xoscons.adb: Minor reformatting
+
+       * s-tassta.adb: Minor reformatting
+
+       * s-scaval.adb: Add ??? comment
+
+       * stand.ads: Minor code clean up (remove junk with of Namet)
+
+       * s-strcom.adb, s-strcom.ads, s-string.adb, s-string.ads, s-sopco3.adb,
+       s-sopco3.ads, s-strops.adb, s-strops.ads, s-sopco5.adb, s-sopco5.ads,
+       s-wchcnv.adb, s-wchcnv.ads, s-ststop.adb, s-ststop.ads, s-soflin.adb,
+       s-soflin.ads, s-traceb.adb, s-traceb.ads, s-traent.adb, s-traent.ads,
+       s-secsta.adb, s-secsta.ads, s-utf_32.adb, s-utf_32.ads, s-wchcon.adb,
+       s-wchjis.adb, s-wchcon.ads, s-wchjis.ads, s-sopco4.adb, s-sopco4.ads,
+       s-stache.adb, s-stache.ads, s-stoele.adb, s-stoele.ads, s-stalib.adb,
+       s-stalib.ads, s-os_lib.ads, s-purexc.ads: Remove no longer needed
+       Warnings off pragmas.
+
 2009-04-17  Pascal Obry  <obry@adacore.com>
 
        * initialize.c: Fix test for reallocating the arguments array.
index b1a6b2da52d070c8ed6ba6c793f318eb01c5400e..69c4b9bdf7153220345e3c6574cd12d648a0008d 100644 (file)
@@ -276,8 +276,7 @@ package body Ada.Task_Attributes is
    --  For reference to directly addressed task attributes
 
    pragma Warnings (On);
-   --  End of warnings off region for directly addressed
-   --  attribute conversion functions.
+   --  End warnings off region for directly addressed attribute conversions
 
    function To_Access_Address is new Ada.Unchecked_Conversion
      (Access_Node, Access_Address);
@@ -307,8 +306,6 @@ package body Ada.Task_Attributes is
      (Local_Deallocator, Deallocator);
    --  To defeat accessibility check
 
-   pragma Warnings (On);
-
    ------------------------
    -- Storage Management --
    ------------------------
index e86d378f1dc8a16905914bb894057d6d90b3d8ba..ab3a3065524cacffe9e7f85a6b43d42dc8e35d35 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---                     Copyright (C) 2000-2006, AdaCore                     --
+--                     Copyright (C) 2000-2008, AdaCore                     --
 --                                                                          --
 -- 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- --
@@ -47,32 +47,17 @@ package body GNAT.Most_Recent_Exception is
       use type Ada.Exceptions.Exception_Occurrence_Access;
 
    begin
-      pragma Warnings (Off);
-      if EOA = null then
-         return Ada.Exceptions.Null_Occurrence;
-      else
-         return EOA.all;
-      end if;
-      pragma Warnings (On);
-
-      --  ???Note that both of the above return statements violate the Ada
-      --  2005 rule forbidding copying of limited objects (see RM-7.5(2.8/2)).
-      --  When compiled with -gnatg, the compiler gives a warning instead of
-      --  an error, so we can turn it off.
-      --  To fix this, remove the pragmas Warnings above, and use the following
-      --  code. We can't do that yet, because AI-318 is not yet implemented.
-      --
-      --  return Result : Ada.Exceptions.Exception_Occurrence do
-      --     if EOA = null then
-      --        Ada.Exceptions.Save_Occurrence
-      --          (Target => Result,
-      --           Source => Ada.Exceptions.Null_Occurrence);
-      --     else
-      --        Ada.Exceptions.Save_Occurrence
-      --          (Target => Result,
-      --           Source => EOA.all);
-      --     end if;
-      --  end return;
+      return Result : Ada.Exceptions.Exception_Occurrence do
+         if EOA = null then
+            Ada.Exceptions.Save_Occurrence
+              (Target => Result,
+               Source => Ada.Exceptions.Null_Occurrence);
+         else
+            Ada.Exceptions.Save_Occurrence
+              (Target => Result,
+               Source => EOA.all);
+         end if;
+      end return;
    end Occurrence;
 
    -----------------------
index b503441d34eb1d928b40a43c731641307ed8eb21..adfa8f83d4eb8ba88ec4a05c6b9edc1e7e104359 100644 (file)
@@ -40,7 +40,7 @@ with System.Traceback_Entries;
 
 package body GNAT.Traceback.Symbolic is
 
-   pragma Warnings (Off);
+   pragma Warnings (Off); --  Needs comment ???
    pragma Linker_Options ("--for-linker=sys$library:trace.exe");
 
    use Interfaces.C;
index 7e2195409164e819f7e3fdddd0833498d2a86a84..28dab4729bd5b1c1045960b42f34ae96c8401cc6 100644 (file)
@@ -39,7 +39,7 @@ with System.Traceback_Entries;
 
 package body GNAT.Traceback.Symbolic is
 
-   pragma Warnings (Off);
+   pragma Warnings (Off); --  ??? needs comment
    pragma Linker_Options ("--for-linker=sys$library:trace.exe");
 
    use System;
index 108fe47d1a9337aff568610d56698d170d9ca2dd..63d64e7c8fff4bff023cbedff63ac91ca5ad17ba 100644 (file)
@@ -45,8 +45,11 @@ package body Prepcomp is
 
    Source_Index_Of_Preproc_Data_File : Source_File_Index := No_Source_File;
 
-   --  The following variable should be a constant, but this is not
-   --  possible. Warnings are Off because it is never assigned a value.
+   --  The following variable should be a constant, but this is not possible
+   --  because its type GNAT.Dynamic_Tables.Instance has a component P of
+   --  unitialized private type GNAT.Dynamic_Tables.Table_Private and there are
+   --  no exported values for this private type.
+   --  Warnings are Off because it is never assigned a value.
 
    pragma Warnings (Off);
    No_Mapping : Prep.Symbol_Table.Instance;
index 6015a9fd4212d4e1e8d7733a45b493d65b81f553..e9d87627f5f7662bfd7c1e38728cdb5c951cc78a 100644 (file)
@@ -115,6 +115,7 @@ package System.Aux_DEC is
    --  Floating point type declarations for VAX floating point data types
 
    pragma Warnings (Off);
+   --  ??? needs comment
 
    type F_Float is digits 6;
    pragma Float_Representation (VAX_Float, F_Float);
index 6104be8c1103bb54960a3fabcaee1e13ec81ac08..a709956b60b583da7e5d5f9c7d5e534ad6426577 100644 (file)
@@ -105,6 +105,7 @@ package System.Aux_DEC is
    --  Floating point type declarations for VAX floating point data types
 
    pragma Warnings (Off);
+   --  ??? needs comment
 
    type F_Float is digits 6;
    pragma Float_Representation (VAX_Float, F_Float);
index 5430ff00c7eb04679b5329af30e3e3cb73801833..2abce23732e7ae922519c3b244c17eed7a882fb3 100755 (executable)
@@ -48,9 +48,7 @@
 --  be used by other predefined packages. User access to this package is via
 --  a renaming of this package in GNAT.OS_Lib (file g-os_lib.ads).
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 with System;
 with System.Strings;
index 400c730f952c039fe1f5a435a62fede096c58002..a327f48bf0aa2fb8e320e014583787d310e18071 100644 (file)
@@ -33,9 +33,7 @@
 --  an exception message. It can be used from Pure units. This unit is for
 --  internal use only, it is not generally available to applications.
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package System.Pure_Exceptions is
    pragma Pure;
index e222cc52f608e70408f776a792af80ffec39eac9..415763c3e6bc5d47c5e4c91e4469f6148b185627 100644 (file)
@@ -71,7 +71,7 @@ package body System.Scalar_Values is
       --  On other targets the type is 8 bytes, and type Byte8 is used for
       --  values that are then converted to ByteLF.
 
-      pragma Warnings (Off);
+      pragma Warnings (Off); --  why ???
       function To_ByteLF is new Ada.Unchecked_Conversion (Byte8, ByteLF);
       pragma Warnings (On);
 
index 9f265fddb55e3d7d8cc9c9bfbbd585112e132e57..16e9fa0c9fb6b49058c912f5c1dd72b953fee695 100644 (file)
@@ -29,9 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 with System.Soft_Links;
 with System.Parameters;
index 3143dbd0857c3b7dc9e63f941d7cc375426be11b..bfbab33e37f553dfbe62761ca92faf6b07441600 100644 (file)
@@ -29,9 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 with System.Storage_Elements;
 
index 5d144411bd8750fe0a10733ac064dacf2c49996c..4ae51f39f7f759606622ccc62cdc6b8b4abdc48f 100644 (file)
@@ -29,9 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 pragma Polling (Off);
 --  We must turn polling off for this unit, because otherwise we get an
@@ -309,7 +307,7 @@ package body System.Soft_Links is
    -------------------------
 
    procedure Task_Termination_NT (Excep : EO) is
-      pragma Warnings (Off, Excep);
+      pragma Unreferenced (Excep);
    begin
       null;
    end Task_Termination_NT;
index 2c947c9af70a655378ba49dd85f01bb77124db0d..6c868cd6cedd6afee18b10b01ab8cc289e1b8a36 100644 (file)
 --  initialized to non-tasking versions, and then if the tasking support is
 --  initialized, they are set to the real tasking versions.
 
-pragma Warnings (Off);
---  When compiling this package with older compilers, there are many warnings,
---  so we suppress them throughout most of this file. Pragmas Compiler_Unit,
---  Preelaborate_05, and Favor_Top_Level are not supported by older compilers.
-
 pragma Compiler_Unit;
 
 with Ada.Exceptions;
@@ -130,7 +125,6 @@ package System.Soft_Links is
                Len       : Natural)
                return      String;
    pragma Favor_Top_Level (Traceback_Decorator_Wrapper_Call);
-   pragma Warnings (On);
 
    --  Declarations for the no tasking versions of the required routines
 
@@ -312,35 +306,35 @@ package System.Soft_Links is
    ------------------------
 
    --  Here we define a single type that encapsulates the various task
-   --  specific data. This type is used to store the necessary data into
-   --  the Task_Control_Block or into a global variable in the non tasking
-   --  case.
+   --  specific data. This type is used to store the necessary data into the
+   --  Task_Control_Block or into a global variable in the non tasking case.
 
    type TSD is record
       Pri_Stack_Info : aliased Stack_Checking.Stack_Info;
-      --  Information on stack (Base/Limit/Size) that is used
-      --  by System.Stack_Checking. If this TSD does not belong to
-      --  the environment task, the Size field must be initialized
-      --  to the tasks requested stack size before the task can do
-      --  its first stack check.
+      --  Information on stack (Base/Limit/Size) used by System.Stack_Checking.
+      --  If this TSD does not belong to the environment task, the Size field
+      --  must be initialized to the tasks requested stack size before the task
+      --  can do its first stack check.
 
       pragma Warnings (Off);
+      --  Needed because we are giving a non-static default to an object in
+      --  a preelaborated unit, which is formally not permitted, but OK here.
+
       Jmpbuf_Address : System.Address := System.Null_Address;
-      --  Address of jump buffer used to store the address of the
-      --  current longjmp/setjmp buffer for exception management.
-      --  These buffers are threaded into a stack, and the address
-      --  here is the top of the stack. A null address means that
-      --  no exception handler is currently active.
+      --  Address of jump buffer used to store the address of the current
+      --  longjmp/setjmp buffer for exception management. These buffers are
+      --  threaded into a stack, and the address here is the top of the stack.
+      --  A null address means that no exception handler is currently active.
 
       Sec_Stack_Addr : System.Address := System.Null_Address;
       pragma Warnings (On);
       --  Address of currently allocated secondary stack
 
       Current_Excep : aliased EO;
-      --  Exception occurrence that contains the information for the
-      --  current exception. Note that any exception in the same task
-      --  destroys this information, so the data in this variable must
-      --  be copied out before another exception can occur.
+      --  Exception occurrence that contains the information for the current
+      --  exception. Note that any exception in the same task destroys this
+      --  information, so the data in this variable must be copied out before
+      --  another exception can occur.
       --
       --  Also act as a list of the active exceptions in the case of the GCC
       --  exception mechanism, organized as a stack with the most recent first.
index 7fef7e25e84ccd142d949a4708d0cabb0b5e33ed..5e7b6bbcc9177e581b054ab1609cb58035b5ac32 100644 (file)
@@ -33,9 +33,7 @@
 --  which now generates concatenation inline. It is retained only because
 --  it may be used during bootstrapping using old versions of the compiler.
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package body System.String_Ops_Concat_3 is
 
index d00942ea4d0b4b1946e9af9750576ec1a39e52a0..68b1066c60ab9bf9df2af3b62953a5a9fe87bf25 100644 (file)
@@ -35,9 +35,7 @@
 --  which now generates concatenation inline. It is retained only because
 --  it may be used during bootstrapping using old versions of the compiler.
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package System.String_Ops_Concat_3 is
    pragma Pure;
index a31d29f4a28629947c6ab162ef497b629d16cfe5..4bfbcc31ccdbea2a2f7ea807d22bf05f5cef9dc4 100644 (file)
@@ -33,9 +33,7 @@
 --  which now generates concatenation inline. It is retained only because
 --  it may be used during bootstrapping using old versions of the compiler.
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package body System.String_Ops_Concat_4 is
 
index eca94b432766f8bf1bd4b51e4cf930aec97e5e08..e198bbae81c60dcb83d2dde3d2f2e5bb8249d4cc 100644 (file)
@@ -35,9 +35,7 @@
 --  which now generates concatenation inline. It is retained only because
 --  it may be used during bootstrapping using old versions of the compiler.
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package System.String_Ops_Concat_4 is
    pragma Pure;
index c31dc135ad7ee1dbc5e4c0c63cd253bccc80d893..8467028c6bae18e3cb94dc5e1b90968f69f08167 100644 (file)
@@ -33,9 +33,7 @@
 --  which now generates concatenation inline. It is retained only because
 --  it may be used during bootstrapping using old versions of the compiler.
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package body System.String_Ops_Concat_5 is
 
index 7d66a60c93c97f4e6d9b729f87efa4307a9b0d11..3491bb9ad96543e0e4be8fb7ede164b00d8e890f 100644 (file)
@@ -35,9 +35,7 @@
 --  which now generates concatenation inline. It is retained only because
 --  it may be used during bootstrapping using old versions of the compiler.
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package System.String_Ops_Concat_5 is
    pragma Pure;
index a3d6598d895eb0d07de55cec8f9198fd2dd5ee73..ffad20544815f3346fa44038126ad74fae66e64d 100644 (file)
@@ -29,9 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 --  As noted in the spec, this dummy body is present because otherwise we
 --  have bootstrapping path problems (there used to be a real body).
index d2270e034cfbc09a3a31e6a26398ac08c7f3b31c..878b8a5270c512cb58aef503396042c405d53c34 100644 (file)
@@ -35,9 +35,7 @@
 --  This package defines basic types and objects. Operations related to
 --  stack checking can be found in package System.Stack_Checking.Operations.
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 with System.Storage_Elements;
 
index 8730b46aac20dd2d3c193d286e5006fc03b2043c..ffea8d008cdb5fd0b70188534eb8afa8d1709974 100644 (file)
@@ -29,9 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 --  The purpose of this body is simply to ensure that the two with'ed units
 --  are properly included in the link. They are not with'ed from the spec
@@ -43,7 +41,8 @@ pragma Polling (Off);
 --  elaboration circularities with Ada.Exceptions if polling is on.
 
 pragma Warnings (Off);
---  Kill warnings from unused withs
+--  Kill warnings from unused withs. These unused with's are here to make
+--  sure the relevant units are loaded and properly elaborated.
 
 with System.Soft_Links;
 --  Referenced directly from generated code using external symbols so it
index be0f0ad69f4d52bd8f0126d31398326ec17668e2..fb58642d01eeb6f6143cef2f5fa91430eecbde06 100644 (file)
@@ -44,9 +44,7 @@
 --  package and the packages it references are included in all Ada programs,
 --  together with the included data.
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 pragma Polling (Off);
 --  We must turn polling off for this unit, because otherwise we get
index 4f9a05f7b416dbec1aac05962dab716f3b598e83..0bab843c1387d53faca52acf8ecea036521e7b42 100644 (file)
@@ -29,9 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 with Ada.Unchecked_Conversion;
 
index 275728b78a73806e3efd41f427b03f64bb777f09..af60beb55184fac4d06d184c58155e9afacabbc8 100644 (file)
@@ -37,9 +37,7 @@
 --  extra declarations that can be introduced into System using Extend_System.
 --  It is a good idea to avoid use clauses for this package!
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package System.Storage_Elements is
    pragma Pure;
@@ -66,12 +64,8 @@ package System.Storage_Elements is
    type Storage_Element is mod 2 ** Storage_Unit;
    for Storage_Element'Size use Storage_Unit;
 
-   pragma Warnings (Off);
    pragma Universal_Aliasing (Storage_Element);
-   pragma Warnings (On);
-   --  This type is used by the expansion to implement aggregate copy.
-   --  We turn off warnings for this pragma to deal with being compiled
-   --  with an earlier GNAT version that does not recognize this pragma.
+   --  This type is used by the expander to implement aggregate copy
 
    type Storage_Array is
      array (Storage_Offset range <>) of aliased Storage_Element;
index acd1ac4e0ea6c96f042e07a44295f2abdb458744..37ccc61380aaaf0f4131b58882eb9f0b809b3670 100644 (file)
@@ -29,9 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 with Ada.Unchecked_Conversion;
 
index 644667e9991c3be9c07ea5d98bda9c012e7f78fb..6d1a303c560c3720999978627942ace009c67fd6 100644 (file)
@@ -31,9 +31,7 @@
 
 --  This package contains functions for runtime comparisons on strings
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package System.String_Compare is
 
index 24c4e31c42eb5fa9fd6848688f7e13bd123cffb2..e1799eb4545cec7b81451385bf407d627aade688 100755 (executable)
@@ -29,9 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package body System.Strings is
 
index 5273eb4e4bf2a6ed2575559d5001e929cc7863f1..79ec11272984b207baeaf88efff8b0707d17942c 100755 (executable)
@@ -35,9 +35,7 @@
 --  be used by other predefined packages. User access to this package is via
 --  a renaming of this package in GNAT.String (file g-string.ads).
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 with Ada.Unchecked_Deallocation;
 
index 4e1a999b46a908e593897b7fe5f3ce785025f1aa..44a6a76bf1585de9157a1be9b90c43ad2e77c4c4 100644 (file)
@@ -33,9 +33,7 @@
 --  which now generates concatenation inline. It is retained only because
 --  it may be used during bootstrapping using old versions of the compiler.
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package body System.String_Ops is
 
index 5f59fde37c5ec267c989b33531e14db7ad097673..54ac74578a6a7fca0de3a75a97893789312642cc 100644 (file)
@@ -36,9 +36,7 @@
 --  which now generates concatenation inline. It is retained only because
 --  it may be used during bootstrapping using old versions of the compiler.
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package System.String_Ops is
    pragma Pure;
index cff6179a7f39422e4f758879bac32666a1f4a329..25f3bcd23c7779fcd1296c7a7d26f9666bff719d 100644 (file)
@@ -29,9 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 with Ada.Streams;              use Ada.Streams;
 with Ada.Streams.Stream_IO;    use Ada.Streams.Stream_IO;
index 0b932f940879894f74eebb5b230308e465359618..db7059069b745332f0a0b15e13aba1b4035e58b8 100644 (file)
@@ -46,9 +46,7 @@
 --       or
 --     String_Output_Blk_IO (Some_Stream, Some_String);
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 with Ada.Streams;
 
index 0dd9ac3316f0afd460861704ae6ba1f5b6b2e82e..84281cf827f01fc24cc4ccfc356e6836af88670d 100644 (file)
@@ -938,7 +938,7 @@ package body System.Tasking.Stages is
       Initialization.Undefer_Abort (Self_ID);
    end Move_Activation_Chain;
 
-   --  Compiler interface only. Do not call from within the RTS.
+   --  Compiler interface only. Do not call from within the RTS
 
    --------------------
    -- Set_Entry_Name --
index 420030c6dbb96edd779f7d5c0c41ce54b6194ed9..d4de95d7e055ea32fbec49090041fef66e5b3917 100644 (file)
@@ -34,9 +34,7 @@
 --  Note: this unit must be compiled using -fno-optimize-sibling-calls.
 --  See comment below in body of Call_Chain for details on the reason.
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package body System.Traceback is
 
index 79a5f970053d3c2438f2490c43065e2ffff04f4c..0119b700a4447752c8afc1a7da706546c54ee8eb 100644 (file)
 --                                                                          --
 ------------------------------------------------------------------------------
 
---  This package provides a method for generating a traceback of the
---  current execution location. The traceback shows the locations of
---  calls in the call chain, up to either the top or a designated
---  number of levels.
+--  This package provides a method for generating a traceback of the current
+--  execution location. The traceback shows the locations of calls in the call
+--  chain, up to either the top or a designated number of levels.
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 pragma Polling (Off);
 --  We must turn polling off for this unit, because otherwise we get
@@ -61,12 +58,11 @@ package System.Traceback is
    --    Traceback is the address of an array of addresses where the
    --    result will be stored.
    --
-   --    Max_Len is the length of the Traceback array. If the call chain
-   --    is longer than this, then additional entries are discarded, and
-   --    the traceback is missing some of the highest level entries.
+   --    Max_Len is the length of the Traceback array. If the call chain is
+   --    longer than this, then additional entries are discarded, and the
+   --    traceback is missing some of the highest level entries.
    --
-   --    Len is the returned actual number of addresses stored
-   --    in the Traceback array.
+   --    Len is the returned number of addresses stored in the Traceback array
    --
    --    Exclude_Min/Exclude_Max, if non null, provide a range of addresses
    --    to ignore from the computation of the traceback.
@@ -77,9 +73,9 @@ package System.Traceback is
    --    this procedure, 2 means 1 + exclude the frame for this procedure's
    --    caller, ...
    --
-   --  On return, the Traceback array is filled in, and Len indicates
-   --  the number of stored entries. The first entry is the most recent
-   --  call, and the last entry is the highest level call.
+   --  On return, the Traceback array is filled in, and Len indicates the
+   --  number of stored entries. The first entry is the most recent call,
+   --  and the last entry is the highest level call.
 
    function C_Call_Chain
      (Traceback : System.Address;
index 80af8be99647f90d6110c8c93f94063f1dade64d..343d30c8906ea3363d551a096745b12c3b53aa89 100644 (file)
@@ -29,9 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package body System.Traceback_Entries is
 
index b353de128f94ba432401eab6085cd727739e02af..cf24e0db52a3affe2db35fb36a46306800f3db8e 100644 (file)
@@ -38,9 +38,7 @@
 --  version of the package, an entry is a mere code location representing the
 --  address of a call instruction part of the call-chain.
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package System.Traceback_Entries is
    pragma Preelaborate;
index 712eb2c63b746a55f71b622d15521888acb6f104..263f13efd9bf994370b961eddeff91d65c050f7a 100755 (executable)
@@ -29,9 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 pragma Style_Checks (Off);
 --  Allow long lines in this unit
index 5217e8bf3ac6342e8ca00bfeff97f9a801144b16..41ed6d7927cbf37517113c32e3f76885b1040b1a 100755 (executable)
@@ -41,9 +41,7 @@
 --  the same services. The reason this package is in System is so that it can
 --  with'ed by other packages in the Ada and System hierarchies.
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package System.UTF_32 is
 
index 0552609454802da01187a783bb81f16d4052bf05..bb806f08aa5523d32da36d22aaef7c1438248a9e 100644 (file)
@@ -29,9 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 with Interfaces;     use Interfaces;
 with System.WCh_Con; use System.WCh_Con;
index 6b7abe5610364f443fbba5b070c3dadf1eca1a8d..887e2198cb7dec6a2cd410ee49b9c5a7211b772b 100644 (file)
@@ -43,9 +43,7 @@
 --  This unit may be used directly from an application program by providing
 --  an appropriate WITH, and the interface can be expected to remain stable.
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 with System.WCh_Con;
 
index 57fb73d3efa16ec87272ea766729dcf48b71ae77..45585d9f74460013f2f168c0d0f33528675fae1d 100755 (executable)
@@ -29,9 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package body System.WCh_Con is
 
index 68d9a12209596be5e37728fc58c7f503ddd2aef4..1a370698c08cce269e9d10a8d58005611a8eb221 100644 (file)
@@ -36,9 +36,7 @@
 --  This unit may be used directly from an application program by providing
 --  an appropriate WITH, and the interface can be expected to remain stable.
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package System.WCh_Con is
    pragma Pure;
index c4604af0e2ba4241278e08e6f9fc4c5d25134995..a005ec68d9bc0c5f45820c391e978d9e37ba0ffa 100644 (file)
@@ -29,9 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package body System.WCh_JIS is
 
index f66cdcb18a898feddb6478a381e41dce1922301e..b91839704c2db47b20166be5c77551a983c8a993 100644 (file)
@@ -32,9 +32,7 @@
 --  This package contains routines used for converting between internal
 --  JIS codes and the two external forms we support (EUC and Shift-JIS)
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package System.WCh_JIS is
    pragma Pure;
index 29d80a15296cebcbdb4a76d97276efa4a960f8ee..f2fadccad8eea859b7b493b26ad681dbc588fed7 100644 (file)
 
 with Types; use Types;
 
---  Do we really need the with of Namet?
-
-pragma Warnings (Off);
-with Namet; use Namet;
-pragma Elaborate_All (Namet);
-pragma Warnings (On);
-
 package Stand is
 
    type Standard_Entity_Type is (
index efce54a1f112e8904fc1e28ed3cd377ba1fc9314..4f5e4a291c71a9fb75fadf8214a893ef4ce4c54a 100644 (file)
 --                                                                          --
 ------------------------------------------------------------------------------
 
---  This program generates the spec of System.OS_Constants (s-oscons.ads).
+--  This program generates the spec of System.OS_Constants (s-oscons.ads)
 
 --  It works in conjunction with a C template file which must be pre-processed
 --  and compiled using the cross compiler. Two input files are used:
 --    - the preprocessed C file: s-oscons-tmplt.i
 --    - the generated assembly file: s-oscons-tmplt.s
 
---  The contents of s-oscons.ads is written on standard output.
+--  The contents of s-oscons.ads is written on standard output
 
 with Ada.Characters.Handling; use Ada.Characters.Handling;
 with Ada.Exceptions;          use Ada.Exceptions;