From: Gabriel F. T. Gomes Date: Fri, 28 Oct 2016 19:24:17 +0000 (-0200) Subject: Fix arg used as litteral suffix in tst-strfrom.h X-Git-Tag: glibc-2.25~204 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e96a3ca70319aa7cd6bef7c4c67007264ce4d972;p=thirdparty%2Fglibc.git 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. --- diff --git a/ChangeLog b/ChangeLog index f40e09fcb1b..c7b055d2177 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2016-12-14 Gabriel F. T. Gomes + + * stdlib/tst-strfrom.h (ENTRY): Replace use of CSUF with LSUF. + 2016-12-14 Adhemerval Zanella * sysdeps/unix/sysv/linux/renameat.c: New file. diff --git a/stdlib/tst-strfrom.h b/stdlib/tst-strfrom.h index 31a6492936b..75be55fa03e 100644 --- a/stdlib/tst-strfrom.h +++ b/stdlib/tst-strfrom.h @@ -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