]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[multiple changes]
authorArnaud Charlet <charlet@gcc.gnu.org>
Thu, 20 Feb 2014 13:46:15 +0000 (14:46 +0100)
committerArnaud Charlet <charlet@gcc.gnu.org>
Thu, 20 Feb 2014 13:46:15 +0000 (14:46 +0100)
2014-02-20  Robert Dewar  <dewar@adacore.com>

* a-crbtgk.adb, a-cihama.adb, a-coinve.adb, a-ciorse.adb, a-crbtgo.adb,
a-cidlli.adb, a-cimutr.adb, a-cihase.adb, a-cohama.adb, a-coorse.adb,
a-chtgke.adb, a-chtgop.adb, a-comutr.adb, a-ciorma.adb, a-cobove.adb,
a-convec.adb, a-cohase.adb, a-chtgbk.adb, a-chtgbo.adb: Minor
reformatting.

2014-02-20  Bob Duff  <duff@adacore.com>

* s-os_lib.ads: Minor: Remove incorrect comment.

2014-02-20  Robert Dewar  <dewar@adacore.com>

* sem_elab.adb (Check_Elab_Assign): Clearer warning message.

2014-02-20  Vincent Celier  <celier@adacore.com>

* gnat_rm.texi: Minor syntax error fix.

2014-02-20  Ed Schonberg  <schonberg@adacore.com>

* a-cborma.adb (Assign): When creating a node without a specified
element, insert an uninitialized element in the map, because
the instance may provide an element type with a default
initialization, e.g a scalar with a Default_Value aspect.
* a-cbhama.adb (Assign_Key): Remove useless Allocate procedure.
(Insert): In the version without explicit element, provide an
uninitialized element, as above.
* a-cbdlli.adb (Append): In the version without explicit element,
provide an uninitalized element, as above.
(Allocate): Remove unused version.

From-SVN: r207945

26 files changed:
gcc/ada/ChangeLog
gcc/ada/a-cbdlli.adb
gcc/ada/a-cbhama.adb
gcc/ada/a-cborma.adb
gcc/ada/a-chtgbk.adb
gcc/ada/a-chtgbo.adb
gcc/ada/a-chtgke.adb
gcc/ada/a-chtgop.adb
gcc/ada/a-cidlli.adb
gcc/ada/a-cihama.adb
gcc/ada/a-cihase.adb
gcc/ada/a-cimutr.adb
gcc/ada/a-ciorma.adb
gcc/ada/a-ciorse.adb
gcc/ada/a-cobove.adb
gcc/ada/a-cohama.adb
gcc/ada/a-cohase.adb
gcc/ada/a-coinve.adb
gcc/ada/a-comutr.adb
gcc/ada/a-convec.adb
gcc/ada/a-coorse.adb
gcc/ada/a-crbtgk.adb
gcc/ada/a-crbtgo.adb
gcc/ada/gnat_rm.texi
gcc/ada/s-os_lib.ads
gcc/ada/sem_elab.adb

index 9d12879767ed7d888cc20b550d7632c0fb5946b1..7f51998895523e439c31301b7dda9812a342c259 100644 (file)
@@ -1,3 +1,32 @@
+2014-02-20  Robert Dewar  <dewar@adacore.com>
+
+       * a-crbtgk.adb, a-cihama.adb, a-coinve.adb, a-ciorse.adb, a-crbtgo.adb,
+       a-cidlli.adb, a-cimutr.adb, a-cihase.adb, a-cohama.adb, a-coorse.adb,
+       a-chtgke.adb, a-chtgop.adb, a-comutr.adb, a-ciorma.adb, a-cobove.adb,
+       a-convec.adb, a-cohase.adb, a-chtgbk.adb, a-chtgbo.adb: Minor
+       reformatting.
+
+2014-02-20  Bob Duff  <duff@adacore.com>
+
+       * s-os_lib.ads: Minor: Remove incorrect comment.
+
+2014-02-20  Robert Dewar  <dewar@adacore.com>
+
+       * sem_elab.adb (Check_Elab_Assign): Clearer warning message.
+
+2014-02-20  Ed Schonberg  <schonberg@adacore.com>
+
+       * a-cborma.adb (Assign): When creating a node without a specified
+       element, insert an uninitialized element in the map, because
+       the instance may provide an element type with a default
+       initialization, e.g a scalar with a Default_Value aspect.
+       * a-cbhama.adb (Assign_Key): Remove useless Allocate procedure.
+       (Insert): In the version without explicit element, provide an
+       uninitialized element, as above.
+       * a-cbdlli.adb (Append): In the version without explicit element,
+       provide an uninitalized element, as above.
+       (Allocate): Remove unused version.
+
 2014-02-20  Robert Dewar  <dewar@adacore.com>
 
        * sem_elab.adb: Minor code reorganization (use Nkind_In).
index 36b9b81e83b5d4bdd037bfedd15bcd2ef3115579..51e98bc40ed40334c589a1e651e53051ef540292 100644 (file)
@@ -40,10 +40,6 @@ package body Ada.Containers.Bounded_Doubly_Linked_Lists is
       New_Item  : Element_Type;
       New_Node  : out Count_Type);
 
-   procedure Allocate
-     (Container : in out List;
-      New_Node  : out Count_Type);
-
    procedure Allocate
      (Container : in out List;
       Stream    : not null access Root_Stream_Type'Class;
@@ -218,26 +214,6 @@ package body Ada.Containers.Bounded_Doubly_Linked_Lists is
       end if;
    end Allocate;
 
-   procedure Allocate
-     (Container : in out List;
-      New_Node  : out Count_Type)
-   is
-      N : Node_Array renames Container.Nodes;
-
-   begin
-      if Container.Free >= 0 then
-         New_Node := Container.Free;
-         Container.Free := N (New_Node).Next;
-
-      else
-         --  As explained above, a negative free store value means that the
-         --  links for the nodes in the free store have not been initialized.
-
-         New_Node := abs Container.Free;
-         Container.Free := Container.Free - 1;
-      end if;
-   end Allocate;
-
    ------------
    -- Append --
    ------------
@@ -1145,40 +1121,17 @@ package body Ada.Containers.Bounded_Doubly_Linked_Lists is
       Position  : out Cursor;
       Count     : Count_Type := 1)
    is
-      New_Node : Count_Type;
+      New_Item : Element_Type;  --  Default initialized.
+      pragma Warnings (Off, New_Item);
 
    begin
-      if Before.Container /= null then
-         if Before.Container /= Container'Unrestricted_Access then
-            raise Program_Error with
-              "Before cursor designates wrong list";
-         end if;
-
-         pragma Assert (Vet (Before), "bad cursor in Insert");
-      end if;
-
-      if Count = 0 then
-         Position := Before;
-         return;
-      end if;
-
-      if Container.Length > Container.Capacity - Count then
-         raise Constraint_Error with "new length exceeds capacity";
-      end if;
-
-      if Container.Busy > 0 then
-         raise Program_Error with
-           "attempt to tamper with cursors (list is busy)";
-      end if;
-
-      Allocate (Container, New_Node => New_Node);
-      Insert_Internal (Container, Before.Node, New_Node);
-      Position := Cursor'(Container'Unchecked_Access, New_Node);
+      --  There is no explicit element provided, but in an instance the
+      --  element type may be a scalar with a Default_Value aspect, or a
+      --  composite type with such a scalar component, so  we insert the
+      --  specified number of possibly initialized elements at the given
+      --  position.
 
-      for Index in Count_Type'(2) .. Count loop
-         Allocate (Container, New_Node => New_Node);
-         Insert_Internal (Container, Before.Node, New_Node);
-      end loop;
+      Insert (Container, Before, New_Item, Position, Count);
    end Insert;
 
    ---------------------
index 3549f993935bb1de2b1f57ae551f7b12c59413c5..88f9fa19058d6c6bf2ee234ba501a0bb50fca7c4 100644 (file)
@@ -556,15 +556,19 @@ package body Ada.Containers.Bounded_Hashed_Maps is
       -----------------
 
       procedure Assign_Key (Node : in out Node_Type) is
+         New_Item : Element_Type;
+         pragma Warnings (Off, New_Item);
+         --  Default-initialized element (ok to reference, see below)
+
       begin
          Node.Key := Key;
 
-         --  Note that we do not also assign the element component of the node
-         --  here, because this version of Insert does not accept an element
-         --  parameter.
+         --  There is no explicit element provided, but in an instance the
+         --  element type may be a scalar with a Default_Value aspect, or
+         --  a composite type with such a scalar component, so we insert
+         --  a possibly initialized element under the given key.
 
-         --  Node.Element := New_Item;
-         --  What is this deleted code about???
+         Node.Element := New_Item;
       end Assign_Key;
 
       --------------
index f508fc5642cd51bd0f6218950ed503c3a6a084b6..1639998e8459721684eb7f5178d3eedc31fc6f63 100644 (file)
@@ -826,20 +826,19 @@ package body Ada.Containers.Bounded_Ordered_Maps is
       ------------
 
       procedure Assign (Node : in out Node_Type) is
+         New_Item : Element_Type;
+         pragma Warnings (Off, New_Item);
+         --  Default-initialized element (ok to reference, see below)
+
       begin
          Node.Key := Key;
 
-         --  Were this insertion operation to accept an element parameter, this
-         --  is the point where the element value would be used, to update the
-         --  element component of the new node. However, this insertion
-         --  operation is special, in the sense that it does not accept an
-         --  element parameter. Rather, this version of Insert allocates a node
-         --  (inserting it among the active nodes of the container in the
-         --  normal way, with the node's position being determined by the Key),
-         --  and passes back a cursor designating the node. It is then up to
-         --  the caller to assign a value to the node's element.
-
-         --  Node.Element := New_Item;
+         --  There is no explicit element provided, but in an instance the
+         --  element type may be a scalar with a Default_Value aspect, or
+         --  a composite type with such a scalar component, so we insert
+         --  a possibly initialized element under the given key.
+
+         Node.Element := New_Item;
       end Assign;
 
       --------------
index 5f6bfa0910651bc6789fe394810daf5763686d88..941da83a49375442f077801468591cd9194e55af 100644 (file)
@@ -53,6 +53,7 @@ package body Ada.Containers.Hash_Tables.Generic_Bounded_Keys is
       L := L - 1;
 
       return Result;
+
    exception
       when others =>
          B := B - 1;
@@ -84,6 +85,7 @@ package body Ada.Containers.Hash_Tables.Generic_Bounded_Keys is
       L := L - 1;
 
       return Result;
+
    exception
       when others =>
          B := B - 1;
@@ -285,6 +287,7 @@ package body Ada.Containers.Hash_Tables.Generic_Bounded_Keys is
       declare
          B : Natural renames HT.Busy;
          L : Natural renames HT.Lock;
+
       begin
          B := B + 1;
          L := L + 1;
@@ -293,6 +296,7 @@ package body Ada.Containers.Hash_Tables.Generic_Bounded_Keys is
 
          B := B - 1;
          L := L - 1;
+
       exception
          when others =>
             B := B - 1;
index f3376cad1df0b5ca5f17a54e37041c0d09005221..c455741fae88ca635f4d1f67b74f6a79e70c43a6 100644 (file)
@@ -54,6 +54,7 @@ package body Ada.Containers.Hash_Tables.Generic_Bounded_Operations is
       L := L - 1;
 
       return Result;
+
    exception
       when others =>
          B := B - 1;
@@ -378,6 +379,7 @@ package body Ada.Containers.Hash_Tables.Generic_Bounded_Operations is
          L_Node := Next (L.Nodes (L_Node));
 
          if L_Node = 0 then
+
             --  We have exhausted the nodes in this bucket
 
             if N = 0 then
@@ -402,6 +404,7 @@ package body Ada.Containers.Hash_Tables.Generic_Bounded_Operations is
       LR := LR - 1;
 
       return Result;
+
    exception
       when others =>
          BL := BL - 1;
index e4de7712e7a8ceaf294d4eb732758ce42d1085a8..df7821d74b915741eeb3716306e2e2a855a0de3f 100644 (file)
@@ -53,6 +53,7 @@ package body Ada.Containers.Hash_Tables.Generic_Keys is
       L := L - 1;
 
       return Result;
+
    exception
       when others =>
          B := B - 1;
@@ -84,6 +85,7 @@ package body Ada.Containers.Hash_Tables.Generic_Keys is
       L := L - 1;
 
       return Result;
+
    exception
       when others =>
          B := B - 1;
@@ -269,6 +271,7 @@ package body Ada.Containers.Hash_Tables.Generic_Keys is
       declare
          B : Natural renames HT.Busy;
          L : Natural renames HT.Lock;
+
       begin
          B := B + 1;
          L := L + 1;
@@ -277,6 +280,7 @@ package body Ada.Containers.Hash_Tables.Generic_Keys is
 
          B := B - 1;
          L := L - 1;
+
       exception
          when others =>
             B := B - 1;
index a0e0af16493dae200e1ead926de55777655788e0..4227c8f44832d4c47ee47451736f0f1340080d21 100644 (file)
@@ -145,6 +145,7 @@ package body Ada.Containers.Hash_Tables.Generic_Operations is
       L := L - 1;
 
       return Result;
+
    exception
       when others =>
          B := B - 1;
@@ -411,6 +412,7 @@ package body Ada.Containers.Hash_Tables.Generic_Operations is
       LR := LR - 1;
 
       return Result;
+
    exception
       when others =>
          BL := BL - 1;
@@ -738,12 +740,14 @@ package body Ada.Containers.Hash_Tables.Generic_Operations is
                   pragma Assert (L > 0);
                   L := L - 1;
                end loop;
+
             exception
                when others =>
+
                   --  If there's an error computing a hash value during a
-                  --  rehash, then AI-302 says the nodes "become lost."  The
+                  --  rehash, then AI-302 says the nodes "become lost." The
                   --  issue is whether to actually deallocate these lost nodes,
-                  --  since they might be designated by extant cursors.  Here
+                  --  since they might be designated by extant cursors. Here
                   --  we decide to deallocate the nodes, since it's better to
                   --  solve real problems (storage consumption) rather than
                   --  imaginary ones (the user might, or might not, dereference
index 04d0597a22c50b537b0d288f4447549204e2fb01..f1fc3d3beb28aee62ee4e85da619ec155508dc36 100644 (file)
@@ -609,6 +609,7 @@ package body Ada.Containers.Indefinite_Doubly_Linked_Lists is
          when others =>
             B := B - 1;
             L := L - 1;
+
             raise;
       end;
    end Find;
@@ -746,6 +747,7 @@ package body Ada.Containers.Indefinite_Doubly_Linked_Lists is
          when others =>
             B := B - 1;
             L := L - 1;
+
             raise;
       end Is_Sorted;
 
@@ -945,10 +947,12 @@ package body Ada.Containers.Indefinite_Doubly_Linked_Lists is
 
             B := B - 1;
             L := L - 1;
+
          exception
             when others =>
                B := B - 1;
                L := L - 1;
+
                raise;
          end;
 
@@ -1753,6 +1757,7 @@ package body Ada.Containers.Indefinite_Doubly_Linked_Lists is
          when others =>
             B := B - 1;
             L := L - 1;
+
             raise;
       end;
    end Reverse_Find;
index 41a5eb1ef53e28eab78369713f3e96cfe78fb1cf..7f9978935d965e6496a64ac344c0833a3591e286 100644 (file)
@@ -308,11 +308,9 @@ package body Ada.Containers.Indefinite_Hashed_Maps is
    function Copy_Node (Node : Node_Access) return Node_Access is
       K : Key_Access := new Key_Type'(Node.Key.all);
       E : Element_Access;
-
    begin
       E := new Element_Type'(Node.Element.all);
       return new Node_Type'(K, E, null);
-
    exception
       when others =>
          Free_Key (K);
@@ -603,6 +601,7 @@ package body Ada.Containers.Indefinite_Hashed_Maps is
 
       begin
          Free_Key (X.Key);
+
       exception
          when others =>
             X.Key := null;
@@ -623,7 +622,6 @@ package body Ada.Containers.Indefinite_Hashed_Maps is
       exception
          when others =>
             X.Element := null;
-
             Deallocate (X);
             raise;
       end;
@@ -979,10 +977,12 @@ package body Ada.Containers.Indefinite_Hashed_Maps is
 
          begin
             Process (K, E);
+
          exception
             when others =>
                L := L - 1;
                B := B - 1;
+
                raise;
          end;
 
index bbd29e552ec0c612888988bc47ba693eb3505fa8..87c4ac47d5c975dfe45a9006d36f091a9458bbe7 100644 (file)
@@ -471,6 +471,7 @@ package body Ada.Containers.Indefinite_Hashed_Sets is
 
                begin
                   Bucket := new Node_Type'(Tgt, Bucket);
+
                exception
                   when others =>
                      Free_Element (Tgt);
@@ -485,6 +486,7 @@ package body Ada.Containers.Indefinite_Hashed_Sets is
 
       begin
          Iterate (Left.HT);
+
       exception
          when others =>
             HT_Ops.Free_Hash_Table (Buckets);
@@ -774,6 +776,7 @@ package body Ada.Containers.Indefinite_Hashed_Sets is
 
       begin
          Free_Element (X.Element);
+
       exception
          when others =>
             X.Element := null;
@@ -1021,6 +1024,7 @@ package body Ada.Containers.Indefinite_Hashed_Sets is
 
                begin
                   Bucket := new Node_Type'(Tgt, Bucket);
+
                exception
                   when others =>
                      Free_Element (Tgt);
@@ -1035,6 +1039,7 @@ package body Ada.Containers.Indefinite_Hashed_Sets is
 
       begin
          Iterate (Left.HT);
+
       exception
          when others =>
             HT_Ops.Free_Hash_Table (Buckets);
@@ -1753,6 +1758,7 @@ package body Ada.Containers.Indefinite_Hashed_Sets is
 
       begin
          Iterate (Right_HT);
+
       exception
          when others =>
             HT_Ops.Free_Hash_Table (Buckets);
@@ -1916,6 +1922,7 @@ package body Ada.Containers.Indefinite_Hashed_Sets is
 
          L := L - 1;
          B := B - 1;
+
       exception
          when others =>
             L := L - 1;
@@ -1991,6 +1998,7 @@ package body Ada.Containers.Indefinite_Hashed_Sets is
 
          LL := LL - 1;
          LB := LB - 1;
+
       exception
          when others =>
             RL := RL - 1;
@@ -2426,10 +2434,12 @@ package body Ada.Containers.Indefinite_Hashed_Sets is
                Indx := HT_Ops.Index (HT, Position.Node);
                Process (E);
                Eq := Equivalent_Keys (K, Key (E));
+
             exception
                when others =>
                   L := L - 1;
                   B := B - 1;
+
                   raise;
             end;
 
index 15f1640e867ec6ce1c91a9bb9698746d35684a11..2405a172eb8da0e13548653fa24316c7791c9600 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 2004-2012, Free Software Foundation, Inc.         --
+--          Copyright (C) 2004-2013, 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- --
@@ -2746,6 +2746,7 @@ package body Ada.Containers.Indefinite_Multiway_Trees is
          when others =>
             L := L - 1;
             B := B - 1;
+
             raise;
       end;
    end Update_Element;
index 1c6f6d737fc3dad907ff3f59b413b2fd82b4d743..d62f6076ca012ba8baee41f9c4fab0f0a5e0bde3 100644 (file)
@@ -455,6 +455,7 @@ package body Ada.Containers.Indefinite_Ordered_Maps is
                             Color   => Source.Color,
                             Key     => K,
                             Element => E);
+
    exception
       when others =>
          Free_Key (K);
@@ -966,6 +967,7 @@ package body Ada.Containers.Indefinite_Ordered_Maps is
 
       begin
          Local_Iterate (Container.Tree);
+
       exception
          when others =>
             B := B - 1;
@@ -1305,7 +1307,6 @@ package body Ada.Containers.Indefinite_Ordered_Maps is
          declare
             K : Key_Type renames Position.Node.Key.all;
             E : Element_Type renames Position.Node.Element.all;
-
          begin
             Process (K, E);
          exception
@@ -1683,10 +1684,8 @@ package body Ada.Containers.Indefinite_Ordered_Maps is
          declare
             K : Key_Type renames Position.Node.Key.all;
             E : Element_Type renames Position.Node.Element.all;
-
          begin
             Process (K, E);
-
          exception
             when others =>
                L := L - 1;
index 2f8820cb952362bdb5794051b2179ef4baa817a8..b79d27e8b1553b0bec614a0e915c4580f571bf06 100644 (file)
@@ -440,6 +440,7 @@ package body Ada.Containers.Indefinite_Ordered_Sets is
                             Right   => null,
                             Color   => Source.Color,
                             Element => Element);
+
    exception
       when others =>
          Free_Element (Element);
@@ -1908,6 +1909,7 @@ package body Ada.Containers.Indefinite_Ordered_Sets is
          when others =>
             L := L - 1;
             B := B - 1;
+
             raise;
       end;
 
@@ -1960,6 +1962,7 @@ package body Ada.Containers.Indefinite_Ordered_Sets is
             when others =>
                L := L - 1;
                B := B - 1;
+
                raise;
          end;
 
index b2e75b58118e8e2dd22945065f48fe2d33a0ad64..28f6f4dd9ac50461a3c37372af7f7dcc2383402e 100644 (file)
@@ -785,6 +785,7 @@ package body Ada.Containers.Bounded_Vectors is
          when others =>
             B := B - 1;
             L := L - 1;
+
             raise;
       end;
    end Find;
@@ -827,6 +828,7 @@ package body Ada.Containers.Bounded_Vectors is
       when others =>
          B := B - 1;
          L := L - 1;
+
          raise;
    end Find_Index;
 
@@ -937,6 +939,7 @@ package body Ada.Containers.Bounded_Vectors is
             when others =>
                B := B - 1;
                L := L - 1;
+
                raise;
          end;
       end Is_Sorted;
@@ -1096,6 +1099,7 @@ package body Ada.Containers.Bounded_Vectors is
             when others =>
                B := B - 1;
                L := L - 1;
+
                raise;
          end;
       end Sort;
@@ -2492,10 +2496,12 @@ package body Ada.Containers.Bounded_Vectors is
          else
             return Cursor'(Container'Unrestricted_Access, Result);
          end if;
+
       exception
          when others =>
             B := B - 1;
             L := L - 1;
+
             raise;
       end;
    end Reverse_Find;
@@ -2541,6 +2547,7 @@ package body Ada.Containers.Bounded_Vectors is
       when others =>
          B := B - 1;
          L := L - 1;
+
          raise;
    end Reverse_Find_Index;
 
index 541e95a14e6db8741259614410c32fb357841a98..70e7758c9d83d3b3d31e05e016b692fd0a46b826 100644 (file)
@@ -887,7 +887,6 @@ package body Ada.Containers.Hashed_Maps is
          declare
             K : Key_Type renames Position.Node.Key;
             E : Element_Type renames Position.Node.Element;
-
          begin
             Process (K, E);
          exception
@@ -1134,10 +1133,8 @@ package body Ada.Containers.Hashed_Maps is
          declare
             K : Key_Type renames Position.Node.Key;
             E : Element_Type renames Position.Node.Element;
-
          begin
             Process (K, E);
-
          exception
             when others =>
                L := L - 1;
index 6126db3a7943f00faecdc8c745be8e1b6cb9dfd8..129ad6a71206fccdf38ece7d5f19468fd68764ae 100644 (file)
@@ -1208,7 +1208,6 @@ package body Ada.Containers.Hashed_Sets is
      return Node_Access
    is
       Node : Node_Access := new Node_Type;
-
    begin
       Element_Type'Read (Stream, Node.Element);
       return Node;
@@ -1522,6 +1521,7 @@ package body Ada.Containers.Hashed_Sets is
 
       begin
          Iterate (Left_HT);
+
       exception
          when others =>
             HT_Ops.Free_Hash_Table (Buckets);
@@ -1563,6 +1563,7 @@ package body Ada.Containers.Hashed_Sets is
 
       begin
          Iterate (Right_HT);
+
       exception
          when others =>
             HT_Ops.Free_Hash_Table (Buckets);
@@ -1718,6 +1719,7 @@ package body Ada.Containers.Hashed_Sets is
 
          L := L - 1;
          B := B - 1;
+
       exception
          when others =>
             L := L - 1;
@@ -1785,6 +1787,7 @@ package body Ada.Containers.Hashed_Sets is
 
          LL := LL - 1;
          LB := LB - 1;
+
       exception
          when others =>
             RL := RL - 1;
index 677fd97e09dd647d044af6de564f68b69a139e96..3234f5ec87a034e763342c3d18bd1cfc59e5bcb3 100644 (file)
@@ -543,6 +543,7 @@ package body Ada.Containers.Indefinite_Vectors is
       LR := LR - 1;
 
       return Result;
+
    exception
       when others =>
          BL := BL - 1;
@@ -1280,6 +1281,7 @@ package body Ada.Containers.Indefinite_Vectors is
       when others =>
          B := B - 1;
          L := L - 1;
+
          raise;
    end Find_Index;
 
@@ -1421,6 +1423,7 @@ package body Ada.Containers.Indefinite_Vectors is
             when others =>
                B := B - 1;
                L := L - 1;
+
                raise;
          end;
       end Is_Sorted;
@@ -1599,6 +1602,7 @@ package body Ada.Containers.Indefinite_Vectors is
             when others =>
                B := B - 1;
                L := L - 1;
+
                raise;
          end;
       end Sort;
index 426c6f0675b1686bb6b863f928d4019f73d0fe25..01e7e1c809cbdf51ad0de256f8651b03ac96d18e 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 2004-2012, Free Software Foundation, Inc.         --
+--          Copyright (C) 2004-2013, 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- --
@@ -1934,6 +1934,7 @@ package body Ada.Containers.Multiway_Trees is
          when others =>
             L := L - 1;
             B := B - 1;
+
             raise;
       end;
    end Query_Element;
@@ -2723,6 +2724,7 @@ package body Ada.Containers.Multiway_Trees is
          when others =>
             L := L - 1;
             B := B - 1;
+
             raise;
       end;
    end Update_Element;
index 0f4bc19bcba6ed645da5cafcd28f338bb0daf5e8..ef4d75494df2d5b149bf62df88bab2d4eddf82fc 100644 (file)
@@ -943,6 +943,7 @@ package body Ada.Containers.Vectors is
          when others =>
             B := B - 1;
             L := L - 1;
+
             raise;
       end;
    end Find;
@@ -985,6 +986,7 @@ package body Ada.Containers.Vectors is
       when others =>
          B := B - 1;
          L := L - 1;
+
          raise;
    end Find_Index;
 
@@ -1095,6 +1097,7 @@ package body Ada.Containers.Vectors is
             when others =>
                B := B - 1;
                L := L - 1;
+
                raise;
          end;
       end Is_Sorted;
@@ -1257,6 +1260,7 @@ package body Ada.Containers.Vectors is
             when others =>
                B := B - 1;
                L := L - 1;
+
                raise;
          end;
       end Sort;
@@ -3288,6 +3292,7 @@ package body Ada.Containers.Vectors is
          when others =>
             B := B - 1;
             L := L - 1;
+
             raise;
       end;
    end Reverse_Find;
@@ -3333,6 +3338,7 @@ package body Ada.Containers.Vectors is
       when others =>
          B := B - 1;
          L := L - 1;
+
          raise;
    end Reverse_Find_Index;
 
index e7ac52b2325a806af94fdc870d267806604fd37e..675b40fcc39e6b07200c450167ab13dcf7ab829c 100644 (file)
@@ -1742,6 +1742,7 @@ package body Ada.Containers.Ordered_Sets is
          when others =>
             L := L - 1;
             B := B - 1;
+
             raise;
       end;
 
@@ -1783,6 +1784,7 @@ package body Ada.Containers.Ordered_Sets is
             when others =>
                L := L - 1;
                B := B - 1;
+
                raise;
          end;
 
index 7cc3b250c5af8e8bb134f3aec0d81d92e716a9b3..ae8dd7c6c7aee2f33f6d723677fd4f70907fd9d0 100644 (file)
@@ -77,6 +77,7 @@ package body Ada.Containers.Red_Black_Trees.Generic_Keys is
       when others =>
          B := B - 1;
          L := L - 1;
+
          raise;
    end Ceiling;
 
@@ -136,6 +137,7 @@ package body Ada.Containers.Red_Black_Trees.Generic_Keys is
       when others =>
          B := B - 1;
          L := L - 1;
+
          raise;
    end Find;
 
@@ -183,6 +185,7 @@ package body Ada.Containers.Red_Black_Trees.Generic_Keys is
       when others =>
          B := B - 1;
          L := L - 1;
+
          raise;
    end Floor;
 
@@ -252,6 +255,7 @@ package body Ada.Containers.Red_Black_Trees.Generic_Keys is
          when others =>
             L := L - 1;
             B := B - 1;
+
             raise;
       end;
 
@@ -297,6 +301,7 @@ package body Ada.Containers.Red_Black_Trees.Generic_Keys is
          when others =>
             L := L - 1;
             B := B - 1;
+
             raise;
       end;
 
@@ -374,6 +379,7 @@ package body Ada.Containers.Red_Black_Trees.Generic_Keys is
             when others =>
                L := L - 1;
                B := B - 1;
+
                raise;
          end;
 
@@ -419,6 +425,7 @@ package body Ada.Containers.Red_Black_Trees.Generic_Keys is
          when others =>
             L := L - 1;
             B := B - 1;
+
             raise;
       end;
 
@@ -445,6 +452,7 @@ package body Ada.Containers.Red_Black_Trees.Generic_Keys is
             when others =>
                L := L - 1;
                B := B - 1;
+
                raise;
          end;
 
@@ -483,6 +491,7 @@ package body Ada.Containers.Red_Black_Trees.Generic_Keys is
          when others =>
             L := L - 1;
             B := B - 1;
+
             raise;
       end;
 
@@ -509,6 +518,7 @@ package body Ada.Containers.Red_Black_Trees.Generic_Keys is
             when others =>
                L := L - 1;
                B := B - 1;
+
                raise;
          end;
 
index 1255ff591559f8229a1de22c8cef12adadfbee28..a75f069acb7b5a9309e7aa57d3dcb4f44a068463 100644 (file)
@@ -598,6 +598,7 @@ package body Ada.Containers.Red_Black_Trees.Generic_Operations is
       end loop;
 
       return Target_Root;
+
    exception
       when others =>
          Delete_Tree (Target_Root);
index 6f4f463ead8f994fe6a3d135cf1e47222f2a0c59..4de43932dbee5a8fc26a7ad579db8beb8aedad5e 100644 (file)
@@ -7381,7 +7381,7 @@ pragma Warnings (On | Off, LOCAL_NAME [,REASON]);
 pragma Warnings (static_string_EXPRESSION [,REASON]);
 pragma Warnings (On | Off, static_string_EXPRESSION [,REASON]);
 
-REASON ::= Reason => STRING_LITERAL {& STRING_LITERAL}
+REASON ::= Reason => STRING_LITERAL @{& STRING_LITERAL@}
 @end smallexample
 
 @noindent
index cd644964f1fbe067a4d3c4db476d7a3f450d2647..32a006eac565b186b47f03d821a9996858223595 100644 (file)
@@ -802,10 +802,8 @@ package System.OS_Lib is
    --  Similar to the procedure above, but saves the output of the command to
    --  a file with the name Output_File.
    --
-   --  Success is set to True if the command is executed and its output
-   --  successfully written to the file. Invalid_Pid is returned if the output
-   --  file could not be created or if the program could not be spawned
-   --  successfully.
+   --  Invalid_Pid is returned if the output file could not be created or if
+   --  the program could not be spawned successfully.
    --
    --  Spawning processes from tasking programs is not recommended. See
    --  "NOTE: Spawn in tasking programs" below.
index 9b8a3b2464e038a91b8ce897f0c7998822b4dce7..87db5eee60df074c6507fedeb619fc4aa0d31809 100644 (file)
@@ -1717,13 +1717,11 @@ package body Sem_Elab is
             Error_Msg_Sloc := Sloc (Ent);
 
             Error_Msg_NE
-              ("??elaboration code may access& before it is initialized",
+              ("??& can be accessed by clients before this initialization",
                N, Ent);
             Error_Msg_NE
-              ("\??suggest adding pragma Elaborate_Body to spec of &",
-               N, Scop);
-            Error_Msg_N
-              ("\??or an explicit initialization could be added #", N);
+              ("\??add Elaborate_Body to spec to ensure & is initialized",
+               N, Ent);
          end if;
 
          if not All_Errors_Mode then