From patchwork Wed Nov 9 18:36:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gabriel F T Gomes X-Patchwork-Id: 17345 Received: (qmail 9688 invoked by alias); 9 Nov 2016 18:37:08 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 9675 invoked by uid 89); 9 Nov 2016 18:37:08 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=BAYES_00, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=ENTRY, 2411 X-HELO: mx0a-001b2d01.pphosted.com From: "Gabriel F. T. Gomes" To: libc-alpha@sourceware.org Subject: [PATCH] Fix arg used as litteral suffix in tst-strfrom.h Date: Wed, 9 Nov 2016 16:36:52 -0200 X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16110918-1523-0000-0000-0000024A1956 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16110918-1524-0000-0000-000029CF264B Message-Id: <1478716612-2570-1-git-send-email-gftg@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2016-11-09_08:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1609300000 definitions=main-1611090342 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. 2016-10-28 Gabriel F. T. Gomes * stdlib/tst-strfrom.h (ENTRY): Replace use of CSUF with LSUF. --- stdlib/tst-strfrom.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/tst-strfrom.h b/stdlib/tst-strfrom.h index 31a6492..75be55f 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