]> sourceware.org Git - glibc.git/commitdiff
Fix -Wundef warnins for __FP_FAST_FMA*
authorSiddhesh Poyarekar <siddhesh@redhat.com>
Tue, 18 Mar 2014 01:52:36 +0000 (07:22 +0530)
committerSiddhesh Poyarekar <siddhesh@redhat.com>
Fri, 21 Mar 2014 11:58:43 +0000 (17:28 +0530)
The macros are defined by the compiler, so we can only verify whether
they are defined or not.

ChangeLog
bits/mathdef.h
sysdeps/arm/bits/mathdef.h
sysdeps/tile/bits/mathdef.h
sysdeps/x86/bits/mathdef.h

index 1535d46c7bd9ca15458ee6ab75a9ae8e33745005..82d653542f9fd1b5934769b19b7b07928ce334df 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
+
+       * 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.
+
 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
            Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
 
index ca1f464bceb03ade0585b01e9085d97ed7b52ee2..f27ecac042300e770a26bb5cfc849b52b523f143 100644 (file)
@@ -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
 
index be727e5b8d267a9dc4b37c31149cf9ecbbb097b3..f309002abda84bfdd4ce6cc7623c00ab8eaa5b6d 100644 (file)
@@ -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
 
index d043b4af5fca16cbd34b6e867bf33c1fa104c47a..c26a2e7139bd85bcc0fbf3e327f85eb60f43c44b 100644 (file)
@@ -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
 
index 07c2d66b03616d701323a8829f893ab7a9e52980..fd9cf42af03c57bdf70af4e14500b728bd7329f3 100644 (file)
@@ -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
 
This page took 0.128119 seconds and 5 git commands to generate.