OSDN Git Service

2007-04-20 Robert Dewar <dewar@adacore.com>
[pf3gnuchains/gcc-fork.git] / gcc / ada / s-pooglo.adb
index 11f265e..ca661d6 100644 (file)
@@ -6,9 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---                            $Revision: 1.9 $
---                                                                          --
---          Copyright (C) 1992-2001, Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-2006, 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- --
@@ -18,8 +16,8 @@
 -- or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License --
 -- for  more details.  You should have  received  a copy of the GNU General --
 -- Public License  distributed with GNAT;  see file COPYING.  If not, write --
--- to  the Free Software Foundation,  59 Temple Place - Suite 330,  Boston, --
--- MA 02111-1307, USA.                                                      --
+-- to  the  Free Software Foundation,  51  Franklin  Street,  Fifth  Floor, --
+-- Boston, MA 02110-1301, USA.                                              --
 --                                                                          --
 -- As a special exception,  if other files  instantiate  generics from this --
 -- unit, or you link  this unit with other files  to produce an executable, --
 -- covered by the  GNU Public License.                                      --
 --                                                                          --
 -- GNAT was originally developed  by the GNAT team at  New York University. --
--- It is now maintained by Ada Core Technologies Inc (http://www.gnat.com). --
+-- Extensive contributions were provided by Ada Core Technologies Inc.      --
 --                                                                          --
 ------------------------------------------------------------------------------
 
 with System.Storage_Pools;    use System.Storage_Pools;
-with System.Storage_Elements;
 with System.Memory;
 
 package body System.Pool_Global is
@@ -51,7 +48,11 @@ package body System.Pool_Global is
       Storage_Size : SSE.Storage_Count;
       Alignment    : SSE.Storage_Count)
    is
+      pragma Warnings (Off, Pool);
+      pragma Warnings (Off, Alignment);
+
       Allocated : System.Address;
+
    begin
       Allocated := Memory.Alloc (Memory.size_t (Storage_Size));
 
@@ -74,7 +75,12 @@ package body System.Pool_Global is
      (Pool         : in out Unbounded_No_Reclaim_Pool;
       Address      : System.Address;
       Storage_Size : SSE.Storage_Count;
-      Alignment    : SSE.Storage_Count) is
+      Alignment    : SSE.Storage_Count)
+   is
+      pragma Warnings (Off, Pool);
+      pragma Warnings (Off, Storage_Size);
+      pragma Warnings (Off, Alignment);
+
    begin
       Memory.Free (Address);
    end Deallocate;
@@ -87,6 +93,8 @@ package body System.Pool_Global is
      (Pool  : Unbounded_No_Reclaim_Pool)
       return  SSE.Storage_Count
    is
+      pragma Warnings (Off, Pool);
+
    begin
       --  Intuitively, should return System.Memory_Size. But on Sun/Alsys,
       --  System.Memory_Size > System.Max_Int, which means all you can do with