[PATCH, netbsd] Define TARGET_D_CRITSEC_SIZE for D language

Kamil Rytarowski n54@gmx.com
Wed Apr 24 01:30:00 GMT 2019


On 24.04.2019 01:13, Iain Buclaw wrote:
> Hi,
> 
> 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...
Name: signature.asc
Type: application/pgp-signature
Size: 850 bytes
Desc: OpenPGP digital signature
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190424/4be0bed3/attachment.sig>


More information about the Gcc-patches mailing list