summaryrefslogtreecommitdiff
path: root/gcc/ada/i-cstrin.ads
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2011-08-01 14:36:39 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2011-08-01 14:36:39 +0000
commit0f76db84872ef5329f584e4d60d1cfadddcd0a57 (patch)
treea8932a4f652039be98ba53557540e75fb93afa61 /gcc/ada/i-cstrin.ads
parent6fe95394431a776210848049e0f1e8dcbf63003e (diff)
downloadgcc-0f76db84872ef5329f584e4d60d1cfadddcd0a57.tar.gz
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.ads')
-rw-r--r--gcc/ada/i-cstrin.ads5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/ada/i-cstrin.ads b/gcc/ada/i-cstrin.ads
index 7bfee8f2c6d..bc6df774add 100644
--- a/gcc/ada/i-cstrin.ads
+++ b/gcc/ada/i-cstrin.ads
@@ -6,7 +6,7 @@
-- --
-- S p e c --
-- --
--- Copyright (C) 1993-2009, Free Software Foundation, Inc. --
+-- Copyright (C) 1993-2010, Free Software Foundation, Inc. --
-- --
-- This specification is derived from the Ada Reference Manual for use with --
-- GNAT. The copyright notice above, and the license provisions that follow --
@@ -37,6 +37,7 @@ package Interfaces.C.Strings is
pragma Preelaborate;
type char_array_access is access all char_array;
+ for char_array_access'Size use System.Parameters.ptr_bits;
pragma No_Strict_Aliasing (char_array_access);
-- Since this type is used for external interfacing, with the pointer
@@ -91,7 +92,7 @@ package Interfaces.C.Strings is
private
type chars_ptr is access all Character;
- pragma Convention (C, chars_ptr);
+ for chars_ptr'Size use System.Parameters.ptr_bits;
pragma No_Strict_Aliasing (chars_ptr);
-- Since this type is used for external interfacing, with the pointer