From patchwork Wed Jun 28 19:43:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 21322 Received: (qmail 33746 invoked by alias); 28 Jun 2017 19:43:26 -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 33737 invoked by uid 89); 28 Jun 2017 19:43:25 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.4 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS, URIBL_RED autolearn=ham version=3.3.2 spammy= X-HELO: relay1.mentorg.com Date: Wed, 28 Jun 2017 19:43:15 +0000 From: Joseph Myers To: "H.J. Lu" CC: GNU C Library Subject: Re: Add more thorough generated tgmath.h test [committed] In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) On Wed, 28 Jun 2017, H.J. Lu wrote: > With GCC 7.1.1 on i686, I got > > /export/build/gnu/glibc-32bit-test/build-i686-linux/math/test-tgmath3.c:130745:21: > error: ‘FLT128_MANT_DIG’ undeclared (first use in this function); did > you mean ‘FLT_MANT_DIG’? Thanks for the report. I've applied this patch to fix this. Fix gen-tgmath-tests.py output for GCC 7 . 2017-06-28 Joseph Myers * math/gen-tgmath-tests.py (Tests.__init__): Define __STDC_WANT_IEC_60559_TYPES_EXT__ at start of generated file. diff --git a/math/gen-tgmath-tests.py b/math/gen-tgmath-tests.py index 04492cd..0c548ef 100755 --- a/math/gen-tgmath-tests.py +++ b/math/gen-tgmath-tests.py @@ -293,7 +293,8 @@ class Tests(object): def __init__(self): """Initialize a Tests object.""" - self.header_list = ['#include \n' + self.header_list = ['#define __STDC_WANT_IEC_60559_TYPES_EXT__\n' + '#include \n' '#include \n' '#include \n' '#include \n'