Re: [PATCH v2] async_die_is_recursing: work around GCC v11.x issue on Fedora
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Nov 4, 2021, 16:33 UTC
- Message-ID
- <nycvar.QRO.7.76.6.2111041732290.56@tvgsbejvaqbjf.bet>
- In-Reply-To
- <CAPUEspiJW8ee_1zoMg6JzJ0ow-2tmPh8iUZK41kfvt6etzEfjQ@mail.gmail.com>
Hi Carlo,
On Thu, 4 Nov 2021, Carlo Arenas wrote:
Show 16 quoted lines
> On Thu, Nov 4, 2021 at 1:43 AM Johannes Schindelin > <Johannes.Schindelin@gmx.de> wrote: > > > My best guess is that my GCC (which is v11.2.0) and Fedora's GCC (which is > > v11.2.1 plus the usual Fedora customization) behave slightly differently > > with respect to that optional `size-index` argument: > > `pthread_setspecific()` is essentially declared without a `size-index`, so > > I guess GCC v11.2.1 probably defaults to `size-index = 1`. > > Got to read the whole explanation that Victoria put together. > > for the warning to trigger on that gcc, you got also to have the > attribute in the header as shown by the link[1] she provided, and > which I am sure could be a nice thing to send toward those helpful > folks of the MSYS2 project so it can be added to their WinPthread > headers, as was done in glibc.
D'oh. Of course we do not have glibc in the Git for Windows SDK! Thanks for helping me understand this.
Ciao, Dscho
Show 5 quoted lines
> > Carlo > > [1] https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=a1561c3bbe8 >