From: ebotcazou Date: Sat, 27 Nov 2010 18:34:52 +0000 (+0000) Subject: * s-osinte-linux.ads (sigset_t): Use unsigned_char subtype directly. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8b811dfca4690b7b96bb4b7eeef1ecedbfbf0ad8;p=thirdparty%2Fgcc.git * s-osinte-linux.ads (sigset_t): Use unsigned_char subtype directly. (unsigned_long_long_t): New modular type. (pthread_cond_t): Add alignment clause. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167204 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 24e3615a8d81..3e7546899a51 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,9 @@ +2010-11-27 Eric Botcazou + + * 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 * gnatvsn.adb (Version_String): Change type to C-like array of chars. diff --git a/gcc/ada/s-osinte-linux.ads b/gcc/ada/s-osinte-linux.ads index 2ea496357070..6de1fbd23761 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;