Thread overview
NetBSD lit test failed: codegen/gh1955.d
May 11
Nikolay
May 11
kinke
May 12
Nikolay
May 11
Can somebody give advice why test is failed?

Result "python runlit.py codegen/gh1955.d --verbose"

https://gist.github.com/nrTQgc/6d8554ac5e4795a9853562147055af7f

Content of tests/codegen/Output/gh1955.d.tmp.ll
https://gist.github.com/nrTQgc/d55c71df7b3756964aef452e284a909f
May 11
On Thursday, 11 May 2017 at 10:07:21 UTC, Nikolay wrote:
> Can somebody give advice why test is failed?
>
> Result "python runlit.py codegen/gh1955.d --verbose"
>
> https://gist.github.com/nrTQgc/6d8554ac5e4795a9853562147055af7f
>
> Content of tests/codegen/Output/gh1955.d.tmp.ll
> https://gist.github.com/nrTQgc/d55c71df7b3756964aef452e284a909f

Hi Nikolay,

thx for adding NetBSD support.

I'm pleased this recently added test already pays off. Apparently there's a mismatch between druntime's rt.monitor_.Mutex (size = 48 bytes) and the size used by the compiler directly in `Target::critsecsize()` (8 bytes), see https://github.com/ldc-developers/ldc/blob/master/gen/target.cpp#L127-L177.
May 12
On Thursday, 11 May 2017 at 12:49:14 UTC, kinke wrote:
> I'm pleased this recently added test already pays off. Apparently there's a mismatch between druntime's rt.monitor_.Mutex (size = 48 bytes) and the size used by the compiler directly in `Target::critsecsize()` (8 bytes), see https://github.com/ldc-developers/ldc/blob/master/gen/target.cpp#L127-L177.

Thanks!

I created PR #2109. Now I have no fails in LDC lit test suite (PR #1826 from dlang/druntime needed)!