Fix arg used as litteral suffix in tst-strfrom.h

The macro ENTRY in tst-strfrom.h is used to generate the input values for
each floating-point type (float, double, long double).  It should append
the parameter LSUF (Literal suffix) to the floating-point number, but is
using CSUF (C function suffix).  This patch fixes it.

Tested for powerpc64le and x86_64.
This commit is contained in:
Gabriel F. T. Gomes 2016-10-28 17:24:17 -02:00
parent 8b9283dabd
commit e96a3ca703
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2016-12-14 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
* stdlib/tst-strfrom.h (ENTRY): Replace use of CSUF with LSUF.
2016-12-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
* sysdeps/unix/sysv/linux/renameat.c: New file.

View File

@ -36,7 +36,7 @@
#define STRUCT_FOREACH_FLOAT_FTYPE GEN_TEST_STRTOD_FOREACH (FTYPE_MEMBER)
#define ENTRY(FSUF, FTYPE, FTOSTR, LSUF, CSUF, ...) \
CONCAT (__VA_ARGS__, CSUF),
CONCAT (__VA_ARGS__, LSUF),
/* This is hacky way around the seemingly unavoidable macro
* expansion of the INFINITY or HUGE_VAL like macros in the
* above. It is assumed the compiler will implicitly convert