summaryrefslogtreecommitdiff
path: root/gcc/ada/s-osinte-aix.ads
diff options
context:
space:
mode:
authorRobert Dewar <dewar@adacore.com>2007-12-13 11:19:04 +0100
committerArnaud Charlet <charlet@gcc.gnu.org>2007-12-13 11:19:04 +0100
commitdef46b5433513c720e7a17c62fa3e1837d905fca (patch)
tree2d7d450cb2b59f3695b897cfe5157b878e24aa40 /gcc/ada/s-osinte-aix.ads
parentb41ab480565d08ba5535f219e9f607e15d9c47e0 (diff)
downloadgcc-def46b5433513c720e7a17c62fa3e1837d905fca.tar.gz
s-osinte-lynxos-3.ads, [...]: Add missing pragma Convention C for subprogram pointers.
2007-12-06 Robert Dewar <dewar@adacore.com> * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads, s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads, s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb, s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads, s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads, s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads, i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C for subprogram pointers. * g-ctrl_c.adb: New file. * g-ctrl_c.ads (Install_Handler): New body. * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined. (Freeze_Entity): check for tagged type in imported C subprogram (Freeze_Entity): check for 8-bit boolean in imported C subprogram (Freeze_Entity): check for convention Ada subprogram pointer in imported C subprogram. (Freeze_Fixed_Point_Type): In the case of a base type where the low bound would be chopped off and go from negative to zero, force Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower bound) so that the size computation for the base type will take negative values into account. From-SVN: r130813
Diffstat (limited to 'gcc/ada/s-osinte-aix.ads')
-rw-r--r--gcc/ada/s-osinte-aix.ads5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/ada/s-osinte-aix.ads b/gcc/ada/s-osinte-aix.ads
index e712eec6cb0..46caa9b6886 100644
--- a/gcc/ada/s-osinte-aix.ads
+++ b/gcc/ada/s-osinte-aix.ads
@@ -266,6 +266,7 @@ package System.OS_Interface is
type Thread_Body is access
function (arg : System.Address) return System.Address;
+ pragma Convention (C, Thread_Body);
function Thread_Body_Access is new
Ada.Unchecked_Conversion (System.Address, Thread_Body);
@@ -506,8 +507,8 @@ package System.OS_Interface is
function pthread_getspecific (key : pthread_key_t) return System.Address;
pragma Import (C, pthread_getspecific, "pthread_getspecific");
- type destructor_pointer is access
- procedure (arg : System.Address);
+ type destructor_pointer is access procedure (arg : System.Address);
+ pragma Convention (C, destructor_pointer);
function pthread_key_create
(key : access pthread_key_t;