public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/iains/heads/d-for-darwin)] D, Darwin : Update pthreads sizes.
@ 2021-10-15 19:34 Iain D Sandoe
  0 siblings, 0 replies; 7+ messages in thread
From: Iain D Sandoe @ 2021-10-15 19:34 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:08ff05221a1f6c452e08b8b466b5e12ad3eb5b95

commit 08ff05221a1f6c452e08b8b466b5e12ad3eb5b95
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] 7+ messages in thread

* [gcc(refs/users/iains/heads/d-for-darwin)] D, Darwin : Update pthreads sizes.
@ 2021-10-18 15:54 Iain D Sandoe
  0 siblings, 0 replies; 7+ messages in thread
From: Iain D Sandoe @ 2021-10-18 15:54 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:0bf6fac0393689e4f8d72704eec3430e0562322c

commit 0bf6fac0393689e4f8d72704eec3430e0562322c
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] 7+ messages in thread

* [gcc(refs/users/iains/heads/d-for-darwin)] D, Darwin : Update pthreads sizes.
@ 2021-10-13  8:31 Iain D Sandoe
  0 siblings, 0 replies; 7+ messages in thread
From: Iain D Sandoe @ 2021-10-13  8:31 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:71dd1368c311de2d6eda2b97ba2fe10327d4b9ef

commit 71dd1368c311de2d6eda2b97ba2fe10327d4b9ef
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] 7+ messages in thread

* [gcc(refs/users/iains/heads/d-for-darwin)] D, Darwin : Update pthreads sizes.
@ 2021-10-11 20:35 Iain D Sandoe
  0 siblings, 0 replies; 7+ messages in thread
From: Iain D Sandoe @ 2021-10-11 20:35 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:dcb1568f4a72350c9f3176d2f15d9027387e4207

commit dcb1568f4a72350c9f3176d2f15d9027387e4207
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] 7+ messages in thread

* [gcc(refs/users/iains/heads/d-for-darwin)] D, Darwin : Update pthreads sizes.
@ 2021-01-11 21:27 Iain D Sandoe
  0 siblings, 0 replies; 7+ messages in thread
From: Iain D Sandoe @ 2021-01-11 21:27 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:1f489b8bfab4343ab7c768f399c46132d8343dd7

commit 1f489b8bfab4343ab7c768f399c46132d8343dd7
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 2d8ef92720e..4a32537d23b 100644
--- a/libphobos/libdruntime/core/sys/posix/sys/types.d
+++ b/libphobos/libdruntime/core/sys/posix/sys/types.d
@@ -863,9 +863,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;
@@ -877,7 +881,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] 7+ messages in thread

* [gcc(refs/users/iains/heads/d-for-darwin)] D, Darwin : Update pthreads sizes.
@ 2020-12-21 20:37 Iain D Sandoe
  0 siblings, 0 replies; 7+ messages in thread
From: Iain D Sandoe @ 2020-12-21 20:37 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:e5e435a3be327db88b835f376505365c0de6c3f4

commit e5e435a3be327db88b835f376505365c0de6c3f4
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 2d8ef92720e..4a32537d23b 100644
--- a/libphobos/libdruntime/core/sys/posix/sys/types.d
+++ b/libphobos/libdruntime/core/sys/posix/sys/types.d
@@ -863,9 +863,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;
@@ -877,7 +881,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] 7+ messages in thread

* [gcc(refs/users/iains/heads/d-for-darwin)] D, Darwin : Update pthreads sizes.
@ 2020-12-13 17:44 Iain D Sandoe
  0 siblings, 0 replies; 7+ messages in thread
From: Iain D Sandoe @ 2020-12-13 17:44 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:5703784db7e46b67d4b5853d848fb43d6164e47a

commit 5703784db7e46b67d4b5853d848fb43d6164e47a
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 2d8ef92720e..4a32537d23b 100644
--- a/libphobos/libdruntime/core/sys/posix/sys/types.d
+++ b/libphobos/libdruntime/core/sys/posix/sys/types.d
@@ -863,9 +863,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;
@@ -877,7 +881,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] 7+ messages in thread

end of thread, other threads:[~2021-10-18 15:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-15 19:34 [gcc(refs/users/iains/heads/d-for-darwin)] D, Darwin : Update pthreads sizes Iain D Sandoe
  -- strict thread matches above, loose matches on Subject: below --
2021-10-18 15:54 Iain D Sandoe
2021-10-13  8:31 Iain D Sandoe
2021-10-11 20:35 Iain D Sandoe
2021-01-11 21:27 Iain D Sandoe
2020-12-21 20:37 Iain D Sandoe
2020-12-13 17:44 Iain D Sandoe

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).