]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie interfaces.
authorEmmanuel Briot <briot@adacore.com>
Mon, 15 Oct 2007 13:57:46 +0000 (15:57 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Mon, 15 Oct 2007 13:57:46 +0000 (15:57 +0200)
2007-10-15  Emmanuel Briot  <briot@adacore.com>

* xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
interfaces.

* xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
type, for dispatching calls.

From-SVN: r129340

gcc/ada/xr_tabls.adb
gcc/ada/xref_lib.adb

index 30993eed07b6d83f6b500b20c615f7989c9b151d..3456bac9c2b1f9d6b2de7de6227bb8ef98f9b281 100644 (file)
@@ -395,7 +395,7 @@ package body Xr_Tabls is
 
    begin
       case Ref_Type is
-         when 'b' | 'c' | 'm' | 'r' | 'i' | ' ' | 'x' =>
+         when 'b' | 'c' | 'm' | 'r' | 'R' | 'i' | ' ' | 'x' =>
             null;
 
          when 'l' | 'w' =>
@@ -458,7 +458,7 @@ package body Xr_Tabls is
             New_Ref.Next          := Declaration.Body_Ref;
             Declaration.Body_Ref  := New_Ref;
 
-         when 'r' | 'i' | 'l' | ' ' | 'x' | 'w' =>
+         when 'r' | 'R' | 'i' | 'l' | ' ' | 'x' | 'w' =>
             New_Ref.Next          := Declaration.Ref_Ref;
             Declaration.Ref_Ref   := New_Ref;
 
index 2c2589b168b110624939a122184990dd522f3f07..7f22dce6f8961e8e98d78035ef56aad296c215e7 100644 (file)
@@ -522,6 +522,7 @@ package body Xref_Lib is
          when 'd' => return Param_String & "decimal object";
          when 'e' => return Param_String & "enumeration object";
          when 'f' => return Param_String & "float object";
+         when 'h' => return "interface";
          when 'i' => return Param_String & "integer object";
          when 'm' => return Param_String & "modular object";
          when 'o' => return Param_String & "fixed object";
@@ -669,6 +670,7 @@ package body Xref_Lib is
       Dependencies : Boolean := False)
    is
       Ali : String_Access renames File.Buffer;
+      pragma Warnings (Off, Ali);
 
    begin
       if File.Buffer /= null then
@@ -1038,6 +1040,8 @@ package body Xref_Lib is
       elsif Ali (Ptr) = '=' then
          declare
             P_Line, P_Column : Natural;
+            pragma Warnings (Off, P_Line);
+            pragma Warnings (Off, P_Column);
 
          begin
             Ptr := Ptr + 1;