]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[multiple changes]
authorArnaud Charlet <charlet@gcc.gnu.org>
Thu, 9 Apr 2009 12:28:57 +0000 (14:28 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Thu, 9 Apr 2009 12:28:57 +0000 (14:28 +0200)
2009-04-09  Vincent Celier  <celier@adacore.com>

* errout.adb: Remove dependency on package Style

* style.ads, styleg.adb, styleg.ads (RM_Column_Check): Remove function,
moved to Stylesw.

* stylesw.ads, stylesw.adb (RM_Column_Check): New function, moved from
Styleg.

* errutil.adb, par.adb: Import Stylesw

2009-04-09  Arnaud Charlet  <charlet@adacore.com>

* opt.ads: Fix typos.

2009-04-09  Robert Dewar  <dewar@adacore.com>

* einfo.adb: Minor reformatting

From-SVN: r145832

15 files changed:
gcc/ada/ChangeLog
gcc/ada/einfo.adb
gcc/ada/errout.adb
gcc/ada/errutil.adb
gcc/ada/opt.ads
gcc/ada/par-ch5.adb
gcc/ada/par-ch7.adb
gcc/ada/par-endh.adb
gcc/ada/par-util.adb
gcc/ada/par.adb
gcc/ada/style.ads
gcc/ada/styleg.adb
gcc/ada/styleg.ads
gcc/ada/stylesw.adb
gcc/ada/stylesw.ads

index 61cdc11d8f7cb21f937e5ea77174a439deae732c..9c0f428988e84989111b976d580257f56d7bcc1d 100644 (file)
@@ -1,3 +1,23 @@
+2009-04-09  Vincent Celier  <celier@adacore.com>
+
+       * errout.adb: Remove dependency on package Style
+
+       * style.ads, styleg.adb, styleg.ads (RM_Column_Check): Remove function,
+       moved to Stylesw.
+       
+       * stylesw.ads, stylesw.adb (RM_Column_Check): New function, moved from
+       Styleg.
+
+       * errutil.adb, par.adb: Import Stylesw
+
+2009-04-09  Arnaud Charlet  <charlet@adacore.com>
+
+       * opt.ads: Fix typos.
+
+2009-04-09  Robert Dewar  <dewar@adacore.com>
+
+       * einfo.adb: Minor reformatting
+
 2009-04-09  Robert Dewar  <dewar@adacore.com>
 
        * gcc-interface/Make-lang.in, style.ads, style.adb: Reorganize style
index d4dad33e660863a080cb47fc28f28c926786702e..468f255de5f57a83ad01f71ee05506b9dd05ed05 100644 (file)
@@ -52,11 +52,11 @@ package body Einfo is
    ----------------------------------------------
 
    --  Four of these fields are defined in Sinfo, since they in are the
-   --  base part of the node. The access routines for these fields and
-   --  the corresponding set procedures are defined in Sinfo. These fields
-   --  are present in all entities. Note that Homonym is also in the base
-   --  part of the node, but has access routines that are more properly
-   --  part of Einfo, which is why they are defined here.
+   --  base part of the node. The access routines for these fields and the
+   --  corresponding set procedures are defined in Sinfo. These fields are
+   --  present in all entities. Note that Homonym is also in the base part of
+   --  the node, but has access routines that are more properly part of Einfo,
+   --  which is why they are defined here.
 
    --    Chars                           Name1
    --    Next_Entity                     Node2
index 042488041b60677cd93f1fcc36933c43876a95a2..68d6409ed43e41ce04f2596e9b185b00344ec34b 100644 (file)
@@ -47,7 +47,7 @@ with Sinput;   use Sinput;
 with Sinfo;    use Sinfo;
 with Snames;   use Snames;
 with Stand;    use Stand;
-with Style;
+with Stylesw;  use Stylesw;
 with Uname;    use Uname;
 
 package body Errout is
@@ -2138,7 +2138,7 @@ package body Errout is
 
    procedure Set_Msg_Insertion_Column is
    begin
-      if Style.RM_Column_Check then
+      if RM_Column_Check then
          Set_Msg_Str (" in column ");
          Set_Msg_Int (Int (Error_Msg_Col) + 1);
       end if;
index 480a35537a1035466694db705f5047a9b97d9b38..28c0140aa6f7207c225e4d59843829cc9b2236d0 100644 (file)
@@ -30,6 +30,7 @@ with Opt;      use Opt;
 with Output;   use Output;
 with Scans;    use Scans;
 with Sinput;   use Sinput;
+with Stylesw;  use Stylesw;
 
 package body Errutil is
 
@@ -658,7 +659,7 @@ package body Errutil is
 
    procedure Set_Msg_Insertion_Column is
    begin
-      if Style.RM_Column_Check then
+      if RM_Column_Check then
          Set_Msg_Str (" in column ");
          Set_Msg_Int (Int (Error_Msg_Col) + 1);
       end if;
index 3093d374f8f7e57016ef46e5484f0d6c71e71fcb..6cc14d07d916c62efec9f43db5075cd7e2b18100 100644 (file)
@@ -1430,8 +1430,8 @@ package Opt is
 
    Assume_No_Invalid_Values_Config : Boolean;
    --  GNAT
-   --  This is the value of the configuration switch for assuming no invalid
-   --  values enabled mode mode, as possibly set by the command line switch
+   --  This is the value of the configuration switch for assuming "no invalid
+   --  values enabled" mode, as possibly set by the command line switch
    --  -gnatB, and possibly modified by the use of the configuration pragma
    --  Assume_No_Invalid_Values.
 
index 57c54449ac369de9ac88fc6eaf7c6adfb7b0cc37..e0a7e0af6f8aab37e938f8a0333689ddde0fcea8 100644 (file)
@@ -1104,7 +1104,7 @@ package body Ch5 is
 
       procedure Check_If_Column is
       begin
-         if Style.RM_Column_Check and then Token_Is_At_Start_Of_Line
+         if RM_Column_Check and then Token_Is_At_Start_Of_Line
            and then Start_Column /= Scope.Table (Scope.Last).Ecol
          then
             Error_Msg_Col := Scope.Table (Scope.Last).Ecol;
@@ -2076,7 +2076,7 @@ package body Ch5 is
 
             Error_Msg_Col := Scope.Table (Scope.Last).Ecol;
 
-            if Style.RM_Column_Check
+            if RM_Column_Check
               and then Token_Is_At_Start_Of_Line
               and then Start_Column /= Error_Msg_Col
             then
index 2fdca9ae775af4a85c8cd84a2582511c17de417b..3b24c8792b8e5425a4e5be7d2459c368d5984a3e 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 1992-2007, Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-2008, 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- --
@@ -200,7 +200,7 @@ package body Ch7 is
                if Token = Tok_Private then
                   Error_Msg_Col := Scope.Table (Scope.Last).Ecol;
 
-                  if Style.RM_Column_Check then
+                  if RM_Column_Check then
                      if Token_Is_At_Start_Of_Line
                        and then Start_Column /= Error_Msg_Col
                      then
index 89310ad665c59b7fc722a26d9600265e273cd8b1..e04b154e5061799e132b3159ceebbbf236e598ce 100644 (file)
@@ -1029,7 +1029,7 @@ package body Endh is
             --  Right in this context means exactly right, or on the same
             --  line as the opener.
 
-            if Style.RM_Column_Check then
+            if RM_Column_Check then
                if End_Column /= Scope.Table (Scope.Last).Ecol
                  and then Current_Line_Start > Scope.Table (Scope.Last).Sloc
 
index bf9d7dfe5a3afb344b953e783a77dbe654580a1a..bf5680e25152561209ffba68d8856a5cad846946 100644 (file)
@@ -158,7 +158,7 @@ package body Util is
 
    procedure Check_Bad_Layout is
    begin
-      if Style.RM_Column_Check and then Token_Is_At_Start_Of_Line
+      if RM_Column_Check and then Token_Is_At_Start_Of_Line
         and then Start_Column <= Scope.Table (Scope.Last).Ecol
       then
          Error_Msg_BC ("(style) incorrect layout");
index 2f9edeb4256382c15f722e3ee17842a48a75a327..6a047db115d1f1764ee0f0b1f769046881b330a4 100644 (file)
@@ -42,6 +42,7 @@ with Sinput.L; use Sinput.L;
 with Sinfo;    use Sinfo;
 with Snames;   use Snames;
 with Style;
+with Stylesw;  use Stylesw;
 with Table;
 with Tbuild;   use Tbuild;
 
index 7afc818ad63c1b70751fd2debcb7f18343b771d4..4e84a48dd0b4e8309bff64a8fb14660099cb862f 100644 (file)
@@ -210,10 +210,4 @@ package Style is
    --  lower case letters. On entry Token_Ptr points to the keyword token.
    --  This is not used for keywords appearing as attribute designators,
    --  where instead Check_Attribute_Name (True) is called.
-
-   function RM_Column_Check return Boolean
-     renames Style_Inst.RM_Column_Check;
-   --  Determines whether style checking is active and the RM column check
-   --  mode is set requiring checking of RM format layout.
-
 end Style;
index 2bb6b35b9b05f13f0eaa989747df35c0552bc1cf..d3ce9e101d341b1687d45d7f95f1745c9d62338d 100644 (file)
@@ -1006,13 +1006,4 @@ package body Styleg is
       end if;
    end Require_Preceding_Space;
 
-   ---------------------
-   -- RM_Column_Check --
-   ---------------------
-
-   function RM_Column_Check return Boolean is
-   begin
-      return Style_Check and Style_Check_Layout;
-   end RM_Column_Check;
-
 end Styleg;
index ac883b6bbde5131487b42c2873b7d48275f93325..64fd51ecb490393e5993a2e87048364ab6dd4339 100644 (file)
@@ -29,9 +29,6 @@
 --  to these subprograms are only made if Opt.Style_Check is set True.
 --  Styleg does not depends on the GNAT tree (Atree, Sinfo, ...).
 
---  For the compiler, there is also a child package Styleg.C that depends
---  on the GNAT tree.
-
 with Types; use Types;
 
 generic
@@ -173,9 +170,4 @@ package Styleg is
    --  This is not used for keywords appearing as attribute designators,
    --  where instead Check_Attribute_Name (True) is called.
 
-   function RM_Column_Check return Boolean;
-   pragma Inline (RM_Column_Check);
-   --  Determines whether style checking is active and the RM column check
-   --  mode is set requiring checking of RM format layout.
-
 end Styleg;
index 764d9af80e9c7a251f7001911c31f53662d89357..8adb7416a76c159c41ab2ef195d76d80a4996c06 100644 (file)
@@ -61,6 +61,15 @@ package body Stylesw is
       Style_Check_Xtra_Parens           := False;
    end Reset_Style_Check_Options;
 
+   ---------------------
+   -- RM_Column_Check --
+   ---------------------
+
+   function RM_Column_Check return Boolean is
+   begin
+      return Style_Check and Style_Check_Layout;
+   end RM_Column_Check;
+
    ------------------------------
    -- Save_Style_Check_Options --
    ------------------------------
index 4ee707410974e7dc71c4a359761bc4212293e2bf..5822ce9f01868bc9f8f8c7f75574232f3666bc13 100644 (file)
@@ -272,6 +272,10 @@ package Stylesw is
    -- Subprograms --
    -----------------
 
+   function RM_Column_Check return Boolean;
+   --  Determines whether style checking is active and the RM column check
+   --  mode is set requiring checking of RM format layout.
+
    procedure Set_Default_Style_Check_Options;
    --  This procedure is called to set the default style checking options in
    --  response to a -gnaty switch with no suboptions or from -gnatyy.