diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2010-11-27 18:34:52 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2010-11-27 18:34:52 +0000 |
commit | 5e2e42ba657137cfb9c5ca72381cb1e53751cdc7 (patch) | |
tree | c8700aba5cc8077b6266b4e3825e5d6aa2c9b67c /gcc | |
parent | 30fbbc77031db1534b1f97f4eeda0a815ddd728b (diff) | |
download | gcc-5e2e42ba657137cfb9c5ca72381cb1e53751cdc7.zip gcc-5e2e42ba657137cfb9c5ca72381cb1e53751cdc7.tar.gz gcc-5e2e42ba657137cfb9c5ca72381cb1e53751cdc7.tar.bz2 |
s-osinte-linux.ads (sigset_t): Use unsigned_char subtype directly.
* s-osinte-linux.ads (sigset_t): Use unsigned_char subtype directly.
(unsigned_long_long_t): New modular type.
(pthread_cond_t): Add alignment clause.
From-SVN: r167204
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ada/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/ada/s-osinte-linux.ads | 6 |
2 files changed, 11 insertions, 1 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 24e3615..3e75468 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,5 +1,11 @@ 2010-11-27 Eric Botcazou <ebotcazou@adacore.com> + * s-osinte-linux.ads (sigset_t): Use unsigned_char subtype directly. + (unsigned_long_long_t): New modular type. + (pthread_cond_t): Add alignment clause. + +2010-11-27 Eric Botcazou <ebotcazou@adacore.com> + * gnatvsn.adb (Version_String): Change type to C-like array of chars. (Gnat_Version_String): Adjust to above change. diff --git a/gcc/ada/s-osinte-linux.ads b/gcc/ada/s-osinte-linux.ads index 2ea4963..6de1fbd 100644 --- a/gcc/ada/s-osinte-linux.ads +++ b/gcc/ada/s-osinte-linux.ads @@ -507,7 +507,7 @@ package System.OS_Interface is private - type sigset_t is array (0 .. 127) of Interfaces.C.unsigned_char; + type sigset_t is array (0 .. 127) of unsigned_char; pragma Convention (C, sigset_t); for sigset_t'Alignment use Interfaces.C.unsigned_long'Alignment; @@ -556,8 +556,12 @@ private type pthread_mutex_t is new System.Linux.pthread_mutex_t; + type unsigned_long_long_t is mod 2 ** 64; + -- Interfaces.C.Extensions isn't preelaborated so cannot be with-ed + type pthread_cond_t is array (0 .. 47) of unsigned_char; pragma Convention (C, pthread_cond_t); + for pthread_cond_t'Alignment use unsigned_long_long_t'Alignment; type pthread_key_t is new unsigned; |