aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2015-12-06 15:28:16 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2015-12-06 15:28:16 +0000
commit2097a8906f26415d7ad36f485ad7841ed5142fba (patch)
tree2860b8a2f7f5859f0b978463bd6c916b22449c4c /gcc/ada
parent928b5b523bc386006e2ac5691faf7afff6fbce33 (diff)
downloadgcc-2097a8906f26415d7ad36f485ad7841ed5142fba.zip
gcc-2097a8906f26415d7ad36f485ad7841ed5142fba.tar.gz
gcc-2097a8906f26415d7ad36f485ad7841ed5142fba.tar.bz2
re PR ada/56274 (libada bootstrap failure on kfreebsd ("pthread_rwlock_t" not declared in "OS_Interface"))
PR ada/56274 * s-osinte-kfreebsd-gnu.ads (pthread_rwlock_t): New subtype. (pthread_rwlockattr_t): Likewise. From-SVN: r231337
Diffstat (limited to 'gcc/ada')
-rw-r--r--gcc/ada/ChangeLog6
-rw-r--r--gcc/ada/s-osinte-kfreebsd-gnu.ads8
2 files changed, 14 insertions, 0 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog
index a238a438..ebd9f3c 100644
--- a/gcc/ada/ChangeLog
+++ b/gcc/ada/ChangeLog
@@ -1,3 +1,9 @@
+2015-12-06 Eric Botcazou <ebotcazou@adacore.com>
+
+ PR ada/56274
+ * s-osinte-kfreebsd-gnu.ads (pthread_rwlock_t): New subtype.
+ (pthread_rwlockattr_t): Likewise.
+
2015-12-06 Ludovic Brenta <ludovic@ludovic-brenta.org>
PR ada/49944
diff --git a/gcc/ada/s-osinte-kfreebsd-gnu.ads b/gcc/ada/s-osinte-kfreebsd-gnu.ads
index a11cc6b..3f6ef9b 100644
--- a/gcc/ada/s-osinte-kfreebsd-gnu.ads
+++ b/gcc/ada/s-osinte-kfreebsd-gnu.ads
@@ -292,6 +292,14 @@ package System.OS_Interface is
PTHREAD_SCOPE_PROCESS : constant := 0;
PTHREAD_SCOPE_SYSTEM : constant := 2;
+ -- Read/Write lock not supported on kfreebsd. To add support both types
+ -- pthread_rwlock_t and pthread_rwlockattr_t must properly be defined
+ -- with the associated routines pthread_rwlock_[init/destroy] and
+ -- pthread_rwlock_[rdlock/wrlock/unlock].
+
+ subtype pthread_rwlock_t is pthread_mutex_t;
+ subtype pthread_rwlockattr_t is pthread_mutexattr_t;
+
-----------
-- Stack --
-----------