Re: Adding a new thread model to GCC

2023-01-09 Thread Eric Botcazou via Fortran
> fixed now. > bootstrapped successfully! Thanks for fixing it. Another way out is to hide the Win32 API by defining __GTHREAD_HIDE_WIN32API like libstdc++ does in its header files. -- Eric Botcazou

Re: Adding a new thread model to GCC

2022-12-24 Thread Jonathan Yong via Fortran
On 12/24/22 21:22, i.nix...@autistici.org wrote: On 2022-12-24 15:57, i.nix...@autistici.org wrote: On 2022-12-24 15:42, i.nix...@autistici.org wrote: fixed and tested. Jonathan Yong, could you please apply the attached patch too? kings regards! oh no... please wait. fixed now. bootst

Re: Adding a new thread model to GCC

2022-12-24 Thread i.nixman--- via Fortran
On 2022-12-24 15:57, i.nix...@autistici.org wrote: On 2022-12-24 15:42, i.nix...@autistici.org wrote: fixed and tested. Jonathan Yong, could you please apply the attached patch too? kings regards! oh no... please wait. fixed now. bootstrapped successfully! Jonathan Yong, could you pl

Re: Adding a new thread model to GCC

2022-12-24 Thread i.nixman--- via Fortran
On 2022-12-24 15:42, i.nix...@autistici.org wrote: fixed and tested. Jonathan Yong, could you please apply the attached patch too? kings regards! oh no... please wait.

Re: Adding a new thread model to GCC

2022-12-24 Thread i.nixman--- via Fortran
On 2022-12-24 13:50, i.nix...@autistici.org wrote: On 2022-12-24 05:58, NightStrike wrote: I think this might have broken fortran. I'm assuming because the backtrace includes gthr.h, and I just did a git pull: In file included from /tmp/rtmingw/mingw/include/windows.h:71, fro

Re: Adding a new thread model to GCC

2022-12-24 Thread i.nixman--- via Fortran
On 2022-12-24 05:58, NightStrike wrote: I think this might have broken fortran. I'm assuming because the backtrace includes gthr.h, and I just did a git pull: In file included from /tmp/rtmingw/mingw/include/windows.h:71, from ../libgcc/gthr-default.h:606, fro

Re: Adding a new thread model to GCC

2022-12-23 Thread i.nixman--- via Fortran
On 2022-12-24 05:58, NightStrike wrote: I think this might have broken fortran. I'm assuming because the backtrace includes gthr.h, and I just did a git pull: In file included from /tmp/rtmingw/mingw/include/windows.h:71, from ../libgcc/gthr-default.h:606, fro

Re: Adding a new thread model to GCC

2022-12-23 Thread NightStrike via Fortran
On Fri, Dec 23, 2022 at 7:00 PM Jonathan Yong via Gcc-patches wrote: > > On 12/22/22 12:28, i.nix...@autistici.org wrote: > > On 2022-12-22 12:21, Jonathan Yong wrote: > > > > hello, > > > >> On 12/16/22 19:20, Eric Botcazou wrote: > The libgcc parts look reasonable to me, but I can't approve

Re: Adding a new thread model to GCC

2022-10-04 Thread Bernhard Reutner-Fischer via Fortran
On 4 October 2022 10:06:00 CEST, LIU Hao wrote: >在 2022-10-03 13:03, Bernhard Reutner-Fischer 写道: >> >> No, sorry for my brevity. >> Using __gthread_t like in your patch is correct. >> > >I see. In 'libgfortran/io/async.c' there is > > ``` >async_unit *au = u->au; >LOCK (&au->lock); >

Re: Adding a new thread model to GCC

2022-10-04 Thread LIU Hao via Fortran
在 2022-10-03 13:03, Bernhard Reutner-Fischer 写道: No, sorry for my brevity. Using __gthread_t like in your patch is correct. I see. In 'libgfortran/io/async.c' there is ``` async_unit *au = u->au; LOCK (&au->lock); thread_unit = u; au->thread = __gthread_self (); ``` so i

Re: Adding a new thread model to GCC

2022-10-02 Thread Bernhard Reutner-Fischer via Fortran
On 2 October 2022 14:54:54 CEST, LIU Hao wrote: >在 2022-10-02 04:02, Bernhard Reutner-Fischer 写道: >> On 1 October 2022 20:34:45 CEST, LIU Hao via Gcc-patches >> wrote: >>> Greetings. >> >>> The first patch is necessary because somewhere in libgfortran, `pthread_t` >>> is referenced. If the thr

Re: Adding a new thread model to GCC

2022-10-02 Thread LIU Hao via Fortran
在 2022-10-02 04:02, Bernhard Reutner-Fischer 写道: On 1 October 2022 20:34:45 CEST, LIU Hao via Gcc-patches wrote: Greetings. The first patch is necessary because somewhere in libgfortran, `pthread_t` is referenced. If the thread model is not `posix`, it fails to compile. One of several sh

Re: Adding a new thread model to GCC

2022-10-01 Thread Bernhard Reutner-Fischer via Fortran
On 1 October 2022 20:34:45 CEST, LIU Hao via Gcc-patches wrote: >Greetings. >The first patch is necessary because somewhere in libgfortran, `pthread_t` is >referenced. If the thread model is not `posix`, it fails to compile. One of several shortcomings mentioned already on Sun, 02 Sep 2018 15: