diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-09-09 13:38:12 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-09-09 13:38:12 +0000 |
commit | 52307e9c388efd0d6bfd2ce2d3be23fdb42beb41 (patch) | |
tree | 572dfe6b1fb775d2b68e68da8844450085547166 /gcc/ada/a-convec.adb | |
parent | 35f23bef978f17c6b341fe1e1f8d2cc5cfdf436b (diff) | |
download | gcc-52307e9c388efd0d6bfd2ce2d3be23fdb42beb41.tar.gz |
2010-09-09 Matthew Heaney <heaney@adacore.com>
* a-convec.adb, a-coinve.adb (Clear, Delete, Delete_Last, Finalize,
Merge, Insert, Insert_Space, Move, Reserve_Capacity, Generic_Sorting,
Replace_Element, Reverse_Elements, Swap): Change exception message to
correctly indicate kind of tampering (cursor or element).
* a-cdlili.adb, a-cidlli.adb (Clear, Delete, Delete_First, Delete_Last,
Merge, Generic_Sorting, Insert, Move, Reverse_Elements, Splice,
Swap_Links, Replace_Element, Swap): Ditto.
* a-coorse.adb, a-ciorse.adb (Include, Replace, Replace_Element): Ditto
* a-coorma.adb, a-ciorma.adb (Include, Replace, Replace_Element): Ditto
* a-coormu.adb, a-ciormu.adb (Replace_Element): Ditto
* a-chtgke.adb (Delete_Key_Sans_Free, Generic_Conditional_Insert,
Generic_Replace_Element): Ditto
* a-chtgop.adb (Clear, Move, Reserve_Capacity): Ditto
* a-cohama.adb, a-cihama.adb (Delete, Include, Replace,
Replace_Element): Ditto.
* a-cohase.adb, a-cihase.adb (Delete, Difference, Intersection,
Symmetric_Difference, Union, Include, Replace): Ditto
2010-09-09 Ed Schonberg <schonberg@adacore.com>
* sprint.adb (Write_Id): If the parent node is an expanded name, check
that its entity_or_associated_node is an entity before writing it out.
* exp_disp.adb (Make_Tags); if a type is declared in C++ and has no
constructors, there is no need for a dispatch table pointer because the
table is fully inherited from the C++ code.
2010-09-09 Thomas Quinot <quinot@adacore.com>
* projects.texi: Fix wrong identifiers on package end lines in project
files examples.
* exp_ch6.adb: Minor reformatting.
2010-09-09 Tristan Gingold <gingold@adacore.com>
* gnatcmd.adb, vms_conv.ads, vms_help.adb, vms_cmds.ads: Extract
Command_Type from vms_conv.ads.
2010-09-09 Eric Botcazou <ebotcazou@adacore.com>
* gnat_ugn.texi: Fix description of -O3 optimization level.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164092 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/a-convec.adb')
-rw-r--r-- | gcc/ada/a-convec.adb | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/gcc/ada/a-convec.adb b/gcc/ada/a-convec.adb index 501128b9d89..16b6591f6a4 100644 --- a/gcc/ada/a-convec.adb +++ b/gcc/ada/a-convec.adb @@ -440,7 +440,7 @@ package body Ada.Containers.Vectors is begin if Container.Busy > 0 then raise Program_Error with - "attempt to tamper with elements (vector is busy)"; + "attempt to tamper with cursors (vector is busy)"; end if; Container.Last := No_Index; @@ -524,7 +524,7 @@ package body Ada.Containers.Vectors is if Container.Busy > 0 then raise Program_Error with - "attempt to tamper with elements (vector is busy)"; + "attempt to tamper with cursors (vector is busy)"; end if; -- We first calculate what's available for deletion starting at @@ -653,7 +653,7 @@ package body Ada.Containers.Vectors is if Container.Busy > 0 then raise Program_Error with - "attempt to tamper with elements (vector is busy)"; + "attempt to tamper with cursors (vector is busy)"; end if; -- There is no restriction on how large Count can be when deleting @@ -717,7 +717,7 @@ package body Ada.Containers.Vectors is begin if Container.Busy > 0 then raise Program_Error with - "attempt to tamper with elements (vector is busy)"; + "attempt to tamper with cursors (vector is busy)"; end if; Container.Elements := null; @@ -862,7 +862,7 @@ package body Ada.Containers.Vectors is if Source.Busy > 0 then raise Program_Error with - "attempt to tamper with elements (vector is busy)"; + "attempt to tamper with cursors (vector is busy)"; end if; Target.Set_Length (Length (Target) + Length (Source)); @@ -923,7 +923,7 @@ package body Ada.Containers.Vectors is if Container.Lock > 0 then raise Program_Error with - "attempt to tamper with cursors (vector is locked)"; + "attempt to tamper with elements (vector is locked)"; end if; Sort (Container.Elements.EA (Index_Type'First .. Container.Last)); @@ -1147,7 +1147,7 @@ package body Ada.Containers.Vectors is if Container.Busy > 0 then raise Program_Error with - "attempt to tamper with elements (vector is busy)"; + "attempt to tamper with cursors (vector is busy)"; end if; -- An internal array has already been allocated, so we must determine @@ -1802,7 +1802,7 @@ package body Ada.Containers.Vectors is if Container.Busy > 0 then raise Program_Error with - "attempt to tamper with elements (vector is busy)"; + "attempt to tamper with cursors (vector is busy)"; end if; -- An internal array has already been allocated, so we must determine @@ -2102,12 +2102,12 @@ package body Ada.Containers.Vectors is if Target.Busy > 0 then raise Program_Error with - "attempt to tamper with elements (Target is busy)"; + "attempt to tamper with cursors (Target is busy)"; end if; if Source.Busy > 0 then raise Program_Error with - "attempt to tamper with elements (Source is busy)"; + "attempt to tamper with cursors (Source is busy)"; end if; declare @@ -2303,7 +2303,7 @@ package body Ada.Containers.Vectors is if Container.Lock > 0 then raise Program_Error with - "attempt to tamper with cursors (vector is locked)"; + "attempt to tamper with elements (vector is locked)"; end if; Container.Elements.EA (Index) := New_Item; @@ -2329,7 +2329,7 @@ package body Ada.Containers.Vectors is if Container.Lock > 0 then raise Program_Error with - "attempt to tamper with cursors (vector is locked)"; + "attempt to tamper with elements (vector is locked)"; end if; Container.Elements.EA (Position.Index) := New_Item; @@ -2392,7 +2392,7 @@ package body Ada.Containers.Vectors is if Container.Busy > 0 then raise Program_Error with - "attempt to tamper with elements (vector is busy)"; + "attempt to tamper with cursors (vector is busy)"; end if; declare @@ -2527,7 +2527,7 @@ package body Ada.Containers.Vectors is if Container.Busy > 0 then raise Program_Error with - "attempt to tamper with elements (vector is busy)"; + "attempt to tamper with cursors (vector is busy)"; end if; declare @@ -2586,7 +2586,7 @@ package body Ada.Containers.Vectors is if Container.Busy > 0 then raise Program_Error with - "attempt to tamper with elements (vector is busy)"; + "attempt to tamper with cursors (vector is busy)"; end if; -- We now allocate a new internal array, having a length different from @@ -2649,7 +2649,7 @@ package body Ada.Containers.Vectors is if Container.Lock > 0 then raise Program_Error with - "attempt to tamper with cursors (vector is locked)"; + "attempt to tamper with elements (vector is locked)"; end if; declare @@ -2801,7 +2801,7 @@ package body Ada.Containers.Vectors is if Container.Lock > 0 then raise Program_Error with - "attempt to tamper with cursors (vector is locked)"; + "attempt to tamper with elements (vector is locked)"; end if; declare |