summaryrefslogtreecommitdiff
path: root/gcc/ada/s-osinte-darwin.ads
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2009-04-09 12:57:47 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2009-04-09 12:57:47 +0000
commitf41ce91a35c89a2df3284c3b665fbecbc13da3cf (patch)
treee817317357d86a40016656e79c3caae9cafafce4 /gcc/ada/s-osinte-darwin.ads
parent06ad58133a228367bdb349b8a4ae05b99f6fe7a1 (diff)
downloadgcc-f41ce91a35c89a2df3284c3b665fbecbc13da3cf.tar.gz
2009-04-09 Robert Dewar <dewar@adacore.com>
* sem_ch5.adb: Minor reformatting 2009-04-09 Vincent Celier <celier@adacore.com> * vms_data.ads: Change GNAT CHECK qualifier /DIAGNOSIS_LIMIT to /DIAGNOSTIC_LIMIT New qualifier /LEXPAND_SOURCE=nnn for -gnatGnnn New qualifier /LXDEBUG=nnn for -gnatDnnn For H820-010 * gnat_ugn.texi: Update documentation for VMS qualifiers equivalent to -gnatGnn and -gnatDnn 2009-04-09 Nicolas Setton <setton@adacore.com> * s-osinte-darwin.ads: (Pad_Type): Make this an array of unsigned_long, to match layout of siginfo_t in sys/signal.h. * gcc-interface/Makefile.in: Add section for x86_64 darwin. 2009-04-09 Thomas Quinot <quinot@adacore.com> * g-socket.ads: (Fd_Set): Use Interfaces.C.long alignment. 2009-04-09 Nicolas Setton <setton@adacore.com> * s-oscons-tmplt.c: Allow long lines in the generated spec. Add generation of Darwin-specific constants needed when binding to the pthread library. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@145837 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/s-osinte-darwin.ads')
-rw-r--r--gcc/ada/s-osinte-darwin.ads15
1 files changed, 8 insertions, 7 deletions
diff --git a/gcc/ada/s-osinte-darwin.ads b/gcc/ada/s-osinte-darwin.ads
index d53e2c43dca..2a3b9282b52 100644
--- a/gcc/ada/s-osinte-darwin.ads
+++ b/gcc/ada/s-osinte-darwin.ads
@@ -41,6 +41,7 @@
-- Elaborate_Body. It is designed to be a bottom-level (leaf) package.
with Interfaces.C;
+with System.OS_Constants;
package System.OS_Interface is
pragma Preelaborate;
@@ -532,7 +533,7 @@ private
--
-- Darwin specific signal implementation
--
- type Pad_Type is array (1 .. 7) of unsigned;
+ type Pad_Type is array (1 .. 7) of unsigned_long;
type siginfo_t is record
si_signo : int; -- signal number
si_errno : int; -- errno association
@@ -568,37 +569,37 @@ private
type pthread_attr_t is record
sig : long;
- opaque : padding (1 .. 36);
+ opaque : padding (1 .. System.OS_Constants.PTHREAD_ATTR_SIZE);
end record;
pragma Convention (C, pthread_attr_t);
type pthread_mutexattr_t is record
sig : long;
- opaque : padding (1 .. 8);
+ opaque : padding (1 .. System.OS_Constants.PTHREAD_MUTEXATTR_SIZE);
end record;
pragma Convention (C, pthread_mutexattr_t);
type pthread_mutex_t is record
sig : long;
- opaque : padding (1 .. 40);
+ opaque : padding (1 .. System.OS_Constants.PTHREAD_MUTEX_SIZE);
end record;
pragma Convention (C, pthread_mutex_t);
type pthread_condattr_t is record
sig : long;
- opaque : padding (1 .. 4);
+ opaque : padding (1 .. System.OS_Constants.PTHREAD_CONDATTR_SIZE);
end record;
pragma Convention (C, pthread_condattr_t);
type pthread_cond_t is record
sig : long;
- opaque : padding (1 .. 24);
+ opaque : padding (1 .. System.OS_Constants.PTHREAD_COND_SIZE);
end record;
pragma Convention (C, pthread_cond_t);
type pthread_once_t is record
sig : long;
- opaque : padding (1 .. 4);
+ opaque : padding (1 .. System.OS_Constants.PTHREAD_ONCE_SIZE);
end record;
pragma Convention (C, pthread_once_t);