[committed] libstdc++: Test errno macros directly, not via autoconf [PR 93151]

2020-12-16 Thread Jonathan Wakely via Gcc-patches
This fixes a bug caused by a mismatch between the macros defined by when GCC is built and the macros defined by when users include . If the user code is compiled with _XOPEN_SOURCE defined to 500 or 600, Darwin suppresses the ENOTRECOVERABLE and EOWNERDEAD macros, which are not defined by SUSv3 (

Re: [committed] libstdc++: Test errno macros directly, not via autoconf [PR 93151]

2021-04-01 Thread Eric Botcazou
> Oops, and I also forgot to update the other headers that were using > those autoconf-generated macros! > > Fixed by this patch. Tested on mingw-w64, pushed to trunk. The original patch was apparently backported onto the gcc-10 branch, but not this follow-up fix, so Windows builds are now broke

Re: [committed] libstdc++: Test errno macros directly, not via autoconf [PR 93151]

2021-04-01 Thread Jonathan Wakely via Gcc-patches
On 01/04/21 16:04 +0200, Eric Botcazou wrote: Oops, and I also forgot to update the other headers that were using those autoconf-generated macros! Fixed by this patch. Tested on mingw-w64, pushed to trunk. The original patch was apparently backported onto the gcc-10 branch, but not this follow

Re: [committed] libstdc++: Test errno macros directly, not via autoconf [PR 93151]

2021-04-01 Thread Jakub Jelinek via Gcc-patches
On Thu, Apr 01, 2021 at 03:25:56PM +0100, Jonathan Wakely via Gcc-patches wrote: > On 01/04/21 16:04 +0200, Eric Botcazou wrote: > > > Oops, and I also forgot to update the other headers that were using > > > those autoconf-generated macros! > > > > > > Fixed by this patch. Tested on mingw-w64, pu

Re: [committed] libstdc++: Test errno macros directly, not via autoconf [PR 93151]

2021-04-01 Thread Jonathan Wakely via Gcc-patches
On 01/04/21 16:27 +0200, Jakub Jelinek via Libstdc++ wrote: On Thu, Apr 01, 2021 at 03:25:56PM +0100, Jonathan Wakely via Gcc-patches wrote: On 01/04/21 16:04 +0200, Eric Botcazou wrote: > > Oops, and I also forgot to update the other headers that were using > > those autoconf-generated macros!

Re: [committed] libstdc++: Test errno macros directly, not via autoconf [PR 93151]

2021-04-01 Thread Eric Botcazou
> Thanks, pushed. I can confirm that the build failure we had is now gone, thanks! > Eric, are you building the RC with --enable-maintainer-mode maybe? Or > regenerating the autoconf files yourself? The latter, we have local configure changes so we regenerate the script. -- Eric Botcazou

Re: [committed] libstdc++: Test errno macros directly, not via autoconf [PR 93151]

2021-04-01 Thread Jonathan Wakely via Gcc-patches
On 01/04/21 18:47 +0200, Eric Botcazou wrote: Thanks, pushed. I can confirm that the build failure we had is now gone, thanks! Eric, are you building the RC with --enable-maintainer-mode maybe? Or regenerating the autoconf files yourself? The latter, we have local configure changes so we re

Re: [committed] libstdc++: Test errno macros directly, not via autoconf [PR 93151]

2020-12-17 Thread Jonathan Wakely via Gcc-patches
On 16/12/20 13:38 +, Jonathan Wakely wrote: This fixes a bug caused by a mismatch between the macros defined by when GCC is built and the macros defined by when users include . If the user code is compiled with _XOPEN_SOURCE defined to 500 or 600, Darwin suppresses the ENOTRECOVERABLE and E

Re: [committed] libstdc++: Test errno macros directly, not via autoconf [PR 93151]

2020-12-17 Thread Jonathan Wakely via Gcc-patches
On 17/12/20 14:05 +, Jonathan Wakely wrote: On 16/12/20 13:38 +, Jonathan Wakely wrote: This fixes a bug caused by a mismatch between the macros defined by when GCC is built and the macros defined by when users include . If the user code is compiled with _XOPEN_SOURCE defined to 500 or