Commit b7d4abef by Sebastian Huber Committed by Sebastian Huber

RTEMS/Ada: Fix some POSIX types

gcc/ada
	* libgnarl/s-osinte__rtems.ads (pthread_cond_t): Use correct size and
	alignment.
	(pthread_mutex_t): Likewise.
	(pthread_rwlock_t): Likewise.

From-SVN: r255302
parent 1500cb68
2017-12-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libgnarl/s-osinte__rtems.ads (pthread_cond_t): Use correct size and
alignment.
(pthread_mutex_t): Likewise.
(pthread_rwlock_t): Likewise.
2017-11-28 Jakub Jelinek <jakub@redhat.com>
* gcc-interface/trans.c (Case_Statement_to_gnu): Build SWITCH_EXPR
......
......@@ -659,11 +659,23 @@ private
type pthread_t is new rtems_id;
type pthread_mutex_t is new rtems_id;
type pthread_mutex_t is record
Data : char_array (1 .. OS_Constants.PTHREAD_MUTEX_SIZE);
end record;
pragma Convention (C, pthread_mutex_t);
for pthread_mutex_t'Alignment use Interfaces.C.double'Alignment;
type pthread_rwlock_t is new rtems_id;
type pthread_rwlock_t is record
Data : char_array (1 .. OS_Constants.PTHREAD_RWLOCK_SIZE);
end record;
pragma Convention (C, pthread_rwlock_t);
for pthread_rwlock_t'Alignment use Interfaces.C.double'Alignment;
type pthread_cond_t is new rtems_id;
type pthread_cond_t is record
Data : char_array (1 .. OS_Constants.PTHREAD_COND_SIZE);
end record;
pragma Convention (C, pthread_cond_t);
for pthread_cond_t'Alignment use Interfaces.C.double'Alignment;
type pthread_key_t is new rtems_id;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment