]> sourceware.org Git - glibc.git/commitdiff
ia64: fpu: fix gamma definition handling [BZ #15421]
authorMike Frysinger <vapier@gentoo.org>
Tue, 29 Dec 2015 06:06:30 +0000 (01:06 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sat, 2 Jan 2016 03:17:07 +0000 (22:17 -0500)
The rework in commit d709042a6e5ab3c360280faad6f9538a34dc8eea broke
buiding on ia64 due to compat_symbol expanding into ... in some cases.
The common files were wrapped in a BUILD_LGAMMA check, but the ia64
ones were not.  Add that logic to the ia64 files too.

ChangeLog
sysdeps/ia64/fpu/w_lgamma_main.c
sysdeps/ia64/fpu/w_lgammaf_main.c
sysdeps/ia64/fpu/w_lgammal_main.c

index 51a055c825f967dbbbd3feff32eafd2425de9e25..8c339d23ae3c6b974c6975533be4a1baeb8f4367 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2016-01-01  Mike Frysinger  <vapier@gentoo.org>
+
+       [BZ #15421]
+       * sysdeps/ia64/fpu/w_lgamma_main.c: Include math.h & math_private.h.
+       [BUILD_LGAMMA]: Wrap all code by define.  Re-indent sub-preprocessor.
+       * sysdeps/ia64/fpu/w_lgammaf_main.c: Likewise.
+       * sysdeps/ia64/fpu/w_lgammal_main.c: Likewise.
+
 2015-12-30  Dmitry V. Levin  <ldv@altlinux.org>
 
        [BZ #19408]
index 0d93bde1eb55d2368fa86afbeb2f6188a0a67e6a..3ad73b6756ab4227cc3bb00ec42b2eb9990bf6ad 100644 (file)
 
 #include "libm_support.h"
 
+#include <math.h>
+#include <math_private.h>
+
 #include <lgamma-compat.h>
 
 extern double __libm_lgamma(double /*x*/, int* /*signgam*/, int /*signgamsz*/);
 
-
+#if BUILD_LGAMMA
 double LGFUNC (lgamma) (double x)
 {
     return CALL_LGAMMA (double, __libm_lgamma, x);
 }
-#if USE_AS_COMPAT
+# if USE_AS_COMPAT
 compat_symbol (libm, __lgamma_compat, lgamma, LGAMMA_OLD_VER);
-#else
+# else
 versioned_symbol (libm, __ieee754_lgamma, lgamma, LGAMMA_NEW_VER);
-#endif
-#if GAMMA_ALIAS
+# endif
+# if GAMMA_ALIAS
 strong_alias (LGFUNC (lgamma), __ieee754_gamma)
 weak_alias (__ieee754_gamma, gamma)
+# endif
 #endif
index d8e86a6f257544cbce7e5e8938b2c36cdfff6b5c..2f3dd41088b75fc0474d43ff18d479c145cf8050 100644 (file)
 
 #include "libm_support.h"
 
+#include <math.h>
+#include <math_private.h>
+
 #include <lgamma-compat.h>
 
 extern float  __libm_lgammaf(float /*x*/, int* /*signgam*/, int /*signgamsz*/);
 
-
+#if BUILD_LGAMMA
 float LGFUNC (lgammaf) (float x)
 {
     return CALL_LGAMMA (float, __libm_lgammaf, x);
 }
-#if USE_AS_COMPAT
+# if USE_AS_COMPAT
 compat_symbol (libm, __lgammaf_compat, lgammaf, LGAMMA_OLD_VER);
-#else
+# else
 versioned_symbol (libm, __ieee754_lgammaf, lgammaf, LGAMMA_NEW_VER);
-#endif
-#if GAMMA_ALIAS
+# endif
+# if GAMMA_ALIAS
 strong_alias (LGFUNC (lgammaf), __ieee754_gammaf)
 weak_alias (__ieee754_gammaf, gammaf)
+# endif
 #endif
index 5c73f33430bc6dfb45ce70e7588cb338cf6d0228..7879611d5432bc890414c8ebef538156db3642e3 100644 (file)
 
 #include "libm_support.h"
 
-
-extern double __libm_lgammal(long double /*x*/, int* /*signgam*/, int /*signgamsz*/);
+#include <math.h>
+#include <math_private.h>
 
 #include <lgamma-compat.h>
 
+extern double __libm_lgammal(long double /*x*/, int* /*signgam*/, int /*signgamsz*/);
+
+#if BUILD_LGAMMA
 long double LGFUNC (lgammal) (long double x)
 {
     return CALL_LGAMMA (long double, __libm_lgammal, x);
 }
-#if USE_AS_COMPAT
+# if USE_AS_COMPAT
 compat_symbol (libm, __lgammal_compat, lgammal, LGAMMA_OLD_VER);
-#else
+# else
 versioned_symbol (libm, __ieee754_lgammal, lgammal, LGAMMA_NEW_VER);
-#endif
-#if GAMMA_ALIAS
+# endif
+# if GAMMA_ALIAS
 strong_alias (LGFUNC (lgammal), __ieee754_gammal)
 weak_alias (__ieee754_gammal, gammal)
+# endif
 #endif
This page took 0.185793 seconds and 5 git commands to generate.