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: 781894 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3wyYBG2SqMz9s65 for ; Thu, 29 Jun 2017 05:43:34 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="ctPTccFk"; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:cc:subject:in-reply-to:message-id :references:mime-version:content-type; q=dns; s=default; b=aOsKH 6pA5JpoXB6hswbsY2qwtsqSsvMOML0JNC4/o2FhUDrYvPcPdiIbHcNUG3oOtidSQ 6+MbGvpWCc6ey1vXkCpafMlqR7KpN96pgRzHcFb7RT2BXoB5ImxTCPElJ1o5Uxnt KgJbPs3OMas+ODnaRe0I0A2ioKBTskaByv/jOQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:cc:subject:in-reply-to:message-id :references:mime-version:content-type; s=default; bh=AuEiqw3KLih KKzS+Gi6TLYmiYqk=; b=ctPTccFkRfyYVlKBKrV7IYTVWFWqcUAP0ngZyClYwkU MUIsJxr8RpcqaMb9/R1qOXvZsPOe8OB8QdivJJGjlgh8thnswV2BBksjgWnhtaPv 3tWknikPz78i8GThZkvU9gs4trnLehrXzrozu1Ac5a5SY76w+bAYArPNNxY/zn+E = 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'