public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/ibuclaw/heads/darwin)] D, Darwin : Update pthreads sizes.
@ 2021-04-10 15:05 Iain Buclaw
0 siblings, 0 replies; 8+ messages in thread
From: Iain Buclaw @ 2021-04-10 15:05 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:bb10d1b0d41fbe3f76c27744429b21b06c55fe22
commit bb10d1b0d41fbe3f76c27744429b21b06c55fe22
Author: Iain Sandoe <iain@sandoe.co.uk>
Date: Fri Dec 11 00:37:57 2020 +0000
D, Darwin : Update pthreads sizes.
The size of struct pthread changed at Darwin14 (macOS 10.10).
Update the type bindings accordingly.
libphobos/ChangeLog:
* libdruntime/core/sys/posix/sys/types.d: Update sizes after
macOS 10.10.
Diff:
---
libphobos/libdruntime/core/sys/posix/sys/types.d | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/libphobos/libdruntime/core/sys/posix/sys/types.d b/libphobos/libdruntime/core/sys/posix/sys/types.d
index abcea99019f..5ff9be4e1a5 100644
--- a/libphobos/libdruntime/core/sys/posix/sys/types.d
+++ b/libphobos/libdruntime/core/sys/posix/sys/types.d
@@ -899,9 +899,13 @@ else version (CRuntime_Musl)
}
else version (Darwin)
{
+ import core.sys.darwin.config;
version (D_LP64)
{
- enum __PTHREAD_SIZE__ = 8176;
+ static if (__traits(getTargetInfo, "osxVersionMin") >= __MAC_10_10)
+ enum __PTHREAD_SIZE__ = 8176;
+ else
+ enum __PTHREAD_SIZE__ = 1168;
enum __PTHREAD_ATTR_SIZE__ = 56;
enum __PTHREAD_MUTEXATTR_SIZE__ = 8;
enum __PTHREAD_MUTEX_SIZE__ = 56;
@@ -913,7 +917,10 @@ else version (Darwin)
}
else
{
- enum __PTHREAD_SIZE__ = 4088;
+ static if (__traits(getTargetInfo, "osxVersionMin") >= __MAC_10_10)
+ enum __PTHREAD_SIZE__ = 4088;
+ else
+ enum __PTHREAD_SIZE__ = 596;
enum __PTHREAD_ATTR_SIZE__ = 36;
enum __PTHREAD_MUTEXATTR_SIZE__ = 8;
enum __PTHREAD_MUTEX_SIZE__ = 40;
^ permalink raw reply [flat|nested] 8+ messages in thread
* [gcc(refs/users/ibuclaw/heads/darwin)] D, Darwin : Update pthreads sizes.
@ 2021-09-17 14:34 Iain Buclaw
0 siblings, 0 replies; 8+ messages in thread
From: Iain Buclaw @ 2021-09-17 14:34 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:d869b64b954e3bcffcbfb16db0dbb8a5a7bd4254
commit d869b64b954e3bcffcbfb16db0dbb8a5a7bd4254
Author: Iain Sandoe <iain@sandoe.co.uk>
Date: Fri Dec 11 00:37:57 2020 +0000
D, Darwin : Update pthreads sizes.
The size of struct pthread changed at Darwin14 (macOS 10.10).
Update the type bindings accordingly.
libphobos/ChangeLog:
* libdruntime/core/sys/posix/sys/types.d: Update sizes after
macOS 10.10.
Diff:
---
libphobos/libdruntime/core/sys/posix/sys/types.d | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/libphobos/libdruntime/core/sys/posix/sys/types.d b/libphobos/libdruntime/core/sys/posix/sys/types.d
index abcea99019f..5ff9be4e1a5 100644
--- a/libphobos/libdruntime/core/sys/posix/sys/types.d
+++ b/libphobos/libdruntime/core/sys/posix/sys/types.d
@@ -899,9 +899,13 @@ else version (CRuntime_Musl)
}
else version (Darwin)
{
+ import core.sys.darwin.config;
version (D_LP64)
{
- enum __PTHREAD_SIZE__ = 8176;
+ static if (__traits(getTargetInfo, "osxVersionMin") >= __MAC_10_10)
+ enum __PTHREAD_SIZE__ = 8176;
+ else
+ enum __PTHREAD_SIZE__ = 1168;
enum __PTHREAD_ATTR_SIZE__ = 56;
enum __PTHREAD_MUTEXATTR_SIZE__ = 8;
enum __PTHREAD_MUTEX_SIZE__ = 56;
@@ -913,7 +917,10 @@ else version (Darwin)
}
else
{
- enum __PTHREAD_SIZE__ = 4088;
+ static if (__traits(getTargetInfo, "osxVersionMin") >= __MAC_10_10)
+ enum __PTHREAD_SIZE__ = 4088;
+ else
+ enum __PTHREAD_SIZE__ = 596;
enum __PTHREAD_ATTR_SIZE__ = 36;
enum __PTHREAD_MUTEXATTR_SIZE__ = 8;
enum __PTHREAD_MUTEX_SIZE__ = 40;
^ permalink raw reply [flat|nested] 8+ messages in thread
* [gcc(refs/users/ibuclaw/heads/darwin)] D, Darwin : Update pthreads sizes.
@ 2021-04-19 18:06 Iain Buclaw
0 siblings, 0 replies; 8+ messages in thread
From: Iain Buclaw @ 2021-04-19 18:06 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:8847609786b21c5df41a656374464051a471c0a4
commit 8847609786b21c5df41a656374464051a471c0a4
Author: Iain Sandoe <iain@sandoe.co.uk>
Date: Fri Dec 11 00:37:57 2020 +0000
D, Darwin : Update pthreads sizes.
The size of struct pthread changed at Darwin14 (macOS 10.10).
Update the type bindings accordingly.
libphobos/ChangeLog:
* libdruntime/core/sys/posix/sys/types.d: Update sizes after
macOS 10.10.
Diff:
---
libphobos/libdruntime/core/sys/posix/sys/types.d | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/libphobos/libdruntime/core/sys/posix/sys/types.d b/libphobos/libdruntime/core/sys/posix/sys/types.d
index abcea99019f..5ff9be4e1a5 100644
--- a/libphobos/libdruntime/core/sys/posix/sys/types.d
+++ b/libphobos/libdruntime/core/sys/posix/sys/types.d
@@ -899,9 +899,13 @@ else version (CRuntime_Musl)
}
else version (Darwin)
{
+ import core.sys.darwin.config;
version (D_LP64)
{
- enum __PTHREAD_SIZE__ = 8176;
+ static if (__traits(getTargetInfo, "osxVersionMin") >= __MAC_10_10)
+ enum __PTHREAD_SIZE__ = 8176;
+ else
+ enum __PTHREAD_SIZE__ = 1168;
enum __PTHREAD_ATTR_SIZE__ = 56;
enum __PTHREAD_MUTEXATTR_SIZE__ = 8;
enum __PTHREAD_MUTEX_SIZE__ = 56;
@@ -913,7 +917,10 @@ else version (Darwin)
}
else
{
- enum __PTHREAD_SIZE__ = 4088;
+ static if (__traits(getTargetInfo, "osxVersionMin") >= __MAC_10_10)
+ enum __PTHREAD_SIZE__ = 4088;
+ else
+ enum __PTHREAD_SIZE__ = 596;
enum __PTHREAD_ATTR_SIZE__ = 36;
enum __PTHREAD_MUTEXATTR_SIZE__ = 8;
enum __PTHREAD_MUTEX_SIZE__ = 40;
^ permalink raw reply [flat|nested] 8+ messages in thread
* [gcc(refs/users/ibuclaw/heads/darwin)] D, Darwin : Update pthreads sizes.
@ 2021-04-10 17:01 Iain Buclaw
0 siblings, 0 replies; 8+ messages in thread
From: Iain Buclaw @ 2021-04-10 17:01 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:00bfb94e5b1d3db52171a9445c8db7ef5e155c89
commit 00bfb94e5b1d3db52171a9445c8db7ef5e155c89
Author: Iain Sandoe <iain@sandoe.co.uk>
Date: Fri Dec 11 00:37:57 2020 +0000
D, Darwin : Update pthreads sizes.
The size of struct pthread changed at Darwin14 (macOS 10.10).
Update the type bindings accordingly.
libphobos/ChangeLog:
* libdruntime/core/sys/posix/sys/types.d: Update sizes after
macOS 10.10.
Diff:
---
libphobos/libdruntime/core/sys/posix/sys/types.d | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/libphobos/libdruntime/core/sys/posix/sys/types.d b/libphobos/libdruntime/core/sys/posix/sys/types.d
index abcea99019f..5ff9be4e1a5 100644
--- a/libphobos/libdruntime/core/sys/posix/sys/types.d
+++ b/libphobos/libdruntime/core/sys/posix/sys/types.d
@@ -899,9 +899,13 @@ else version (CRuntime_Musl)
}
else version (Darwin)
{
+ import core.sys.darwin.config;
version (D_LP64)
{
- enum __PTHREAD_SIZE__ = 8176;
+ static if (__traits(getTargetInfo, "osxVersionMin") >= __MAC_10_10)
+ enum __PTHREAD_SIZE__ = 8176;
+ else
+ enum __PTHREAD_SIZE__ = 1168;
enum __PTHREAD_ATTR_SIZE__ = 56;
enum __PTHREAD_MUTEXATTR_SIZE__ = 8;
enum __PTHREAD_MUTEX_SIZE__ = 56;
@@ -913,7 +917,10 @@ else version (Darwin)
}
else
{
- enum __PTHREAD_SIZE__ = 4088;
+ static if (__traits(getTargetInfo, "osxVersionMin") >= __MAC_10_10)
+ enum __PTHREAD_SIZE__ = 4088;
+ else
+ enum __PTHREAD_SIZE__ = 596;
enum __PTHREAD_ATTR_SIZE__ = 36;
enum __PTHREAD_MUTEXATTR_SIZE__ = 8;
enum __PTHREAD_MUTEX_SIZE__ = 40;
^ permalink raw reply [flat|nested] 8+ messages in thread
* [gcc(refs/users/ibuclaw/heads/darwin)] D, Darwin : Update pthreads sizes.
@ 2021-03-14 22:01 Iain Buclaw
0 siblings, 0 replies; 8+ messages in thread
From: Iain Buclaw @ 2021-03-14 22:01 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:3c0c8df9e737542ffb0074967ff9536a2df11863
commit 3c0c8df9e737542ffb0074967ff9536a2df11863
Author: Iain Sandoe <iain@sandoe.co.uk>
Date: Fri Dec 11 00:37:57 2020 +0000
D, Darwin : Update pthreads sizes.
The size of struct pthread changed at Darwin14 (macOS 10.10).
Update the type bindings accordingly.
libphobos/ChangeLog:
* libdruntime/core/sys/posix/sys/types.d: Update sizes after
macOS 10.10.
Diff:
---
libphobos/libdruntime/core/sys/posix/sys/types.d | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/libphobos/libdruntime/core/sys/posix/sys/types.d b/libphobos/libdruntime/core/sys/posix/sys/types.d
index abcea99019f..5ff9be4e1a5 100644
--- a/libphobos/libdruntime/core/sys/posix/sys/types.d
+++ b/libphobos/libdruntime/core/sys/posix/sys/types.d
@@ -899,9 +899,13 @@ else version (CRuntime_Musl)
}
else version (Darwin)
{
+ import core.sys.darwin.config;
version (D_LP64)
{
- enum __PTHREAD_SIZE__ = 8176;
+ static if (__traits(getTargetInfo, "osxVersionMin") >= __MAC_10_10)
+ enum __PTHREAD_SIZE__ = 8176;
+ else
+ enum __PTHREAD_SIZE__ = 1168;
enum __PTHREAD_ATTR_SIZE__ = 56;
enum __PTHREAD_MUTEXATTR_SIZE__ = 8;
enum __PTHREAD_MUTEX_SIZE__ = 56;
@@ -913,7 +917,10 @@ else version (Darwin)
}
else
{
- enum __PTHREAD_SIZE__ = 4088;
+ static if (__traits(getTargetInfo, "osxVersionMin") >= __MAC_10_10)
+ enum __PTHREAD_SIZE__ = 4088;
+ else
+ enum __PTHREAD_SIZE__ = 596;
enum __PTHREAD_ATTR_SIZE__ = 36;
enum __PTHREAD_MUTEXATTR_SIZE__ = 8;
enum __PTHREAD_MUTEX_SIZE__ = 40;
^ permalink raw reply [flat|nested] 8+ messages in thread
* [gcc(refs/users/ibuclaw/heads/darwin)] D, Darwin : Update pthreads sizes.
@ 2021-03-07 17:02 Iain Buclaw
0 siblings, 0 replies; 8+ messages in thread
From: Iain Buclaw @ 2021-03-07 17:02 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:2256a02b841112229c681b4bf95285c789f88176
commit 2256a02b841112229c681b4bf95285c789f88176
Author: Iain Sandoe <iain@sandoe.co.uk>
Date: Fri Dec 11 00:37:57 2020 +0000
D, Darwin : Update pthreads sizes.
The size of struct pthread changed at Darwin14 (macOS 10.10).
Update the type bindings accordingly.
libphobos/ChangeLog:
* libdruntime/core/sys/posix/sys/types.d: Update sizes after
macOS 10.10.
Diff:
---
libphobos/libdruntime/core/sys/posix/sys/types.d | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/libphobos/libdruntime/core/sys/posix/sys/types.d b/libphobos/libdruntime/core/sys/posix/sys/types.d
index abcea99019f..5ff9be4e1a5 100644
--- a/libphobos/libdruntime/core/sys/posix/sys/types.d
+++ b/libphobos/libdruntime/core/sys/posix/sys/types.d
@@ -899,9 +899,13 @@ else version (CRuntime_Musl)
}
else version (Darwin)
{
+ import core.sys.darwin.config;
version (D_LP64)
{
- enum __PTHREAD_SIZE__ = 8176;
+ static if (__traits(getTargetInfo, "osxVersionMin") >= __MAC_10_10)
+ enum __PTHREAD_SIZE__ = 8176;
+ else
+ enum __PTHREAD_SIZE__ = 1168;
enum __PTHREAD_ATTR_SIZE__ = 56;
enum __PTHREAD_MUTEXATTR_SIZE__ = 8;
enum __PTHREAD_MUTEX_SIZE__ = 56;
@@ -913,7 +917,10 @@ else version (Darwin)
}
else
{
- enum __PTHREAD_SIZE__ = 4088;
+ static if (__traits(getTargetInfo, "osxVersionMin") >= __MAC_10_10)
+ enum __PTHREAD_SIZE__ = 4088;
+ else
+ enum __PTHREAD_SIZE__ = 596;
enum __PTHREAD_ATTR_SIZE__ = 36;
enum __PTHREAD_MUTEXATTR_SIZE__ = 8;
enum __PTHREAD_MUTEX_SIZE__ = 40;
^ permalink raw reply [flat|nested] 8+ messages in thread
* [gcc(refs/users/ibuclaw/heads/darwin)] D, Darwin : Update pthreads sizes.
@ 2021-01-30 19:09 Iain Buclaw
0 siblings, 0 replies; 8+ messages in thread
From: Iain Buclaw @ 2021-01-30 19:09 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:54fa2ee5a7776bc8b3da19ee04a706652993e9cb
commit 54fa2ee5a7776bc8b3da19ee04a706652993e9cb
Author: Iain Sandoe <iain@sandoe.co.uk>
Date: Fri Dec 11 00:37:57 2020 +0000
D, Darwin : Update pthreads sizes.
The size of struct pthread changed at Darwin14 (macOS 10.10).
Update the type bindings accordingly.
libphobos/ChangeLog:
* libdruntime/core/sys/posix/sys/types.d: Update sizes after
macOS 10.10.
Diff:
---
libphobos/libdruntime/core/sys/posix/sys/types.d | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/libphobos/libdruntime/core/sys/posix/sys/types.d b/libphobos/libdruntime/core/sys/posix/sys/types.d
index 8e84ddb4c60..2ee355be82f 100644
--- a/libphobos/libdruntime/core/sys/posix/sys/types.d
+++ b/libphobos/libdruntime/core/sys/posix/sys/types.d
@@ -899,9 +899,13 @@ else version (CRuntime_Musl)
}
else version (Darwin)
{
+ import core.sys.darwin.config;
version (D_LP64)
{
- enum __PTHREAD_SIZE__ = 8176;
+ static if (__traits(getTargetInfo, "osxVersionMin") >= __MAC_10_10)
+ enum __PTHREAD_SIZE__ = 8176;
+ else
+ enum __PTHREAD_SIZE__ = 1168;
enum __PTHREAD_ATTR_SIZE__ = 56;
enum __PTHREAD_MUTEXATTR_SIZE__ = 8;
enum __PTHREAD_MUTEX_SIZE__ = 56;
@@ -913,7 +917,10 @@ else version (Darwin)
}
else
{
- enum __PTHREAD_SIZE__ = 4088;
+ static if (__traits(getTargetInfo, "osxVersionMin") >= __MAC_10_10)
+ enum __PTHREAD_SIZE__ = 4088;
+ else
+ enum __PTHREAD_SIZE__ = 596;
enum __PTHREAD_ATTR_SIZE__ = 36;
enum __PTHREAD_MUTEXATTR_SIZE__ = 8;
enum __PTHREAD_MUTEX_SIZE__ = 40;
^ permalink raw reply [flat|nested] 8+ messages in thread
* [gcc(refs/users/ibuclaw/heads/darwin)] D, Darwin : Update pthreads sizes.
@ 2021-01-28 17:32 Iain Buclaw
0 siblings, 0 replies; 8+ messages in thread
From: Iain Buclaw @ 2021-01-28 17:32 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:d7608193908fe63f0c585d5e56a9eb9379998d7a
commit d7608193908fe63f0c585d5e56a9eb9379998d7a
Author: Iain Sandoe <iain@sandoe.co.uk>
Date: Fri Dec 11 00:37:57 2020 +0000
D, Darwin : Update pthreads sizes.
The size of struct pthread changed at Darwin14 (macOS 10.10).
Update the type bindings accordingly.
libphobos/ChangeLog:
* libdruntime/core/sys/posix/sys/types.d: Update sizes after
macOS 10.10.
Diff:
---
libphobos/libdruntime/core/sys/posix/sys/types.d | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/libphobos/libdruntime/core/sys/posix/sys/types.d b/libphobos/libdruntime/core/sys/posix/sys/types.d
index 8e84ddb4c60..2ee355be82f 100644
--- a/libphobos/libdruntime/core/sys/posix/sys/types.d
+++ b/libphobos/libdruntime/core/sys/posix/sys/types.d
@@ -899,9 +899,13 @@ else version (CRuntime_Musl)
}
else version (Darwin)
{
+ import core.sys.darwin.config;
version (D_LP64)
{
- enum __PTHREAD_SIZE__ = 8176;
+ static if (__traits(getTargetInfo, "osxVersionMin") >= __MAC_10_10)
+ enum __PTHREAD_SIZE__ = 8176;
+ else
+ enum __PTHREAD_SIZE__ = 1168;
enum __PTHREAD_ATTR_SIZE__ = 56;
enum __PTHREAD_MUTEXATTR_SIZE__ = 8;
enum __PTHREAD_MUTEX_SIZE__ = 56;
@@ -913,7 +917,10 @@ else version (Darwin)
}
else
{
- enum __PTHREAD_SIZE__ = 4088;
+ static if (__traits(getTargetInfo, "osxVersionMin") >= __MAC_10_10)
+ enum __PTHREAD_SIZE__ = 4088;
+ else
+ enum __PTHREAD_SIZE__ = 596;
enum __PTHREAD_ATTR_SIZE__ = 36;
enum __PTHREAD_MUTEXATTR_SIZE__ = 8;
enum __PTHREAD_MUTEX_SIZE__ = 40;
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2021-09-17 14:34 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-10 15:05 [gcc(refs/users/ibuclaw/heads/darwin)] D, Darwin : Update pthreads sizes Iain Buclaw
-- strict thread matches above, loose matches on Subject: below --
2021-09-17 14:34 Iain Buclaw
2021-04-19 18:06 Iain Buclaw
2021-04-10 17:01 Iain Buclaw
2021-03-14 22:01 Iain Buclaw
2021-03-07 17:02 Iain Buclaw
2021-01-30 19:09 Iain Buclaw
2021-01-28 17:32 Iain Buclaw
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).