[multiple changes]
authorArnaud Charlet <charlet@gcc.gnu.org>
Tue, 19 Apr 2016 12:59:27 +0000 (14:59 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Tue, 19 Apr 2016 12:59:27 +0000 (14:59 +0200)
2016-04-19  Ed Schonberg  <schonberg@adacore.com>

* sem_attr.adb (Resolve_Attribute, case 'Access): Freeze
overloadable entity if originally overloaded.

2016-04-19  Arnaud Charlet  <charlet@adacore.com>

* exp_aggr.adb, exp_ch3.adb, exp_ch7.adb, exp_ch9.adb, exp_code.adb,
exp_fixd.adb, namet.adb, osint.adb, osint.ads, par-ch2.adb,
sem_ch10.adb, sem_ch12.adb, sem_disp.adb, sem_elab.adb, sem_elim.adb
sem_util.adb, styleg.adb, styleg.ads, stylesw.ads: Minor code
clean up.

From-SVN: r235194

21 files changed:
gcc/ada/ChangeLog
gcc/ada/exp_aggr.adb
gcc/ada/exp_ch3.adb
gcc/ada/exp_ch7.adb
gcc/ada/exp_ch9.adb
gcc/ada/exp_code.adb
gcc/ada/exp_fixd.adb
gcc/ada/namet.adb
gcc/ada/osint.adb
gcc/ada/osint.ads
gcc/ada/par-ch2.adb
gcc/ada/sem_attr.adb
gcc/ada/sem_ch10.adb
gcc/ada/sem_ch12.adb
gcc/ada/sem_disp.adb
gcc/ada/sem_elab.adb
gcc/ada/sem_elim.adb
gcc/ada/sem_util.adb
gcc/ada/styleg.adb
gcc/ada/styleg.ads
gcc/ada/stylesw.ads

index a063ef4f68eeb0a56c539607e1a62123abb3bd5e..08a4ef41d5fc076e872744e388cc0649ac3683e4 100644 (file)
@@ -1,3 +1,16 @@
+2016-04-19  Ed Schonberg  <schonberg@adacore.com>
+
+       * sem_attr.adb (Resolve_Attribute, case 'Access): Freeze
+       overloadable entity if originally overloaded.
+
+2016-04-19  Arnaud Charlet  <charlet@adacore.com>
+
+       * exp_aggr.adb, exp_ch3.adb, exp_ch7.adb, exp_ch9.adb, exp_code.adb,
+       exp_fixd.adb, namet.adb, osint.adb, osint.ads, par-ch2.adb,
+       sem_ch10.adb, sem_ch12.adb, sem_disp.adb, sem_elab.adb, sem_elim.adb
+       sem_util.adb, styleg.adb, styleg.ads, stylesw.ads: Minor code
+       clean up.
+
 2016-04-19  Arnaud Charlet  <charlet@adacore.com>
 
        * sem_util.adb (Copy_Node_With_Replacement):
index 002579bf36613aff7f725971b610e1fdd80022c8..2ad72bdf5bfd93e0c3c77f547625923782ccf99e 100644 (file)
@@ -317,7 +317,7 @@ package body Exp_Aggr is
       --  This avoids running away with attempts to convert huge aggregates,
       --  which hit memory limits in the backend.
 
-      function Component_Count (T : Entity_Id) return Int;
+      function Component_Count (T : Entity_Id) return Nat;
       --  The limit is applied to the total number of components that the
       --  aggregate will have, which is the number of static expressions
       --  that will appear in the flattened array. This requires a recursive
@@ -327,8 +327,8 @@ package body Exp_Aggr is
       -- Component_Count --
       ---------------------
 
-      function Component_Count (T : Entity_Id) return Int is
-         Res  : Int := 0;
+      function Component_Count (T : Entity_Id) return Nat is
+         Res  : Nat := 0;
          Comp : Entity_Id;
 
       begin
@@ -351,7 +351,7 @@ package body Exp_Aggr is
                Hi : constant Node_Id :=
                  Type_High_Bound (Etype (First_Index (T)));
 
-               Siz : constant Int := Component_Count (Component_Type (T));
+               Siz : constant Nat := Component_Count (Component_Type (T));
 
             begin
                if not Compile_Time_Known_Value (Lo)
@@ -6164,8 +6164,8 @@ package body Exp_Aggr is
                First_Comp   : Node_Id;
                Discriminant : Entity_Id;
                Decl         : Node_Id;
-               Num_Disc     : Int := 0;
-               Num_Gird     : Int := 0;
+               Num_Disc     : Nat := 0;
+               Num_Gird     : Nat := 0;
 
                procedure Prepend_Stored_Values (T : Entity_Id);
                --  Scan the list of stored discriminants of the type, and add
index a858f759e823bd823cde090935d79807c446aa1a..7df4830edebd4c9edf5aae8ba3a27fb46258f25d 100644 (file)
@@ -1720,7 +1720,7 @@ package body Exp_Ch3 is
       Decls     : constant List_Id  := New_List;
       Discr_Map : constant Elist_Id := New_Elmt_List;
       Loc       : constant Source_Ptr := Sloc (Rec_Ent);
-      Counter   : Int := 0;
+      Counter   : Nat := 0;
       Proc_Id   : Entity_Id;
       Rec_Type  : Entity_Id;
       Set_Tag   : Entity_Id := Empty;
index f5b97e2340cde40ffedb35f87b7d8dc45342acfa..04f28a6da4d8b1e46c1d608fcf271645e3f2cf44 100644 (file)
@@ -1096,7 +1096,7 @@ package body Exp_Ch7 is
       --    Jump_Alts
 
       Counter_Id  : Entity_Id := Empty;
-      Counter_Val : Int       := 0;
+      Counter_Val : Nat       := 0;
       --  Name and value of the state counter
 
       Decls : List_Id := No_List;
@@ -1725,7 +1725,7 @@ package body Exp_Ch7 is
          Spec    : Node_Id;
          Typ     : Entity_Id;
 
-         Old_Counter_Val : Int;
+         Old_Counter_Val : Nat;
          --  This variable is used to determine whether a nested package or
          --  instance contains at least one controlled object.
 
index 11294ed53270f101c3ccd8bb1711bdee289c0bd8..11b614b2483a317d017f07c11f635873594d49b3 100644 (file)
@@ -74,7 +74,7 @@ package body Exp_Ch9 is
    --  families of 128K should be reasonable in all cases, and is a documented
    --  implementation restriction.
 
-   Entry_Family_Bound : constant Int := 2**16;
+   Entry_Family_Bound : constant Pos := 2**16;
 
    -----------------------
    -- Local Subprograms --
@@ -9492,7 +9492,7 @@ package body Exp_Ch9 is
             Entry_Count_Expr   : constant Node_Id :=
                                    Build_Entry_Count_Expression
                                      (Prot_Typ, Cdecls, Loc);
-            Num_Attach_Handler : Int := 0;
+            Num_Attach_Handler : Nat := 0;
             Protection_Subtype : Node_Id;
             Ritem              : Node_Id;
 
@@ -10578,7 +10578,7 @@ package body Exp_Ch9 is
       Delay_Val      : Entity_Id;
       Delay_Index    : Entity_Id;
       Delay_Min      : Entity_Id;
-      Delay_Num      : Int := 1;
+      Delay_Num      : Pos := 1;
       Delay_Alt_List : List_Id := New_List;
       Delay_List     : constant List_Id := New_List;
       D              : Entity_Id;
@@ -10588,7 +10588,7 @@ package body Exp_Ch9 is
       Guard_Open     : Entity_Id;
 
       End_Lab        : Node_Id;
-      Index          : Int := 1;
+      Index          : Pos := 1;
       Lab            : Node_Id;
       Num_Alts       : Int;
       Num_Accept     : Nat := 0;
index 2b0275268cf807f682541c08d7db6d021012efd5..6fbe544930e569dab365c846a0b2d550bd8036f7 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 1996-2008, Free Software Foundation, Inc.         --
+--          Copyright (C) 1996-2015, Free Software Foundation, Inc.         --
 --                                                                          --
 -- 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- --
@@ -188,7 +188,7 @@ package body Exp_Code is
    --  and not modified by Clobber_Get_Next. Empty if clobber string was in
    --  error (resulting in no clobber arguments being returned).
 
-   Clobber_Ptr : Nat;
+   Clobber_Ptr : Pos;
    --  Pointer to current character of string. Initialized to 1 by the call
    --  to Clobber_Setup, and then updated by Clobber_Get_Next.
 
index 89aaf26ef4438dc23e1afb7129c274bf6e062a41..97bc99b8370038cbf7df43692767b46904da454e 100644 (file)
@@ -404,15 +404,15 @@ package body Exp_Fixd is
      (N       : Node_Id;
       X, Y, Z : Node_Id) return Node_Id
    is
-      Y_Size : constant Int := UI_To_Int (Esize (Etype (Y)));
-      Z_Size : constant Int := UI_To_Int (Esize (Etype (Z)));
+      Y_Size : constant Nat := UI_To_Int (Esize (Etype (Y)));
+      Z_Size : constant Nat := UI_To_Int (Esize (Etype (Z)));
       Expr   : Node_Id;
 
    begin
       --  If denominator fits in 64 bits, we can build the operations directly
       --  without causing any intermediate overflow, so that's what we do.
 
-      if Int'Max (Y_Size, Z_Size) <= 32 then
+      if Nat'Max (Y_Size, Z_Size) <= 32 then
          return
            Build_Divide (N, X, Build_Multiply (N, Y, Z));
 
@@ -473,11 +473,11 @@ package body Exp_Fixd is
    is
       Loc    : constant Source_Ptr := Sloc (N);
 
-      X_Size : constant Int := UI_To_Int (Esize (Etype (X)));
-      Y_Size : constant Int := UI_To_Int (Esize (Etype (Y)));
-      Z_Size : constant Int := UI_To_Int (Esize (Etype (Z)));
+      X_Size : constant Nat := UI_To_Int (Esize (Etype (X)));
+      Y_Size : constant Nat := UI_To_Int (Esize (Etype (Y)));
+      Z_Size : constant Nat := UI_To_Int (Esize (Etype (Z)));
 
-      QR_Siz : Int;
+      QR_Siz : Nat;
       QR_Typ : Entity_Id;
 
       Nnn : Entity_Id;
@@ -489,7 +489,7 @@ package body Exp_Fixd is
    begin
       --  Find type that will allow computation of numerator
 
-      QR_Siz := Int'Max (X_Size, 2 * Int'Max (Y_Size, Z_Size));
+      QR_Siz := Nat'Max (X_Size, 2 * Nat'Max (Y_Size, Z_Size));
 
       if QR_Siz <= 16 then
          QR_Typ := Standard_Integer_16;
@@ -499,7 +499,7 @@ package body Exp_Fixd is
          QR_Typ := Standard_Integer_64;
 
       --  For more than 64, bits, we use the 64-bit integer defined in
-      --  Interfaces, so that it can be handled by the runtime routine
+      --  Interfaces, so that it can be handled by the runtime routine.
 
       else
          QR_Typ := RTE (RE_Integer_64);
@@ -784,15 +784,15 @@ package body Exp_Fixd is
      (N       : Node_Id;
       X, Y, Z : Node_Id) return Node_Id
    is
-      X_Size : constant Int := UI_To_Int (Esize (Etype (X)));
-      Y_Size : constant Int := UI_To_Int (Esize (Etype (Y)));
+      X_Size : constant Nat := UI_To_Int (Esize (Etype (X)));
+      Y_Size : constant Nat := UI_To_Int (Esize (Etype (Y)));
       Expr   : Node_Id;
 
    begin
       --  If numerator fits in 64 bits, we can build the operations directly
       --  without causing any intermediate overflow, so that's what we do.
 
-      if Int'Max (X_Size, Y_Size) <= 32 then
+      if Nat'Max (X_Size, Y_Size) <= 32 then
          return
            Build_Divide (N, Build_Multiply (N, X, Y), Z);
 
@@ -850,11 +850,11 @@ package body Exp_Fixd is
    is
       Loc    : constant Source_Ptr := Sloc (N);
 
-      X_Size : constant Int := UI_To_Int (Esize (Etype (X)));
-      Y_Size : constant Int := UI_To_Int (Esize (Etype (Y)));
-      Z_Size : constant Int := UI_To_Int (Esize (Etype (Z)));
+      X_Size : constant Nat := UI_To_Int (Esize (Etype (X)));
+      Y_Size : constant Nat := UI_To_Int (Esize (Etype (Y)));
+      Z_Size : constant Nat := UI_To_Int (Esize (Etype (Z)));
 
-      QR_Siz : Int;
+      QR_Siz : Nat;
       QR_Typ : Entity_Id;
 
       Nnn : Entity_Id;
@@ -866,7 +866,7 @@ package body Exp_Fixd is
    begin
       --  Find type that will allow computation of numerator
 
-      QR_Siz := Int'Max (X_Size, 2 * Int'Max (Y_Size, Z_Size));
+      QR_Siz := Nat'Max (X_Size, 2 * Nat'Max (Y_Size, Z_Size));
 
       if QR_Siz <= 16 then
          QR_Typ := Standard_Integer_16;
@@ -876,7 +876,7 @@ package body Exp_Fixd is
          QR_Typ := Standard_Integer_64;
 
       --  For more than 64, bits, we use the 64-bit integer defined in
-      --  Interfaces, so that it can be handled by the runtime routine
+      --  Interfaces, so that it can be handled by the runtime routine.
 
       else
          QR_Typ := RTE (RE_Integer_64);
index 9972aa9b8c404dee992597e01be307b7705a7d17..520ce6a244f51459593d1e726471722c08986abf 100644 (file)
@@ -610,13 +610,13 @@ package body Namet is
       --  N'th entry is the number of chains of length N, except last entry,
       --  which is the number of chains of length F'Last or more.
 
-      Max_Chain_Length : Int := 0;
+      Max_Chain_Length : Nat := 0;
       --  Maximum length of all chains
 
-      Probes : Int := 0;
+      Probes : Nat := 0;
       --  Used to compute average number of probes
 
-      Nsyms : Int := 0;
+      Nsyms : Nat := 0;
       --  Number of symbols in table
 
       Verbosity : constant Int range 1 .. 3 := 1;
@@ -647,7 +647,7 @@ package body Namet is
 
          else
             declare
-               C : Int;
+               C : Nat;
                N : Name_Id;
                S : Int;
 
index dbb438c3c136253dff8cd8be2be947146eb2c63a..7567d179c29c8b9ebe1c52087f158effb617005d 100644 (file)
@@ -157,7 +157,7 @@ package body Osint is
    EOL : constant Character := ASCII.LF;
    --  End of line character
 
-   Number_File_Names : Int := 0;
+   Number_File_Names : Nat := 0;
    --  Number of file names found on command line and placed in File_Names
 
    Look_In_Primary_Directory_For_Current_Main : Boolean := False;
@@ -2094,7 +2094,7 @@ package body Osint is
    -- Number_Of_Files --
    ---------------------
 
-   function Number_Of_Files return Int is
+   function Number_Of_Files return Nat is
    begin
       return Number_File_Names;
    end Number_Of_Files;
index 2e6f0904de35a1141d5990195bcae560cefb3e13..a96e83ea8e78fecaf2ffe938fa5899f7a72cdb6e 100644 (file)
@@ -120,7 +120,7 @@ package Osint is
    --  lower case form, so that two environment variable names compare equal if
    --  they refer to the same environment variable.
 
-   function Number_Of_Files return Int;
+   function Number_Of_Files return Nat;
    --  Gives the total number of filenames found on the command line
 
    No_Index : constant := -1;
index 68e6275e058e745390754b93e31234bdbf0b518c..06f74cdec3a90751e7745bd2a0d08d645aa494ca 100644 (file)
@@ -230,7 +230,7 @@ package body Ch2 is
       Import_Check_Required : Boolean := False;
       --  Set True if check of pragma IMPORT is required
 
-      Arg_Count : Int := 0;
+      Arg_Count : Nat := 0;
       --  Number of argument associations processed
 
       Identifier_Seen : Boolean := False;
index 1356497abea6b0bc2c1cc4f5e3a9dd030445abf4..17f06f3e4833a9e0430ea7c65c05caff7a2b0793 100644 (file)
@@ -10087,15 +10087,18 @@ package body Sem_Attr is
                      Get_Next_Interp (Index, It);
                   end loop;
 
-               --  If Prefix is a subprogram name, this reference freezes:
+                  --  If Prefix is a subprogram name, this reference freezes,
+                  --  but not if within spec expression mode
+
+                  if not In_Spec_Expression then
+                     Freeze_Before (N, Entity (P));
+                  end if;
 
                --    If it is a type, there is nothing to resolve.
                --    If it is an object, complete its resolution.
 
                elsif Is_Overloadable (Entity (P)) then
 
-                  --  Avoid insertion of freeze actions in spec expression mode
-
                   if not In_Spec_Expression then
                      Freeze_Before (N, Entity (P));
                   end if;
index 53ff828d20c9f318a5b5688fbce521644dd93b26..aee7fd3d2a490fb4dffd599ad7d74b3275ca9451 100644 (file)
@@ -2008,7 +2008,7 @@ package body Sem_Ch10 is
       Par_Unit : constant Entity_Id := Current_Scope;
 
       Lib_Spec        : Node_Id := Library_Unit (Lib_Unit);
-      Num_Scopes      : Int := 0;
+      Num_Scopes      : Nat := 0;
       Use_Clauses     : array (1 .. Scope_Stack.Last) of Node_Id;
       Enclosing_Child : Entity_Id := Empty;
       Svg             : constant Suppress_Record := Scope_Suppress;
index 125b877e6d975fa930ae40a095de458deb73b150..40433fd2e7a260043ab97c7e68f7f02224872934 100644 (file)
@@ -1088,8 +1088,8 @@ package body Sem_Ch12 is
       --  name of the formal.
 
       Is_Named_Assoc : Boolean;
-      Num_Matched    : Int := 0;
-      Num_Actuals    : Int := 0;
+      Num_Matched    : Nat := 0;
+      Num_Actuals    : Nat := 0;
 
       Others_Present : Boolean := False;
       Others_Choice  : Node_Id := Empty;
@@ -4406,7 +4406,7 @@ package body Sem_Ch12 is
       --  to provide a clean environment for analysis of the inlined body will
       --  eliminate any previously set SPARK_Mode.
 
-      Scope_Stack_Depth : constant Int :=
+      Scope_Stack_Depth : constant Pos :=
                             Scope_Stack.Last - Scope_Stack.First + 1;
 
       Use_Clauses  : array (1 .. Scope_Stack_Depth) of Node_Id;
@@ -4414,9 +4414,9 @@ package body Sem_Ch12 is
       Inner_Scopes : array (1 .. Scope_Stack_Depth) of Entity_Id;
       Curr_Scope   : Entity_Id := Empty;
       List         : Elist_Id;
-      Num_Inner    : Int := 0;
-      Num_Scopes   : Int := 0;
-      N_Instances  : Int := 0;
+      Num_Inner    : Nat := 0;
+      Num_Scopes   : Nat := 0;
+      N_Instances  : Nat := 0;
       Removed      : Boolean := False;
       S            : Entity_Id;
       Vis          : Boolean;
@@ -11606,15 +11606,15 @@ package body Sem_Ch12 is
          I2 : Node_Id;
          T2 : Entity_Id;
 
-         function Formal_Dimensions return Int;
+         function Formal_Dimensions return Nat;
          --  Count number of dimensions in array type formal
 
          -----------------------
          -- Formal_Dimensions --
          -----------------------
 
-         function Formal_Dimensions return Int is
-            Num   : Int := 0;
+         function Formal_Dimensions return Nat is
+            Num   : Nat := 0;
             Index : Node_Id;
 
          begin
@@ -13348,7 +13348,7 @@ package body Sem_Ch12 is
    procedure Preanalyze_Actuals (N : Node_Id; Inst : Entity_Id := Empty) is
       Assoc : Node_Id;
       Act   : Node_Id;
-      Errs  : constant Int := Serious_Errors_Detected;
+      Errs  : constant Nat := Serious_Errors_Detected;
 
       Cur : Entity_Id := Empty;
       --  Current homograph of the instance name
index 4d8ef3f971679b88acd5558f073500dde2cb72c3..8aee9a05b92c5fbac51f2e9fc5b174ecded3789a 100644 (file)
@@ -2132,7 +2132,7 @@ package body Sem_Disp is
       --  table, but it would be awfully heavy, and there is no way that we
       --  could reasonably exceed this value.
 
-      N : Int := 0;
+      N : Nat := 0;
       --  Number of entries in Result
 
       Parent_Op : Entity_Id;
index b2a092cbe88426b400e9d38fd0d0120c9bd64841..bdc88c148d6a3f6867b74391c8eed4b3d6ad88e2 100644 (file)
@@ -1233,8 +1233,8 @@ package body Sem_Elab is
       --  then the body of the generic will be in the earlier instance.
 
       declare
-         D1 : constant Int := Instantiation_Depth (Sloc (Ent));
-         D2 : constant Int := Instantiation_Depth (Sloc (N));
+         D1 : constant Nat := Instantiation_Depth (Sloc (Ent));
+         D2 : constant Nat := Instantiation_Depth (Sloc (N));
 
       begin
          if D1 > D2 then
index c8a07a97f0e15627efb7eac29c5cb89a5fcc1194..b784f6d75342661bf065f91769a00141e1c6e3df 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 1997-2013, Free Software Foundation, Inc.         --
+--          Copyright (C) 1997-2015, Free Software Foundation, Inc.         --
 --                                                                          --
 -- 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- --
@@ -574,7 +574,7 @@ package body Sem_Elim is
                      --------------------
 
                      function Line_Num_Match return Boolean is
-                        N : Int := 0;
+                        N : Nat := 0;
 
                      begin
                         if Idx = 0 then
index 5aabd25c3fab7573a0254da09146bb3407e3a776..29d2e42592d6d391ca9a332f4b0677e740fc9440 100644 (file)
@@ -5638,7 +5638,7 @@ package body Sem_Util is
       then
          declare
             Root1, Root2   : Node_Id;
-            Depth1, Depth2 : Int := 0;
+            Depth1, Depth2 : Nat := 0;
 
          begin
             Root1 := Prefix (A1);
index a421f2502852bf3fd8290bcae994d6ce88348aea..58fd3fd3e05263e238dd00ae359442faaa55bd24 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 1992-2014, Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-2015, Free Software Foundation, Inc.         --
 --                                                                          --
 -- 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- --
@@ -717,7 +717,7 @@ package body Styleg is
    --  In check max line length mode (-gnatym), the line length must
    --  not exceed the permitted maximum value.
 
-   procedure Check_Line_Max_Length (Len : Int) is
+   procedure Check_Line_Max_Length (Len : Nat) is
    begin
       if Style_Check_Max_Line_Length then
          if Len > Style_Max_Line_Length then
@@ -741,10 +741,10 @@ package body Styleg is
    --  In check DOS line terminators node (-gnatyd), the line terminator
    --  must be a single LF, without a following CR.
 
-   procedure Check_Line_Terminator (Len : Int) is
+   procedure Check_Line_Terminator (Len : Nat) is
       S : Source_Ptr;
 
-      L : Int := Len;
+      L : Nat := Len;
       --  Length of line (adjusted down for blanks at end of line)
 
    begin
index 344d4fb7d91b5bc1c7d02b52128f391f25d484fe..141c11435783d74f4ca243d9e18b1bcd34eebe26 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---          Copyright (C) 1992-2014, Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-2015, Free Software Foundation, Inc.         --
 --                                                                          --
 -- 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- --
@@ -109,12 +109,12 @@ package Styleg is
    procedure Check_Left_Paren;
    --  Called after scanning out a left parenthesis to check spacing
 
-   procedure Check_Line_Max_Length (Len : Int);
+   procedure Check_Line_Max_Length (Len : Nat);
    --  Called with Scan_Ptr pointing to the first line terminator character
    --  terminating the current line. Used to check for appropriate line length.
    --  The parameter Len is the length of the current line.
 
-   procedure Check_Line_Terminator (Len : Int);
+   procedure Check_Line_Terminator (Len : Nat);
    --  Called with Scan_Ptr pointing to the first line terminator terminating
    --  the current line, used to check for appropriate line terminator usage.
    --  The parameter Len is the length of the current line.
index bb24f278b982f5ccb6d845cf0074f515f745a9b5..7dc3e604961a4b4c5c0dc61a08892746cd62af86 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---          Copyright (C) 1992-2013, Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-2015, Free Software Foundation, Inc.         --
 --                                                                          --
 -- 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- --
@@ -275,12 +275,12 @@ package Stylesw is
    --  not allowed to enclose entire expressions in tests in parentheses
    --  (C style), e.g. if (x = y) then ... is not allowed.
 
-   Style_Max_Line_Length : Int := 0;
+   Style_Max_Line_Length : Nat := 0;
    --  Value used to check maximum line length. Gets reset as a result of
    --  use of -gnatym or -gnatyMnnn switches. This value is only read if
    --  Style_Check_Max_Line_Length is True.
 
-   Style_Max_Nesting_Level : Int := 0;
+   Style_Max_Nesting_Level : Nat := 0;
    --  Value used to check maximum nesting level. Gets reset as a result
    --  of use of the -gnatyLnnn switch. This value is only read if
    --  Style_Check_Max_Nesting_Level is True.