From: Arnaud Charlet Date: Tue, 27 May 2008 11:55:29 +0000 (+0200) Subject: Replace address clause by unrestricted_access, simpler and compatible with .NET. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3aa62371fc687f7075e7f61ca167788ae48c6bee;p=gcc.git Replace address clause by unrestricted_access, simpler and compatible with .NET. From-SVN: r136018 --- diff --git a/gcc/ada/a-direio.adb b/gcc/ada/a-direio.adb index 69476696a6c..9d315c88c5b 100644 --- a/gcc/ada/a-direio.adb +++ b/gcc/ada/a-direio.adb @@ -73,11 +73,8 @@ package body Ada.Direct_IO is ----------- procedure Close (File : in out File_Type) is - AFCB : aliased AP; - for AFCB'Address use File'Address; - pragma Import (Ada, AFCB); begin - FIO.Close (AFCB'Access); + FIO.Close (AP (File)'Unrestricted_Access); end Close; ------------ @@ -100,11 +97,8 @@ package body Ada.Direct_IO is ------------ procedure Delete (File : in out File_Type) is - AFCB : aliased AP; - for AFCB'Address use File'Address; - pragma Import (Ada, AFCB); begin - FIO.Delete (AFCB'Access); + FIO.Delete (AP (File)'Unrestricted_Access); end Delete; ----------------- diff --git a/gcc/ada/a-sequio.adb b/gcc/ada/a-sequio.adb index 8624ee76c05..0c80b4062a7 100644 --- a/gcc/ada/a-sequio.adb +++ b/gcc/ada/a-sequio.adb @@ -66,11 +66,8 @@ package body Ada.Sequential_IO is ----------- procedure Close (File : in out File_Type) is - AFCB : aliased AP; - for AFCB'Address use File'Address; - pragma Import (Ada, AFCB); begin - FIO.Close (AFCB'Access); + FIO.Close (AP (File)'Unrestricted_Access); end Close; ------------ @@ -92,11 +89,8 @@ package body Ada.Sequential_IO is ------------ procedure Delete (File : in out File_Type) is - AFCB : aliased AP; - for AFCB'Address use File'Address; - pragma Import (Ada, AFCB); begin - FIO.Delete (AFCB'Access); + FIO.Delete (AP (File)'Unrestricted_Access); end Delete; ----------------- @@ -245,19 +239,13 @@ package body Ada.Sequential_IO is ----------- procedure Reset (File : in out File_Type; Mode : File_Mode) is - AFCB : aliased AP; - for AFCB'Address use File'Address; - pragma Import (Ada, AFCB); begin - FIO.Reset (AFCB'Access, To_FCB (Mode)); + FIO.Reset (AP (File)'Unrestricted_Access, To_FCB (Mode)); end Reset; procedure Reset (File : in out File_Type) is - AFCB : aliased AP; - for AFCB'Address use File'Address; - pragma Import (Ada, AFCB); begin - FIO.Reset (AFCB'Access); + FIO.Reset (AP (File)'Unrestricted_Access); end Reset; -----------