sem_ch3.adb, [...]: Remove the word kludge from ada sources.
authorRobert Dewar <dewar@adacore.com>
Thu, 17 Jul 2014 06:37:45 +0000 (06:37 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Thu, 17 Jul 2014 06:37:45 +0000 (08:37 +0200)
2014-07-17  Robert Dewar  <dewar@adacore.com>

* sem_ch3.adb, a-ztexio.ads, exp_imgv.adb, casing.adb, casing.ads,
einfo.ads, checks.adb, sem_ch12.adb, a-textio.ads, freeze.adb,
repinfo.adb, exp_ch6.adb, sem_ch4.adb, a-witeio.ads, sem_ch8.adb,
sem_warn.adb, exp_aggr.adb, exp_dist.adb, par-tchk.adb, s-fatgen.adb,
treepr.adb, lib-xref.adb: Remove the word kludge from ada sources.

From-SVN: r212726

23 files changed:
gcc/ada/ChangeLog
gcc/ada/a-textio.ads
gcc/ada/a-witeio.ads
gcc/ada/a-ztexio.ads
gcc/ada/casing.adb
gcc/ada/casing.ads
gcc/ada/checks.adb
gcc/ada/einfo.ads
gcc/ada/exp_aggr.adb
gcc/ada/exp_ch6.adb
gcc/ada/exp_dist.adb
gcc/ada/exp_imgv.adb
gcc/ada/freeze.adb
gcc/ada/lib-xref.adb
gcc/ada/par-tchk.adb
gcc/ada/repinfo.adb
gcc/ada/s-fatgen.adb
gcc/ada/sem_ch12.adb
gcc/ada/sem_ch3.adb
gcc/ada/sem_ch4.adb
gcc/ada/sem_ch8.adb
gcc/ada/sem_warn.adb
gcc/ada/treepr.adb

index 003bde3a19cd330d792b0d19d36db275b2dd164a..a96b0ce51a7cb6e80a1c8d63d4e94c7ddd27f91c 100644 (file)
@@ -1,3 +1,11 @@
+2014-07-17  Robert Dewar  <dewar@adacore.com>
+
+       * sem_ch3.adb, a-ztexio.ads, exp_imgv.adb, casing.adb, casing.ads,
+       einfo.ads, checks.adb, sem_ch12.adb, a-textio.ads, freeze.adb,
+       repinfo.adb, exp_ch6.adb, sem_ch4.adb, a-witeio.ads, sem_ch8.adb,
+       sem_warn.adb, exp_aggr.adb, exp_dist.adb, par-tchk.adb, s-fatgen.adb,
+       treepr.adb, lib-xref.adb: Remove the word kludge from ada sources.
+
 2014-07-17  Robert Dewar  <dewar@adacore.com>
 
        * debug.adb: Remove -gnatdQ.
index 5ae8334695d214c2ab1a9fbe8772b1be96f458ce..d04b2e9e72f0d761ce54a547788dd29bab9d37f1 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---          Copyright (C) 1992-2013, Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-2014, Free Software Foundation, Inc.         --
 --                                                                          --
 -- This specification is derived from the Ada Reference Manual for use with --
 -- GNAT. The copyright notice above, and the license provisions that follow --
@@ -389,7 +389,7 @@ private
       --  there is no convenient way of backing up more than one character,
       --  what we do is to leave ourselves positioned past the LM, but set
       --  this flag, so that we know that from an Ada point of view we are
-      --  in front of the LM, not after it. A bit of a kludge, but it works.
+      --  in front of the LM, not after it. A little odd, but it works.
 
       Before_LM_PM : Boolean := False;
       --  This flag similarly handles the case of being physically positioned
index 9151bf9b520f81c6df271fe5ea2804ac9d2a2990..70375f2215f749e85bf65589785fa34375e3ecea 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---          Copyright (C) 1992-2013, Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-2014, Free Software Foundation, Inc.         --
 --                                                                          --
 -- This specification is derived from the Ada Reference Manual for use with --
 -- GNAT. The copyright notice above, and the license provisions that follow --
@@ -389,7 +389,7 @@ private
       --  there is no convenient way of backing up more than one character,
       --  what we do is to leave ourselves positioned past the LM, but set
       --  this flag, so that we know that from an Ada point of view we are
-      --  in front of the LM, not after it. A bit of a kludge, but it works.
+      --  in front of the LM, not after it. A bit odd, but it works.
 
       Before_LM_PM : Boolean := False;
       --  This flag similarly handles the case of being physically positioned
index b081906b4152de942ac5ac14ad4c5c6d525b4cf4..ef90c920ed1c817fadd41453383c2c5597680f2c 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---          Copyright (C) 1992-2013, Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-2014, Free Software Foundation, Inc.         --
 --                                                                          --
 -- This specification is derived from the Ada Reference Manual for use with --
 -- GNAT. The copyright notice above, and the license provisions that follow --
@@ -389,7 +389,7 @@ private
       --  there is no convenient way of backing up more than one character,
       --  what we do is to leave ourselves positioned past the LM, but set
       --  this flag, so that we know that from an Ada point of view we are
-      --  in front of the LM, not after it. A bit of a kludge, but it works.
+      --  in front of the LM, not after it. A bit odd, but it works.
 
       Before_LM_PM : Boolean := False;
       --  This flag similarly handles the case of being physically positioned
index dce1e0bb17493f56aeb54dd7f19c12298e6a7319..5ed97be1263e5b54385fb02471a8358a7ec93800 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 1992-2013, Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-2014, 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- --
@@ -59,7 +59,7 @@ package body Casing is
       --  True at start of string, and after an underline character
 
    begin
-      --  A special kludge, consider SPARK_Mode to be mixed case
+      --  A special exception, consider SPARK_Mode to be mixed case
 
       if Ident = "SPARK_Mode" then
          return Mixed_Case;
index 8d169fbd3f14f143e9bb3e72278f11d86a4940e8..dec27eed44e54533043ea49c04703add04652560 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---          Copyright (C) 1992-2010, Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-2014, 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- --
@@ -84,6 +84,8 @@ package Casing is
    --  equivalent to Set_Casing (All_Upper_Case).
 
    function Determine_Casing (Ident : Text_Buffer) return Casing_Type;
-   --  Determines the casing of the identifier/keyword string Ident
+   --  Determines the casing of the identifier/keyword string Ident. A special
+   --  test is made for SPARK_Mode which is considered to be mixed case, since
+   --  this gives a better general behavior.
 
 end Casing;
index 81bbc67a51220c950a40a2a014569dbd1df1e608..587092ba776dfcd3b03b2e8bd2942329c500e0cb 100644 (file)
@@ -6515,10 +6515,10 @@ package body Checks is
 
          PV := Duplicate_Subexpr_No_Checks (Exp, Name_Req => False);
 
-         --  A rather specialized kludge. If PV is an analyzed expression
-         --  which is an indexed component of a packed array that has not
-         --  been properly expanded, turn off its Analyzed flag to make sure
-         --  it gets properly reexpanded.
+         --  A rather specialized test. If PV is an analyzed expression which
+         --  is an indexed component of a packed array that has not been
+         --  properly expanded, turn off its Analyzed flag to make sure it
+         --  gets properly reexpanded.
 
          --  The reason this arises is that Duplicate_Subexpr_No_Checks did
          --  an analyze with the old parent pointer. This may point e.g. to
index a23463457f204aa7f6581ddd2f6439a422e94f59..40243732869db12b3c4fde19e20807263afcf7e2 100644 (file)
@@ -6936,9 +6936,9 @@ package Einfo is
    --  It would be cleaner to use No_Uint in all these cases, but historically
    --  we chose to use Uint_0 at first, and the change over will take time ???
    --  This is particularly true for the RM_Size field, where a value of zero
-   --  is legitimate. We deal with this by a nasty kludge that knows that the
-   --  value is always known static for discrete types (and no other types can
-   --  have an RM_Size value of zero).
+   --  is legitimate. We deal with this by a considering that the value is
+   --  always known static for discrete types (and no other types can have
+   --  an RM_Size value of zero).
 
    --  In two cases, Known_Static_Esize and Known_Static_RM_Size, there is one
    --  more consideration, which is that we always return False for generic
@@ -7439,7 +7439,7 @@ package Einfo is
    --  It would be cleaner to use No_Uint in all these cases, but historically
    --  we chose to use Uint_0 at first, and the change over will take time ???
    --  This is particularly true for the RM_Size field, where a value of zero
-   --  is legitimate and causes some kludges around the code.
+   --  is legitimate and causes some special tests around the code.
 
    --  Contrary to the corresponding Set procedures above, these routines
    --  do NOT check the entity kind of their argument, instead they set the
index 44edd884a1cae410590bf3c71ac8c01f88f894a9..1bc6fb6e7245e67bcd7a0d4cbf150fdf1b922b92 100644 (file)
@@ -1952,13 +1952,13 @@ package body Exp_Aggr is
                         Assoc := Expression (Assoc);
                      end if;
 
-                     --  If the located association directly denotes a
-                     --  discriminant, then use the value of a saved
-                     --  association of the aggregate. This is a kludge to
-                     --  handle certain cases involving multiple discriminants
-                     --  mapped to a single discriminant of a descendant. It's
-                     --  not clear how to locate the appropriate discriminant
-                     --  value for such cases. ???
+                     --  If the located association directly denotes
+                     --  discriminant, then use the value of a saved
+                     --  association of the aggregate. This is an approach
+                     --  used to handle certain cases involving multiple
+                     --  discriminants mapped to a single discriminant of
+                     --  a descendant. It's not clear how to locate the
+                     --  appropriate discriminant value for such cases. ???
 
                      if Is_Entity_Name (Assoc)
                        and then Ekind (Entity (Assoc)) = E_Discriminant
index 4a928965bf627e2065df3f4849a61328c4486873..374e26f7cbbc124ab330d1efe7b76a2250f38d5e 100644 (file)
@@ -2614,16 +2614,16 @@ package body Exp_Ch6 is
 
       --  Detect the following code in System.Finalization_Masters only on
       --  .NET/JVM targets:
-      --
+
       --    procedure Finalize (Master : in out Finalization_Master) is
       --    begin
       --       . . .
       --       begin
       --          Finalize (Curr_Ptr.all);
-      --
+
       --  Since .NET/JVM compilers lack address arithmetic and Deep_Finalize
-      --  cannot be named in library or user code, the compiler has to install
-      --  a kludge and transform the call to Finalize into Deep_Finalize.
+      --  cannot be named in library or user code, the compiler has to deal
+      --  with this by transforming the call to Finalize into Deep_Finalize.
 
       if VM_Target /= No_VM
         and then Chars (Subp) = Name_Finalize
index da908fc2862d00293529cb3574e99334ee37b2c8..9e8b32d98ca0caedcaa6042e8546176cbd42cf97 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 1992-2013, Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-2014, 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- --
@@ -2036,7 +2036,7 @@ package body Exp_Dist is
          Append_To (Decls, RPC_Receiver_Decl);
 
       else
-         --  Kludge, requires comment???
+         --  Comments required here???
 
          RPC_Receiver_Decl := Last (Decls);
       end if;
index 1c953d6a5745519ff345ca9527e2dfec96442994..f249afe0f8c8f83c38fb8f3850eb8f56384d8591 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 2001-2013, Free Software Foundation, Inc.         --
+--          Copyright (C) 2001-2014, 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- --
@@ -742,9 +742,9 @@ package body Exp_Imgv is
       --  generating spurious errors caused by the use of Integer_Address'Value
       --  in our implementation of Ada.Tags.Internal_Tag
 
-      --  Seems like a bit of a kludge, there should be a better way ???
+      --  Seems like a bit of a odd approach, there should be a better way ???
 
-      --  There is a better way, you should also test RTE_Available ???
+      --  There is a better way, test RTE_Available ???
 
       if No_Run_Time_Mode
         and then Rtyp = RTE (RE_Integer_Address)
index 45175d7aa81b44efa19aad328d6cf0f5374ef714..5a18f3e7925d666f7247f56b9e1f2c4bb736905f 100644 (file)
@@ -2939,12 +2939,12 @@ package body Freeze is
                   S              : Entity_Id;
 
                begin
-                  --  We have a pretty bad kludge here. Suppose Rec is subtype
-                  --  being defined in a subprogram that's created as part of
-                  --  the freezing of Rec'Base. In that case, we know that
-                  --  Comp'Base must have already been frozen by the time we
-                  --  get to elaborate this because Gigi doesn't elaborate any
-                  --  bodies until it has elaborated all of the declarative
+                  --  We have a difficult case to handle here. Suppose Rec is
+                  --  subtype being defined in a subprogram that's created as
+                  --  part of the freezing of Rec'Base. In that case, we know
+                  --  that Comp'Base must have already been frozen by the time
+                  --  we get to elaborate this because Gigi doesn't elaborate
+                  --  any bodies until it has elaborated all of the declarative
                   --  part. But Is_Frozen will not be set at this point because
                   --  we are processing code in lexical order.
 
@@ -7165,7 +7165,7 @@ package body Freeze is
       --  Since we don't want T to have a Freeze_Node, we don't want its
       --  Full_View or Corresponding_Record_Type to have one either.
 
-      --  ??? Fundamentally, this whole handling is a kludge. What we really
+      --  ??? Fundamentally, this whole handling is unpleasant. What we really
       --  want is to be sure that for an Itype that's part of record R and is a
       --  subtype of type T, that it's frozen after the later of the freeze
       --  points of R and T. We have no way of doing that directly, so what we
index 283c0294a84579fd852a767d2aec1f69a093bcca..95c87ef7194185b01e131a9c5780bca34be3c99c 100644 (file)
@@ -477,8 +477,8 @@ package body Lib.Xref is
             elsif (K = N_Selected_Component or else K = N_Indexed_Component)
               and then Prefix (P) = N
             then
-               --  Check for access type. First a kludge, In some cases this is
-               --  called too early (see comments in Sem_Ch8.Find_Direct_Name),
+               --  Check for access type. First a special test, In some cases
+               --  this is called too early (see comments in Find_Direct_Name),
                --  at a point where the tree is not fully typed yet. In that
                --  case we may lack an Etype for N, and we can't check the
                --  Etype. For now, we always return False in such a case,
index c2d37bda22a23888dff75795525c4d2ced0db4a9..f9f2ec50ecc1755aa986131a351b2c96fd8d9c30 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 1992-2013, Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-2014, 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- --
@@ -452,12 +452,11 @@ package body Tchk is
          Scan;
          return;
 
-      --  An interesting little kludge. If the previous token is a semicolon,
+      --  An interesting little case. If the previous token is a semicolon,
       --  then there is no way that we can legitimately need another semicolon.
-      --  This could only arise in an error situation where an error has
-      --  already been signalled. By simply ignoring the request for a
-      --  semicolon in this case, we avoid some spurious missing semicolon
-      --  messages.
+      --  This could only arise in an situation where an error has already been
+      --  signalled. By simply ignoring the request for a semicolon in this
+      --  case, we avoid some spurious missing semicolon messages.
 
       elsif Prev_Token = Tok_Semicolon then
          return;
@@ -703,7 +702,7 @@ package body Tchk is
          T_Semicolon;
          return;
 
-      --  An interesting little kludge here. If the previous token is a
+      --  An interesting little test here. If the previous token is a
       --  semicolon, then there is no way that we can legitimately need
       --  another semicolon. This could only arise in an error situation
       --  where an error has already been signalled. By simply ignoring
index 19b63397d0dff561398554f391388dc32e68e7ef..5d1c1db61721396b826d7fd89cf49880debce0da 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 1999-2013, Free Software Foundation, Inc.         --
+--          Copyright (C) 1999-2014, 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- --
@@ -946,11 +946,11 @@ package body Repinfo is
             UI_Write (Fbit);
             Write_Str (" .. ");
 
-            --  Allowing Uint_0 here is a kludge, really this should be a
-            --  fine Esize value but currently it means unknown, except that
-            --  we know after gigi has back annotated that a size of zero is
-            --  real, since otherwise gigi back annotates using No_Uint as
-            --  the value to indicate unknown).
+            --  Allowing Uint_0 here is an annoying special case. Really this
+            --  should be a fine Esize value but currently it means unknown,
+            --  except that we know after gigi has back annotated that a size
+            --  of zero is real, since otherwise gigi back annotates using
+            --  No_Uint as the value to indicate unknown).
 
             if (Esize (Comp) = Uint_0 or else Known_Static_Esize (Comp))
               and then Known_Static_Normalized_First_Bit (Comp)
@@ -963,10 +963,11 @@ package body Repinfo is
 
                UI_Write (Lbit);
 
-            --  The test for Esize (Comp) not being Uint_0 here is a kludge.
-            --  Officially a value of zero for Esize means unknown, but here
-            --  we use the fact that we know that gigi annotates Esize with
-            --  No_Uint, not Uint_0. Really everyone should use No_Uint???
+            --  The test for Esize (Comp) not Uint_0 here is an annoying
+            --  special case. Officially a value of zero for Esize means
+            --  unknown, but here we use the fact that we know that gigi
+            --  annotates Esize with No_Uint, not Uint_0. Really everyone
+            --  should use No_Uint???
 
             elsif List_Representation_Info < 3
               or else (Esize (Comp) /= Uint_0 and then Unknown_Esize (Comp))
index f68dc76204f680f41ce00217cae0f76e3a676701..2644e675bd6f832ec1fa2a83fe2914490cd6d071 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 1992-2013, Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-2014, 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- --
@@ -832,9 +832,8 @@ package body System.Fat_Gen is
                               Boolean'Pos (Most_Significant_Word /= 2) +
                                 Boolean'Pos (Most_Significant_Word = 2);
       --  Factor that the extracted exponent needs to be divided by to be in
-      --  range 0 .. IEEE_Emax - IEEE_Emin + 2. Special kludge: Exponent_Factor
-      --  is 1 for x86/IA64 double extended as GCC adds unused bits to the
-      --  type.
+      --  range 0 .. IEEE_Emax - IEEE_Emin + 2. Special case: Exponent_Factor
+      --  is 1 for x86/IA64 double extended (GCC adds unused bits to the type).
 
       Exponent_Mask : constant Float_Word :=
                         Float_Word (IEEE_Emax - IEEE_Emin + 2) *
index 49adf852a52653a97fc6ced3baa9627e551a8efb..24dfa4e51d7e40c057da3de992e45628942a4f60 100644 (file)
@@ -3423,8 +3423,8 @@ package body Sem_Ch12 is
    begin
       Check_SPARK_Restriction ("generic is not allowed", N);
 
-      --  Very first thing: apply the special kludge for Text_IO processing
-      --  in case we are instantiating one of the children of [Wide_]Text_IO.
+      --  Very first thing: check for Text_IO sp[ecial unit in case we are
+      --  instantiating one of the children of [[Wide_]Wide_]Text_IO.
 
       Check_Text_IO_Special_Unit (Name (N));
 
@@ -4670,10 +4670,10 @@ package body Sem_Ch12 is
    begin
       Check_SPARK_Restriction ("generic is not allowed", N);
 
-      --  Very first thing: apply the special kludge for Text_IO processing
-      --  in case we are instantiating one of the children of [Wide_]Text_IO.
-      --  Of course such an instantiation is bogus (these are packages, not
-      --  subprograms), but we get a better error message if we do this.
+      --  Very first thing: check for special Text_IO unit in case we are
+      --  instantiating one of the children of [[Wide_]Wide_]Text_IO. Of course
+      --  such an instantiation is bogus (these are packages, not subprograms),
+      --  but we get a better error message if we do this.
 
       Check_Text_IO_Special_Unit (Gen_Id);
 
index f1cb23945d8d27b7a60c9fbcd19a1a181f1f23f5..48982bd4b5b7ea82c9506d4b699946cc349d4a20 100644 (file)
@@ -1185,10 +1185,11 @@ package body Sem_Ch3 is
       if Present (Formals) then
          Push_Scope (Desig_Type);
 
-         --  A bit of a kludge here. These kludges will be removed when Itypes
-         --  have proper parent pointers to their declarations???
+         --  Some special tests here. These special tests can be removed
+         --  if and when Itypes always have proper parent pointers to their
+         --  declarations???
 
-         --  Kludge 1) Link defining_identifier of formals. Required by
+         --  Special test 1) Link defining_identifier of formals. Required by
          --  First_Formal to provide its functionality.
 
          declare
@@ -1224,8 +1225,8 @@ package body Sem_Ch3 is
 
          Process_Formals (Formals, Parent (T_Def));
 
-         --  Kludge 2) End_Scope requires that the parent pointer be set to
-         --  something reasonable, but Itypes don't have parent pointers. So
+         --  Special test 2) End_Scope requires that the parent pointer be set
+         --  to something reasonable, but Itypes don't have parent pointers. So
          --  we set it and then unset it ???
 
          Set_Parent (Desig_Type, T_Name);
@@ -4369,8 +4370,8 @@ package body Sem_Ch3 is
       --  If ancestor has predicates then so does the subtype, and in addition
       --  we must delay the freeze to properly arrange predicate inheritance.
 
-      --  The Ancestor_Type test is a big kludge, there seem to be cases in
-      --  which T = ID, so the above tests and assignments do nothing???
+      --  The Ancestor_Type test is really unpleasant, there seem to be cases
+      --  in which T = ID, so the above tests and assignments do nothing???
 
       if Has_Predicates (T)
         or else (Present (Ancestor_Subtype (T))
@@ -11220,7 +11221,7 @@ package body Sem_Ch3 is
               or else Is_Incomplete_Or_Private_Type (Desig_Type))
         and then not Is_Constrained (Desig_Type)
       then
-         --  ??? The following code is a temporary kludge to ignore a
+         --  ??? The following code is a temporary bypass to ignore a
          --  discriminant constraint on access type if it is constraining
          --  the current record. Avoid creating the implicit subtype of the
          --  record we are currently compiling since right now, we cannot
@@ -18754,7 +18755,7 @@ package body Sem_Ch3 is
       if Known_To_Have_Preelab_Init (Priv_T) then
 
          --  Case where there is a pragma Preelaborable_Initialization. We
-         --  always allow this in predefined units, which is a bit of a kludge,
+         --  always allow this in predefined units, which is cheating a bit,
          --  but it means we don't have to struggle to meet the requirements in
          --  the RM for having Preelaborable Initialization. Otherwise we
          --  require that the type meets the RM rules. But we can't check that
index 2e692c63dc8a728cee9015c6c353548eb2535cf0..8c68dab48946cc303217fac2e55f7813e95bcb63 100644 (file)
@@ -6707,10 +6707,10 @@ package body Sem_Ch4 is
    --------------------------------
 
    procedure Remove_Abstract_Operations (N : Node_Id) is
-      Abstract_Op    : Entity_Id := Empty;
-      Address_Kludge : Boolean := False;
-      I              : Interp_Index;
-      It             : Interp;
+      Abstract_Op        : Entity_Id := Empty;
+      Address_Descendent : Boolean := False;
+      I                  : Interp_Index;
+      It                 : Interp;
 
       --  AI-310: If overloaded, remove abstract non-dispatching operations. We
       --  activate this if either extensions are enabled, or if the abstract
@@ -6746,7 +6746,7 @@ package body Sem_Ch4 is
                end if;
 
                if Is_Descendent_Of_Address (Etype (Formal)) then
-                  Address_Kludge := True;
+                  Address_Descendent := True;
                   Remove_Interp (I);
                end if;
 
@@ -6774,7 +6774,7 @@ package body Sem_Ch4 is
                Abstract_Op := It.Nam;
 
                if Is_Descendent_Of_Address (It.Typ) then
-                  Address_Kludge := True;
+                  Address_Descendent := True;
                   Remove_Interp (I);
                   exit;
 
@@ -6943,9 +6943,7 @@ package body Sem_Ch4 is
             --  predefined operators when addresses are involved since this
             --  case is handled separately.
 
-            elsif Ada_Version >= Ada_2005
-              and then not Address_Kludge
-            then
+            elsif Ada_Version >= Ada_2005 and then not Address_Descendent then
                while Present (It.Nam) loop
                   if Is_Numeric_Type (It.Typ)
                     and then Scope (It.Typ) = Standard_Standard
index 42a14872fde6f3c988c9d180cda0114ee40f2a2a..7598d5c9eeaca5714f11d94923caf23f72fb6619 100644 (file)
@@ -625,8 +625,8 @@ package body Sem_Ch8 is
 
    procedure Analyze_Generic_Package_Renaming   (N : Node_Id) is
    begin
-      --  Apply the Text_IO Kludge here, since we may be renaming one of the
-      --  subpackages of Text_IO, then join common routine.
+      --  Test for the Text_IO special unit case here, since we may be renaming
+      --  one of the subpackages of Text_IO, then join common routine.
 
       Check_Text_IO_Special_Unit (Name (N));
 
@@ -1317,7 +1317,7 @@ package body Sem_Ch8 is
          return;
       end if;
 
-      --  Apply Text_IO kludge here since we may be renaming a child of Text_IO
+      --  Check for Text_IO special unit (we may be renaming a Text_IO child)
 
       Check_Text_IO_Special_Unit (Name (N));
 
@@ -2615,9 +2615,9 @@ package body Sem_Ch8 is
       --  Ada_83 because there is no requirement of full conformance between
       --  renamed entity and new entity, even though the same circuit is used.
 
-      --  This is a bit of a kludge, which introduces a really irregular use of
-      --  Ada_Version[_Explicit]. Would be nice to find cleaner way to do this
-      --  ???
+      --  This is a bit of an odd case, which introduces a really irregular use
+      --  of Ada_Version[_Explicit]. Would be nice to find cleaner way to do
+      --  this. ???
 
       Ada_Version := Ada_Version_Type'Max (Ada_Version, Ada_95);
       Ada_Version_Pragma := Empty;
index d54937b8d4a33a4fda10fbef3f99c0a86f034d2e..8b47332be7e4ddb529d003225cd27e7b22cc677f 100644 (file)
@@ -252,8 +252,8 @@ package body Sem_Warn is
       --  Given an entity name, see if the name appears to have something to
       --  do with I/O or network stuff, and if so, return True. Used to kill
       --  some false positives on a heuristic basis that such functions will
-      --  likely have some strange side effect dependencies. A rather funny
-      --  kludge, but warning messages are in the heuristics business.
+      --  likely have some strange side effect dependencies. A rather strange
+      --  test, but warning messages are in the heuristics business.
 
       function Test_Ref (N : Node_Id) return Traverse_Result;
       --  Test for reference to variable in question. Returns Abandon if
index 0cce75f9aa2b5737ca4020d0b972e10853a28047..5bc09a7130f11835cabde50e6f0524036c87a9b3 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 1992-2013, Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-2014, 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- --
@@ -2090,11 +2090,11 @@ package body Treepr is
          Visit_Descendent (Field22 (N));
          Visit_Descendent (Field23 (N));
 
-         --  Now an interesting kludge. Normally parents are always printed
-         --  since we traverse the tree in a downwards direction. There is
-         --  however an exception to this rule, which is the case where a
-         --  parent is constructed by the compiler and is not referenced
-         --  elsewhere in the tree. The following catches this case
+         --  Now an interesting special case. Normally parents are always
+         --  printed since we traverse the tree in a downwards direction.
+         --  However, there is an exception to this rule, which is the
+         --  case where a parent is constructed by the compiler and is not
+         --  referenced elsewhere in the tree. The following catches this case.
 
          if not Comes_From_Source (N) then
             Visit_Descendent (Union_Id (Parent (N)));