Commit 579fda56 by Arnaud Charlet

[multiple changes]

2011-09-01  Hristian Kirtchev  <kirtchev@adacore.com>

	* exp_strm.adb: Remove with and use clause for Opt.
	(Build_Array_Input_Function): Remove the version-dependent generation
	of the return statement. The Ada 2005 tree is now the default.

2011-09-01  Yannick Moy  <moy@adacore.com>

	* put_alfa.adb: Unconditionnally write files in Alfa section, so that
	it is never empty when compiling in Alfa mode.

2011-09-01  Robert Dewar  <dewar@adacore.com>

	* sem_aggr.adb, sem_ch3.adb, a-direct.adb, s-taprop-vxworks.adb,
	comperr.adb, exp_ch9.adb, exp_pakd.adb, sem_ch12.adb, freeze.adb,
	s-taprop-mingw.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
	gnat1drv.adb, a-rbtgbo.adb, exp_dist.adb: Minor reformatting

2011-09-01  Matthew Heaney  <heaney@adacore.com>

	* Makefile.rtl, impunit.adb: Add a-csquin.ads, a-cusyqu.ad[sb],
	a-cuprqu.ad[sb], a-cbsyqu.ad[sb], a-cbprqu.ad[sb]
	* a-csquin.ads: New Ada 2012 unit that specifies the queue interface
	* a-cusyqu.ads, a-cusyqu.adb: New Ada 2012 unit that specifies the
	unbounded queue container.
	* a-cbsyqu.ads, a-cbsyqu.adb: New Ada 2012 unit that specifies the
	bounded queue container.
	* a-cuprqu.ads, a-cuprqu.adb: New Ada 2012 unit that specifies the
	unbounded priority queue container.
	* a-cbprqu.ads, a-cbprqu.adb: New Ada 2012 unit that specifies the
	bounded priority queue container.

From-SVN: r178398
parent c49eacd5
2011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
* exp_strm.adb: Remove with and use clause for Opt.
(Build_Array_Input_Function): Remove the version-dependent generation
of the return statement. The Ada 2005 tree is now the default.
2011-09-01 Yannick Moy <moy@adacore.com>
* put_alfa.adb: Unconditionnally write files in Alfa section, so that
it is never empty when compiling in Alfa mode.
2011-09-01 Robert Dewar <dewar@adacore.com>
* sem_aggr.adb, sem_ch3.adb, a-direct.adb, s-taprop-vxworks.adb,
comperr.adb, exp_ch9.adb, exp_pakd.adb, sem_ch12.adb, freeze.adb,
s-taprop-mingw.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
gnat1drv.adb, a-rbtgbo.adb, exp_dist.adb: Minor reformatting
2011-09-01 Matthew Heaney <heaney@adacore.com>
* Makefile.rtl, impunit.adb: Add a-csquin.ads, a-cusyqu.ad[sb],
a-cuprqu.ad[sb], a-cbsyqu.ad[sb], a-cbprqu.ad[sb]
* a-csquin.ads: New Ada 2012 unit that specifies the queue interface
* a-cusyqu.ads, a-cusyqu.adb: New Ada 2012 unit that specifies the
unbounded queue container.
* a-cbsyqu.ads, a-cbsyqu.adb: New Ada 2012 unit that specifies the
bounded queue container.
* a-cuprqu.ads, a-cuprqu.adb: New Ada 2012 unit that specifies the
unbounded priority queue container.
* a-cbprqu.ads, a-cbprqu.adb: New Ada 2012 unit that specifies the
bounded priority queue container.
2011-08-31 Pascal Obry <obry@adacore.com> 2011-08-31 Pascal Obry <obry@adacore.com>
* a-direct.adb: Do not try to create an UNC path on Windows. * a-direct.adb: Do not try to create an UNC path on Windows.
......
...@@ -94,6 +94,8 @@ GNATRTL_NONTASKING_OBJS= \ ...@@ -94,6 +94,8 @@ GNATRTL_NONTASKING_OBJS= \
a-cbdlli$(objext) \ a-cbdlli$(objext) \
a-cbmutr$(objext) \ a-cbmutr$(objext) \
a-cborma$(objext) \ a-cborma$(objext) \
a-cbprqu$(objext) \
a-cbsyqu$(objext) \
a-cdlili$(objext) \ a-cdlili$(objext) \
a-cfdlli$(objext) \ a-cfdlli$(objext) \
a-cfhama$(objext) \ a-cfhama$(objext) \
...@@ -144,6 +146,9 @@ GNATRTL_NONTASKING_OBJS= \ ...@@ -144,6 +146,9 @@ GNATRTL_NONTASKING_OBJS= \
a-crdlli$(objext) \ a-crdlli$(objext) \
a-comutr$(objext) \ a-comutr$(objext) \
a-cimutr$(objext) \ a-cimutr$(objext) \
a-csquin$(objext) \
a-cuprqu$(objext) \
a-cusyqu$(objext) \
a-cwila1$(objext) \ a-cwila1$(objext) \
a-cwila9$(objext) \ a-cwila9$(objext) \
a-decima$(objext) \ a-decima$(objext) \
......
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ADA.CONTAINERS.BOUNDED_PRIORITY_QUEUES --
-- --
-- B o d y --
-- --
-- Copyright (C) 2004-2011, 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- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- This unit was originally developed by Matthew J Heaney. --
------------------------------------------------------------------------------
package body Ada.Containers.Bounded_Priority_Queues is
package body Implementation is
-------------
-- Dequeue --
-------------
procedure Dequeue
(List : in out List_Type;
Element : out Queue_Interfaces.Element_Type)
is
begin
Element := List.Container.First_Element;
List.Container.Delete_First;
end Dequeue;
-------------
-- Enqueue --
-------------
procedure Enqueue
(List : in out List_Type;
New_Item : Queue_Interfaces.Element_Type)
is
P : constant Queue_Priority := Get_Priority (New_Item);
C : List_Types.Cursor;
use List_Types;
Count : Count_Type;
begin
C := List.Container.First;
while Has_Element (C) loop
-- ???
-- if Before (P, Get_Priority (List.Constant_Reference (C))) then
if Before (P, Get_Priority (Element (C))) then
List.Container.Insert (C, New_Item);
exit;
end if;
Next (C);
end loop;
if not Has_Element (C) then
List.Container.Append (New_Item);
end if;
Count := List.Container.Length;
if Count > List.Max_Length then
List.Max_Length := Count;
end if;
end Enqueue;
------------
-- Length --
------------
function Length (List : List_Type) return Count_Type is
begin
return List.Container.Length;
end Length;
----------------
-- Max_Length --
----------------
function Max_Length (List : List_Type) return Count_Type is
begin
return List.Max_Length;
end Max_Length;
end Implementation;
protected body Queue is
------------------
-- Current_Use --
------------------
function Current_Use return Count_Type is
begin
return List.Length;
end Current_Use;
--------------
-- Dequeue --
--------------
entry Dequeue (Element : out Queue_Interfaces.Element_Type)
when List.Length > 0
is
begin
List.Dequeue (Element);
end Dequeue;
-- ???
-- entry Dequeue_Only_High_Priority
-- (Low_Priority : Queue_Priority;
-- Element : out Queue_Interfaces.Element_Type) when True
-- is
-- begin
-- null;
-- end Dequeue_Only_High_Priority;
--------------
-- Enqueue --
--------------
entry Enqueue (New_Item : Queue_Interfaces.Element_Type)
when List.Length < Capacity
is
begin
List.Enqueue (New_Item);
end Enqueue;
---------------
-- Peak_Use --
---------------
function Peak_Use return Count_Type is
begin
return List.Max_Length;
end Peak_Use;
end Queue;
end Ada.Containers.Bounded_Priority_Queues;
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ADA.CONTAINERS.BOUNDED_PRIORITY_QUEUES --
-- --
-- S p e c --
-- --
-- Copyright (C) 2004-2011, 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 --
-- apply solely to the contents of the part following the private keyword. --
-- --
-- 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- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- This unit was originally developed by Matthew J Heaney. --
------------------------------------------------------------------------------
with System;
with Ada.Containers.Synchronized_Queue_Interfaces;
with Ada.Containers.Bounded_Doubly_Linked_Lists;
generic
with package Queue_Interfaces is
new Ada.Containers.Synchronized_Queue_Interfaces (<>);
type Queue_Priority is private;
with function Get_Priority
(Element : Queue_Interfaces.Element_Type) return Queue_Priority is <>;
with function Before
(Left, Right : Queue_Priority) return Boolean is <>;
Default_Capacity : Count_Type;
Default_Ceiling : System.Any_Priority := System.Priority'Last;
package Ada.Containers.Bounded_Priority_Queues is
pragma Preelaborate;
package Implementation is
type List_Type (Capacity : Count_Type) is tagged limited private;
procedure Enqueue
(List : in out List_Type;
New_Item : Queue_Interfaces.Element_Type);
procedure Dequeue
(List : in out List_Type;
Element : out Queue_Interfaces.Element_Type);
function Length (List : List_Type) return Count_Type;
function Max_Length (List : List_Type) return Count_Type;
private
-- We need a better data structure here, such as a proper heap. ???
package List_Types is new Bounded_Doubly_Linked_Lists
(Element_Type => Queue_Interfaces.Element_Type,
"=" => Queue_Interfaces."=");
type List_Type (Capacity : Count_Type) is tagged limited record
Container : List_Types.List (Capacity);
Max_Length : Count_Type := 0;
end record;
end Implementation;
protected type Queue
(Capacity : Count_Type := Default_Capacity;
Ceiling : System.Any_Priority := Default_Ceiling)
-- ???
-- with Priority => Ceiling is new Queue_Interfaces.Queue with
is new Queue_Interfaces.Queue with
overriding
entry Enqueue (New_Item : Queue_Interfaces.Element_Type);
overriding
entry Dequeue (Element : out Queue_Interfaces.Element_Type);
-- ???
-- not overriding
-- entry Dequeue_Only_High_Priority
-- (Low_Priority : Queue_Priority;
-- Element : out Queue_Interfaces.Element_Type);
overriding
function Current_Use return Count_Type;
overriding
function Peak_Use return Count_Type;
private
List : Implementation.List_Type (Capacity);
end Queue;
end Ada.Containers.Bounded_Priority_Queues;
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ADA.CONTAINERS.BOUNDED_SYNCHRONIZED_QUEUES --
-- --
-- B o d y --
-- --
-- Copyright (C) 2004-2011, 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- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- This unit was originally developed by Matthew J Heaney. --
------------------------------------------------------------------------------
package body Ada.Containers.Bounded_Synchronized_Queues is
package body Implementation is
-------------
-- Dequeue --
-------------
procedure Dequeue
(List : in out List_Type;
Element : out Queue_Interfaces.Element_Type)
is
EE : Element_Array renames List.Elements;
begin
Element := EE (List.First);
List.Length := List.Length - 1;
if List.Length = 0 then
List.First := 0;
List.Last := 0;
elsif List.First <= List.Last then
List.First := List.First + 1;
else
List.First := List.First + 1;
if List.First > List.Capacity then
List.First := 1;
end if;
end if;
end Dequeue;
-------------
-- Enqueue --
-------------
procedure Enqueue
(List : in out List_Type;
New_Item : Queue_Interfaces.Element_Type)
is
begin
if List.Length >= List.Capacity then
raise Capacity_Error with "No capacity for insertion";
end if;
if List.Length = 0 then
List.Elements (1) := New_Item;
List.First := 1;
List.Last := 1;
elsif List.First <= List.Last then
if List.Last < List.Capacity then
List.Elements (List.Last + 1) := New_Item;
List.Last := List.Last + 1;
else
List.Elements (1) := New_Item;
List.Last := 1;
end if;
else
List.Elements (List.Last + 1) := New_Item;
List.Last := List.Last + 1;
end if;
List.Length := List.Length + 1;
if List.Length > List.Max_Length then
List.Max_Length := List.Length;
end if;
end Enqueue;
------------
-- Length --
------------
function Length (List : List_Type) return Count_Type is
begin
return List.Length;
end Length;
----------------
-- Max_Length --
----------------
function Max_Length (List : List_Type) return Count_Type is
begin
return List.Max_Length;
end Max_Length;
end Implementation;
protected body Queue is
-----------------
-- Current_Use --
-----------------
function Current_Use return Count_Type is
begin
return List.Length;
end Current_Use;
-------------
-- Dequeue --
-------------
entry Dequeue (Element : out Queue_Interfaces.Element_Type)
when List.Length > 0
is
begin
List.Dequeue (Element);
end Dequeue;
-------------
-- Enqueue --
-------------
entry Enqueue (New_Item : Queue_Interfaces.Element_Type)
when List.Length < Capacity
is
begin
List.Enqueue (New_Item);
end Enqueue;
--------------
-- Peak_Use --
--------------
function Peak_Use return Count_Type is
begin
return List.Max_Length;
end Peak_Use;
end Queue;
end Ada.Containers.Bounded_Synchronized_Queues;
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ADA.CONTAINERS.BOUNDED_SYNCHRONIZED_QUEUES --
-- --
-- S p e c --
-- --
-- Copyright (C) 2004-2011, 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 --
-- apply solely to the contents of the part following the private keyword. --
-- --
-- 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- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- This unit was originally developed by Matthew J Heaney. --
------------------------------------------------------------------------------
with System;
with Ada.Containers.Synchronized_Queue_Interfaces;
generic
with package Queue_Interfaces is
new Ada.Containers.Synchronized_Queue_Interfaces (<>);
Default_Capacity : Count_Type;
Default_Ceiling : System.Any_Priority := System.Priority'Last;
package Ada.Containers.Bounded_Synchronized_Queues is
pragma Preelaborate;
package Implementation is
type List_Type (Capacity : Count_Type) is tagged limited private;
procedure Enqueue
(List : in out List_Type;
New_Item : Queue_Interfaces.Element_Type);
procedure Dequeue
(List : in out List_Type;
Element : out Queue_Interfaces.Element_Type);
function Length (List : List_Type) return Count_Type;
function Max_Length (List : List_Type) return Count_Type;
private
-- Need proper heap data structure here ???
type Element_Array is
array (Count_Type range <>) of Queue_Interfaces.Element_Type;
type List_Type (Capacity : Count_Type) is tagged limited record
First, Last : Count_Type := 0;
Length : Count_Type := 0;
Max_Length : Count_Type := 0;
Elements : Element_Array (1 .. Capacity) := (others => <>);
end record;
end Implementation;
protected type Queue
(Capacity : Count_Type := Default_Capacity;
Ceiling : System.Any_Priority := Default_Ceiling)
-- ???
-- with Priority => Ceiling is new Queue_Interfaces.Queue with
is new Queue_Interfaces.Queue with
overriding
entry Enqueue (New_Item : Queue_Interfaces.Element_Type);
overriding
entry Dequeue (Element : out Queue_Interfaces.Element_Type);
overriding
function Current_Use return Count_Type;
overriding
function Peak_Use return Count_Type;
private
List : Implementation.List_Type (Capacity);
end Queue;
end Ada.Containers.Bounded_Synchronized_Queues;
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ADA.CONTAINERS.SYNCHRONIZED_QUEUE_INTERFACES --
-- --
-- S p e c --
-- --
-- Copyright (C) 2004-2011, 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 --
-- apply solely to the contents of the part following the private keyword. --
-- --
-- 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- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- This unit was originally developed by Matthew J Heaney. --
------------------------------------------------------------------------------
generic
type Element_Type is private;
package Ada.Containers.Synchronized_Queue_Interfaces is
pragma Pure;
type Queue is synchronized interface;
procedure Enqueue
(Container : in out Queue;
New_Item : Element_Type) is abstract;
-- with Is_Synchronized => By_Entry; ???
procedure Dequeue
(Container : in out Queue;
Element : out Element_Type) is abstract;
-- with Is_Synchronized => By_Entry; ???
function Current_Use (Container : Queue) return Count_Type is abstract;
function Peak_Use (Container : Queue) return Count_Type is abstract;
end Ada.Containers.Synchronized_Queue_Interfaces;
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ADA.CONTAINERS.UNBOUNDED_PRIORITY_QUEUES --
-- --
-- B o d y --
-- --
-- Copyright (C) 2004-2011, 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- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- This unit was originally developed by Matthew J Heaney. --
------------------------------------------------------------------------------
with Ada.Unchecked_Deallocation;
package body Ada.Containers.Unbounded_Priority_Queues is
package body Implementation is
-----------------------
-- Local Subprograms --
-----------------------
procedure Free is
new Ada.Unchecked_Deallocation (Node_Type, Node_Access);
-------------
-- Dequeue --
-------------
procedure Dequeue
(List : in out List_Type;
Element : out Queue_Interfaces.Element_Type)
is
X : Node_Access;
begin
Element := List.First.Element;
X := List.First;
List.First := List.First.Next;
if List.First = null then
List.Last := null;
end if;
List.Length := List.Length - 1;
Free (X);
end Dequeue;
-------------
-- Enqueue --
-------------
procedure Enqueue
(List : in out List_Type;
New_Item : Queue_Interfaces.Element_Type)
is
P : constant Queue_Priority := Get_Priority (New_Item);
Node : Node_Access;
Prev : Node_Access;
begin
Node := new Node_Type'(New_Item, null);
if List.First = null then
List.First := Node;
List.Last := List.First;
else
Prev := List.First;
if Before (P, Get_Priority (Prev.Element)) then
Node.Next := List.First;
List.First := Node;
else
while Prev.Next /= null loop
if Before (P, Get_Priority (Prev.Next.Element)) then
Node.Next := Prev.Next;
Prev.Next := Node;
exit;
end if;
Prev := Prev.Next;
end loop;
if Prev.Next = null then
List.Last.Next := Node;
List.Last := Node;
end if;
end if;
end if;
List.Length := List.Length + 1;
if List.Length > List.Max_Length then
List.Max_Length := List.Length;
end if;
end Enqueue;
--------------
-- Finalize --
--------------
procedure Finalize (List : in out List_Type) is
X : Node_Access;
begin
while List.First /= null loop
X := List.First;
List.First := List.First.Next;
Free (X);
end loop;
end Finalize;
------------------------
-- Have_High_Priority --
------------------------
-- ???
-- function Have_High_Priority
-- (List : List_Type;
-- Low_Priority : Queue_Priority) return Boolean
-- is
-- begin
-- if List.Length = 0 then
-- return False;
-- end if;
-- return Before (Get_Priority (List.First.Element), Low_Priority);
-- end Have_High_Priority;
------------
-- Length --
------------
function Length (List : List_Type) return Count_Type is
begin
return List.Length;
end Length;
----------------
-- Max_Length --
----------------
function Max_Length (List : List_Type) return Count_Type is
begin
return List.Max_Length;
end Max_Length;
end Implementation;
protected body Queue is
-----------------
-- Current_Use --
-----------------
function Current_Use return Count_Type is
begin
return List.Length;
end Current_Use;
-------------
-- Dequeue --
-------------
entry Dequeue (Element : out Queue_Interfaces.Element_Type)
when List.Length > 0
is
begin
List.Dequeue (Element);
end Dequeue;
-- ???
-- entry Dequeue_Only_High_Priority
-- (Low_Priority : Queue_Priority;
-- Element : out Queue_Interfaces.Element_Type) when True
-- is
-- begin
-- null;
-- end Dequeue_Only_High_Priority;
-------------
-- Enqueue --
-------------
entry Enqueue (New_Item : Queue_Interfaces.Element_Type) when True is
begin
List.Enqueue (New_Item);
end Enqueue;
--------------
-- Peak_Use --
--------------
function Peak_Use return Count_Type is
begin
return List.Max_Length;
end Peak_Use;
end Queue;
end Ada.Containers.Unbounded_Priority_Queues;
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ADA.CONTAINERS.UNBOUNDED_PRIORITY_QUEUES --
-- --
-- S p e c --
-- --
-- Copyright (C) 2004-2011, 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 --
-- apply solely to the contents of the part following the private keyword. --
-- --
-- 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- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- This unit was originally developed by Matthew J Heaney. --
------------------------------------------------------------------------------
with System;
with Ada.Containers.Synchronized_Queue_Interfaces;
with Ada.Finalization;
generic
with package Queue_Interfaces is
new Ada.Containers.Synchronized_Queue_Interfaces (<>);
type Queue_Priority is private;
with function Get_Priority
(Element : Queue_Interfaces.Element_Type) return Queue_Priority is <>;
with function Before
(Left, Right : Queue_Priority) return Boolean is <>;
Default_Ceiling : System.Any_Priority := System.Priority'Last;
package Ada.Containers.Unbounded_Priority_Queues is
pragma Preelaborate;
package Implementation is
type List_Type is tagged limited private;
procedure Enqueue
(List : in out List_Type;
New_Item : Queue_Interfaces.Element_Type);
procedure Dequeue
(List : in out List_Type;
Element : out Queue_Interfaces.Element_Type);
function Length (List : List_Type) return Count_Type;
function Max_Length (List : List_Type) return Count_Type;
private
type Node_Type;
type Node_Access is access Node_Type;
type Node_Type is limited record
Element : Queue_Interfaces.Element_Type;
Next : Node_Access;
end record;
type List_Type is new Ada.Finalization.Limited_Controlled with record
First, Last : Node_Access;
Length : Count_Type := 0;
Max_Length : Count_Type := 0;
end record;
overriding
procedure Finalize (List : in out List_Type);
-- ???
-- not overriding
-- function Have_High_Priority
-- (List : List_Type;
-- Low_Priority : Queue_Priority) return Boolean;
end Implementation;
protected type Queue (Ceiling : System.Any_Priority := Default_Ceiling)
-- ???
-- with Priority => Ceiling is new Queue_Interfaces.Queue with
is new Queue_Interfaces.Queue with
overriding
entry Enqueue (New_Item : Queue_Interfaces.Element_Type);
overriding
entry Dequeue (Element : out Queue_Interfaces.Element_Type);
-- ???
-- not overriding
-- entry Dequeue_Only_High_Priority
-- (Low_Priority : Queue_Priority;
-- Element : out Queue_Interfaces.Element_Type);
overriding
function Current_Use return Count_Type;
overriding
function Peak_Use return Count_Type;
private
List : Implementation.List_Type;
end Queue;
end Ada.Containers.Unbounded_Priority_Queues;
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ADA.CONTAINERS.UNBOUNDED_SYNCHRONIZED_QUEUES --
-- --
-- B o d y --
-- --
-- Copyright (C) 2004-2011, 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- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- This unit was originally developed by Matthew J Heaney. --
------------------------------------------------------------------------------
with Ada.Unchecked_Deallocation;
package body Ada.Containers.Unbounded_Synchronized_Queues is
package body Implementation is
-----------------------
-- Local Subprograms --
-----------------------
procedure Free is
new Ada.Unchecked_Deallocation (Node_Type, Node_Access);
-------------
-- Dequeue --
-------------
procedure Dequeue
(List : in out List_Type;
Element : out Queue_Interfaces.Element_Type)
is
X : Node_Access;
begin
Element := List.First.Element;
X := List.First;
List.First := List.First.Next;
if List.First = null then
List.Last := null;
end if;
List.Length := List.Length - 1;
Free (X);
end Dequeue;
-------------
-- Enqueue --
-------------
procedure Enqueue
(List : in out List_Type;
New_Item : Queue_Interfaces.Element_Type)
is
Node : Node_Access;
begin
Node := new Node_Type'(New_Item, null);
if List.First = null then
List.First := Node;
List.Last := List.First;
else
List.Last.Next := Node;
List.Last := Node;
end if;
List.Length := List.Length + 1;
if List.Length > List.Max_Length then
List.Max_Length := List.Length;
end if;
end Enqueue;
--------------
-- Finalize --
--------------
procedure Finalize (List : in out List_Type) is
X : Node_Access;
begin
while List.First /= null loop
X := List.First;
List.First := List.First.Next;
Free (X);
end loop;
end Finalize;
------------
-- Length --
------------
function Length (List : List_Type) return Count_Type is
begin
return List.Length;
end Length;
----------------
-- Max_Length --
----------------
function Max_Length (List : List_Type) return Count_Type is
begin
return List.Max_Length;
end Max_Length;
end Implementation;
protected body Queue is
-----------------
-- Current_Use --
-----------------
function Current_Use return Count_Type is
begin
return List.Length;
end Current_Use;
-------------
-- Dequeue --
-------------
entry Dequeue (Element : out Queue_Interfaces.Element_Type)
when List.Length > 0
is
begin
List.Dequeue (Element);
end Dequeue;
-------------
-- Enqueue --
-------------
entry Enqueue (New_Item : Queue_Interfaces.Element_Type) when True is
begin
List.Enqueue (New_Item);
end Enqueue;
--------------
-- Peak_Use --
--------------
function Peak_Use return Count_Type is
begin
return List.Max_Length;
end Peak_Use;
end Queue;
end Ada.Containers.Unbounded_Synchronized_Queues;
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ADA.CONTAINERS.UNBOUNDED_SYNCHRONIZED_QUEUES --
-- --
-- S p e c --
-- --
-- Copyright (C) 2004-2011, 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 --
-- apply solely to the contents of the part following the private keyword. --
-- --
-- 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- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- This unit was originally developed by Matthew J Heaney. --
------------------------------------------------------------------------------
with System;
with Ada.Containers.Synchronized_Queue_Interfaces;
with Ada.Finalization;
generic
with package Queue_Interfaces is
new Ada.Containers.Synchronized_Queue_Interfaces (<>);
Default_Ceiling : System.Any_Priority := System.Priority'Last;
package Ada.Containers.Unbounded_Synchronized_Queues is
pragma Preelaborate;
package Implementation is
type List_Type is tagged limited private;
procedure Enqueue
(List : in out List_Type;
New_Item : Queue_Interfaces.Element_Type);
procedure Dequeue
(List : in out List_Type;
Element : out Queue_Interfaces.Element_Type);
function Length (List : List_Type) return Count_Type;
function Max_Length (List : List_Type) return Count_Type;
private
type Node_Type;
type Node_Access is access Node_Type;
type Node_Type is limited record
Element : Queue_Interfaces.Element_Type;
Next : Node_Access;
end record;
type List_Type is new Ada.Finalization.Limited_Controlled with record
First, Last : Node_Access;
Length : Count_Type := 0;
Max_Length : Count_Type := 0;
end record;
overriding
procedure Finalize (List : in out List_Type);
end Implementation;
protected type Queue (Ceiling : System.Any_Priority := Default_Ceiling)
-- ???
-- with Priority => Ceiling is new Queue_Interfaces.Queue with
is new Queue_Interfaces.Queue with
overriding
entry Enqueue (New_Item : Queue_Interfaces.Element_Type);
overriding
entry Dequeue (Element : out Queue_Interfaces.Element_Type);
overriding
function Current_Use return Count_Type;
overriding
function Peak_Use return Count_Type;
private
List : Implementation.List_Type;
end Queue;
end Ada.Containers.Unbounded_Synchronized_Queues;
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
with Ada.Calendar; use Ada.Calendar; with Ada.Calendar; use Ada.Calendar;
with Ada.Calendar.Formatting; use Ada.Calendar.Formatting; with Ada.Calendar.Formatting; use Ada.Calendar.Formatting;
with Ada.Directories.Validity; use Ada.Directories.Validity; with Ada.Directories.Validity; use Ada.Directories.Validity;
with Ada.Strings.Maps; use Ada; use Ada.Strings.Maps; with Ada.Strings.Maps; use Ada.Strings.Maps;
with Ada.Strings.Fixed; with Ada.Strings.Fixed;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Unchecked_Conversion; with Ada.Unchecked_Conversion;
...@@ -451,14 +451,15 @@ package body Ada.Directories is ...@@ -451,14 +451,15 @@ package body Ada.Directories is
New_Dir (1 .. New_Directory'Length) := New_Directory; New_Dir (1 .. New_Directory'Length) := New_Directory;
New_Dir (New_Dir'Last) := Directory_Separator; New_Dir (New_Dir'Last) := Directory_Separator;
-- If host is windows, and the first two characters are directory
-- separators, we have an UNC path. Skip it.
if Directory_Separator = '\' if Directory_Separator = '\'
and then New_Dir'Length > 2 and then New_Dir'Length > 2
and then Is_In (New_Dir (1), Dir_Seps) and then Is_In (New_Dir (1), Dir_Seps)
and then Is_In (New_Dir (2), Dir_Seps) and then Is_In (New_Dir (2), Dir_Seps)
then then
Start := 2; Start := 2;
-- If the first two characters are directory separators and host
-- is windows, we have an UNC path. Skip it.
loop loop
Start := Start + 1; Start := Start + 1;
exit when Start = New_Dir'Last exit when Start = New_Dir'Last
......
...@@ -63,6 +63,7 @@ package body Ada.Containers.Red_Black_Trees.Generic_Bounded_Operations is ...@@ -63,6 +63,7 @@ package body Ada.Containers.Red_Black_Trees.Generic_Bounded_Operations is
-- that the busy status (which monitors "cursor tampering") is set too; -- that the busy status (which monitors "cursor tampering") is set too;
-- this is a representation invariant. Thus if the busy bit is not set, -- this is a representation invariant. Thus if the busy bit is not set,
-- then the lock bit must not be set either. -- then the lock bit must not be set either.
pragma Assert (Tree.Lock = 0); pragma Assert (Tree.Lock = 0);
Tree.First := 0; Tree.First := 0;
......
...@@ -23,30 +23,30 @@ ...@@ -23,30 +23,30 @@
-- -- -- --
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
-- This package contains routines called when a fatal internal compiler -- This package contains routines called when a fatal internal compiler error
-- error is detected. Calls to these routines cause termination of the -- is detected. Calls to these routines cause termination of the current
-- current compilation with appropriate error output. -- compilation with appropriate error output.
with Atree; use Atree; with Atree; use Atree;
with Debug; use Debug; with Debug; use Debug;
with Errout; use Errout; with Errout; use Errout;
with Gnatvsn; use Gnatvsn; with Gnatvsn; use Gnatvsn;
with Lib; use Lib; with Lib; use Lib;
with Namet; use Namet; with Namet; use Namet;
with Opt; use Opt; with Opt; use Opt;
with Osint; use Osint; with Osint; use Osint;
with Output; use Output; with Output; use Output;
with Sinfo; use Sinfo; with Sinfo; use Sinfo;
with Sinput; use Sinput; with Sinput; use Sinput;
with Sprint; use Sprint; with Sprint; use Sprint;
with Sdefault; use Sdefault; with Sdefault; use Sdefault;
with System.OS_Lib; use System.OS_Lib; with Targparm; use Targparm;
with Targparm; use Targparm; with Treepr; use Treepr;
with Treepr; use Treepr; with Types; use Types;
with Types; use Types;
with Ada.Exceptions; use Ada.Exceptions; with Ada.Exceptions; use Ada.Exceptions;
with System.OS_Lib; use System.OS_Lib;
with System.Soft_Links; use System.Soft_Links; with System.Soft_Links; use System.Soft_Links;
package body Comperr is package body Comperr is
...@@ -147,6 +147,8 @@ package body Comperr is ...@@ -147,6 +147,8 @@ package body Comperr is
end if; end if;
end if; end if;
-- If we are in CodePeer mode, we must also delete SCIL files
if CodePeer_Mode then if CodePeer_Mode then
Delete_SCIL_Files; Delete_SCIL_Files;
end if; end if;
...@@ -439,6 +441,7 @@ package body Comperr is ...@@ -439,6 +441,7 @@ package body Comperr is
Main : Node_Id; Main : Node_Id;
Success : Boolean; Success : Boolean;
pragma Unreferenced (Success); pragma Unreferenced (Success);
begin begin
-- If parsing was not successful, no Main_Unit is available, so return -- If parsing was not successful, no Main_Unit is available, so return
-- immediately. -- immediately.
...@@ -458,7 +461,8 @@ package body Comperr is ...@@ -458,7 +461,8 @@ package body Comperr is
Get_Name_String (Chars (Defining_Unit_Name (Main))); Get_Name_String (Chars (Defining_Unit_Name (Main)));
end if; end if;
Delete_File ("SCIL/" & Name_Buffer (1 .. Name_Len) & ".scil", Success); Delete_File
("SCIL/" & Name_Buffer (1 .. Name_Len) & ".scil", Success);
Delete_File Delete_File
("SCIL/" & Name_Buffer (1 .. Name_Len) & "__body.scil", Success); ("SCIL/" & Name_Buffer (1 .. Name_Len) & "__body.scil", Success);
end Delete_SCIL_Files; end Delete_SCIL_Files;
......
...@@ -10851,7 +10851,7 @@ package body Exp_Ch9 is ...@@ -10851,7 +10851,7 @@ package body Exp_Ch9 is
then then
Append_To (Cdecls, Append_To (Cdecls,
Make_Component_Declaration (Loc, Make_Component_Declaration (Loc,
Defining_Identifier => Defining_Identifier =>
Make_Defining_Identifier (Loc, Name_uDispatching_Domain), Make_Defining_Identifier (Loc, Name_uDispatching_Domain),
Component_Definition => Component_Definition =>
...@@ -10861,13 +10861,14 @@ package body Exp_Ch9 is ...@@ -10861,13 +10861,14 @@ package body Exp_Ch9 is
New_Reference_To New_Reference_To
(RTE (RE_Dispatching_Domain_Access), Loc)), (RTE (RE_Dispatching_Domain_Access), Loc)),
Expression => Expression =>
Unchecked_Convert_To (RTE (RE_Dispatching_Domain_Access), Unchecked_Convert_To (RTE (RE_Dispatching_Domain_Access),
Relocate_Node ( Relocate_Node
Expression (First ( (Expression
Pragma_Argument_Associations ( (First
Find_Task_Or_Protected_Pragma (Pragma_Argument_Associations
(Taskdef, Name_Dispatching_Domain)))))))); (Find_Task_Or_Protected_Pragma
(Taskdef, Name_Dispatching_Domain))))))));
end if; end if;
Insert_After (Size_Decl, Rec_Decl); Insert_After (Size_Decl, Rec_Decl);
......
...@@ -10846,7 +10846,8 @@ package body Exp_Dist is ...@@ -10846,7 +10846,8 @@ package body Exp_Dist is
-- always force transmission as a 64-bit value. -- always force transmission as a 64-bit value.
if Is_RTE (FST, RE_Stream_Element_Offset) if Is_RTE (FST, RE_Stream_Element_Offset)
or else Is_RTE (FST, RE_Storage_Offset) or else
Is_RTE (FST, RE_Storage_Offset)
then then
return RTE (RE_Unsigned_64); return RTE (RE_Unsigned_64);
end if; end if;
......
...@@ -703,10 +703,10 @@ package body Exp_Pakd is ...@@ -703,10 +703,10 @@ package body Exp_Pakd is
-- array reference, reanalysis can produce spurious type errors when the -- array reference, reanalysis can produce spurious type errors when the
-- PAT type is replaced again with the original type of the array. Same -- PAT type is replaced again with the original type of the array. Same
-- for the case of a dereference. Ditto for function calls: expansion -- for the case of a dereference. Ditto for function calls: expansion
-- may introduce additional actuals which will trigger errors if call -- may introduce additional actuals which will trigger errors if call is
-- is reanalyzed. The following is correct and minimal, -- reanalyzed. The following is correct and minimal, but the handling of
-- but the handling of more complex packed expressions in actuals is -- more complex packed expressions in actuals is confused. Probably the
-- confused. Probably the problem only remains for actuals in calls. -- problem only remains for actuals in calls.
Set_Etype (Aexp, Packed_Array_Type (Act_ST)); Set_Etype (Aexp, Packed_Array_Type (Act_ST));
...@@ -714,8 +714,7 @@ package body Exp_Pakd is ...@@ -714,8 +714,7 @@ package body Exp_Pakd is
or else or else
(Nkind (Aexp) = N_Indexed_Component (Nkind (Aexp) = N_Indexed_Component
and then Is_Entity_Name (Prefix (Aexp))) and then Is_Entity_Name (Prefix (Aexp)))
or else Nkind (Aexp) = N_Explicit_Dereference or else Nkind_In (Aexp, N_Explicit_Dereference, N_Function_Call)
or else Nkind (Aexp) = N_Function_Call
then then
Set_Analyzed (Aexp); Set_Analyzed (Aexp);
end if; end if;
......
...@@ -29,7 +29,6 @@ with Exp_Util; use Exp_Util; ...@@ -29,7 +29,6 @@ with Exp_Util; use Exp_Util;
with Namet; use Namet; with Namet; use Namet;
with Nlists; use Nlists; with Nlists; use Nlists;
with Nmake; use Nmake; with Nmake; use Nmake;
with Opt; use Opt;
with Rtsfind; use Rtsfind; with Rtsfind; use Rtsfind;
with Sem_Aux; use Sem_Aux; with Sem_Aux; use Sem_Aux;
with Sem_Util; use Sem_Util; with Sem_Util; use Sem_Util;
...@@ -222,23 +221,11 @@ package body Exp_Strm is ...@@ -222,23 +221,11 @@ package body Exp_Strm is
Make_Identifier (Loc, Name_S), Make_Identifier (Loc, Name_S),
Make_Identifier (Loc, Name_V))); Make_Identifier (Loc, Name_V)));
if Ada_Version >= Ada_2005 then Stms := New_List (
Stms := New_List ( Make_Extended_Return_Statement (Loc,
Make_Extended_Return_Statement (Loc, Return_Object_Declarations => New_List (Odecl),
Return_Object_Declarations => New_List (Odecl), Handled_Statement_Sequence =>
Handled_Statement_Sequence => Make_Handled_Sequence_Of_Statements (Loc, New_List (Rstmt))));
Make_Handled_Sequence_Of_Statements (Loc, New_List (Rstmt))));
else
-- pragma Assert (not Is_Limited_Type (Typ));
-- Returning a local object, shouldn't happen in the case of a
-- limited type, but currently occurs in DSA stubs in Ada 95 mode???
Stms := New_List (
Odecl,
Rstmt,
Make_Simple_Return_Statement (Loc,
Expression => Make_Identifier (Loc, Name_V)));
end if;
Fnam := Fnam :=
Make_Defining_Identifier (Loc, Make_Defining_Identifier (Loc,
......
...@@ -1839,6 +1839,7 @@ package body Freeze is ...@@ -1839,6 +1839,7 @@ package body Freeze is
-- since the component type has to be frozen for us to know -- since the component type has to be frozen for us to know
-- if it is variable length. We omit this test in a generic -- if it is variable length. We omit this test in a generic
-- context, it will be applied at instantiation time. -- context, it will be applied at instantiation time.
-- We also omit this test in CodePeer mode, since we do not -- We also omit this test in CodePeer mode, since we do not
-- have sufficient info on size and representation clauses. -- have sufficient info on size and representation clauses.
......
...@@ -842,6 +842,8 @@ begin ...@@ -842,6 +842,8 @@ begin
Tree_Gen; Tree_Gen;
end if; end if;
-- In CodePeer mode we delete SCIL files if there is an error
if CodePeer_Mode then if CodePeer_Mode then
Comperr.Delete_SCIL_Files; Comperr.Delete_SCIL_Files;
end if; end if;
......
...@@ -519,6 +519,11 @@ package body Impunit is ...@@ -519,6 +519,11 @@ package body Impunit is
"a-comutr", -- Ada.Containers.Multiway_Trees "a-comutr", -- Ada.Containers.Multiway_Trees
"a-cimutr", -- Ada.Containers.Indefinite_Multiway_Trees "a-cimutr", -- Ada.Containers.Indefinite_Multiway_Trees
"a-cbmutr", -- Ada.Containers.Bounded_Multiway_Trees "a-cbmutr", -- Ada.Containers.Bounded_Multiway_Trees
"a-csquin", -- Ada.Containers.Synchronized_Queue_Interfaces
"a-cusyqu", -- Ada.Containers.Unbounded_Synchronized_Queues
"a-cuprqu", -- Ada.Containers.Unbounded_Priority_Queues
"a-cbsyqu", -- Ada.Containers.Bounded_Synchronized_Queues
"a-cbprqu", -- Ada.Containers.Bounded_Priority_Queues
"a-extiin", -- Ada.Execution_Time.Interrupts "a-extiin", -- Ada.Execution_Time.Interrupts
"a-iteint", -- Ada.Iterator_Interfaces "a-iteint", -- Ada.Iterator_Interfaces
"a-synbar", -- Ada.Synchronous_Barriers "a-synbar", -- Ada.Synchronous_Barriers
......
...@@ -39,19 +39,17 @@ begin ...@@ -39,19 +39,17 @@ begin
Start := F.From_Scope; Start := F.From_Scope;
Stop := F.To_Scope; Stop := F.To_Scope;
if Start <= Stop then Write_Info_Initiate ('F');
Write_Info_Initiate ('F'); Write_Info_Char ('D');
Write_Info_Char ('D'); Write_Info_Char (' ');
Write_Info_Char (' '); Write_Info_Nat (F.File_Num);
Write_Info_Nat (F.File_Num); Write_Info_Char (' ');
Write_Info_Char (' ');
for N in F.File_Name'Range loop
for N in F.File_Name'Range loop Write_Info_Char (F.File_Name (N));
Write_Info_Char (F.File_Name (N)); end loop;
end loop;
Write_Info_Terminate;
Write_Info_Terminate;
end if;
-- Loop through scope entries for this file -- Loop through scope entries for this file
......
...@@ -822,10 +822,11 @@ package body System.Task_Primitives.Operations is ...@@ -822,10 +822,11 @@ package body System.Task_Primitives.Operations is
-- task, and the CPU value is not contained within the range of -- task, and the CPU value is not contained within the range of
-- processors for the domain. -- processors for the domain.
if T.Common.Domain /= null and then if T.Common.Domain /= null
T.Common.Base_CPU /= System.Multiprocessors.Not_A_Specific_CPU and then and then T.Common.Base_CPU /= System.Multiprocessors.Not_A_Specific_CPU
(T.Common.Base_CPU not in T.Common.Domain'Range and then
or else not T.Common.Domain (T.Common.Base_CPU)) (T.Common.Base_CPU not in T.Common.Domain'Range
or else not T.Common.Domain (T.Common.Base_CPU))
then then
Succeeded := False; Succeeded := False;
return; return;
......
...@@ -902,10 +902,11 @@ package body System.Task_Primitives.Operations is ...@@ -902,10 +902,11 @@ package body System.Task_Primitives.Operations is
-- task, and the CPU value is not contained within the range of -- task, and the CPU value is not contained within the range of
-- processors for the domain. -- processors for the domain.
if T.Common.Domain /= null and then if T.Common.Domain /= null
T.Common.Base_CPU /= System.Multiprocessors.Not_A_Specific_CPU and then and then T.Common.Base_CPU /= System.Multiprocessors.Not_A_Specific_CPU
(T.Common.Base_CPU not in T.Common.Domain'Range and then
or else not T.Common.Domain (T.Common.Base_CPU)) (T.Common.Base_CPU not in T.Common.Domain'Range
or else not T.Common.Domain (T.Common.Base_CPU))
then then
Succeeded := False; Succeeded := False;
return; return;
......
...@@ -981,10 +981,11 @@ package body System.Task_Primitives.Operations is ...@@ -981,10 +981,11 @@ package body System.Task_Primitives.Operations is
-- task, and the CPU value is not contained within the range of -- task, and the CPU value is not contained within the range of
-- processors for the domain. -- processors for the domain.
if T.Common.Domain /= null and then if T.Common.Domain /= null
T.Common.Base_CPU /= System.Multiprocessors.Not_A_Specific_CPU and then and then T.Common.Base_CPU /= System.Multiprocessors.Not_A_Specific_CPU
(T.Common.Base_CPU not in T.Common.Domain'Range and then
or else not T.Common.Domain (T.Common.Base_CPU)) (T.Common.Base_CPU not in T.Common.Domain'Range
or else not T.Common.Domain (T.Common.Base_CPU))
then then
Succeeded := False; Succeeded := False;
return; return;
......
...@@ -897,10 +897,11 @@ package body System.Task_Primitives.Operations is ...@@ -897,10 +897,11 @@ package body System.Task_Primitives.Operations is
-- task, and the CPU value is not contained within the range of -- task, and the CPU value is not contained within the range of
-- processors for the domain. -- processors for the domain.
if T.Common.Domain /= null and then if T.Common.Domain /= null
T.Common.Base_CPU /= System.Multiprocessors.Not_A_Specific_CPU and then and then T.Common.Base_CPU /= System.Multiprocessors.Not_A_Specific_CPU
(T.Common.Base_CPU not in T.Common.Domain'Range and then
or else not T.Common.Domain (T.Common.Base_CPU)) (T.Common.Base_CPU not in T.Common.Domain'Range
or else not T.Common.Domain (T.Common.Base_CPU))
then then
Succeeded := False; Succeeded := False;
return; return;
......
...@@ -1052,6 +1052,7 @@ package body Sem_Aggr is ...@@ -1052,6 +1052,7 @@ package body Sem_Aggr is
end if; end if;
-- Ada 2005 (AI-287): Limited aggregates allowed -- Ada 2005 (AI-287): Limited aggregates allowed
-- In an instance, ignore aggregate subcomponents tnat may be limited, -- In an instance, ignore aggregate subcomponents tnat may be limited,
-- because they originate in view conflicts. If the original aggregate -- because they originate in view conflicts. If the original aggregate
-- is legal and the actuals are legal, the aggregate itself is legal. -- is legal and the actuals are legal, the aggregate itself is legal.
......
...@@ -12745,7 +12745,6 @@ package body Sem_Ch12 is ...@@ -12745,7 +12745,6 @@ package body Sem_Ch12 is
if Has_Aspects (N) then if Has_Aspects (N) then
declare declare
Aspect : Node_Id; Aspect : Node_Id;
begin begin
Aspect := First (Aspect_Specifications (N)); Aspect := First (Aspect_Specifications (N));
while Present (Aspect) loop while Present (Aspect) loop
......
...@@ -2869,7 +2869,7 @@ package body Sem_Ch3 is ...@@ -2869,7 +2869,7 @@ package body Sem_Ch3 is
-- 2. Those generated by the Expression -- 2. Those generated by the Expression
-- 3. Those used to constrain the Object Definition with the -- 3. Those used to constrain the Object Definition with the
-- expression constraints when the definition is unconstrained -- expression constraints when the definition is unconstrained.
-- They must be generated in this order to avoid order of elaboration -- They must be generated in this order to avoid order of elaboration
-- issues. Thus the first step (after entering the name) is to analyze -- issues. Thus the first step (after entering the name) is to analyze
...@@ -2880,6 +2880,7 @@ package body Sem_Ch3 is ...@@ -2880,6 +2880,7 @@ package body Sem_Ch3 is
if Present (Prev_Entity) if Present (Prev_Entity)
and then and then
-- If the homograph is an implicit subprogram, it is overridden -- If the homograph is an implicit subprogram, it is overridden
-- by the current declaration. -- by the current declaration.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment