2015-05-21 Joseph Myers <joseph@codesourcery.com>
+ * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Include <libc-internal.h>.
+ (__ieee754_lgamma_r): Ignore uninitialized warnings around use of
+ NADJ.
+ * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Include <libc-internal.h>.
+ (__ieee754_lgammaf_r): Ignore uninitialized warnings around use of
+ NADJ.
+ * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Include <libc-internal.h>.
+ (__ieee754_lgammal_r): Ignore uninitialized warnings around use of
+ NADJ.
+
* sysdeps/ieee754/dbl-64/mpa.c (norm): Remove if condition on
(p == 4) case.
*
*/
+#include <libc-internal.h>
#include <math.h>
#include <math_private.h>
} else
/* 2**58 <= x <= inf */
r = x*(__ieee754_log(x)-one);
+ /* NADJ is set for negative arguments but not otherwise,
+ resulting in warnings that it may be used uninitialized
+ although in the cases where it is used it has always been
+ set. */
+ DIAG_PUSH_NEEDS_COMMENT;
+#if __GNUC_PREREQ (4, 7)
+ DIAG_IGNORE_NEEDS_COMMENT (4.9, "-Wmaybe-uninitialized");
+#else
+ DIAG_IGNORE_NEEDS_COMMENT (4.9, "-Wuninitialized");
+#endif
if(hx<0) r = nadj - r;
+ DIAG_POP_NEEDS_COMMENT;
return r;
}
strong_alias (__ieee754_lgamma_r, __lgamma_r_finite)
* ====================================================
*/
+#include <libc-internal.h>
#include <math.h>
#include <math_private.h>
} else
/* 2**26 <= x <= inf */
r = x*(__ieee754_logf(x)-one);
+ /* NADJ is set for negative arguments but not otherwise,
+ resulting in warnings that it may be used uninitialized
+ although in the cases where it is used it has always been
+ set. */
+ DIAG_PUSH_NEEDS_COMMENT;
+#if __GNUC_PREREQ (4, 7)
+ DIAG_IGNORE_NEEDS_COMMENT (4.9, "-Wmaybe-uninitialized");
+#else
+ DIAG_IGNORE_NEEDS_COMMENT (4.9, "-Wuninitialized");
+#endif
if(hx<0) r = nadj - r;
+ DIAG_POP_NEEDS_COMMENT;
return r;
}
strong_alias (__ieee754_lgammaf_r, __lgammaf_r_finite)
*
*/
+#include <libc-internal.h>
#include <math.h>
#include <math_private.h>
else
/* 2**66 <= x <= inf */
r = x * (__ieee754_logl (x) - one);
+ /* NADJ is set for negative arguments but not otherwise, resulting
+ in warnings that it may be used uninitialized although in the
+ cases where it is used it has always been set. */
+ DIAG_PUSH_NEEDS_COMMENT;
+#if __GNUC_PREREQ (4, 7)
+ DIAG_IGNORE_NEEDS_COMMENT (4.9, "-Wmaybe-uninitialized");
+#else
+ DIAG_IGNORE_NEEDS_COMMENT (4.9, "-Wuninitialized");
+#endif
if (se & 0x8000)
r = nadj - r;
+ DIAG_POP_NEEDS_COMMENT;
return r;
}
strong_alias (__ieee754_lgammal_r, __lgammal_r_finite)