Re: [Mingw-w64-public] Weird pthreads anomaly with gcc-13.0.1 and mpfr

2023-04-11 Thread sisyphus
Thanks LIU. No urgency, from my point of view. When the amended version hits https://gcc-mcf.lhmouse.com/, I'll download it and try it out. Cheers, Rob On Tue, Apr 11, 2023 at 11:24 PM LIU Hao wrote: > 在 2023-04-11 21:14, LIU Hao 写道: > > It's because `__emutls_get_address()` returns two distin

Re: [Mingw-w64-public] [PATCH] headers: Add missing types in dispatcherqueue.h

2023-04-11 Thread LIU Hao
在 2023/4/12 04:33, Biswapriyo Nath 写道: From ef67375dc143a991c368a425629f3504b520194c Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Wed, 12 Apr 2023 02:02:19 +0530 Subject: [PATCH] headers: Add missing types in dispatcherqueue.h Signed-off-by: Biswapriyo Nath --- mingw-w64-headers/inclu

[Mingw-w64-public] [PATCH] headers: Add missing types in dispatcherqueue.h

2023-04-11 Thread Biswapriyo Nath
From ef67375dc143a991c368a425629f3504b520194c Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Wed, 12 Apr 2023 02:02:19 +0530 Subject: [PATCH] headers: Add missing types in dispatcherqueue.h Signed-off-by: Biswapriyo Nath --- mingw-w64-headers/include/dispatcherqueue.h | 9 - 1 fi

Re: [Mingw-w64-public] [PATCH] headers: Fix IDirectXVideoDecoderService declaration in dxva2api.idl

2023-04-11 Thread LIU Hao
在 2023-04-11 12:59, Biswapriyo Nath 写道: This patch is imported from wine. It would be helpful if the commit message is kept unmodified. Thanks for the patches. Pushed now. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature __

Re: [Mingw-w64-public] Weird pthreads anomaly with gcc-13.0.1 and mpfr

2023-04-11 Thread LIU Hao
在 2023-04-11 21:14, LIU Hao 写道: It's because `__emutls_get_address()` returns two distinct values in consecutive calls with the same descriptor in the same thread, so the second reference to the thread local `__gmpfr_default_fp_bit_precision` (defined in 'set_dfl_prec.c') gets a fresh object wit

Re: [Mingw-w64-public] Weird pthreads anomaly with gcc-13.0.1 and mpfr

2023-04-11 Thread LIU Hao
在 2023/4/11 20:51, sisyphus 写道: That is, the "mpfr_set_default_precision(201)" call made in foo() is apparently ignored, and the initial default precision of 53 is output. I've run this by the mpfr developers and they don't think it's an mpfr issue. (Neither do I.) Those 2 gcc-13.0.1 compilers

[Mingw-w64-public] Weird pthreads anomaly with gcc-13.0.1 and mpfr

2023-04-11 Thread sisyphus
Hi, The demo program: # #include #include #include #include void *foo( void *ptr ); int main(void) { pthread_t thread1; char *message1 = "precision in thread1:"; int iret1; if(mpfr_buildopt_tls_p()) printf("mpfr was built with TLS support\n"); el