aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const.c
diff options
context:
space:
mode:
authorPatrick Palka <ppalka@redhat.com>2021-02-22 21:49:25 -0500
committerPatrick Palka <ppalka@redhat.com>2021-02-22 21:49:25 -0500
commit198c56052ea8cce4196e60c0dc3187bf3d67a786 (patch)
treed9010dc6e17481f992b1c04c2f49f1970febd20a /gcc/fold-const.c
parent635cf58ca34487ae044b5c7a04eb2bab6fdfddfe (diff)
downloadgcc-198c56052ea8cce4196e60c0dc3187bf3d67a786.zip
gcc-198c56052ea8cce4196e60c0dc3187bf3d67a786.tar.gz
gcc-198c56052ea8cce4196e60c0dc3187bf3d67a786.tar.bz2
libstdc++: Fix endianness issue with IBM long double [PR98384]
The code in std::to_chars for extracting the high- and low-order parts of an IBM long double value does the right thing on powerpc64le, but not on powerpc64be. This patch makes the extraction endian-agnostic, which fixes the execution FAIL of to_chars/long_double.cc on powerpc64be. libstdc++-v3/ChangeLog: PR libstdc++/98384 * src/c++17/floating_to_chars.cc (get_ieee_repr): Extract the high- and low-order parts from an IBM long double value in an endian-agnostic way.
Diffstat (limited to 'gcc/fold-const.c')
0 files changed, 0 insertions, 0 deletions