glibc/sysdeps/ieee754/ldbl-128ibm
Martin Jansa 27c5e756a2 sysdeps/ieee754: prevent maybe-uninitialized errors with -O [BZ #19444]
With -O included in CFLAGS it fails to build with:

../sysdeps/ieee754/ldbl-96/e_jnl.c: In function '__ieee754_jnl':
../sysdeps/ieee754/ldbl-96/e_jnl.c:146:20: error: 'temp' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      b = invsqrtpi * temp / sqrtl (x);
          ~~~~~~~~~~^~~~~~
../sysdeps/ieee754/ldbl-96/e_jnl.c: In function '__ieee754_ynl':
../sysdeps/ieee754/ldbl-96/e_jnl.c:375:16: error: 'temp' may be used uninitialized in this function [-Werror=maybe-uninitialized]
  b = invsqrtpi * temp / sqrtl (x);
      ~~~~~~~~~~^~~~~~
../sysdeps/ieee754/dbl-64/e_jn.c: In function '__ieee754_jn':
../sysdeps/ieee754/dbl-64/e_jn.c:113:20: error: 'temp' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      b = invsqrtpi * temp / sqrt (x);
          ~~~~~~~~~~^~~~~~
../sysdeps/ieee754/dbl-64/e_jn.c: In function '__ieee754_yn':
../sysdeps/ieee754/dbl-64/e_jn.c:320:16: error: 'temp' may be used uninitialized in this function [-Werror=maybe-uninitialized]
  b = invsqrtpi * temp / sqrt (x);
      ~~~~~~~~~~^~~~~~

Build tested with Yocto for ARM, AARCH64, X86, X86_64, PPC, MIPS, MIPS64
with -O, -O1, -Os.
For AARCH64 it needs one more fix in locale for -Os:
https://sourceware.org/ml/libc-alpha/2018-09/msg00539.html

	[BZ #19444]
	* sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
	__builtin_unreachable for default case in switch.
	(__ieee754_yn): Likewise.
	* sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
	(__ieee754_ynl): Likewise.
	* sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
	(__ieee754_ynl): Likewise.
	* sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
	(__ieee754_ynl): Likewise.
2019-01-04 16:17:48 +00:00
..
bits Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
include/bits
e_acoshl.c
e_acosl.c
e_asinl.c
e_atan2l.c
e_atanhl.c
e_coshl.c
e_exp10l.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
e_expl.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
e_fmodl.c
e_gammal_r.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
e_hypotl.c
e_ilogbl.c
e_j0l.c
e_j1l.c
e_jnl.c sysdeps/ieee754: prevent maybe-uninitialized errors with -O [BZ #19444] 2019-01-04 16:17:48 +00:00
e_lgammal_r.c
e_log2l.c
e_log10l.c
e_logl.c
e_powl.c
e_rem_pio2l.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
e_remainderl.c
e_sinhl.c
e_sqrtl.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
gamma_productl.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
ieee754.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
k_cosl.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
k_sincosl.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
k_sinl.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
k_tanl.c
ldbl2mpn.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
lgamma_negl.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
lgamma_productl.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
Makefile
math_ldbl.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
math-nan-payload-ldouble.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
mpn2ldbl.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
printf_fphex.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
s_asinhl.c
s_atanl.c
s_cbrtl.c
s_ceill.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
s_copysignl.c
s_cosl.c
s_daddl.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
s_ddivl.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
s_dmull.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
s_dsubl.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
s_erfl.c
s_expm1l.c
s_fabsl.c
s_faddl.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
s_fdivl.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
s_finitel.c
s_floorl.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
s_fmal.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
s_fmull.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
s_fpclassifyl.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
s_frexpl.c
s_fromfpl_main.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
s_fromfpl.c
s_fromfpxl.c
s_fsubl.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
s_getpayloadl.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
s_iscanonicall.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
s_isinfl.c
s_isnanl.c
s_issignalingl.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
s_llrintl.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
s_llroundl.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
s_log1pl.c
s_logbl.c
s_lrintl.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
s_lroundl.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
s_modfl.c
s_nearbyintl.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
s_nextafterl.c
s_nexttoward.c
s_nexttowardf.c
s_nextupl.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
s_remquol.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
s_rintl.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
s_roundevenl.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
s_roundl.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
s_scalblnl.c
s_scalbnl.c
s_setpayloadl_main.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
s_setpayloadl.c
s_setpayloadsigl.c
s_signbitl.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
s_sincosl.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
s_sinl.c
s_tanhl.c
s_tanl.c
s_totalorderl.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
s_totalordermagl.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
s_truncl.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
s_ufromfpl.c
s_ufromfpxl.c
strtold_l.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
t_expl.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
t_sincosl.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
test-canonical-ldbl-128ibm.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
test-fmodl-ldbl-128ibm.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
test-fmodrem-ldbl-128ibm.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
test-remainderl-ldbl-128ibm.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
test-remquol-ldbl-128ibm.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
test-totalorderl-ldbl-128ibm.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
tst-strtold-ldbl-128ibm.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
x2y2m1l.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00