Re: [PATCH 2/2] libstdc++: Move stream initialization into compiled library [PR44952]

2022-11-15 Thread Hans-Peter Nilsson via Gcc-patches
> 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

Re: [PATCH 2/2] libstdc++: Move stream initialization into compiled library [PR44952]

2022-11-04 Thread Florian Weimer via Gcc-patches
* 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

Re: [PATCH 2/2] libstdc++: Move stream initialization into compiled library [PR44952]

2022-11-04 Thread Patrick Palka via Gcc-patches
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

Re: [PATCH 2/2] libstdc++: Move stream initialization into compiled library [PR44952]

2022-11-04 Thread Florian Weimer via Gcc-patches
* 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

Re: [PATCH 2/2] libstdc++: Move stream initialization into compiled library [PR44952]

2022-11-04 Thread Jonathan Wakely via Gcc-patches
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

Re: [PATCH 2/2] libstdc++: Move stream initialization into compiled library [PR44952]

2022-11-04 Thread Patrick Palka via Gcc-patches
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

Re: [PATCH 2/2] libstdc++: Move stream initialization into compiled library [PR44952]

2022-11-04 Thread Jonathan Wakely via Gcc-patches
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

[PATCH 2/2] libstdc++: Move stream initialization into compiled library [PR44952]

2022-11-04 Thread 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 includes it. We can do this only if the init_pr