]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix powerpc64le build of nan-sign tests (bug 23303).
authorJoseph Myers <joseph@codesourcery.com>
Mon, 18 Jun 2018 11:27:51 +0000 (11:27 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Mon, 18 Jun 2018 11:27:51 +0000 (11:27 +0000)
My recent nan-sign tests fail to build for powerpc64le with GCC 8
because of the special compile / link options needed there for any
test using _Float128.  This patch arranges for these tests to be
handled on powerpc64le similarly to other such tests.

Tested with build-many-glibcs.py for powerpc64le.

[BZ #23303]
* sysdeps/powerpc/powerpc64/le/Makefile
(CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
(CFLAGS-tst-wcstod-nan-sign.c): Likewise.
(gnulib-tests): Also add $(f128-loader-link) for
tst-strtod-nan-sign abd tst-wcstod-nan-sign.

ChangeLog
sysdeps/powerpc/powerpc64/le/Makefile

index 9dd87eebb82c6e880702ae874a687d549ce07f66..3cf598575f7e140b52c47cba0c20e158051aae14 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2018-06-18  Joseph Myers  <joseph@codesourcery.com>
+
+       [BZ #23303]
+       * sysdeps/powerpc/powerpc64/le/Makefile
+       (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
+       (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
+       (gnulib-tests): Also add $(f128-loader-link) for
+       tst-strtod-nan-sign abd tst-wcstod-nan-sign.
+
 2018-06-15  Samuel Thibault  <samuel.thibault@ens-lyon.org>
 
        * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
index 14d39e28b104e1f4229461abd558c6abe8c1c53f..f59db1ca3c8ed454b3ec7bb35e4cc863350e49de 100644 (file)
@@ -54,10 +54,13 @@ CFLAGS-tst-strtod6.c += -mfloat128
 CFLAGS-tst-strfrom.c += -mfloat128
 CFLAGS-tst-strfrom-locale.c += -mfloat128
 CFLAGS-strfrom-skeleton.c += -mfloat128
+CFLAGS-tst-strtod-nan-sign.c += -mfloat128
+CFLAGS-tst-wcstod-nan-sign.c += -mfloat128
 $(foreach test,bug-strtod bug-strtod2 bug-strtod2 tst-strtod-round \
 tst-wcstod-round tst-strtod6 tst-strrom tst-strfrom-locale \
 tst-strtod-nan-locale tst-wcstod-nan-locale \
-strfrom-skeleton,$(objpfx)$(test)): gnulib-tests += $(f128-loader-link)
+strfrom-skeleton tst-strtod-nan-sign tst-wcstod-nan-sign, \
+$(objpfx)$(test)): gnulib-tests += $(f128-loader-link)
 
 # When building glibc with support for _Float128, the powers of ten tables in
 # fpioconst.c and in the string conversion functions must be extended.  Some