From patchwork Tue Mar 18 02:05:44 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Siddhesh Poyarekar X-Patchwork-Id: 136 Return-Path: X-Original-To: siddhesh@wilcox.dreamhost.com Delivered-To: siddhesh@wilcox.dreamhost.com Received: from homiemail-mx20.g.dreamhost.com (caibbdcaaahc.dreamhost.com [208.113.200.72]) by wilcox.dreamhost.com (Postfix) with ESMTP id D861E360084 for ; Mon, 17 Mar 2014 19:05:20 -0700 (PDT) Received: by homiemail-mx20.g.dreamhost.com (Postfix, from userid 14307373) id 7F76F4088D047; Mon, 17 Mar 2014 19:05:20 -0700 (PDT) X-Original-To: glibc@patchwork.siddhesh.in Delivered-To: x14307373@homiemail-mx20.g.dreamhost.com 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 homiemail-mx20.g.dreamhost.com (Postfix) with ESMTPS id 417D04088D047 for ; Mon, 17 Mar 2014 19:05:20 -0700 (PDT) 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:subject:message-id:mime-version :content-type; q=dns; s=default; b=lMPLfMirhjOtMZgtMdHMmtKPPByxd y0S0rl41rt9sHEmXHQb/EZTS/13rFiIgD0UIpiWSSCTNe6EH++wyEcii7SOXW6Hj 5sRk2O3M+zjMhXKXcn7DCk6mDQ9SH705WolVHqoWwMLb828ZCoa1pkmdTfApgDG7 45xNiCIwcwaI7Y= 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:subject:message-id:mime-version :content-type; s=default; bh=lVOIoPc/nAHmmnkLtYt2atdaiOk=; b=Mm7 rpdWIGowB6lfH6QswpK1duAX8sSvA6h+CXTqMZfZJHEjlx7IlvEazVP61WymtISL XOKR8LPOLAGximNHvIqJpu/vHyl/BbaLi9GnvO9u9/63pbLG9l/FXD5ATtox4/VI nkDhdasQ6Az77XF2K7B+CywBEcNiQYAkrNCmiqII= Received: (qmail 15542 invoked by alias); 18 Mar 2014 02:05:16 -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 15351 invoked by uid 89); 18 Mar 2014 02:05:12 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.8 required=5.0 tests=AWL, BAYES_00, SPF_HELO_PASS, SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Date: Tue, 18 Mar 2014 07:35:44 +0530 From: Siddhesh Poyarekar To: libc-alpha@sourceware.org Subject: [PATCH] Fix -Wundef warnins for __FP_FAST_FMA* Message-ID: <20140318020544.GO1850@spoyarek.pnq.redhat.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.22.1-rc1 (2013-10-16) X-DH-Original-To: glibc@patchwork.siddhesh.in The macros are defined by the compiler, so we can only verify whether they are defined or not. I have made changes to the arm and tile bits as well, but I have not tested them. OK to commit? Siddhesh * bits/mathdef.h: Use #ifdef instead of #if. * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined _MATH_H && !defined _MATH_H_MATHDEF]: Likewise. * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined _MATH_H && !defined _MATH_H_MATHDEF]: Likewise. * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined _MATH_H && !defined _MATH_H_MATHDEF]: Likewise. --- bits/mathdef.h | 6 +++--- sysdeps/arm/bits/mathdef.h | 6 +++--- sysdeps/tile/bits/mathdef.h | 6 +++--- sysdeps/x86/bits/mathdef.h | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/bits/mathdef.h b/bits/mathdef.h index ca1f464..f27ecac 100644 --- a/bits/mathdef.h +++ b/bits/mathdef.h @@ -35,15 +35,15 @@ typedef double double_t; /* `double' expressions are evaluated as /* The GCC 4.6 compiler will define __FP_FAST_FMA{,F,L} if the fma{,f,l} builtins are supported. */ -#if __FP_FAST_FMA +#ifdef __FP_FAST_FMA # define FP_FAST_FMA 1 #endif -#if __FP_FAST_FMAF +#ifdef __FP_FAST_FMAF # define FP_FAST_FMAF 1 #endif -#if __FP_FAST_FMAL +#ifdef __FP_FAST_FMAL # define FP_FAST_FMAL 1 #endif diff --git a/sysdeps/arm/bits/mathdef.h b/sysdeps/arm/bits/mathdef.h index be727e5..f309002 100644 --- a/sysdeps/arm/bits/mathdef.h +++ b/sysdeps/arm/bits/mathdef.h @@ -34,15 +34,15 @@ typedef double double_t; /* `double' expressions are evaluated as /* The GCC 4.6 compiler will define __FP_FAST_FMA{,F,L} if the fma{,f,l} builtins are supported. */ -# if __FP_FAST_FMA +# ifdef __FP_FAST_FMA # define FP_FAST_FMA 1 # endif -# if __FP_FAST_FMAF +# ifdef __FP_FAST_FMAF # define FP_FAST_FMAF 1 # endif -# if __FP_FAST_FMAL +# ifdef __FP_FAST_FMAL # define FP_FAST_FMAL 1 # endif diff --git a/sysdeps/tile/bits/mathdef.h b/sysdeps/tile/bits/mathdef.h index d043b4a..c26a2e7 100644 --- a/sysdeps/tile/bits/mathdef.h +++ b/sysdeps/tile/bits/mathdef.h @@ -33,15 +33,15 @@ typedef double double_t; /* The GCC 4.6 compiler will define __FP_FAST_FMA{,F,L} if the fma{,f,l} builtins are supported. */ -# if __FP_FAST_FMA +# ifdef __FP_FAST_FMA # define FP_FAST_FMA 1 # endif -# if __FP_FAST_FMAF +# ifdef __FP_FAST_FMAF # define FP_FAST_FMAF 1 # endif -# if __FP_FAST_FMAL +# ifdef __FP_FAST_FMAL # define FP_FAST_FMAL 1 # endif diff --git a/sysdeps/x86/bits/mathdef.h b/sysdeps/x86/bits/mathdef.h index 07c2d66..fd9cf42 100644 --- a/sysdeps/x86/bits/mathdef.h +++ b/sysdeps/x86/bits/mathdef.h @@ -44,15 +44,15 @@ typedef long double double_t; /* `double' expressions are evaluated as /* The GCC 4.6 compiler will define __FP_FAST_FMA{,F,L} if the fma{,f,l} builtins are supported. */ -# if __FP_FAST_FMA +# ifdef __FP_FAST_FMA # define FP_FAST_FMA 1 # endif -# if __FP_FAST_FMAF +# ifdef __FP_FAST_FMAF # define FP_FAST_FMAF 1 # endif -# if __FP_FAST_FMAL +# ifdef __FP_FAST_FMAL # define FP_FAST_FMAL 1 # endif