> From: Patrick Palka via Gcc-patches
> Date: Fri, 4 Nov 2022 16:05:25 +0100
> This patch moves the global object for constructing the standard streams
> out from and into the compiled library on targets that support
> the init_priority attribute. This means that no longer
> introduces a separ
* Patrick Palka:
> On Fri, 4 Nov 2022, Florian Weimer wrote:
>
>> * Patrick Palka via Gcc-patches:
>>
>> > This patch moves the global object for constructing the standard streams
>> > out from and into the compiled library on targets that support
>> > the init_priority attribute. This means th
On Fri, 4 Nov 2022, Florian Weimer wrote:
> * Patrick Palka via Gcc-patches:
>
> > This patch moves the global object for constructing the standard streams
> > out from and into the compiled library on targets that support
> > the init_priority attribute. This means that no longer
> > introduc
* Patrick Palka via Gcc-patches:
> This patch moves the global object for constructing the standard streams
> out from and into the compiled library on targets that support
> the init_priority attribute. This means that no longer
> introduces a separate global constructor in each TU that includ
atic ios_base::Init __ioinit;
> > > +#endif
> > >
> > > _GLIBCXX_END_NAMESPACE_VERSION
> > > } // namespace
> > > diff --git a/libstdc++-v3/src/c++98/ios_base_init.h
> > > b/libstdc++-v3/src/c++98/ios_base_init.h
> > > new file mode 10064
c/c++98/ios_base_init.h
> > new file mode 100644
> > index 000..f3087d1da3c
> > --- /dev/null
> > +++ b/libstdc++-v3/src/c++98/ios_base_init.h
> > @@ -0,0 +1,9 @@
> > +// This is only in a header so we can use the system_header pragma,
> > +// to suppress
On Fri, 4 Nov 2022 at 15:08, Patrick Palka via Libstdc++
wrote:
>
> This patch moves the global object for constructing the standard streams
> out from and into the compiled library on targets that support
> the init_priority attribute. This means that no longer
> introduces a separate global c
This patch moves the global object for constructing the standard streams
out from and into the compiled library on targets that support
the init_priority attribute. This means that no longer
introduces a separate global constructor in each TU that includes it.
We can do this only if the init_pr