Re: [PATCH] libstdc++: Fix iostream init for Clang on darwin [PR110432]

2023-06-30 Thread Jonathan Wakely via Gcc-patches
On Fri, 30 Jun 2023 at 15:29, Patrick Palka wrote: > > On Fri, 30 Jun 2023, Jonathan Wakely wrote: > > > Tested x86_64-linux. Patrick, PTAL. > > > > -- >8 -- > > > > The __has_attribute(init_priority) check in is true for Clang > > on darwin, which means that user code including thinks the > > l

Re: [PATCH] libstdc++: Fix iostream init for Clang on darwin [PR110432]

2023-06-30 Thread Patrick Palka via Gcc-patches
On Fri, 30 Jun 2023, Jonathan Wakely wrote: > Tested x86_64-linux. Patrick, PTAL. > > -- >8 -- > > The __has_attribute(init_priority) check in is true for Clang > on darwin, which means that user code including thinks the > library will initialize the global streams. However, when libstdc++ is

[PATCH] libstdc++: Fix iostream init for Clang on darwin [PR110432]

2023-06-30 Thread Jonathan Wakely via Gcc-patches
Tested x86_64-linux. Patrick, PTAL. -- >8 -- The __has_attribute(init_priority) check in is true for Clang on darwin, which means that user code including thinks the library will initialize the global streams. However, when libstdc++ is built by GCC on darwin, the __has_attribute(init_priority)