[PATCH, netbsd] Define TARGET_D_CRITSEC_SIZE for D language
Wed Apr 24 01:30:00 GMT 2019
On 24.04.2019 01:13, Iain Buclaw wrote:
> This patch adds missing implementation of TARGET_D_CRITSEC_SIZE, which
> would be noticed when using any bare synchronized statements.
> I couldn't see any target-specific alternatives of pthread_mutex_t in
> netbsd headers, so the condition should be right.
> OK for trunk?
This patch is wrong.
sizeof(pthread_mutex_t) depends on CPU.
Just check that __cpu_simple_lock_nv_t that can be char, int, struct.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 850 bytes
Desc: OpenPGP digital signature
More information about the Gcc-patches