]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
powerpc64le: Add -mfloat128 to tst-strtod-nan-locale testcase
authorGabriel F. T. Gomes <gabriel@inconstante.eti.br>
Mon, 4 Sep 2017 15:48:31 +0000 (12:48 -0300)
committerGabriel F. T. Gomes <gabriel@inconstante.eti.br>
Tue, 10 Oct 2017 13:15:15 +0000 (10:15 -0300)
On powerpc64le, not all files can have the flag -mfloat128 passed as an
option on the compile command, since that could conflict with other
flags, such as -mno-vsx.  Each file that needs the flag, gets it through
a CFLAGS-filename variable on sysdeps/powerpc/powerpc64le/Makefile.

The test cases tst-strtod-nan-locale and tst-wcstod-nan-locale are
missing this flag.

Tested for powerpc64le.

* sysdeps/powerpc/powerpc64le/Makefile
(CFLAGS-tst-strtod-nan-locale.c): New variable.
(CFLAGS-tst-wcstod-nan-locale.c): New variable.

(cherry picked from commit ffa448041beb4d5899ad0258843ecca4c106d1cd)

ChangeLog
sysdeps/powerpc/powerpc64le/Makefile

index ff9bc2b7ebd537b4389500e5c6b73d16368a6071..60a1554fac61a1585bff2c059df766f2048d2bf9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
+
+       * sysdeps/powerpc/powerpc64le/Makefile
+       (CFLAGS-tst-strtod-nan-locale.c): New variable.
+       (CFLAGS-tst-wcstod-nan-locale.c): New variable.
+
 2017-10-10  Steve Ellcey  <sellcey@cavium.com>
 
        * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
index cf2dbfb673f3018855cd4e35b961b1d8d5562cb8..f554a791b779c8f4dc3ce65907c1c3229aa5b19e 100644 (file)
@@ -34,12 +34,15 @@ CFLAGS-bug-strtod.c += -mfloat128
 CFLAGS-bug-strtod2.c += -mfloat128
 CFLAGS-tst-strtod-round.c += -mfloat128
 CFLAGS-tst-wcstod-round.c += -mfloat128
+CFLAGS-tst-strtod-nan-locale.c += -mfloat128
+CFLAGS-tst-wcstod-nan-locale.c += -mfloat128
 CFLAGS-tst-strtod6.c += -mfloat128
 CFLAGS-tst-strfrom.c += -mfloat128
 CFLAGS-tst-strfrom-locale.c += -mfloat128
 CFLAGS-strfrom-skeleton.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)
 
 # When building glibc with support for _Float128, the powers of ten tables in