Provide an additional macro expansion for F128 in stdlib/tst-strtod.h
commit5ae22669437cdee21b254b7eb59e16e394ddfd6d
authorGabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
Wed, 21 Jun 2017 12:20:39 +0000 (21 09:20 -0300)
committerGabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
Thu, 22 Jun 2017 16:04:56 +0000 (22 13:04 -0300)
tree365c2dd51888d058c5adebe16f672d6e12802f82
parent95b38bbb03b3531336ae9a9346bb5b01a1836647
Provide an additional macro expansion for F128 in stdlib/tst-strtod.h

The macro F128 in stdlib/tst-strtod.h is defined to provide the literal
suffix for _Float128 constants.  It uses the macro __f128 (), which is
defined in bits/floatn.h to provide the correct literal suffix depending on
what is provided by the compiler.

However, F128 was not being expanded and only worked correctly, when
compiling with GCC 7 (or greater), since F128 is the literal suffix itself.
This patch adds an additional macro expansion so that the macro F128
expands to the correct literal suffix on older compilers.

* stdlib/tst-strtod.h (MMFUNC): New macro to provide an addition
macro expansion.
(GEN_TEST_STRTOD_FOREACH): Use MMFUNC for _Float128.
ChangeLog
stdlib/tst-strtod.h