OSDN Git Service

* gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Just copy
[pf3gnuchains/gcc-fork.git] / gcc / ada / g-debuti.adb
index 1c1e29d..20731fb 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---           Copyright (C) 1997-2003 Ada Core Technologies, Inc.            --
+--                     Copyright (C) 1997-2009, AdaCore                     --
 --                                                                          --
 -- 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- --
@@ -16,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, --
@@ -36,22 +36,25 @@ with System.Storage_Elements; use System.Storage_Elements;
 
 package body GNAT.Debug_Utilities is
 
-      H : constant array (0 .. 15) of Character := "0123456789ABCDEF";
-      --  Table of hex digits
+   H : constant array (0 .. 15) of Character := "0123456789ABCDEF";
+   --  Table of hex digits
 
-   --------------------------
-   -- Image (address case) --
-   --------------------------
+   -----------
+   -- Image --
+   -----------
+
+   --  Address case
 
    function Image (A : Address) return Image_String is
       S : Image_String;
-      P : Natural := Address_Image_Length - 1;
-      N : Integer_Address := To_Integer (A);
+      P : Natural;
+      N : Integer_Address;
       U : Natural := 0;
 
    begin
       S (S'Last) := '#';
-
+      P := Address_Image_Length - 1;
+      N := To_Integer (A);
       while P > 3 loop
          if U = 4 then
             S (P) := '_';
@@ -71,9 +74,11 @@ package body GNAT.Debug_Utilities is
       return S;
    end Image;
 
-   -------------------------
-   -- Image (string case) --
-   -------------------------
+   -----------
+   -- Image --
+   -----------
+
+   --  String case
 
    function Image (S : String) return String is
       W : String (1 .. 2 * S'Length + 2);
@@ -149,7 +154,7 @@ package body GNAT.Debug_Utilities is
 
          --  Ada form based literal
 
-         elsif C = '#' or C = ':' then
+         elsif C = '#' or else C = ':' then
             Base := Res;
             Res  := 0;