aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2017-08-03Fix the return type of the getentropy stubAurelien Jarno2-1/+5
The return type of the getentropy stub is wrongly defined as ssize_t, while both the <sys/random.h> header and the Linux implementation define it as int. This patch fixes that. Changelog: * stdlib/getentropy.c (getentropy): Change return type to int.
2017-08-03i686/multiarch: Regenerate ulpsAurelien Jarno2-7/+11
This comes from running “make regen-ulps” on an AMD Opteron 2378 CPU. Changelog: * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
2017-08-03Consistently use uintN_t not u_intN_t in libm.Joseph Myers149-251/+453
This patch changes libm code to make consistent use of C99 uintN_t types instead of sometimes using those and sometimes using the older nonstandard u_intN_t names. This makes sense as a cleanup in its own right, and also facilitates merges to GCC's libquadmath (which gets the types from stdint.h and so may not have u_intN_t available at all). Tested for x86_64, and with build-many-glibcs.py. * math/s_nextafter.c (__nextafter): Use uintN_t instead of u_intN_t. * math/s_nexttowardf.c (__nexttowardf): Likewise. * sysdeps/generic/math_private.h (ieee_double_shape_type): Likewise. (ieee_float_shape_type): Likewise. * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise. * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise. * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise. * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise. * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise. * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise. * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise. * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise. * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise. * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise. * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise. (__ieee754_yn): Likewise. * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise. * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise. * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2): Likewise. * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise. * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise. * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise. * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise. (__erfc): Likewise. * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise. * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise. * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise. * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise. * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise. * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling): Likewise. * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise. * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise. * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise. * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise. * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise. * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise. * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise. * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise. * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise. * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c (__issignaling): Likewise. * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise. * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise. * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise. * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise. * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise. * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise. * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f): Likewise. * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf): Likewise. * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise. * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise. * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise. * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise. (__erfcf): Likewise. * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise. * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise. * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise. * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Likewise. * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise. * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf): Likewise. * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise. * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise. * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise. * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise. * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise. * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise. * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise. * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Likewise. * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l): Likewise. * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl): Likewise. * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise. * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r): Likewise. * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise. * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise. (__ieee754_ynl): Likewise. * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise. * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l): Likewise. * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl): Likewise. * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise. * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise. * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl): Likewise. * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise. * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise. * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise. * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise. * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise. * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise. * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise. * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl): Likewise. * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise. * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise. * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl): Likewise. * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise. * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise. * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise. * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise. * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise. * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Likewise. * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise. * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise. * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf): Likewise. * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise. * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise. * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise. * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise. * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise. * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise. * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise. * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r): Likewise. * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise. * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l): Likewise. * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl): Likewise. * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise. * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise. * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise. * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl): Likewise. * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise. * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf): Likewise. * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise. * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise. * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise. * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise. * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise. * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r): Likewise. * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise. * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise. (__ieee754_y0l): Likewise. (pzero): Likewise. (qzero): Likewise. * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise. (__ieee754_y1l): Likewise. (pone): Likewise. (qone): Likewise. * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise. (__ieee754_ynl): Likewise. * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise. (__ieee754_lgammal_r): Likewise. * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l): Likewise. * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise. * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise. * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise. (__erfcl): Likewise. * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise. * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl): Likewise. * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise. * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise. * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise. * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise. * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise. * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise. * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf): Likewise. * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise. * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise. * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise. * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise. * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf): Likewise. * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise. * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise. * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise. * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise. * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise. * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise. * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
2017-08-03Add yesstr and nostr for doi_IN, kok_IN, and sat_INMike FABIAN4-12/+24
For the locales doi_IN, kok_IN, and sat_IN, the words for “yes” and “no” were apparently in yesexpr and noexpr. Copy them from there to add yesstr and nostr. Also make yesexpr and noexpr more readable by using the POSIX portable character set. * locales/doi_IN (LC_MESSAGES): Add yesstr and nostr. * locales/kok_IN (LC_MESSAGES): Add yesstr and nostr. * locales/sat_IN (LC_MESSAGES): Add yesstr and nostr.
2017-08-03Revert “Fix yesexpr in en_DK locale”Mike FABIAN2-1/+21
This reverts commit 8f75515080ee099030547ba5bcae59e800a2cc08 Revert “Fix yesexpr in en_DK locale”. * locales/en_DK (LC_MESSAGES): Restore original yesexpr, noexpr, yesstr, nostr. Convert them to ASCII and add a comment why we want to have them like this.
2017-08-03getaddrinfo: Release resolver context on error in gethosts [BZ #21885]Florian Weimer2-0/+8
2017-08-03drop redundant ([eE][sS])? and [oO]? from yesexpr and noexpr in km_KH localeMike FABIAN2-2/+7
* locales/km_KH (LC_MESSAGES): drop redundant ([eE][sS])? and [oO]? from yesexpr and noexpr
2017-08-03Drop redundant .* from yesexpr and noexpr in agr_PE localeMike FABIAN2-8/+8
And make the expressions more readable by using the POSIX portable character set instead of Unicode code points. * locales/agr_PE (LC_MESSAGES): drop .* from yesexpr and noexpr
2017-08-03Added new Locale bho_NPAkhilesh Kumar3-0/+99
Bhojpuri is one of the most common languages in Nepal and India. http://codefornepal.org/en/2014/02/top-10-languages-spoken-as-mother-tongues-in-nepal/ https://en.wikipedia.org/wiki/Bhojpuri_language Added "bho_NP" locale and Reference is taken form "bho_IN". [BZ #21845] * locales/bho_NP: New file, Bhojpuri locale for Nepal. * SUPPORTED: Add bho_NP/UTF-8
2017-08-03Fix yesexpr in en_DK localeAkhilesh Kumar2-4/+6
[BZ #21867] * locales/en_DK (LC_MESSAGES): Fix yesexpr
2017-08-03Fix abday in zh_SGAkhilesh Kumar2-4/+6
Make it the same as in zh_CN and zh_TW which agrees with "narrow" in CLDR. [BZ #21853] * locales/zh_SG (LC_TIME): Fix abday
2017-08-03tst-tlsopt-powerpc as a shared libAlan Modra5-48/+70
This makes the __tls_get_addr_opt test run as a shared library, and so actually test that DTPMOD64/DTPREL64 pairs are processed by ld.so to support the __tls_get_adfr_opt call stub fast return. After a 2017-01-24 patch (binutils f0158f4416) ld.bfd no longer emitted unnecessary dynamic relocations against local thread variables, instead setting up the __tls_index GOT entries for the call stub fast return. This meant tst-tlsopt-powerpc passed but did not check ld.so relocation support. After a 2017-07-16 patch (binutils 676ee2b5fa) ld.bfd no longer set up the __tls_index GOT entries for the call stub fast return, and tst-tlsopt-powerpc failed. Compiling mod-tlsopt-powerpc.c with -DSHARED exposed a bug in powerpc64/tls-macros.h, which defines a __TLS_GET_ADDR macro that clashes with one defined in dl-tls.h. The tls-macros.h version is only used in that file, so delete it and expand. * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from tst-tlsopt-powerpc.c with function name change and no test harness. * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test. Call tls_get_addr_opt_test. * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define. (modules-names): Add mod-tlsopt-powerpc. (mod-tlsopt-powerpc.so-no-z-defs): Define. (tst-tlsopt-powerpc): Depend on .so. * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't define. Expand use in TLS_GD and TLS_LD.
2017-08-03Add missing include for pthread_setcancelstateSamuel Thibault2-0/+2
* sysdeps/posix/shm_open.c: Include <pthread.h>.
2017-08-02[hurd]: Add __libc_init_secure stubSamuel Thibault2-0/+12
csu/libc-start.c now insists on calling __libc_init_secure, while the Hurd port already implements it "very early" in dl-sysdep.c and init-first.c * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define function.
2017-08-02Fix tgmath.h for __int128 (bug 21686).Joseph Myers3-13/+24
When a tgmath.h macro is passed a double argument and an argument of type __int128, it generates a call to a long double function (although the result still gets converted to type double). __int128 is similar enough to integer types that it should be handled consistently like them, so always like double for these macros rather than sometimes like double and sometimes like long double. This patch fixes the logic accordingly and makes gen-tgmath-tests.py generate tests for __int128. Tested for x86_64 and x86. [BZ #21686] * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before comparing size with that of double. (__TGMATH_BINARY_REAL_STD_ONLY): Likewise. (__TGMATH_BINARY_REAL_RET_ONLY): Likewise. (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise. (__TGMATH_TERNARY_REAL_ONLY): Likewise. (__TGMATH_BINARY_REAL_IMAG): Likewise. * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and unsigned __int128 types.
2017-08-02Remove CFLAG settings that turn off warning (no longer needed).Steve Ellcey2-16/+8
2017-08-02 Steve Ellcey <sellcey@cavium.com> * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c, CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c, CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c, CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
2017-08-02x86-64: Check PIC instead of SHARED in start.SH.J. Lu2-1/+5
Since start.o may be compiled as PIC, we should check PIC instead of SHARED. * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
2017-08-02i386: Check PIC to enable PIC setups in multiarch functionsH.J. Lu9-34/+46
Check PIC, instead of SHARED, to enable PIC setups. * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead of SHARED. * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise. * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise. * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise. * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise. * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise. * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise. * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
2017-08-02Fix tgmath.h for bit-fields (bug 21685).Joseph Myers3-60/+98
The tgmath.h macros produce errors for bit-field arguments, because they apply sizeof and typeof to the arguments. This patch fixes them to use unary + systematically before using sizeof or typeof on arguments that might be bit-fields (note that __real__ of a bit-field is still a bit-field for this purpose, since it's an lvalue). gen-tgmath-tests.py is extended to add tests for this case. Tested for x86_64. [BZ #21685] * math/tgmath.h (__tgmath_real_type): Use unary + on potentially bit-field expressions passed to sizeof or typeof. [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (__TGMATH_F128): Likewise. [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (__TGMATH_CF128): Likewise. (__TGMATH_UNARY_REAL_ONLY): Likewise. (__TGMATH_UNARY_REAL_RET_ONLY): Likewise. (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise. (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise. (__TGMATH_BINARY_REAL_ONLY): Likewise. (__TGMATH_BINARY_REAL_STD_ONLY): Likewise. (__TGMATH_BINARY_REAL_RET_ONLY): Likewise. (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise. (__TGMATH_TERNARY_REAL_ONLY): Likewise. (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise. (__TGMATH_UNARY_REAL_IMAG): Likewise. (__TGMATH_UNARY_IMAG): Likewise. (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise. (__TGMATH_BINARY_REAL_IMAG): Likewise. * math/gen-tgmath-tests.py (Type.init_types): Create bit_field type. (define_vars_for_type): Handle bit_field type specially. (Tests.__init__): Declare structure with bit-field element.
2017-08-02i386: Don't define multiarch __memmove_chk in libc.a [BZ #21791]H.J. Lu4-3/+12
There is no need to define multiarch __memmove_chk in libc.a since they aren't used at all. [BZ #21791] * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S (MEMCPY_CHK): Define only if SHARED is defined. * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK): Likewise. * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK): Likewise.
2017-08-02Rotate ChangeLog correctlySiddhesh Poyarekar19-232770/+232772
I incorrectly assumed that the ChangeLog numbers (.1, .2, etc.) are in order. They're not and the latest non-current ChangeLog is the one with the highest number. Fixed.
2017-08-02Rotate ChangeLogSiddhesh Poyarekar19-236092/+236092
2017-08-02Open master for developmentglibc-2.26.9000Siddhesh Poyarekar3-2/+30
2017-08-02Update for 2.26 releaseglibc-2.26Siddhesh Poyarekar3-3/+7
2017-08-02Update contributors and latest gcc and binutils versionsSiddhesh Poyarekar4-4/+37
2017-08-02Fix up ChangeLog formattingSiddhesh Poyarekar1-9/+9
2017-08-02Add list of bugs fixed in 2.26Siddhesh Poyarekar2-2/+227
2017-08-02Update translationsSiddhesh Poyarekar2-574/+616
2017-08-02Update NEWSSiddhesh Poyarekar2-1/+15
2017-07-31Update translationsSiddhesh Poyarekar5-2742/+2792
2017-07-29mutex: Fix robust mutex lock acquire (Bug 21778)Carlos O'Donell6-22/+73
65810f0ef05e8c9e333f17a44e77808b163ca298 fixed a robust mutex bug but introduced BZ 21778: if the CAS used to try to acquire a lock fails, the expected value is not updated, which breaks other cases in the loce acquisition loop. The fix is to simply update the expected value with the value returned by the CAS, which ensures that behavior is as if the first case with the CAS never happened (if the CAS fails). This is a regression introduced in the last release. Tested on x86_64, i686, ppc64, ppc64le, s390x, aarch64, armv7hl.
2017-07-28microblaze: Resolve non-relocatable branch in pt-vfork.S (BZ#21779)Nathan Rossi2-1/+4
The relative branch directly to __libc_vfork results in an relocation that cannot be resolved. Specifically a R_MICROBLAZE_64_PCREL relocation is created for this branch, however for MicroBlaze R_MICROBLAZE_64_PCREL type relocations symbols are not resolved. Additionally due to the branch being located in the .text section the instruction cannot be rewritten as the section is not writable, and causes a segfault at runtime when loading libpthread. To resolve this issue, ensure the branch is done using PLT. This removes the need to modify the instruction and trades the R_MICROBLAZE_64_PCREL for a more common R_MICROBLAZE_JUMP via the PLT. [BZ #21779] * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Branch using PLT.
2017-07-28Update Microblaze libm-test-ulpsNathan Rossi2-50/+119
* sysdeps/microblaze/libm-test-ulps: Update.
2017-07-28Update Nios II ULPs file.Chung-Lin Tang2-8/+16
2017-07-28rwlock: Fix explicit hand-over (bug 21298)Carlos O'Donell12-239/+555
Without this fix, the rwlock can fail to execute the explicit hand-over in certain cases (e.g., empty critical sections that switch quickly between read and write phases). This can then lead to errors in how __wrphase_futex is accessed, which in turn can lead to deadlocks.
2017-07-27Update Alpha libm-test-ulpsAdhemerval Zanella2-80/+92
* sysdeps/alpha/fpu/libm-test-ulps: Update.
2017-07-27Fix country name in title of mai_NP localeAkhilesh Kumar2-1/+6
[BZ #21848] * locales/mai_NP (LC_IDENTIFICATION): Fix country name in title.
2017-07-27Improve country_name in be_BY@latinIhar Hrachyshka2-1/+5
2017-07-27Minor improvements to new az_IR localeMike FABIAN4-8/+23
* locales/az_IR (LC_MESSAGES): Improve yesexpr and noexpr. * locales/az_IR (LC_ADDRESS): Fix typo in comment and use the individual iso-639-3 code for South Azerbaijani "azb" in lang_term. * locales/az_IR (LC_NAME): Improve readability of name_fmt in source.
2017-07-27Add new az_IR localeMousa Moradi3-0/+297
[BZ #14172] * locales/az_IR: New file.
2017-07-27Fix wrong monetary system used in ta_LK localeAkhilesh Kumar2-1/+6
[BZ #21839] * locales/ta_LK (LC_MONETARY): copy "si_LK"
2017-07-27manual: Refactor documentation of CHAR_BIT.Rical Jasan2-6/+11
This single-@item @table is better defined with @deftypevr, since the CHAR_BIT macro has @standards (being declared in a header), and @items in @tables are not considered annotatable. Using @deftypevr automatically includes the macro in the Variable and Constant Macro Index and ensures its inclusion the Summary of Library Facilities. @deftypevr is used to record the type of the macro so that it also appears in the Summary. The description is updated to mention a later POSIX requirement that this macro have the value 8. * manual/lang.texi (CHAR_BIT): Convert from an @table to an @deftypevr. Change standard from ISO to C90. Mention the POSIX.1-2001 requirement of the value 8.
2017-07-27manual: Complete @standards in creature.texi.Rical Jasan2-1/+6
* manual/creature.texi (_REENTRANT): Annotate as obsolete. (_THREAD_SAFE): Likewise.
2017-07-27Fix country_name in nds_NLMike FABIAN2-2/+6
2017-07-27Fix Latin characters and month sequence in mai_INAkhilesh Kumar2-6/+11
Fixes [BZ #21822] with commit id 832f8e048773da9aac99cd1ee57f2ccbd40860f6 [BZ #21844] * locales/mai_IN (LC_TIME): Fix Latin characters and month sequence.
2017-07-26Revert "Remove redundant data for LC_MONETARY for Indian locales"Mike FABIAN20-21/+365
This reverts commit 480af555f35201a646531cfd7c68a58905edba90. Revert: 2017-07-26 Akhilesh Kumar <akhilesh.k@samsung.com> Remove redundant data for LC_MONETARY [BZ #21836] * locales/ar_IN (LC_MONETARY): copy "hi_IN" * locales/as_IN (LC_MONETARY): copy "hi_IN" * locales/bhb_IN (LC_MONETARY): copy "hi_IN" * locales/bn_IN (LC_MONETARY): copy "hi_IN" * locales/en_IN (LC_MONETARY): copy "hi_IN" * locales/gu_IN (LC_MONETARY): copy "hi_IN" * locales/kn_IN (LC_MONETARY): copy "hi_IN" * locales/kok_IN (LC_MONETARY): copy "hi_IN" * locales/ks_IN (LC_MONETARY): copy "hi_IN" * locales/ml_IN (LC_MONETARY): copy "hi_IN" * locales/mr_IN (LC_MONETARY): copy "hi_IN" * locales/or_IN (LC_MONETARY): copy "hi_IN" * locales/pa_IN (LC_MONETARY): copy "hi_IN" * locales/sa_IN (LC_MONETARY): copy "hi_IN" * locales/sd_IN (LC_MONETARY): copy "hi_IN" * locales/ta_IN (LC_MONETARY): copy "hi_IN" * locales/tcy_IN (LC_MONETARY): copy "hi_IN" * locales/te_IN (LC_MONETARY): copy "hi_IN" * locales/ur_IN (LC_MONETARY): copy "hi_IN"
2017-07-26Remove erroneous spaces from some strings in locale filesMike FABIAN4-9/+10
* locales/hif_FJ (LC_TIME): Remove erroneous spaces from d_t_fmt. * locales/km_KH (LC_TIME): Remove erroneous space from d_t_fmt. * locales/sm_WS (LC_TIME): Remove erroneous spaces from day.
2017-07-26Remove erroneous tabs from some strings in locale filesMike FABIAN3-11/+9
* locales/et_EE (LC_ADDRESS): Remove tabs in postal_fmt. * locales/hif_FJ (LC_TIME): Remove tabs in t_fmt_ampm. * locales/hif_FJ (LC_NAME): Remove tabs in name_fmt.
2017-07-26Fix inappropriate characters in LC_IDENTIFICATION in several localesMike FABIAN10-11/+23
Found using the script check-localedef.py by Zack Weinberg. * locales/agr_PE (LC_IDENTIFICATION): Fix inappropriate character. * locales/an_ES (LC_IDENTIFICATION): Fix inappropriate character. * locales/gv_GB (LC_IDENTIFICATION): Fix inappropriate character. * locales/kw_GB (LC_IDENTIFICATION): Fix inappropriate character. * locales/ln_CD (LC_IDENTIFICATION): Fix inappropriate character. * locales/nb_NO (LC_IDENTIFICATION): Fix inappropriate character. * locales/pap_CW (LC_IDENTIFICATION): Fix inappropriate character. * locales/se_NO (LC_IDENTIFICATION): Fix inappropriate character. * locales/sgs_LT (LC_IDENTIFICATION): Fix inappropriate character.
2017-07-26Fix inappropriate escape sequences in LC_IDENTIFICATION in several localesMike FABIAN22-25/+48
Found using the script check-localedef.py by Zack Weinberg. * locales/aa_DJ (LC_IDENTIFICATION): Fix inappropriate escape sequence. * locales/aa_ER (LC_IDENTIFICATION): Fix inappropriate escape sequence. * locales/aa_ET (LC_IDENTIFICATION): Fix inappropriate escape sequence. * locales/ak_GH (LC_IDENTIFICATION): Fix inappropriate escape sequence. * locales/bn_BD (LC_IDENTIFICATION): Fix inappropriate escape sequence. * locales/de_IT (LC_IDENTIFICATION): Fix inappropriate escape sequence. * locales/es_CU (LC_IDENTIFICATION): Fix inappropriate escape sequence. * locales/gd_GB (LC_IDENTIFICATION): Fix inappropriate escape sequence. * locales/gl_ES (LC_IDENTIFICATION): Fix inappropriate escape sequence. * locales/he_IL (LC_IDENTIFICATION): Fix inappropriate escape sequence. * locales/hr_HR (LC_IDENTIFICATION): Fix inappropriate escape sequence. * locales/ht_HT (LC_IDENTIFICATION): Fix inappropriate escape sequence. * locales/hy_AM (LC_IDENTIFICATION): Fix inappropriate escape sequence. * locales/lg_UG (LC_IDENTIFICATION): Fix inappropriate escape sequence. * locales/mai_IN (LC_IDENTIFICATION): Fix inappropriate escape sequence. * locales/mg_MG (LC_IDENTIFICATION): Fix inappropriate escape sequence. * locales/pl_PL (LC_IDENTIFICATION): Fix inappropriate escape sequence. * locales/quz_PE (LC_IDENTIFICATION): Fix inappropriate escape sequence. * locales/se_NO (LC_IDENTIFICATION): Fix inappropriate escape sequence. * locales/sl_SI (LC_IDENTIFICATION): Fix inappropriate escape sequence. * locales/ta_LK (LC_IDENTIFICATION): Fix inappropriate escape sequence.