diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-08-01 14:36:39 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-08-01 14:36:39 +0000 |
commit | 0f76db84872ef5329f584e4d60d1cfadddcd0a57 (patch) | |
tree | a8932a4f652039be98ba53557540e75fb93afa61 /gcc/ada/i-cstrin.adb | |
parent | 6fe95394431a776210848049e0f1e8dcbf63003e (diff) | |
download | ppe42-gcc-0f76db84872ef5329f584e4d60d1cfadddcd0a57.tar.gz ppe42-gcc-0f76db84872ef5329f584e4d60d1cfadddcd0a57.zip |
2011-08-01 Javier Miranda <miranda@adacore.com>
* sem_util.adb (Abstract_Interface_List): Complete condition when
processing private type declarations to avoid reading unavailable
attribute.
(Is_Synchronized_Tagged_Type): Complete condition when processing
private extension declaration nodes to avoid reading unavailable
attribute.
2011-08-01 Thomas Quinot <quinot@adacore.com>
* sem_ch3.adb: Minor reformatting.
2011-08-01 Thomas Quinot <quinot@adacore.com>
* s-parame-ae653.ads, s-parame-vms-alpha.ads, s-parame-hpux.ads,
i-cpoint.adb, i-cstrin.adb, i-cpoint.ads, i-cstrin.ads,
s-parame-vms-ia64.ads, s-parame.ads, i-c.ads, s-parame-vxworks.ads,
s-parame-vms-restrict.ads: Remove duplicated Interfaces.C.* packages
for VMS, instead parametrize the common implementation with
System.Parameters declarations.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177038 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/i-cstrin.adb')
-rw-r--r-- | gcc/ada/i-cstrin.adb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/ada/i-cstrin.adb b/gcc/ada/i-cstrin.adb index e35ef36c9e0..81489464640 100644 --- a/gcc/ada/i-cstrin.adb +++ b/gcc/ada/i-cstrin.adb @@ -42,10 +42,10 @@ package body Interfaces.C.Strings is -- this type will in fact be used for aliasing values of other types. function To_chars_ptr is - new Ada.Unchecked_Conversion (Address, chars_ptr); + new Ada.Unchecked_Conversion (System.Parameters.C_Address, chars_ptr); function To_Address is - new Ada.Unchecked_Conversion (chars_ptr, Address); + new Ada.Unchecked_Conversion (chars_ptr, System.Parameters.C_Address); ----------------------- -- Local Subprograms -- @@ -70,7 +70,7 @@ package body Interfaces.C.Strings is -- compatible, so we directly import here the malloc and free routines. function Memory_Alloc (Size : size_t) return chars_ptr; - pragma Import (C, Memory_Alloc, "__gnat_malloc"); + pragma Import (C, Memory_Alloc, System.Parameters.C_Malloc_Linkname); procedure Memory_Free (Address : chars_ptr); pragma Import (C, Memory_Free, "__gnat_free"); |