[committed 2/2] libstdc++: Use GCC's predefined macro for endianness [PR104080]
Jakub Jelinek
jakub@redhat.com
Tue Jan 18 20:10:38 GMT 2022
On Tue, Jan 18, 2022 at 02:44:34PM -0500, Patrick Palka via Gcc-patches wrote:
> On Tue, Jan 18, 2022 at 5:12 AM Jonathan Wakely <jwakely@redhat.com> wrote:
> >
> > Tested x86_64-linux, pushed to trunk.
> >
> >
> > Instead of hardcoded preprocessor conditionals with explicit target
> > checks, just rely on the fact that __BYTE_ORDER__ is always defined by
> > GCC.
>
> Thanks a lot for fixing these! I apparently missed removing this
> batch of #includes from the amalgamation in r12-6647. For
> completeness I suppose we should remove these #includes too. I
> wonder if we can rely on __BYTE_ORDER__ being defined by other
> compilers?
clang++ 8 and later defines, them, ICC 16+ too.
Jakub
More information about the Libstdc++
mailing list