]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
alpha: Improve sysdeps/alpha/divqu.S and sysdeps/alpha/remqu.S
[thirdparty/glibc.git] / ChangeLog
1 2019-04-01 Uros Bizjak <ubizjak@gmail.com>
2
3 * sysdeps/alpha/divqu.S (__divqu): Move save of $f0 and excb after
4 conditional branch to DIVBYZERO. Fix unwind info.
5 * sysdeps/alpha/remqu.S (__remqu): Move saves of $f0, $f1, $f2 and
6 excb after conditional branch to $powerof2. Add missing unop
7 instructions and .align directives and reorder instructions to
8 match __divqu.
9
10 2019-04-01 Richard Henderson <rth@twiddle.net>
11
12 * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
13 Do not redefine.
14 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_osf_shmat):
15 Do not redefine.
16
17 2019-03-30 Maciej W. Rozycki <macro@wdc.com>
18
19 * sysdeps/unix/sysv/linux/riscv/configure.ac: Quote
20 $libc_cv_riscv_float_abi in `test' invocation.
21 * sysdeps/unix/sysv/linux/riscv/configure: Regenerate.
22
23 2019-03-29 Paul A. Clarke <pc@us.ibm.com>
24
25 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_register): Replace inline
26 asm with builtin.
27 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (FP_INIT_ROUNDMODE):
28 Likewise.
29 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
30 (_GET_SI_FPSCR): Likewise.
31 (_SET_SI_FPSCR): Likewise.
32
33 2019-03-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34
35 * math/math.h (fpclassify, isfinite, isnormal, isnan): Use builtin for
36 clang 2.8.
37 (signbit): Use builtin for clang 3.3.
38 (isinf): Use builtin for clang 3.7.
39
40 2019-03-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
41
42 * sysdeps/powerpc/fpu/s_float_bitwise.h: Remove file.
43
44 2019-03-25 Andreas K. Hüttel <dilfridge@gentoo.org>
45
46 * nss/tst-nss-files-alias-leak.c (do_test): add missing opening
47 quote in printf.
48
49 2019-03-25 Mike Crowe <mac@mcrowe.com>
50
51 * nptl/tst-rwlock14.c (do_test): Replace duplicate calls to
52 pthread_rwlock_timedrdlock with calls to
53 pthread_rwlock_timedwrlock to ensure that the latter is tested
54 too. Use new function name in diagnostic messages too.
55
56 * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
57 (do_test) Use libsupport test macros rather than hand-coded
58 conditionals and error messages. Ensure that sem_init returns zero
59 rather than not -1. Use <support/test-driver.c> rather than
60 test-skeleton.c.
61
62 * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
63 test macros rather than hand-coded conditionals and error messages.
64 Use <support/test-driver.c> rather than test-skeleton.c.
65
66 2019-03-25 Joseph Myers <joseph@codesourcery.com>
67
68 * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
69
70 * elf/elf.h (NT_ARM_PAC_MASK): New macro.
71 (NT_MIPS_MSA): Likewise.
72
73 2019-03-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
74
75 * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
76 * benchtests/README: Update description.
77 * benchtests/bench-timing.h: Default to hp-timing.
78 * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
79 HP_TIMING_PRINT): Remove.
80 (HP_TIMING_NOW): Add generic implementation.
81 (hp_timing_t): Change to uint64_t.
82
83 * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
84 HP_TIMING_INLINE.
85 * nptl/descr.h: Likewise.
86 * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
87 RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
88 (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
89 Abstract hp-timing usage with RTLD_* macros.
90 * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
91 (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
92 * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
93 HP_TIMING_NONAVAIL): Likewise.
94 * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
95 Likewise.
96 * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
97 HP_SMALL_TIMING_AVAIL): Likewise.
98 * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
99 HP_SMALL_TIMING_AVAIL): Likewise.
100 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
101 HP_SMALL_TIMING_AVAIL): Likewise.
102 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
103 HP_SMALL_TIMING_AVAIL): Likewise.
104 * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
105 Likewise.
106 * sysdeps/generic/hp-timing-common.h: Update comment with
107 HP_TIMING_AVAIL removal.
108
109 * include/random-bits.h: New file.
110 * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
111 (__res_context_mkquery): Remove usage hp-timing usage and replace with
112 random_bits.
113 * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
114 * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
115 Likewise.
116
117 * include/libc-internal.h (__get_clockfreq): Remove prototype.
118 * rt/Makefile (clock-routines): Remove get_clockfreq.
119 * rt/get_clockfreq.c: Remove file.
120 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
121 * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
122 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
123 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
124 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
125
126 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
127 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
128 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
129 (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
130 _SC_CPUTIME, and _SC_THREAD_CPUTIME.
131
132 * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
133 pthread_clock_settime.
134 * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
135 * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
136 (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
137 * elf/rtld.c (_dl_start_final): Likewise.
138 * nptl/allocatestack.c (__find_thread_by_id): Remove function.
139 * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
140 Remove.
141 * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
142 (_dl_cpuclock_offset): Remove.
143 * nptl/descr.h (struct pthread): Rename cpuclock_offset to
144 cpuclock_offset_ununsed.
145 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
146 cpuclock_offset set.
147 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
148 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
149 * nptl/pthread_clock_gettime.c: Remove file.
150 * nptl/pthread_clock_settime.c: Likewise.
151 * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
152 [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
153 and CLOCK_PROCESS_CPUTIME_ID support.
154 * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
155 [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
156 * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
157 [HP_TIMING_AVAIL] (__clock_getres): Likewise.
158 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
159 Likewise.
160 (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
161
162 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
163
164 * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
165 * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
166 MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
167 New defines.
168 * sysdeps/s390/memmem-arch13.S: New file.
169 * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
170 if it is only used as fallback.
171 * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
172 * sysdeps/s390/multiarch/ifunc-impl-list.c
173 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
174
175 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
176
177 * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
178 * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
179 STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
180 New defines.
181 * sysdeps/s390/multiarch/ifunc-impl-list.c
182 (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
183 * sysdeps/s390/strstr-arch13.S: New file.
184 * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
185 if it is only used as fallback.
186 * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
187
188 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
189
190 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
191 HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
192 * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
193 * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
194 ifunc selector.
195 * sysdeps/s390/multiarch/ifunc-impl-list.c
196 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
197 * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
198 S390_IS_ARCH13_MIE3): New defines.
199
200 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
201
202 * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
203 HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
204 * sysdeps/s390/configure.ac: Add checks for arch13 support.
205 * sysdeps/s390/configure: Regenerated.
206
207 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
208
209 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
210 Add vxe2, vxp, dflt, sort flags.
211 * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
212 HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
213 capabilities.
214 (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
215 * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
216 (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
217 HWCAP_S390_DFLT): Define.
218
219 2019-03-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
220
221 [BZ #24372]
222 * iconv/iconvconfig.c (write_output): Add parentheses to get rid
223 of compiler warning.
224 * locale/programs/ld-collate.c (collate_output): Likewise.
225
226 2019-03-21 DJ Delorie <dj@redhat.com>
227
228 [BZ #24372]
229 * iconv/iconvconfig.c (write_output): Replace floating point math
230 with integer math to avoid imprecise results.
231 * locale/programs/ld-collate.c (collate_output): Likewise.
232
233 2019-03-21 Stefan Liebler <stli@linux.ibm.com>
234
235 * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
236 Add HWCAP_S390_VX and HWCAP_S390_VXE.
237
238 2019-03-20 mansayk <6688000@gmail.com>
239
240 [BZ #24296]
241 * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
242 (abday): Likewise, but remove the trailing dots.
243
244 2019-03-19 Joseph Myers <joseph@codesourcery.com>
245
246 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
247 macro.
248 (HWCAP_PACA): Likewise.
249 (HWCAP_PACG): Likewise.
250 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
251 Increase to 32.
252 (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
253
254 2019-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
255
256 * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
257 should be handled.
258
259 2019-03-15 Joseph Myers <joseph@codesourcery.com>
260
261 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
262 version to 5.0.
263 (old_getpagesize): New syscall.
264
265 2019-03-15 Felix Yan <felixonmars@archlinux.org>
266
267 [BZ #24293]
268 * localedata/locales/zh_TW (era): Add, support Minguo calendar.
269 * localedata/locales/cmn_TW (era): Likewise.
270 * localedata/locales/hak_TW (era): Likewise.
271 * localedata/locales/lzh_TW (era): Likewise.
272 * localedata/locales/nan_TW (era): Likewise.
273
274 2019-03-14 Florian Weimer <fweimer@redhat.com>
275
276 Remove obsolete, never-implemented XSI STREAMS declarations.
277 * manual/terminal.texi (Allocation): Remove portability note and
278 adjust example.
279 * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
280 _SC_STREAMS.
281 * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
282 * sysdeps/unix/inet/Subdirs (streams): Remove.
283 * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
284 (conformtest-headers-UNIX98): Likewise.
285 (conformtest-headers-XOPEN2K): Likewise.
286 (conformtest-headers-POSIX2008): Likewise.
287 * posix/compat-streams.c: New file.
288 * posix/Makefile (routines): Add it.
289 * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
290 getpmsg, isastream, putmsg, putpmsg.
291 (GLIBC_2.30): New section.
292 * bits/stropts.h: Remove file.
293 * bits/xtitypes.h: Likewise.
294 * conform/data/stropts.h-data: Likewise.
295 * include/stropts.h: Likewise.
296 * include/sys/stropts.h: Likewise.
297 * include/xtitypes.h: Likewise.
298 * streams/Makefile: Likewise.
299 * streams/fattach.c: Likewise.
300 * streams/fdetach.c: Likewise.
301 * streams/getmsg.c: Likewise.
302 * streams/getpmsg.c: Likewise.
303 * streams/isastream.c: Likewise.
304 * streams/putmsg.c: Likewise.
305 * streams/putpmsg.c: Likewise.
306 * streams/stropts.h: Likewise.
307 * streams/sys/stropts.h: Likewise.
308 * sysdeps/ia64/bits/xtitypes.h: Likewise.
309 * sysdeps/s390/bits/xtitypes.h: Likewise.
310 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
311 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
312 * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
313 * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
314 * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
315 * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
316 * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
317 * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
318 * sysdeps/x86/bits/xtitypes.h: Likewise.
319
320 2019-03-14 Florian Weimer <fweimer@redhat.com>
321
322 * nss/tst-nss-files-alias-truncated.c (do_test): Load
323 libnss_files.
324 * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
325 but not with libnss_files.
326 (tst-nss-files-alias-truncated.out): Depend on libnss_files.
327
328 2019-03-14 Zack Weinberg <zackw@panix.com>
329
330 * scripts/check-obsolete-constructs.py (HeaderChecker.check):
331 Specify encoding="utf-8" when opening headers to check.
332
333 2019-03-13 Joseph Myers <joseph@codesourcery.com>
334
335 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
336 version to 5.0.
337 (Context.checkout_tar): Handle variable major version for Linux
338 kernel.
339
340 2019-03-13 Florian Weimer <fweimer@redhat.com>
341
342 [BZ #24047]
343 * sysdeps/mach/hurd/res_enable_icmp.c: New file.
344
345 2019-03-13 Zack Weinberg <zackw@panix.com>
346
347 * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
348 Move to stdlib.
349 * include/inttypes.h: Adjust to match.
350 * include/stdint.h: New wrapper.
351
352 2019-03-13 Zack Weinberg <zackw@panix.com>
353
354 * scripts/check-obsolete-constructs.py: New test script.
355 * scripts/check-installed-headers.sh: Remove tests for
356 obsolete typedefs, superseded by check-obsolete-constructs.py.
357 * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
358 as a special test. Update commentary.
359 * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
360 (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
361 Update commentary.
362 * posix/sys/types.h (__u_intN_t): Remove.
363 (u_int8_t): Typedef using __uint8_t.
364 (u_int16_t): Typedef using __uint16_t.
365 (u_int32_t): Typedef using __uint32_t.
366 (u_int64_t): Typedef using __uint64_t.
367
368 2019-03-13 Stefan Liebler <stli@linux.ibm.com>
369
370 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
371 call _dl_procinfo.
372 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
373 Ignore types other than AT_HWCAP.
374 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
375 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
376 Likewise.
377 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
378 in the case of falling back to generic output mechanism.
379 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
380 Likewise.
381
382 2019-03-12 Florian Weimer <fweimer@redhat.com>
383
384 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
385
386 2019-03-12 Florian Weimer <fweimer@redhat.com>
387
388 [BZ #24047]
389 resolv: Enable full ICMP errors for UDP DNS sockets
390 * resolv/res_enable_icmp.c: New file.
391 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
392 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
393 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
394 socket.
395
396 2019-03-11 Mao Han <han_mao@c-sky.com>
397
398 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
399 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
400
401 2019-03-11 Mao Han <han_mao@c-sky.com>
402
403 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
404 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
405 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
406
407 2019-03-11 Mao Han <han_mao@c-sky.com>
408
409 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
410 directly.
411 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
412 definition.
413
414 2019-03-11 Mao Han <han_mao@c-sky.com>
415
416 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
417 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
418 in mcontext_t
419
420 2019-03-08 Mike FABIAN <mfabian@redhat.com>
421
422 [BZ #24307]
423 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
424 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
425 Unicode 12.0.0.
426 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
427 * localedata/unicode-gen/PropList.txt: Likewise.
428 * localedata/unicode-gen/UnicodeData.txt: Likewise.
429 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
430 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
431 * localedata/charmaps/UTF-8: Regenerate.
432 * localedata/locales/i18n_ctype: Likewise.
433 * localedata/locales/tr_TR: Likewise.
434 * localedata/locales/translit_circle: Likewise.
435 * localedata/locales/translit_cjk_compat: Likewise.
436 * localedata/locales/translit_combining: Likewise.
437 * localedata/locales/translit_compat: Likewise.
438 * localedata/locales/translit_font: Likewise.
439 * localedata/locales/translit_fraction: Likewise.
440
441 2019-03-07 Joseph Myers <joseph@codesourcery.com>
442
443 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
444 than after operators.
445 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
446 (setitimer_locked): Likewise.
447 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
448 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
449 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
450 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
451 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
452 (PPC_CPU_SUPPORTED): Likewise.
453 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
454 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
455 (stat_overflow): Likewise.
456 (statfs_overflow): Likewise.
457 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
458 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
459 (eq_ttyname_r): Likewise.
460 (run_chroot_tests): Likewise.
461
462 2019-03-07 Florian Weimer <fweimer@redhat.com>
463
464 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
465 header check.
466
467 2019-03-07 Martin Liska <mliska@suse.cz>
468
469 * math/Makefile: Change location where math-vector-fortran.h is
470 installed.
471 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
472 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
473 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
474 * scripts/check-installed-headers.sh: Skip Fortran header files.
475 * scripts/check-wrapper-headers.py: Likewise.
476
477 2019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
478
479 * nptl/nptl-init.c (__have_futex_clock_realtime,
480 __have_futex_clock_realtime): Remove definition.
481 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
482 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
483 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
484 __ASSUME_FUTEX_CLOCK_REALTIME support.
485 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
486 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
487 * sysdeps/unix/sysv/linux/kernel-features.h
488 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
489 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
490 Adjust comment.
491
492 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
493
494 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
495 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
496 __GI___wcscpy and wcscpy.
497
498 2019-03-04 Florian Weimer <fweimer@redhat.com>
499
500 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
501 declaration.
502 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
503 defined.
504
505 2019-03-04 Stefan Liebler <stli@linux.ibm.com>
506
507 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
508 * sysdeps/s390/s390-32/sysdep.h: Likewise.
509
510 2019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
511
512 [BZ #24162]
513 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
514 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
515
516 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
517
518 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
519 tests.
520 (do_test): Likewise.
521 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
522 (do_test_call_varg): Likewise.
523 (do_test_call_rarg): Likewise.
524 * sysdeps/ieee754/ldbl-opt/Makefile
525 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
526 tst-nldbl-error.
527 ($(objpfx)tst-nldbl-warn.c): New rule.
528 ($(objpfx)tst-nldbl-error.c): Likewise.
529 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
530 New variables.
531
532 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
533
534 [BZ #23984]
535 * include/bits/error-ldbl.h: New file.
536 * include/error.h: Include stdarg.h. Declare internal functions
537 __error_internal and __error_at_line_internal.
538 * misc/Makefile (headers): Add bits/error-ldbl.h.
539 * misc/bits/error-ldbl.h: New file.
540 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
541 avoid the inclusion of bits/error.h.
542 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
543 and __nldbl_error_at_line.
544 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
545 (__nldbl_error, __ndlbl_error_at_line): New functions.
546 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
547 Redirect error and error_at_line.
548 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
549 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
550 Likewise.
551 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
552 Likewise.
553 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
554 Likewise.
555 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
556 Likewise.
557 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
558 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
559 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
560
561 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
562
563 [BZ #23984]
564 * include/bits/err-ldbl.h: New file.
565 * include/err.h: Add prototypes for the internal functions:
566 __vwarnx_internal and __vwarn_internal.
567 * misc/Makefile (headers): Add bits/err-ldbl.h.
568 * misc/bits/err-ldbl.h: New file.
569 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
570 defined, i.e.: when -mlong-double-64 is in use.
571 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
572 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
573 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
574 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
575 (VA_CALL): New macro.
576 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
577 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
578 functions.
579 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
580 declare prototypes for the new functions.
581 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
582 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
583 Likewise.
584 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
585 Likewise.
586 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
587 Likewise.
588 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
589 Likewise.
590 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
591 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
592 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
593
594 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
595
596 * sysdeps/ieee754/ldbl-opt/Makefile
597 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
598 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
599 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
600
601 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
602
603 [BZ #23983]
604 * argp/Makefile (headers): Add bits/argp-ldbl.h.
605 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
606 * argp/bits/argp-ldbl.h: New file.
607 * include/argp.h: Include stdarg.h. Add prototypes for internal
608 functions: __argp_error_internal and __argp_failure_internal.
609 * include/bits/argp-ldbl.h: New file.
610 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
611 __nldbl_argp_error and __nldbl_argp_failure.
612 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
613 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
614 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
615 Redirect argp_error and argp_failure calls.
616 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
617 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
618 Likewise.
619 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
620 Likewise.
621 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
622 Likewise.
623 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
624 Likewise.
625 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
626 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
627 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
628
629 2019-03-01 Florian Weimer <fweimer@redhat.com>
630
631 [BZ #20419]
632 * elf/tst-big-note-lib.S: Create a syntactically valid note.
633 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
634 code, to avoid creating an ABI tag note.
635 (modules-names-nobuild): Add tst-big-note-lib.
636
637 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
638
639 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
640 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
641
642 2019-03-01 Florian Weimer <fweimer@redhat.com>
643
644 [BZ #20271]
645 * sysdeps/unix/sysv/linux/netlink_assert_response.c
646 (__netlink_assert_response): Add additional missing newlines.
647
648 2019-02-28 Joseph Myers <joseph@codesourcery.com>
649
650 * sysdeps/powerpc/powerpc32/dl-machine.c
651 (__elf_machine_fixup_plt): Use space before '('.
652 (__process_machine_rela): Likewise.
653 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
654 Likewise.
655 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
656 Likewise.
657 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
658 Likewise.
659 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
660 (pattern): Likewise.
661 (delta): Likewise.
662 (check_result): Likewise.
663 (check_excepts): Likewise.
664 (check_op): Likewise.
665 (fail_xr): Likewise.
666 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
667 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
668 (SCNHSZ): Likewise.
669 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
670 Likewise.
671 (ARGS): Likewise.
672 (__makecontext): Likewise.
673 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
674 Likewise.
675
676 2019-02-28 Florian Weimer <fweimer@redhat.com>
677
678 [BZ #23937]
679 elf: Add test with a local IFUNC resolver.
680 * elf/ifuncmain9.c: New file.
681 * elf/ifuncmain9pic.c: Likewise.
682 * elf/ifuncmain9picstatic.c: Likewise.
683 * elf/ifuncmain9pie.c: Likewise.
684 * elf/ifuncmain9static.c: Likewise.
685 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
686 ifuncmain9static, ifuncmain9picstatic.
687 * elf/Makefile [multi-arch && build-shared] (tests-internal):
688 Add ifuncmain9, ifuncmain9pic.
689 * elf/Makefile [multi-arch && build-shared && have-fpie]
690 (ifunc-pie-tests): Add ifuncmain9pie.
691 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
692 (CFLAGS-ifuncmain9picstatic.c): Likewise.
693 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
694
695 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
696
697 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
698 * configure: Regenerated.
699 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
700
701 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
702
703 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
704 symbol as __wcspcy instead of wcscpy.
705
706 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
707
708 * include/stdio.h (__renameat2): New hidden prototype.
709 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
710 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
711 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
712 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
713
714 2019-02-27 Joseph Myers <joseph@codesourcery.com>
715
716 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
717 if statement.
718
719 * benchtests/bench-strcpy.c (do_test): Use space before '('.
720 * benchtests/bench-string.h (cmdline_process_function): Likewise.
721 * benchtests/bench-strlen.c (do_test): Likewise.
722 (test_main): Likewise.
723 * catgets/gencat.c (read_old): Likewise.
724 * elf/cache.c (load_aux_cache): Likewise.
725 * iconvdata/bug-iconv8.c (do_test): Likewise.
726 * math/test-tgmath-ret.c (do_test): Likewise.
727 * nis/nis_call.c (rec_dirsearch): Likewise.
728 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
729 * nptl/tst-audit-threads.c (do_test): Likewise.
730 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
731 * nss/nss_test1.c (init): Likewise.
732 * nss/test-netdb.c (test_hosts): Likewise.
733 * posix/execvpe.c (maybe_script_execute): Likewise.
734 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
735 * stdio-common/tst-printf.c (do_test): Likewise.
736 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
737 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
738 * stdlib/qsort.c (STACK_SIZE): Likewise.
739 * stdlib/test-canon.c (do_test): Likewise.
740 * stdlib/tst-swapcontext1.c (do_test): Likewise.
741 * string/memcmp.c (OPSIZ): Likewise.
742 * string/test-strcpy.c (do_test): Likewise.
743 (do_random_tests): Likewise.
744 * string/test-strlen.c (do_test): Likewise.
745 (test_main): Likewise.
746 * string/test-strrchr.c (do_test): Likewise.
747 (do_random_tests): Likewise.
748 * string/tester.c (test_memrchr): Likewise.
749 (test_memchr): Likewise.
750 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
751 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
752 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
753 (read_encoded_value_with_base): Likewise.
754 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
755 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
756 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
757 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
758 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
759 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
760 Likewise.
761 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
762 Likewise.
763 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
764 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
765 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
766 Likewise.
767 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
768 Likewise.
769 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
770 Likewise.
771 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
772 Likewise.
773 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
774 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
775 (FP_XSTATE_MAGIC2_SIZE): Likewise.
776 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
777 * time/test_time.c (main): Likewise.
778
779 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
780
781 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
782
783 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
784 wmemcpy.
785
786 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
787 wmemcpy.
788
789 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
790
791 * include/wchar.h (__wcscpy): New prototype.
792 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
793 (__wcscpy): Route internal symbol to generic implementation.
794 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
795 Add internal __wcscpy alias.
796 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
797 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
798 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
799 * wcsmbs/wcscpy.c (wcscpy): Add
800 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
801 use generic implementation.
802 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
803
804 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
805 wmemset.
806
807 * sysdeps/m68k/wcpcpy.c: Remove file.
808 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
809
810 2019-02-26 Joseph Myers <joseph@codesourcery.com>
811
812 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
813 than after operators.
814 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
815 * sysdeps/mach/hurd/getcwd.c
816 (__hurd_canonicalize_directory_name_internal): Likewise.
817 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
818 (pthread_mutex_consistent): Likewise.
819 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
820 Likewise.
821 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
822 (__pthread_mutex_transfer_np): Likewise.
823 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
824 (__pthread_mutex_unlock): Likewise.
825 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
826 (mtx_owned_p): Likewise.
827 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
828 (pthread_mutexattr_getrobust): Likewise.
829 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
830 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
831 Likewise.
832 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
833 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
834 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
835 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
836 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
837 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
838 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
839 Likewise.
840 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
841 Likewise.
842 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
843 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
844 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
845 (____longjmp_chk): Likewise.
846 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
847 Likewise.
848 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
849 (INTERNAL_SYSCALL): Likewise.
850 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
851 (INTERNAL_SYSCALL): Likewise.
852 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
853 (__get_clockfreq_via_cpuinfo): Likewise.
854
855 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
856 comments.
857 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
858 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
859 (WORD_COPY_BWD): Likewise.
860 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
861 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
862 Likewise.
863 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
864 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
865 comment.
866 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
867
868 2019-02-25 Joseph Myers <joseph@codesourcery.com>
869
870 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
871 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
872 rather than after operators.
873 * elf/cache.c (print_cache): Likewise.
874 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
875 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
876 * hurd/hurdinit.c (_hurd_setproc): Likewise.
877 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
878 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
879 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
880 (reauth_proc): Likewise.
881 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
882 (__file_name_split_at): Likewise.
883 (__directory_name_split_at): Likewise.
884 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
885 * hurd/port2fd.c (_hurd_port2fd): Likewise.
886 * iconv/gconv_dl.c (do_print): Likewise.
887 * inet/netinet/in.h (struct sockaddr_in): Likewise.
888 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
889 * locale/setlocale.c (new_composite_name): Likewise.
890 * malloc/memusagestat.c (main): Likewise.
891 * misc/fstab.c (fstab_convert): Likewise.
892 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
893 Likewise.
894 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
895 (getgrent_next_file): Likewise.
896 (internal_getgrnam_r): Likewise.
897 (internal_getgrgid_r): Likewise.
898 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
899 Likewise.
900 (internal_getgrent_r): Likewise.
901 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
902 (getpwent_next_nss): Likewise.
903 (getpwent_next_file): Likewise.
904 (internal_getpwnam_r): Likewise.
905 (internal_getpwuid_r): Likewise.
906 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
907 Likewise.
908 (getspent_next_nss): Likewise.
909 (internal_getspnam_r): Likewise.
910 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
911 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
912 * string/strchr.c (STRCHR): Likewise.
913 * string/strchrnul.c (STRCHRNUL): Likewise.
914 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
915 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
916 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
917 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
918 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
919 Likewise.
920 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
921 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
922 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
923 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
924 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
925 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
926 (open_file): Likewise.
927 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
928 (pthread_mutexattr_setprotocol): Likewise.
929 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
930 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
931 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
932 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
933 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
934 Likewise.
935 (elf_machine_rela): Likewise.
936 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
937 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
938 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
939 * sysdeps/posix/rename.c (rename): Likewise.
940 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
941 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
942 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
943 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
944 * sysdeps/unix/grantpt.c (grantpt): Likewise.
945 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
946 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
947 Likewise.
948 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
949 Likewise.
950 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
951 * time/tzfile.c (__tzfile_compute): Likewise.
952
953 2019-02-22 Joseph Myers <joseph@codesourcery.com>
954
955 * benchtests/bench-memmem.c (simple_memmem): Break lines before
956 rather than after operators.
957 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
958 * crypt/md5.c (md5_finish_ctx): Likewise.
959 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
960 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
961 * elf/cache.c (load_aux_cache): Likewise.
962 * elf/dl-load.c (open_verify): Likewise.
963 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
964 * elf/readelflib.c (process_elf_file): Likewise.
965 * elf/rtld.c (dl_main): Likewise.
966 * elf/sprof.c (generate_call_graph): Likewise.
967 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
968 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
969 * hurd/dtable.c (reauth_dtable): Likewise.
970 * hurd/getdport.c (__getdport): Likewise.
971 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
972 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
973 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
974 Likewise.
975 * hurd/hurdioctl.c (fioctl): Likewise.
976 * hurd/hurdselect.c (_hurd_select): Likewise.
977 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
978 (STOPSIGS): Likewise.
979 * hurd/hurdstartup.c (_hurd_startup): Likewise.
980 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
981 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
982 * hurd/msgportdemux.c (msgport_server): Likewise.
983 * hurd/setauth.c (_hurd_setauth): Likewise.
984 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
985 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
986 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
987 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
988 * login/tst-utmp.c (do_check): Likewise.
989 (simulate_login): Likewise.
990 * mach/lowlevellock.h (lll_lock): Likewise.
991 (lll_trylock): Likewise.
992 * math/test-fenv.c (ALL_EXC): Likewise.
993 * math/test-fenvinline.c (ALL_EXC): Likewise.
994 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
995 * nis/nis_call.c (__do_niscall3): Likewise.
996 * nis/nis_callback.c (cb_prog_1): Likewise.
997 * nis/nis_defaults.c (searchaccess): Likewise.
998 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
999 * nis/nis_ismember.c (internal_ismember): Likewise.
1000 * nis/nis_local_names.c (nis_local_principal): Likewise.
1001 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
1002 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
1003 Likewise.
1004 * nis/ypclnt.c (yp_match): Likewise.
1005 (yp_first): Likewise.
1006 (yp_next): Likewise.
1007 (yp_master): Likewise.
1008 (yp_order): Likewise.
1009 * nscd/hstcache.c (cache_addhst): Likewise.
1010 * nscd/initgrcache.c (addinitgroupsX): Likewise.
1011 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
1012 (internal_getpwuid_r): Likewise.
1013 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
1014 * posix/glob.h (__GLOB_FLAGS): Likewise.
1015 * posix/regcomp.c (peek_token): Likewise.
1016 (peek_token_bracket): Likewise.
1017 (parse_expression): Likewise.
1018 * posix/regexec.c (sift_states_iter_mb): Likewise.
1019 (check_node_accept_bytes): Likewise.
1020 * posix/tst-spawn3.c (do_test): Likewise.
1021 * posix/wordexp-test.c (testit): Likewise.
1022 * posix/wordexp.c (parse_tilde): Likewise.
1023 (exec_comm): Likewise.
1024 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
1025 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
1026 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
1027 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
1028 * stdio-common/tst-fileno.c (do_test): Likewise.
1029 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
1030 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
1031 * stdlib/strtod_l.c (round_and_return): Likewise.
1032 (____STRTOF_INTERNAL): Likewise.
1033 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
1034 * string/strcspn.c (STRCSPN): Likewise.
1035 * string/test-memmem.c (simple_memmem): Likewise.
1036 * termios/tcsetattr.c (tcsetattr): Likewise.
1037 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
1038 * time/asctime.c (asctime_internal): Likewise.
1039 * time/strptime_l.c (__strptime_internal): Likewise.
1040 * time/sys/time.h (timercmp): Likewise.
1041 * time/tzfile.c (__tzfile_compute): Likewise.
1042
1043 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
1044
1045 [BZ #21915]
1046 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
1047
1048 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1049
1050 * argp/argp-help.c (__argp_error_internal): New function,
1051 renamed from __argp_error, but that takes a 'mode_flags'
1052 parameter to control the format of long double parameters.
1053 (__argp_error): Converted into a call __argp_error_internal.
1054 (__argp_failure_internal): New function, renamed from
1055 __argp_failure, but that takes a 'mode_flags' parameter.
1056 (__argp_failure): Converted into a call __argp_failure_internal.
1057 * misc/err.c (__vwarnx_internal): New function, renamed from
1058 vwarnx, but that takes a 'mode_flags' parameter.
1059 (vwarnx): Converted into a call to __vwarnx_internal.
1060 (__vwarn_internal): New function, renamed from vwarn, but that
1061 takes a 'mode_flags' parameter.
1062 (vwarn): Converted into a call to __vwarn_internal.
1063 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
1064 call to __vfxprintf with 'mode_flags'.
1065 (__error_internal): New function, renamed from error, but that
1066 takes a 'mode_flags' parameter.
1067 (error): Converted into a call to __error_internal.
1068 (__error_at_line_internal): New function, renamed from
1069 error_at_line, but that takes a 'mode_flags' parameter.
1070 (error_at_line): Converted into a call to
1071 __error_at_line_internal.
1072 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
1073 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
1074 Likewise.
1075
1076 2019-02-20 Martin Liska <mliska@suse.cz>
1077
1078 * math/Makefile: Install math-vector-fortran.h.
1079 * bits/math-vector-fortran.h: New file.
1080 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
1081
1082 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1083
1084 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
1085 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
1086
1087 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
1088
1089 * nptl/pthread_mutex_trylock.c: Fix comment.
1090
1091 2019-02-19 Carlos O'Donell <carlos@redhat.com>
1092
1093 * nptl/pthread_tryjoin.c: Fix comment.
1094
1095 2019-02-18 Joseph Myers <joseph@codesourcery.com>
1096
1097 [BZ #24231]
1098 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
1099 after R_SPARC_H34 case.
1100
1101 2019-02-18 Florian Weimer <fweimer@redhat.com>
1102
1103 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
1104 (getanswer): Do not call Dprintf.
1105 (res_gethostbyname2_context): Likewise.
1106 (res_gethostbyaddr_context): Likewise.
1107
1108 2019-02-18 Florian Weimer <fweimer@redhat.com>
1109
1110 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
1111 declaration.
1112 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
1113 Remove definitions.
1114 * libio/stdfiles.c: Update comment.
1115 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
1116 set _IO_stdin, _IO_stdout, _IO_stderr.
1117 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
1118 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
1119 inline function.
1120 (_IO_deallocate_file): New inline function.
1121 * libio/iolibio.h (_IO_vprintf): Remove definition.
1122 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
1123 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
1124 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
1125 _IO_legacy_file.
1126 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
1127 __builtin_expect. Use _IO_legacy_file.
1128
1129 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
1130
1131 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
1132 Initialize ctid with a known value and remove update of ctid
1133 after clone.
1134 (wait_tid): Adjust arguments and call futex_wait with ctid_val
1135 as assumed current value of ctid_ptr.
1136
1137 2019-02-16 Florian Weimer <fweimer@redhat.com>
1138
1139 Check that non-sysdeps headers have wrapper headers.
1140 * scripts/check-wrapper-headers.py: New file.
1141 * Makefile (tests-special): Add check-wrapper-headers.out.
1142 (check-wrapper-headers.out): New target.
1143 * Rules (tests-special): Add check-wrapper-headers.out.
1144 (check-wrapper-headers.out): New target.
1145
1146 2019-02-16 Florian Weimer <fweimer@redhat.com>
1147
1148 Add missing header wrappers under include/.
1149 * include/ar.h: New file.
1150 * include/bits/mqueue2.h: Likewise.
1151 * include/bits/stdio.h: Likewise.
1152 * include/bits/stdio2.h: Likewise.
1153 * include/fstab.h: Likewise.
1154 * include/fts.h: Likewise.
1155 * include/lastlog.h: Likewise.
1156 * include/netinet/icmp6.h: Likewise.
1157 * include/netinet/igmp.h: Likewise.
1158 * include/netinet/ip6.h: Likewise.
1159 * include/re_comp.h: Likewise.
1160 * include/regexp.h: Likewise.
1161 * include/rpcsvc/bootparam.h: Likewise.
1162 * include/rpcsvc/yp_prot.h: Likewise.
1163 * include/sys/random.h: Likewise.
1164 * include/sys/stropts.h: Likewise.
1165 * include/sys/ttychars.h: Likewise.
1166 * include/sys/vfs.h: Likewise.
1167 * include/wait.h: Likewise.
1168
1169 2019-02-16 Florian Weimer <fweimer@redhat.com>
1170
1171 * nptl_db/proc_service.h: Move to ...
1172 * sysdeps/nptl/proc_service.h: ... here.
1173 * nptl_db/thread_db.h: Move to ...
1174 * sysdeps/nptl/thread_db.h: ... here.
1175 * nptl/descr.h: Include <thread_db.h>.
1176
1177 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1178
1179 * io/Makefile (tests): Add tst-lockf.
1180 * io/lockf.c (lockf): Use __fcntl and only define for
1181 !__OFF_T_MATCHES_OFF64_T.
1182 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
1183 __OFF_T_MATCHES_OFF64_T case.
1184 * io/tst-lockf.c: New file.
1185 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
1186 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
1187 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
1188 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
1189 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
1190 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
1191 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
1192 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
1193 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
1194
1195 2019-02-15 Florian Weimer <fweimer@redhat.com>
1196
1197 [BZ #24211]
1198 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
1199 pd->result after the thread descriptor has been freed.
1200
1201 2019-02-15 Joseph Myers <joseph@codesourcery.com>
1202
1203 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
1204 from function return type.
1205
1206 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
1207
1208 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1209
1210 * scripts/test_printers_common.py: Set TERM to a known harmless
1211 value.
1212
1213 2019-02-14 Joseph Myers <joseph@codesourcery.com>
1214
1215 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
1216 (xdr_u_int): Likewise.
1217 (xdr_enum): Likewise.
1218 (xdr_bytes): Reword fall-through comment.
1219 (xdr_string): Likewise.
1220
1221 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1222
1223 [BZ #2421]
1224 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
1225 (tests): Add tst-join8 tst-join9.
1226 * nptl/lll_timedwait_tid.c: Remove file.
1227 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
1228 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
1229 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
1230 * nptl/pthread_join_common.c (timedwait_tid): New function.
1231 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
1232 is set.
1233 * nptl/tst-join5.c (thread_join): New function.
1234 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
1235 check.
1236 * nptl/tst-join8.c: New file.
1237 * nptl/tst-join9.c: Likewise.
1238 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
1239 lll_futex_timed_wait_cancel): Add generic macros.
1240 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
1241 Remove definitions.
1242 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
1243 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
1244 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
1245 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
1246 Remove function.
1247 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
1248 Likewise.
1249 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
1250 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
1251 (lll_futex_timed_wait_cancel): New macro.
1252
1253 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
1254
1255 * benchtests/Makefile: Add malloc-simple benchmark.
1256 * benchtests/bench-malloc-simple.c: New benchmark.
1257
1258 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
1259
1260 * benchtests/bench-memmove.c (do_one_test): Remove unused
1261 ORIG_SRC.
1262 (do_test): Adjust.
1263 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
1264 ORIG_SRC.
1265 (do_test): Adjust.
1266
1267 2019-01-13 Jim Wilson <jimw@sifive.com>
1268
1269 [BZ #24040]
1270 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
1271 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
1272 (func): New.
1273 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
1274 call func directly.
1275 * nptl/Makefile (tests): Add tst-unwind-thread.
1276 (CFLAGS-tst-unwind-thread.c): Define.
1277 * nptl/tst-unwind-thread.c: New file.
1278 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
1279 as undefined.
1280
1281 2019-02-13 Joseph Myers <joseph@codesourcery.com>
1282
1283 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
1284 comment wording.
1285 * nis/nis_call.c (__do_niscall3): Likewise.
1286
1287 * catgets/gencat.c (normalize_line): Use braces around empty
1288 'else' body.
1289 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
1290 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
1291 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
1292 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
1293 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
1294 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
1295 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
1296 definition.
1297
1298 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
1299 execlp returns.
1300
1301 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
1302
1303 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
1304 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
1305 * benchtests/bench-strchr.c (stupid_strchr): Remove.
1306 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
1307 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
1308 * benchtests/bench-strlen.c (builtin_strlen): Remove.
1309 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
1310 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
1311 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
1312 * benchtests/bench-strspn.c (stupid_strspn): Remove.
1313 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
1314 * benchtests/bench-bcopy.c: Delete file.
1315 * benchtests/bench-bzero.c: Likewise.
1316 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
1317 (simple_memccpy): Remove.
1318 (generic_memccpy): Add function.
1319 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
1320 * benchtests/bench-memmove.c (simple_bcopy): Remove.
1321 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
1322 (generic_mempcpy): Add new function.
1323 * benchtests/bench-memset.c (simple_bzero): Remove.
1324 (builtin_bzero): Remove.
1325 (builtin_memset): Remove.
1326 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
1327 (generic_rawmemchr): Add new function.
1328
1329 2019-02-12 Florian Weimer <fweimer@redhat.com>
1330
1331 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
1332
1333 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1334
1335 [BZ #24122]
1336 * elf/Makefile (tests): Add tst-audit13.
1337 (modules-names): Add tst-audit13mod1.
1338 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
1339 rule.
1340 * elf/tst-audit13.c: New file.
1341 * elf/tst-audit13mod1.c: Likewise.
1342
1343 2019-02-12 Florian Weimer <fweimer@redhat.com>
1344
1345 [BZ #24122]
1346 * elf/rtld.c (unload_audit_module): New function.
1347 (report_audit_module_load_error): Likewise.
1348 (load_audit_module): Likewise. Extracted from dl_main. Call
1349 _dl_close if the laversion symbol cannot be found. Use early
1350 returns for error handling. Add malloc error check. Check for a
1351 zero return value from la_version. Remove spurious comment about
1352 static TLS initialization. Remove useless casts.
1353 (notify_audit_modules_of_loaded_object): New function. Extracted
1354 from dl_main.
1355 (load_audit_module): Likewise.
1356 (dl_main): Call load_audit_modules.
1357
1358 2019-02-12 Joseph Myers <joseph@codesourcery.com>
1359
1360 * elf/dl-exception.c (_dl_exception_create_format): Add
1361 fall-through comments.
1362 * elf/ldconfig.c (parse_conf_include): Likewise.
1363 * elf/rtld.c (print_statistics): Likewise.
1364 * locale/programs/charmap.c (parse_charmap): Likewise.
1365 * misc/mntent_r.c (__getmntent_r): Likewise.
1366 * posix/wordexp.c (parse_arith): Likewise.
1367 (parse_backtick): Likewise.
1368 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
1369 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
1370 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1371
1372 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
1373
1374 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
1375 Use float instead of double.
1376
1377 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
1378
1379 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
1380
1381 2019-02-08 Joseph Myers <joseph@codesourcery.com>
1382
1383 * sysdeps/powerpc/bits/mathinline.h: Remove.
1384
1385 2019-02-08 Florian Weimer <fweimer@redhat.com>
1386
1387 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
1388 * math/bits/math-finite.h: Move to ...
1389 * bits/math-finite.h: ... here.
1390
1391 2019-02-08 Florian Weimer <fweimer@redhat.com>
1392
1393 * sysdeps/generic/bits/unistd_ext.h: Move to ...
1394 * bits/unistd_ext.h: here.
1395
1396 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
1397
1398 [BZ #21915]
1399 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
1400 * nss/tst-nss-files-hosts-long.c: New file.
1401 * nss/tst-nss-files-hosts-long.root: New directory.
1402 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
1403 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
1404
1405 2019-02-08 Florian Weimer <fweimer@redhat.com>
1406
1407 * include/bits/unistd_ext.h: Remove file.
1408 * posix/bits/unistd_ext.h: Move to ...
1409 * sysdeps/generic/bits/unistd_ext.h: ... here.
1410
1411 2019-02-08 Florian Weimer <fweimer@redhat.com>
1412
1413 * include/bits/unistd_ext.h: New file.
1414
1415 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
1416
1417 * time/tst-strftime2.c: Use array_length macros instead of magic
1418 numbers.
1419
1420 2019-02-08 Florian Weimer <fweimer@redhat.com>
1421
1422 [BZ #24161]
1423 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
1424 argument.
1425 * nptl/register-atfork.c (__run_fork_handlers): Only perform
1426 locking if the new do_locking argument is true.
1427 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
1428 __run_fork_handlers.
1429
1430 2019-02-08 Florian Weimer <fweimer@redhat.com>
1431
1432 [BZ #6399]
1433 Linux: Add gettid system call wrapper.
1434 * posix/Makefile (headers): Add bits/unistd_ext.h.
1435 * posix/bits/unistd_ext.h: New file.
1436 * posix/unistd.h: Include it.
1437 * manual/process.texi (Process Identification): Document gettid.
1438 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
1439 tst-gettid, tst-gettid-kill.
1440 (tst-gettid): Link with $(shared-thread-library).
1441 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
1442 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
1443 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
1444 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
1445 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
1446 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
1447 Add gettid.
1448 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
1449 Likewise.
1450 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
1451 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
1452 Likewise.
1453 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
1454 Likewise.
1455 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
1456 Likewise.
1457 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
1458 Likewise.
1459 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
1460 Likewise.
1461 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
1462 Likewise.
1463 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
1464 Likewise.
1465 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
1466 (GLIBC_2.30): Likewise.
1467 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
1468 (GLIBC_2.30): Likewise.
1469 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
1470 (GLIBC_2.30): Likewise.
1471 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
1472 (GLIBC_2.30): Likewise.
1473 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
1474 Likewise.
1475 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
1476 (GLIBC_2.30): Likewise.
1477 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
1478 (GLIBC_2.30): Likewise.
1479 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
1480 (GLIBC_2.30): Likewise.
1481 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
1482 (GLIBC_2.30): Likewise.
1483 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
1484 Likewise.
1485 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
1486 Likewise.
1487 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
1488 Likewise.
1489 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
1490 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
1491 Likewise.
1492 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
1493 Likewise.
1494 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
1495 Likewise.
1496 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
1497 Likewise.
1498 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
1499
1500 2019-02-08 Florian Weimer <fweimer@redhat.com>
1501
1502 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
1503 compatibility symbols.
1504
1505 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
1506
1507 [BZ #24180]
1508 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
1509 Add compiler barriers and comments.
1510
1511 2019-02-07 Florian Weimer <fweimer@redhat.com>
1512
1513 * include/array_length.h (array_length): Do not use a statement
1514 expression and _Static_assert, so that array_length can be used at
1515 file scope and as a constant expression.
1516
1517 2019-02-07 Florian Weimer <fweimer@redhat.com>
1518
1519 * support/xdlfcn.h (xdlmopen): Declare.
1520 * support/xdlmopen.c: New file.
1521 * support/Makefile (libsupport-routines): Add xdlmopen.
1522
1523 2019-02-06 Joseph Myers <joseph@codesourcery.com>
1524
1525 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
1526 before return type, without separate inline.
1527 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
1528 * elf/dl-tunables.h (tunable_is_name): Likewise.
1529 * malloc/malloc.c (do_set_trim_threshold): Likewise.
1530 (do_set_top_pad): Likewise.
1531 (do_set_mmap_threshold): Likewise.
1532 (do_set_mmaps_max): Likewise.
1533 (do_set_mallopt_check): Likewise.
1534 (do_set_perturb_byte): Likewise.
1535 (do_set_arena_test): Likewise.
1536 (do_set_arena_max): Likewise.
1537 (do_set_tcache_max): Likewise.
1538 (do_set_tcache_count): Likewise.
1539 (do_set_tcache_unsorted_limit): Likewise.
1540 * nis/nis_subr.c (count_dots): Likewise.
1541 * nptl/allocatestack.c (advise_stack_range): Likewise.
1542 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
1543 (do_sin): Likewise.
1544 (reduce_sincos): Likewise.
1545 (do_sincos): Likewise.
1546 * sysdeps/unix/sysv/linux/x86/elision-conf.c
1547 (do_set_elision_enable): Likewise.
1548 (TUNABLE_CALLBACK_FNDECL): Likewise.
1549
1550 2019-02-06 Florian Weimer <fweimer@redhat.com>
1551
1552 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
1553 (xdlsym): Use dlerror to detect a NULL symbol.
1554
1555 2019-02-06 Florian Weimer <fweimer@redhat.com>
1556
1557 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
1558 <stap-probe.h>.
1559 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
1560
1561 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1562
1563 * libio/tst-bz24153.c (wide): Use wide char format specifier.
1564
1565 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1566
1567 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
1568 __wmemcmp and weak alias to wmemcmp.
1569
1570 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1571
1572 [BZ #23403]
1573 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
1574 TLS_TCB_AT_TP tls variant.
1575 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
1576 Add alignment checks.
1577 * support/Makefile (libsupport-routines): Add xposix_memalign and
1578 xpthread_setstack.
1579 * support/support.h: Add xposix_memalign.
1580 * support/xthread.h: Add xpthread_attr_setstack.
1581 * support/xposix_memalign.c: New File.
1582 * support/xpthread_attr_setstack.c: Likewise.
1583
1584 2019-02-05 Florian Weimer <fweimer@redhat.com>
1585
1586 [BZ #24164]
1587 arm: Use "nr" constraint for Systemtap probes, to avoid the
1588 compiler using memory operands for constants, due to the "o"
1589 alternative in the default "nor" constraint.
1590 * include/stap-probe.h [USE_STAP_PROBE]: Include
1591 <stap-probe-machine.h>
1592 * sysdeps/generic/stap-probe-machine.h: New file.
1593 * sysdeps/arm/stap-probe-machine.h: Likewise.
1594
1595 2019-02-04 Joseph Myers <joseph@codesourcery.com>
1596
1597 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
1598 with 0, not tcache->entries[tc_idx].
1599
1600 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
1601 once.
1602
1603 2019-02-04 Andreas Schwab <schwab@suse.de>
1604
1605 [BZ #16976]
1606 [BZ #17396]
1607 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
1608 looking up collating elements match against (wide) character
1609 sequence instead of name. Correct alignment adjustment.
1610 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
1611 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
1612 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
1613 (LOCALES): Add cs_CZ.ISO-8859-2.
1614 * posix/tst-fnmatch4.c: New file.
1615 * posix/tst-fnmatch5.c: New file.
1616 * include/wchar.h (__wmemcmp): Declare.
1617 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
1618 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
1619 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
1620 * sysdeps/s390/wmemcmp.c: Likewise.
1621
1622 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
1623
1624 [BZ #24155]
1625 CVE-2019-7309
1626 * NEWS: Updated for CVE-2019-7309.
1627 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
1628 upper 32 bits of RDX register for x32. Use unsigned Jcc
1629 instructions, instead of signed.
1630 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
1631 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
1632
1633 2019-02-04 Florian Weimer <fweimer@redhat.com>
1634
1635 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
1636 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
1637 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
1638 Likewise.
1639 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
1640 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
1641 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
1642 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
1643 Likewise.
1644 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
1645 Likewise.
1646 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
1647 Likewise.
1648 (posix_spawn_file_actions_addopen): Likewise.
1649 (posix_spawn_file_actions_addclose): Likewise.
1650 (posix_spawn_file_actions_adddup2): Likewise.
1651 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
1652 qualifiers.
1653 (posix_spawn_file_actions_addfchdir_np): Likewise.
1654
1655 2019-02-04 David Newall <glibc@davidnewall.com>
1656
1657 elf: Implement --preload option for the dynamic linker.
1658 * elf/rtld.c (preloadarg): New variable.
1659 (handle_preload_list): Pass through “where” argument to
1660 do_preload.
1661 (dl_main): Handle "--preload" and add second call to
1662 handle_preload_list.
1663 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
1664 (tst-rtld-preload-OBJS): Set variable.
1665 (tst-rtld-preload.out): New target.
1666 * elf/tst-rtld-preload.sh: New file.
1667
1668 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
1669
1670 * Makefile (testrun.sh): Exit in case of incorrect argument.
1671
1672 2019-02-04 Florian Weimer <fweimer@redhat.com>
1673
1674 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
1675 alignment gaps.
1676
1677 2019-02-03 Florian Weimer <fweimer@redhat.com>
1678
1679 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
1680 implicit overflow checks.
1681
1682 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
1683
1684 * stdlib/isomac.c: Include <unistd.h>.
1685
1686 2019-02-03 Florian Weimer <fweimer@redhat.com>
1687
1688 * include/time.h (__tzfile_default): Use int, not long int, for
1689 the GMT offsets.
1690 * time/tzfile.c (struct ttinfo): Change type of the offset member
1691 to int.
1692 (__tzfile_read): Remove useless cast.
1693 (__tzfile_default): Adjust prototype.
1694 * time/tzset.c (tz_rule): Change type of the offset member to int.
1695 (parse_offset): Change the type of the sign variable to int.
1696
1697 2019-02-03 Florian Weimer <fweimer@redhat.com>
1698
1699 [BZ #24153]
1700 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
1701 * libio/getchar.c (getchar): Likewise.
1702 * libio/getchar_u.c (getchar_unlocked): Likewise.
1703 * libio/getwchar.c (getwchar): Likewise.
1704 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
1705 * libio/iogets.c (_IO_gets): Likewise.
1706 * libio/vscanf.c (_IO_vscanf): Likewise.
1707 * libio/vwscanf.c (__vwscanf): Likewise.
1708 * libio/tst-bz24153.c: New file.
1709 * libio/Makefile (tests): Add it.
1710
1711 2019-02-02 Florian Weimer <fweimer@redhat.com>
1712
1713 [BZ #14829]
1714 * manual/resource.texi (Basic Scheduling Functions): Add
1715 portability note. Change process to task throughout the section.
1716 Remove incorrect comment about sched_yield as it affects
1717 tasks/threads, not entire processes.
1718 * sysdeps/unix/sysv/linux/bits/posix_opt.h
1719 (_POSIX_PRIORITY_SCHEDULING): Update comment.
1720
1721 2019-02-01 Joseph Myers <joseph@codesourcery.com>
1722
1723 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
1724 * configure: Regenerated.
1725 * manual/install.texi (Tools for Compilation): Update minimum GCC
1726 version.
1727 * INSTALL: Regenerated.
1728
1729 2019-02-01 Florian Weimer <fweimer@redhat.com>
1730
1731 * support/support_test_compare_string.c
1732 (support_test_compare_string): Use "string" in error message.
1733 * support/tst-test_compare_string.c (do_test): Adjust.
1734
1735 2019-02-01 Florian Weimer <fweimer@redhat.com>
1736
1737 * support/support_format_address_family.c
1738 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
1739
1740 2019-02-01 Florian Weimer <fweimer@redhat.com>
1741
1742 * manual/socket.texi (Internet Address Formats): Clarify the byte
1743 order of struct sockaddr_in, struct sockaddr_in6. Document
1744 sin6_flowinfo and sin6_scope_id.
1745
1746 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
1747
1748 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
1749 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
1750 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
1751 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
1752 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
1753 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
1754
1755 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1756
1757 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
1758 [!MEMCHR](MEMCHR): Set to __memchr.
1759 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1760 Add memchr_generic and memchr_nosimd.
1761 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1762 (__libc_ifunc_impl_list): Add memchr ifuncs.
1763 * sysdeps/aarch64/multiarch/memchr.c: New file.
1764 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
1765 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
1766
1767 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1768
1769 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1770 Add memset_emag.
1771 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1772 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
1773 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
1774 Add IS_EMAG check for ifunc dispatch.
1775 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
1776 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
1777
1778 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1779
1780 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
1781 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1782 Add emag.
1783 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
1784 New macro.
1785
1786 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
1787
1788 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
1789
1790 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
1791
1792 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
1793 syscall-template file.
1794
1795 2019-01-31 Carlos O'Donell <carlos@redhat.com>
1796 Torvald Riegel <triegel@redhat.com>
1797 Rik Prohaska <prohaska7@gmail.com>
1798
1799 [BZ# 23844]
1800 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
1801 tst-rwlock-trywrlock-stall.
1802 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
1803 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
1804 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
1805 Set __wrphase_fute to 1 only if we started the write phase.
1806 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
1807 * nptl/tst-rwlock-trywrlock-stall.c: New file.
1808 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
1809 * support/xpthread_rwlock_destroy.c: New file.
1810 * support/xthread.h: Declare xpthread_rwlock_destroy.
1811
1812 2019-02-01 Joseph Myers <joseph@codesourcery.com>
1813
1814 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
1815 version to 4.0.2.
1816
1817 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
1818
1819 [BZ #24051]
1820 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
1821 * libio/fileops.c (_IO_new_file_underflow): Likewise
1822 * libio/wfileops.c (_IO_wfile_underflow): Likewise
1823 * libio/putchar.c (putchar): Likewise.
1824 * libio/putchar_u.c (putchar_unlocked): Likewise.
1825 * libio/putwchar.c (putchar): Likewise.
1826 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
1827 * libio/tst-bz24051.c: New test.
1828 * libio/Makefile (tests): Add tst-bz24051
1829
1830 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
1831
1832 CVE-2019-9169
1833 regex: fix read overrun [BZ #24114]
1834 Problem found by AddressSanitizer, reported by Hongxu Chen in:
1835 https://debbugs.gnu.org/34140
1836 * posix/regexec.c (proceed_next_node):
1837 Do not read past end of input buffer.
1838
1839 2019-01-31 Florian Weimer <fweimer@redhat.com>
1840
1841 [BZ #24059]
1842 * nss/nss_files/files-alias.c (get_next_alias): Handle
1843 continuation line without newline at the end.
1844 * nss/tst-nss-files-alias-truncated.c: New file.
1845 * nss/Makefile [$(build-shared)] (tests): Add
1846 tst-nss-files-alias-truncated.
1847 (tst-nss-files-alias-truncated): Link with libnss_files.so.
1848 * support/namespace.h (struct support_chroot_configuration): Add
1849 aliases member.
1850 (struct support_chroot): Add path_aliases member.
1851 * support/support_chroot.c (support_chroot_create): Handle
1852 aliases.
1853 (support_chroot_free): Free path_aliases.
1854
1855 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
1856
1857 * version.h (RELEASE): Set to "development".
1858 (VERSION): Set to "2.29.9000".
1859 * NEWS: Add section for 2.30.
1860
1861 * version.h (RELEASE): Set to "stable".
1862 (VERSION): Set to "2.29".
1863 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
1864
1865 * NEWS: Add the list of bugs fixed in 2.29.
1866 * manual/contrib.texi: Update contributors list with some more
1867 names.
1868 * manual/install.texi: Update latest versions of packages
1869 tested.
1870 * INSTALL: Regenerated.
1871
1872 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
1873
1874 * po/be.po: Update translations.
1875 * po/bg.po: Likewise.
1876 * po/ca.po: Likewise.
1877 * po/cs.po: Likewise.
1878 * po/da.po: Likewise.
1879 * po/de.po: Likewise.
1880 * po/el.po: Likewise.
1881 * po/eo.po: Likewise.
1882 * po/es.po: Likewise.
1883 * po/fi.po: Likewise.
1884 * po/fr.po: Likewise.
1885 * po/gl.po: Likewise.
1886 * po/hr.po: Likewise.
1887 * po/hu.po: Likewise.
1888 * po/ia.po: Likewise.
1889 * po/id.po: Likewise.
1890 * po/it.po: Likewise.
1891 * po/ja.po: Likewise.
1892 * po/ko.po: Likewise.
1893 * po/lt.po: Likewise.
1894 * po/nb.po: Likewise.
1895 * po/nl.po: Likewise.
1896 * po/pl.po: Likewise.
1897 * po/pt_BR.po: Likewise.
1898 * po/ru.po: Likewise.
1899 * po/rw.po: Likewise.
1900 * po/sk.po: Likewise.
1901 * po/sl.po: Likewise.
1902 * po/sv.po: Likewise.
1903 * po/tr.po: Likewise.
1904 * po/uk.po: Likewise.
1905 * po/vi.po: Likewise.
1906 * po/zh_CN.po: Likewise.
1907 * po/zh_TW.po: Likewise.
1908
1909 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
1910
1911 [BZ #24130]
1912 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
1913 of $f3 register on $y_is_neg path.
1914
1915 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
1916
1917 [BZ #24110]
1918 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
1919 sigaltstack.ss_flags.
1920
1921 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
1922
1923 [BZ #23758]
1924 * manual/time.texi (strftime): Document "%Ey".
1925 * time/strftime_l.c (__strftime_internal): Set the default width
1926 padding with zero of "%Ey" to 2.
1927
1928 [BZ #24096]
1929 * manual/time.texi (strftime): Document "%EC" and "%EY".
1930 * time/Makefile (tests): Add tst-strftime2.
1931 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
1932 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
1933 override padding for "%Ey".
1934 If an optional flag ('_' or '-') is specified to "%EY", interpret the
1935 "%Ey" in the subformat as if decorated with that flag.
1936 * time/tst-strftime2.c: New file.
1937
1938 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1939
1940 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
1941 are not defined.
1942
1943 [BZ #24122]
1944 * elf/Makefile (tests): Add tst-audit13.
1945 (modules-names): Add tst-audit13mod1.
1946 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
1947 rule.
1948 * elf/rtld.c (dl_main): Handle invalid audit module version.
1949 * elf/tst-audit13.c: New file.
1950 * elf/tst-audit13mod1.c: Likewise.
1951
1952 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
1953
1954 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
1955 returned by __hurd_at_flags.
1956 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
1957 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
1958 directly instead of __hurd_file_name_lookup.
1959
1960 2019-01-21 Joseph Myers <joseph@codesourcery.com>
1961
1962 * scripts/build-many-glibcs.py (Context.checkout): Default
1963 binutils version to 2.32 branch.
1964
1965 2019-01-21 Florian Weimer <fweimer@redhat.com>
1966
1967 [BZ #20018]
1968 CVE-2016-10739
1969 resolv: Reject trailing characters in host names
1970 * include/arpa/inet.h (__inet_aton_exact): Declare.
1971 (inet_aton): Remove hidden prototype. No longer used internally.
1972 * nscd/gai.c (__inet_aton): Do not define.
1973 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
1974 * nss/digits_dots.c (__inet_aton): Likewise.
1975 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
1976 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
1977 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
1978 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
1979 (tst-resolv-trailing): Likewise.
1980 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
1981 libc.
1982 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
1983 Make static. Add endp parameter.
1984 (__inet_aton_exact): New function.
1985 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
1986 (__inet_addr): Call inet_aton_end.
1987 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
1988 not just IPv6. Call __inet_aton_exact.
1989 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
1990 (tests): Make const. Add additional test cases with trailing
1991 characters.
1992 (do_test): Use array_length.
1993 * resolv/tst-inet_aton_exact.c: New file.
1994 * resolv/tst-resolv-trailing.c: Likewise.
1995 * resolv/tst-resolv-nondecimal.c: Likewise.
1996 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
1997
1998 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1999
2000 [BZ# 24097]
2001 CVE-2019-6488
2002 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
2003 Clear the upper 32 bits of RSI register.
2004 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
2005 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
2006 and tst-size_t-wcsnlen.
2007 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
2008 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
2009
2010 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
2011
2012 [BZ# 24097]
2013 CVE-2019-6488
2014 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
2015 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
2016 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
2017 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
2018 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
2019
2020 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
2021
2022 [BZ# 24097]
2023 CVE-2019-6488
2024 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
2025 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
2026 * sysdeps/x86_64/strcmp.S: Likewise.
2027 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
2028 tst-size_t-strncmp and tst-size_t-wcsncmp.
2029 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
2030 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
2031 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
2032
2033 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
2034
2035 [BZ# 24097]
2036 CVE-2019-6488
2037 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
2038 RDX_LP for length. Clear the upper 32 bits of RDX register.
2039 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
2040 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
2041 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
2042 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
2043
2044 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
2045
2046 [BZ# 24097]
2047 CVE-2019-6488
2048 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
2049 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
2050 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
2051 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
2052
2053 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
2054
2055 [BZ# 24097]
2056 CVE-2019-6488
2057 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
2058 length. Clear the upper 32 bits of RDX register.
2059 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
2060 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
2061 Likewise.
2062 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
2063 Likewise.
2064 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
2065 tst-size_t-wmemchr.
2066 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
2067
2068 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
2069
2070 [BZ# 24097]
2071 CVE-2019-6488
2072 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
2073 length. Clear the upper 32 bits of RDX register.
2074 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
2075 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
2076 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
2077 tst-size_t-wmemcmp.
2078 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
2079 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
2080
2081 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
2082
2083 [BZ# 24097]
2084 CVE-2019-6488
2085 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
2086 upper 32 bits of RDX register.
2087 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
2088 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
2089 tst-size_t-wmemchr.
2090 * sysdeps/x86_64/x32/test-size_t.h: New file.
2091 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
2092 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
2093
2094 2019-01-18 Florian Weimer <fweimer@redhat.com>
2095
2096 [BZ #24112]
2097 resolv: Do not send queries for non-host-names in nss_dns.
2098 * resolv/nss_dns/dns-host.c (check_name): New function.
2099 (_nss_dns_gethostbyname2_r): Use it.
2100 (_nss_dns_gethostbyname_r): Likewise.
2101 (_nss_dns_gethostbyname4_r): Likewise.
2102
2103 2019-01-21 Florian Weimer <fweimer@redhat.com>
2104
2105 * resolv/inet_addr.c: Reformat to GNU style.
2106 (__inet_addr, __inet_aton): Update comment.
2107
2108 2019-01-18 Florian Weimer <fweimer@redhat.com>
2109
2110 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
2111 ("malloc: Use current (C11-style) atomics for fastbin access").
2112 This commit introduces a substantial performance regression on
2113 POWER and Aarch64.
2114 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
2115 (REMOVE_FB): Define.
2116 (_int_malloc): Use it and reindent.
2117 (_int_free): Use CAS loop with
2118 catomic_compare_and_exchange_val_rel.
2119 (malloc_consolidate): Use atomic_exchange_acq.
2120
2121
2122 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
2123
2124 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
2125 -Wl,-z,now.
2126 (LDFLAGS-tst-minsigstksz-2): Likewise.
2127 (LDFLAGS-tst-minsigstksz-3): Likewise.
2128 (LDFLAGS-tst-minsigstksz-3a): Likewise.
2129 (LDFLAGS-tst-minsigstksz-4): Likewise.
2130
2131 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
2132
2133 * manual/time.texi (strftime): Fix the wording to "alternative" rather
2134 than "alternate".
2135
2136 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
2137
2138 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
2139
2140 2019-01-16 Zack Weinberg <zackw@panix.com>
2141
2142 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
2143 (xget_sigstack_location): New test support functions.
2144 * support/xsigstack.c: New file, implementing them.
2145 * support/tst-xsigstack.c: New test for them.
2146 * support/Makefile: Update.
2147
2148 * signal/tst-minsigstksz-1.c
2149 * signal/tst-minsigstksz-2.c
2150 * signal/tst-minsigstksz-3.c
2151 * signal/tst-minsigstksz-3a.c
2152 * signal/tst-minsigstksz-4.c: New tests.
2153 * signal/Makefile: Run them.
2154
2155 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
2156
2157 * po/libc.pot: Regenerate.
2158
2159 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2160
2161 * math/libm-test-fma.inc (fma_test_data): Set
2162 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
2163
2164 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
2165
2166 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
2167 (do_test): Changed __vector __int128_t to __vector unsigned int.
2168
2169 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
2170
2171 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2172 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
2173 stpcpy-avx2 and stpncpy-avx2.
2174 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
2175 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
2176 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
2177 and __stpncpy_avx2.
2178 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
2179 ifunc-strcpy.h}: rename header for a more generic name.
2180 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
2181 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
2182 AVX unaligned load is fast and vzeroupper is preferred.
2183 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
2184 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
2185 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
2186 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
2187 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
2188 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
2189
2190 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
2191
2192 * argp/argp-help.c: Fix typo in comment.
2193 * misc/sys/cdefs.h: Likewise.
2194 * posix/regexec.c (sift_states_iter_mb): Likewise.
2195 * socket/sockatmark.c: Likewise.
2196 * socket/sys/socket.h: Likewise.
2197 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
2198 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
2199 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
2200 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
2201 * sysdeps/unix/sockatmark.c: Likewise.
2202 * time/strptime_l.c: Likewise.
2203
2204 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
2205
2206 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
2207 missing space after the cast of "_NL_CURRENT".
2208
2209 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
2210
2211 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
2212 ifdef to fix read of VSCR.
2213 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
2214 tst-ucontext-ppc64-vscr.c to test list.
2215 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
2216
2217 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
2218
2219 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
2220 fall-through.
2221
2222 2019-01-09 Jim Wilson <jimw@sifive.com>
2223
2224 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
2225
2226 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
2227
2228 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
2229 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
2230 __memcpy_falkor for ares.
2231 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
2232 Add new define.
2233 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
2234 Add ares cpu.
2235
2236 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
2237
2238 [BZ #24066]
2239 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
2240 4_FP_W_TYPEs are used for IEEE quad precision.
2241 * soft-fp/extendhftf2.c: Likewise.
2242 * soft-fp/extendsftf2.c: Likewise.
2243 * soft-fp/extendxftf2.c: Likewise.
2244 * soft-fp/trunctfdf2.c: Likewise.
2245 * soft-fp/trunctfhf2.c: Likewise.
2246 * soft-fp/trunctfsf2.c: Likewise.
2247 * soft-fp/trunctfxf2.c: Likewise.
2248 * sysdeps/alpha/ots_cvttx.c: Likewise.
2249 * sysdeps/alpha/ots_cvtxt.c: Likewise.
2250 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
2251 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
2252 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
2253 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
2254 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
2255 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
2256 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
2257 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
2258 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
2259 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
2260 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
2261 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
2262 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
2263 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
2264 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
2265 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
2266
2267 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
2268
2269 [BZ #24024]
2270 * Makeconfig: Build libm with -fno-math-errno but build the remaining
2271 code with -fmath-errno.
2272 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
2273 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
2274 * string/test-strerror-errno.c: New file.
2275
2276 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
2277
2278 [BZ #24046]
2279 * localedata/locales/en_US (date_fmt): Add, set to
2280 "%a %d %b %Y %r %Z".
2281
2282 2019-01-07 Florian Weimer <fweimer@redhat.com>
2283
2284 [BZ #24063]
2285 * manual/arith.texi (Math Error Reporting): Use @code{errno}
2286 instead of @var{errno}.
2287 (Parsing of Integers): Likewise.
2288 (Parsing of Floats): Likewise.
2289 * manual/filesys.texi (Working with Directory Trees): Likewise.
2290 (Temporary Files): Likewise.
2291 * manual/job.texi (Terminal Access Functions): Likewise.
2292 * manual/llio.texi (Synchronizing I/O): Likewise.
2293 * manual/math.texi (SVID Random): Likewise.
2294 * manual/message.texi (The catgets Functions): Likewise.
2295 (Translation with gettext): Likewise.
2296 (Locating gettext catalog): Likewise.
2297 (Charset conversion in gettext): Likewise.
2298 * manual/nss.texi (NSS Module Function Internals): Likewise.
2299 * manual/search.texi (Hash Search Function): Likewise.
2300 * manual/setjmp.texi (System V contexts): Likewise.
2301 * manual/time.texi (Sleeping): Likewise.
2302 * manual/users.texi (Lookup User): Likewise.
2303 (Lookup Group): Likewise.
2304
2305 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2306
2307 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
2308 fix typo.
2309
2310 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
2311
2312 [BZ #19444]
2313 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
2314 __builtin_unreachable for default case in switch.
2315 (__ieee754_yn): Likewise.
2316 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
2317 (__ieee754_ynl): Likewise.
2318 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
2319 (__ieee754_ynl): Likewise.
2320 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
2321 (__ieee754_ynl): Likewise.
2322
2323 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
2324
2325 * manual/maint.texi: Use @{ and @}.
2326
2327 2019-01-04 Florian Weimer <fweimer@redhat.com>
2328
2329 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
2330 function.
2331 (do_in_chroot_1): Call it.
2332 (run_chroot_tests):
2333 Improve error reporting in case it is not possible to create a
2334 collision for the PTY name required by the test.
2335
2336 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2337
2338 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
2339 lll_wait_tid with timeout.
2340 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
2341 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
2342 futex_reltimed_wait_cancelable for cancelabla mode.
2343 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
2344 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
2345 macros.
2346 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
2347 * sysdeps/posix/waitid.c (__sigwait): Likewise.
2348 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
2349 SYSCALL_CANCEL_NCS): New macro.
2350 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
2351 (lll_timedwait_tid): Remove macro.
2352 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
2353 Likewise.
2354 (lll_timedwait_tid): Likewise.
2355 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
2356 Likewise.
2357 (lll_timedwait_tid): Likewise.
2358 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
2359 Likewise.
2360 (lll_timedwait_tid): Likewise.
2361 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
2362 Use INTERNAL_SYSCALL_CANCEL.
2363 * sysdeps/unix/sysv/linux/futex-internal.h
2364 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
2365 instead of __pthread_{enable,disable}_asynccancel.
2366 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
2367 (lll_futex_wait_cancel): New macro.
2368
2369 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
2370 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
2371
2372 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
2373 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
2374
2375 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
2376 in backtrace analysis.
2377 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
2378 side-effects.
2379 (tf_send): Likewise.
2380
2381 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
2382 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
2383 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
2384 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
2385 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
2386 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
2387 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
2388 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
2389 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
2390 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
2391 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
2392 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
2393 Likewise.
2394 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
2395 tst-cancel-wrappers.sh.
2396 (generated): Remove tst-cancel-wrappers.out.
2397 (tst-cancel-wrappers.out): Remove rule.
2398 * nptl/tst-cancel-wrappers.sh: Remove file.
2399
2400 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
2401
2402 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
2403 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
2404 Update.
2405
2406 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2407
2408 [BZ #23640]
2409 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
2410 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
2411 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
2412 close-on-exec reset for adddup2 file action.
2413 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
2414
2415 2019-01-03 Zack Weinberg <zackw@panix.com>
2416
2417 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
2418 parameter. Only use deprecated scanf when __USE_GNU is defined
2419 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
2420 than 201103L, whichever is relevant for the language being compiled.
2421
2422 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
2423 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
2424 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
2425 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
2426 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
2427
2428 * libio/iovsscanf.c
2429 * libio/fwscanf.c
2430 * libio/iovswscanf.c
2431 * libio/swscanf.c
2432 * libio/vscanf.c
2433 * libio/vwscanf.c
2434 * libio/wscanf.c
2435 * stdio-common/fscanf.c
2436 * stdio-common/scanf.c
2437 * stdio-common/vfscanf.c
2438 * stdio-common/vfwscanf.c
2439 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
2440 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
2441 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
2442 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
2443 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
2444 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
2445 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
2446 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
2447 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
2448 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
2449 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
2450 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
2451 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
2452 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
2453 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
2454
2455 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
2456 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
2457 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
2458 not sscanf.
2459 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
2460 with a preprocessor macro.
2461
2462 * stdio-common/bug21.c, stdio-common/scanf14.c:
2463 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
2464 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
2465 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
2466 to xscanf, xfscanf, xsscanf.
2467
2468 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
2469 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
2470 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
2471 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
2472 xfscanf, xsscanf.
2473 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
2474 override feature selection macros or provide definitions of u_char etc.
2475 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
2476 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
2477 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
2478 with -std=gnu89.
2479
2480 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2481
2482 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2483 bits/termios-misc.h.
2484 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
2485 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2486 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2487 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2488 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
2489 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
2490
2491 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
2492 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
2493 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
2494 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
2495 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
2496 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
2497 termios-misc.h.
2498 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
2499 (sysdep_headers): Add termios-misc.h.
2500
2501 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
2502 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2503 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2504
2505 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2506 termios-tcflow.h.
2507 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
2508 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
2509 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
2510 TCSAFLUSH): Move to termios-tcflow.h.
2511 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2512 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2513 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2514 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2515
2516 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2517 termios-c_lflag.h.
2518 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
2519 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
2520 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
2521 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
2522 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
2523 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
2524 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
2525 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
2526 Likewise.
2527 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2528 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2529 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2530 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2531
2532 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2533 termios-c_cflag.h.
2534 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
2535 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
2536 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
2537 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
2538 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
2539 termios-c_cflag.h.
2540 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2541 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2542 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2543 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2544
2545 [BZ #23783]
2546 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2547 termios-baud.h.
2548 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
2549 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
2550 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
2551 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
2552 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
2553 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
2554 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
2555 __MAX_BAUD): Move to termios-baud.h.
2556 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
2557 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
2558 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2559 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2560 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2561
2562 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
2563 termios-c_oflag.h.
2564 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
2565 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
2566 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
2567 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
2568 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
2569 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
2570 termios-c_oflag.h.
2571 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
2572 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
2573 FFR1): Likewise.
2574 [USE_MISC] (XTABS): Likewise.
2575 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2576 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2577 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2578 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
2579
2580 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
2581 termios-c_iflag.h.
2582 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
2583 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
2584 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
2585 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
2586 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
2587 IUTF8): Move to termios-c_iflag.h.
2588 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2589 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2590 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2591 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2592
2593 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
2594 termios-cc.h.
2595 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
2596 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
2597 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
2598 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
2599 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
2600 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
2601 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
2602 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
2603 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2604 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2605 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2606 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2607
2608 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
2609 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
2610 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
2611 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
2612 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2613 termios-struct.h.
2614 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
2615 termios-struct.h.
2616 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
2617 Likewise.
2618 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
2619 Likewise.
2620 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
2621 Likewise.
2622 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
2623 Likewise.
2624 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
2625 _HAVE_C_OSPEED): Define.
2626 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
2627 _HAVE_C_OSPEED): Likewise.
2628 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
2629 _HAVE_C_OSPEED): Likewise.
2630 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
2631 (cfsetospeed): Check for define value instead of existence.
2632 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
2633 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
2634 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
2635 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
2636 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
2637
2638 [BZ #17783]
2639 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
2640 Define.
2641 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
2642 (TIOCSER_TEMT): Likewise.
2643 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
2644 (TEOCSER_TEMT): Likewise.
2645
2646 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
2647
2648 [BZ #24011]
2649 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
2650
2651 2019-01-02 Joseph Myers <joseph@codesourcery.com>
2652
2653 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
2654
2655 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
2656
2657 * sysdeps/htl/pt-barrierattr-setpshared.c
2658 (pthread_barrierattr_setpshared): Add stub warning.
2659 * sysdeps/htl/pt-condattr-setpshared.c
2660 (pthread_condattr_setpshared): Likewise.
2661 * sysdeps/htl/pt-mutexattr-setpshared.c
2662 (pthread_mutexattr_setpshared): Likewise.
2663 * sysdeps/htl/pt-rwlockattr-setpshared.c
2664 (pthread_rwlockattr_setpshared): Likewise.
2665 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
2666 (pthread_mutexattr_setpshared): Likewise.
2667
2668 2019-01-02 Joseph Myers <joseph@codesourcery.com>
2669
2670 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
2671 constants to match with Linux 4.20.
2672
2673 * sysdeps/mips/mips32/libm-test-ulps: Update.
2674 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
2675
2676 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
2677
2678 [BZ #24034]
2679 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
2680 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
2681 than __typeof (...) for the a_ptr variable.
2682
2683 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2684
2685 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
2686 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
2687 * libio/Makefile (tests): Add tst-sprintf-ub and
2688 tst-sprintf-chk-ub.
2689 (CFLAGS-tst-sprintf-ub.c): New variable.
2690 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
2691 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
2692 destination buffer and check for overflows in fortified mode.
2693 * libio/libioP.h (PRINTF_CHK): New macro.
2694 * libio/tst-sprintf-chk-ub.c: New file.
2695 * libio/tst-sprintf-ub.c: Likewise.
2696
2697 2019-01-02 Florian Weimer <fweimer@redhat.com>
2698
2699 [BZ #24018]
2700 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
2701 failure.
2702
2703 2019-01-02 Florian Weimer <fweimer@redhat.com>
2704
2705 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
2706
2707 2019-01-01 Joseph Myers <joseph@codesourcery.com>
2708
2709 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
2710 macro.
2711
2712 * sysdeps/unix/sysv/linux/netpacket/packet.h
2713 (PACKET_IGNORE_OUTGOING): New macro.
2714
2715 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
2716 macro.
2717
2718 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
2719 version to 4.20.
2720 (riscv_flush_icache): New syscall.
2721
2722 * manual/texinfo.tex: Update to version 2018-12-28.17 with
2723 trailing whitespace removed.
2724 * scripts/config.guess: Update to version 2019-01-01.
2725 * scripts/config.sub: Update to version 2019-01-01.
2726 * scripts/move-if-change: Update from gnulib.
2727
2728 * NEWS: Update copyright dates.
2729 * catgets/gencat.c (print_version): Likewise.
2730 * csu/version.c (banner): Likewise.
2731 * debug/catchsegv.sh: Likewise.
2732 * debug/pcprofiledump.c (print_version): Likewise.
2733 * debug/xtrace.sh (do_version): Likewise.
2734 * elf/ldconfig.c (print_version): Likewise.
2735 * elf/ldd.bash.in: Likewise.
2736 * elf/pldd.c (print_version): Likewise.
2737 * elf/sotruss.sh: Likewise.
2738 * elf/sprof.c (print_version): Likewise.
2739 * iconv/iconv_prog.c (print_version): Likewise.
2740 * iconv/iconvconfig.c (print_version): Likewise.
2741 * locale/programs/locale.c (print_version): Likewise.
2742 * locale/programs/localedef.c (print_version): Likewise.
2743 * login/programs/pt_chown.c (print_version): Likewise.
2744 * malloc/memusage.sh (do_version): Likewise.
2745 * malloc/memusagestat.c (print_version): Likewise.
2746 * malloc/mtrace.pl: Likewise.
2747 * manual/libc.texinfo: Likewise.
2748 * nptl/version.c (banner): Likewise.
2749 * nscd/nscd.c (print_version): Likewise.
2750 * nss/getent.c (print_version): Likewise.
2751 * nss/makedb.c (print_version): Likewise.
2752 * posix/getconf.c (main): Likewise.
2753 * scripts/test-installation.pl: Likewise.
2754 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2755
2756 * All files with FSF copyright notices: Update copyright dates
2757 using scripts/update-copyrights.
2758 * locale/programs/charmap-kw.h: Regenerated.
2759 * locale/programs/locfile-kw.h: Likewise.
2760
2761 2018-12-31 Joseph Myers <joseph@codesourcery.com>
2762
2763 * timezone/zdump.c: Update from tzcode 2018i.
2764 * timezone/zic.c: Likewise.
2765
2766 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
2767
2768 regex: improve Gnulib port to AIX
2769 From the glibc point of view, this removes duplicate macro
2770 definitions and is obviously safe.
2771 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
2772 * posix/regex_internal.h:
2773 (__attribute__, __attribute_warn_unused_result__):
2774 Remove; already defined elsewhere.
2775
2776 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
2777
2778 [BZ #24027]
2779 * malloc/malloc.c (_int_realloc): Always call memcpy for the
2780 copying operation. (ncopies had the wrong type, resulting in an
2781 integer wraparound and too few elements being copied.)
2782
2783 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
2784
2785 [BZ #24022]
2786 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
2787 <asm/syscalls.h> exists with __has_include__ before including it.
2788
2789 2018-12-31 Joseph Myers <joseph@codesourcery.com>
2790
2791 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2792 version to 4.20.
2793
2794 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
2795
2796 * hurd/lookup-retry: Include <unistd.h>.
2797 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
2798 Release it on return. Handle "pid" magical lookup retry.
2799
2800 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
2801
2802 [BZ #10496]
2803 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
2804 (t_fmt_ampm): Likewise.
2805 * localedata/locales/aa_ER (t_fmt): Likewise.
2806 (t_fmt_ampm): Likewise.
2807 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
2808 (t_fmt_ampm): Likewise.
2809 * localedata/locales/aa_ET (t_fmt): Likewise.
2810 (t_fmt_ampm): Likewise.
2811 * localedata/locales/am_ET (t_fmt): Likewise.
2812 (t_fmt_ampm): Likewise.
2813 * localedata/locales/byn_ER (t_fmt): Likewise.
2814 (t_fmt_ampm): Likewise.
2815 * localedata/locales/om_ET (t_fmt): Likewise.
2816 (t_fmt_ampm): Likewise.
2817 * localedata/locales/sid_ET (t_fmt): Likewise.
2818 (t_fmt_ampm): Likewise.
2819 * localedata/locales/so_DJ (t_fmt): Likewise.
2820 (t_fmt_ampm): Likewise.
2821 * localedata/locales/so_ET (t_fmt): Likewise.
2822 (t_fmt_ampm): Likewise.
2823 * localedata/locales/so_SO (t_fmt): Likewise.
2824 (t_fmt_ampm): Likewise.
2825 * localedata/locales/ti_ER (t_fmt): Likewise.
2826 (t_fmt_ampm): Likewise.
2827 * localedata/locales/ti_ET (t_fmt): Likewise.
2828 (t_fmt_ampm): Likewise.
2829 * localedata/locales/tig_ER (t_fmt): Likewise.
2830 (t_fmt_ampm): Likewise.
2831 * localedata/locales/wal_ET (t_fmt): Likewise.
2832 (t_fmt_ampm): Likewise.
2833
2834 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
2835 * localedata/locales/ar_IN (t_fmt): Likewise.
2836 * localedata/locales/bhb_IN (t_fmt): Likewise.
2837 * localedata/locales/bho_IN (t_fmt): Likewise.
2838 * localedata/locales/bi_VU (t_fmt): Likewise.
2839 * localedata/locales/bn_BD (t_fmt): Likewise.
2840 * localedata/locales/bn_IN (t_fmt): Likewise.
2841 * localedata/locales/brx_IN (t_fmt): Likewise.
2842 * localedata/locales/doi_IN (t_fmt): Likewise.
2843 * localedata/locales/en_HK (t_fmt): Likewise.
2844 (t_fmt_ampm): Likewise.
2845 * localedata/locales/en_IN (t_fmt): Likewise.
2846 * localedata/locales/en_PH (t_fmt): Likewise.
2847 * localedata/locales/gu_IN (t_fmt): Likewise.
2848 * localedata/locales/hi_IN (t_fmt): Likewise.
2849 * localedata/locales/hif_FJ (t_fmt): Likewise.
2850 * localedata/locales/hne_IN (t_fmt): Likewise.
2851 * localedata/locales/kn_IN (t_fmt): Likewise.
2852 * localedata/locales/kok_IN (t_fmt): Likewise.
2853 * localedata/locales/ks_IN (t_fmt): Likewise.
2854 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
2855 * localedata/locales/mag_IN (t_fmt): Likewise.
2856 * localedata/locales/mai_IN (t_fmt): Likewise.
2857 * localedata/locales/mjw_IN (t_fmt): Likewise.
2858 * localedata/locales/ml_IN (t_fmt): Likewise.
2859 * localedata/locales/mni_IN (t_fmt): Likewise.
2860 * localedata/locales/mr_IN (t_fmt): Likewise.
2861 * localedata/locales/ms_MY (t_fmt): Likewise.
2862 * localedata/locales/pa_IN (t_fmt): Likewise.
2863 * localedata/locales/raj_IN (t_fmt): Likewise.
2864 * localedata/locales/sa_IN (t_fmt): Likewise.
2865 * localedata/locales/sat_IN (t_fmt): Likewise.
2866 * localedata/locales/sd_IN (t_fmt): Likewise.
2867 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
2868 * localedata/locales/tcy_IN (t_fmt): Likewise.
2869 * localedata/locales/the_NP (t_fmt): Likewise.
2870 * localedata/locales/to_TO (t_fmt): Likewise.
2871 * localedata/locales/ur_IN (t_fmt): Likewise.
2872
2873 * localedata/locales/hif_FJ (d_t_fmt): Set to
2874 "%A %d %b %Y %I:%M:%S %p".
2875 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
2876
2877 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
2878 * localedata/locales/ar_BH (t_fmt): Likewise.
2879 * localedata/locales/ar_DZ (t_fmt): Likewise.
2880 * localedata/locales/ar_EG (t_fmt): Likewise.
2881 * localedata/locales/ar_IQ (t_fmt): Likewise.
2882 * localedata/locales/ar_JO (t_fmt): Likewise.
2883 * localedata/locales/ar_KW (t_fmt): Likewise.
2884 * localedata/locales/ar_LB (t_fmt): Likewise.
2885 * localedata/locales/ar_LY (t_fmt): Likewise.
2886 * localedata/locales/ar_OM (t_fmt): Likewise.
2887 * localedata/locales/ar_QA (t_fmt): Likewise.
2888 * localedata/locales/ar_SD (t_fmt): Likewise.
2889 * localedata/locales/ar_SS (t_fmt): Likewise.
2890 * localedata/locales/ar_SY (t_fmt): Likewise.
2891 * localedata/locales/ar_TN (t_fmt): Likewise.
2892 * localedata/locales/ar_YE (t_fmt): Likewise.
2893
2894 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
2895 (t_fmt_ampm): Likewise.
2896 * localedata/locales/gez_ET (t_fmt): Likewise.
2897 (t_fmt_ampm): Likewise.
2898
2899 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
2900 (t_fmt_ampm): Likewise.
2901 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
2902
2903 * localedata/locales/zh_HK (t_fmt):
2904 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
2905
2906 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
2907 because this locale does not use the 12-hour clock.
2908 (t_fmt): Set to "%Z %H:%M:%S".
2909 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
2910
2911 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
2912 because this locale does not use the 12-hour clock.
2913 (t_fmt): Set to "%H:%M:%S %Z".
2914 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
2915
2916 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
2917 because this locale does not use the 12-hour clock.
2918 (t_fmt): Set to "%T".
2919 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
2920 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
2921
2922 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
2923 because this locale does not use the 12-hour clock.
2924 (t_fmt): Set to "%H:%M:%S %Z".
2925 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
2926
2927 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
2928 because this locale does not use the 12-hour clock.
2929 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
2930 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
2931
2932 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
2933
2934 [BZ #10496]
2935 [BZ #23724]
2936 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
2937 (t_fmt_ampm): Likewise.
2938 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
2939 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
2940 (d_fmt): Set to "%-d.%-m.%y".
2941
2942 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2943
2944 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
2945 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
2946 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
2947 Likewise.
2948 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
2949 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
2950 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
2951 function.
2952 * support/blob_repeat.c (check_mul_overflow_size_t,
2953 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
2954
2955 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
2956
2957 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
2958
2959 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
2960
2961 regex: simplify Gnulib port
2962 This simplifies the code, by removing stuff intended for porting
2963 to Gnulib but no longer needed there.
2964 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
2965 uses of libc_hidden_def, weak_alias.
2966 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
2967 _Restrict_ except for public-facing headers.
2968 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
2969 Remove; already defined elsewhere.
2970 * posix/regex.c, posix/regex_internal.h:
2971 Use __GNUC_PREREQ instead of rolling our own.
2972 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
2973
2974 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
2975
2976 * benchtests/bench-strlen.c (generic_strlen): New function.
2977 (memchr_strlen): New function.
2978
2979 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2980
2981 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
2982 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
2983 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
2984
2985 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2986
2987 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
2988
2989 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2990
2991 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
2992 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
2993 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
2994 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
2995 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
2996 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
2997 <sysdeps/ieee754/flt-32/s_sincosf.c>.
2998
2999 2018-12-21 Joseph Myers <joseph@codesourcery.com>
3000
3001 [BZ #24023]
3002 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
3003 PLT reference in libc.so.
3004 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
3005 _Q_lltoq and _Q_qtod PLT references in libc.so.
3006
3007 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
3008
3009 * benchtests/bench-memchr.c: Cleanup defines.
3010 * benchtests/bench-memcmp.c: Likewise.
3011 * benchtests/bench-memset.c: Likewise.
3012 * benchtests/bench-memset-large.c: Likewise.
3013 * benchtests/bench-memset-walk.c: Likewise.
3014 * benchtests/bench-stpcpy.c: Likewise.
3015 * benchtests/bench-stpncpy.c: Likewise.
3016 * benchtests/bench-strcat.c: Likewise.
3017 * benchtests/bench-strchr.c: Likewise.
3018 * benchtests/bench-strcmp.c: Likewise.
3019 * benchtests/bench-strcpy.c: Likewise.
3020 * benchtests/bench-strcspn.c: Likewise.
3021 * benchtests/bench-string.h: Likewise.
3022 * benchtests/bench-strlen.c: Likewise.
3023 * benchtests/bench-strncat.c: Likewise.
3024 * benchtests/bench-strncmp.c: Likewise.
3025 * benchtests/bench-strncpy.c: Likewise.
3026 * benchtests/bench-strnlen.c: Likewise.
3027 * benchtests/bench-strpbrk.c: Likewise.
3028 * benchtests/bench-strrchr.c: Likewise.
3029 * benchtests/bench-strspn.c: Likewise.
3030
3031 2018-12-21 Joseph Myers <joseph@codesourcery.com>
3032
3033 * stdlib/longlong.h: Update from GCC.
3034
3035 [BZ #23993]
3036 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
3037 * configure: Regenerated.
3038 * manual/install.texi (Tools for Compilation): Update minimum GCC
3039 version.
3040 * INSTALL: Regenerated.
3041
3042 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
3043
3044 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
3045
3046 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
3047
3048 * malloc/malloc.c (mremap_chunk): Additional checks.
3049
3050 2018-12-21 Mao Han <han_mao@c-sky.com>
3051
3052 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
3053 * scripts/build-many-glibcs.py: Add C-SKY targets.
3054 * sysdeps/csky/Implies: New file.
3055 * sysdeps/csky/Makefile: Likewise.
3056 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
3057 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
3058 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
3059 * sysdeps/csky/abiv2/memcmp.S: Likewise.
3060 * sysdeps/csky/abiv2/memcpy.S: Likewise.
3061 * sysdeps/csky/abiv2/memmove.S: Likewise.
3062 * sysdeps/csky/abiv2/memset.S: Likewise.
3063 * sysdeps/csky/abiv2/setjmp.S: Likewise.
3064 * sysdeps/csky/abiv2/start.S: Likewise.
3065 * sysdeps/csky/abiv2/strcmp.S: Likewise.
3066 * sysdeps/csky/abiv2/strcpy.S: Likewise.
3067 * sysdeps/csky/abiv2/strlen.S: Likewise.
3068 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
3069 * sysdeps/csky/abort-instr.h: Likewise.
3070 * sysdeps/csky/atomic-machine.h: Likewise.
3071 * sysdeps/csky/bits/endian.h: Likewise.
3072 * sysdeps/csky/bits/fenv.h: Likewise.
3073 * sysdeps/csky/bits/link.h: Likewise.
3074 * sysdeps/csky/bits/setjmp.h: Likewise.
3075 * sysdeps/csky/bsd-_setjmp.S: Likewise.
3076 * sysdeps/csky/bsd-setjmp.S: Likewise.
3077 * sysdeps/csky/configure: Likewise.
3078 * sysdeps/csky/configure.ac: Likewise.
3079 * sysdeps/csky/dl-machine.h: Likewise.
3080 * sysdeps/csky/dl-procinfo.c: Likewise.
3081 * sysdeps/csky/dl-procinfo.h: Likewise.
3082 * sysdeps/csky/dl-sysdep.h: Likewise.
3083 * sysdeps/csky/dl-tls.h: Likewise.
3084 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
3085 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
3086 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
3087 * sysdeps/csky/fpu/fegetenv.c: Likewise.
3088 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
3089 * sysdeps/csky/fpu/fegetmode.c: Likewise.
3090 * sysdeps/csky/fpu/fegetround.c: Likewise.
3091 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
3092 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
3093 * sysdeps/csky/fpu/fenv_private.h: Likewise.
3094 * sysdeps/csky/fpu/fesetenv.c: Likewise.
3095 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
3096 * sysdeps/csky/fpu/fesetmode.c: Likewise.
3097 * sysdeps/csky/fpu/fesetround.c: Likewise.
3098 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
3099 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
3100 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
3101 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
3102 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
3103 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
3104 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
3105 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
3106 * sysdeps/csky/fpu_control.h: Likewise.
3107 * sysdeps/csky/gccframe.h: Likewise.
3108 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
3109 * sysdeps/csky/ldsodefs.h: Likewise.
3110 * sysdeps/csky/libc-tls.c: Likewise.
3111 * sysdeps/csky/linkmap.h: Likewise.
3112 * sysdeps/csky/machine-gmon.h: Likewise.
3113 * sysdeps/csky/memusage.h: Likewise.
3114 * sysdeps/csky/nofpu/Implies: Likewise.
3115 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
3116 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
3117 * sysdeps/csky/nptl/Makefile: Likewise.
3118 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
3119 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
3120 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
3121 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
3122 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
3123 * sysdeps/csky/nptl/tls.h: Likewise.
3124 * sysdeps/csky/preconfigure: Likewise.
3125 * sysdeps/csky/sfp-machine.h: Likewise.
3126 * sysdeps/csky/sotruss-lib.c: Likewise.
3127 * sysdeps/csky/stackinfo.h: Likewise.
3128 * sysdeps/csky/sysdep.h: Likewise.
3129 * sysdeps/csky/tininess.h: Likewise.
3130 * sysdeps/csky/tst-audit.h: Likewise.
3131 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
3132 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
3133 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
3134 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
3135 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
3136 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
3137 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
3138 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
3139 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
3140 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
3141 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
3142 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
3143 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
3144 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
3145 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
3146 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
3147 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
3148 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
3149 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
3150 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
3151 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
3152 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
3153 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
3154 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
3155 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
3156 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
3157 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
3158 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
3159 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
3160 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
3161 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
3162 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
3163 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
3164 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
3165 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
3166 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
3167 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
3168 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
3169 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
3170 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
3171 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
3172 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
3173 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
3174 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
3175
3176 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
3177
3178 * include/time.h (__difftime64): Add.
3179 * time/difftime.c (subtract): convert to 64-bit time.
3180 * time/difftime.c (__difftime64): Add.
3181 * time/difftime.c (__difftime): Wrap around __difftime64.
3182
3183 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
3184
3185 * manual/examples/add.c: Remove redundant "if not".
3186 * manual/examples/argp-ex1.c: Likewise.
3187 * manual/examples/argp-ex2.c: Likewise.
3188 * manual/examples/argp-ex3.c: Likewise.
3189 * manual/examples/argp-ex4.c: Likewise.
3190 * manual/examples/atexit.c: Likewise.
3191 * manual/examples/db.c: Likewise.
3192 * manual/examples/dir.c: Likewise.
3193 * manual/examples/dir2.c: Likewise.
3194 * manual/examples/execinfo.c: Likewise.
3195 * manual/examples/filecli.c: Likewise.
3196 * manual/examples/filesrv.c: Likewise.
3197 * manual/examples/fmtmsgexpl.c: Likewise.
3198 * manual/examples/genpass.c: Likewise.
3199 * manual/examples/inetcli.c: Likewise.
3200 * manual/examples/inetsrv.c: Likewise.
3201 * manual/examples/isockad.c: Likewise.
3202 * manual/examples/longopt.c: Likewise.
3203 * manual/examples/memopen.c: Likewise.
3204 * manual/examples/memstrm.c: Likewise.
3205 * manual/examples/mkdirent.c: Likewise.
3206 * manual/examples/mkfsock.c: Likewise.
3207 * manual/examples/mkisock.c: Likewise.
3208 * manual/examples/mygetpass.c: Likewise.
3209 * manual/examples/pipe.c: Likewise.
3210 * manual/examples/popen.c: Likewise.
3211 * manual/examples/rprintf.c: Likewise.
3212 * manual/examples/search.c: Likewise.
3213 * manual/examples/select.c: Likewise.
3214 * manual/examples/setjmp.c: Likewise.
3215 * manual/examples/sigh1.c: Likewise.
3216 * manual/examples/sigusr.c: Likewise.
3217 * manual/examples/stpcpy.c: Likewise.
3218 * manual/examples/strdupa.c: Likewise.
3219 * manual/examples/strftim.c: Likewise.
3220 * manual/examples/subopt.c: Likewise.
3221 * manual/examples/swapcontext.c: Likewise.
3222 * manual/examples/termios.c: Likewise.
3223 * manual/examples/testopt.c: Likewise.
3224 * manual/examples/testpass.c: Likewise.
3225 * manual/examples/timeval_subtract.c: Likewise.
3226
3227 2018-12-19 Joseph Myers <joseph@codesourcery.com>
3228
3229 * sysdeps/x86/fpu/math_private.h: New file.
3230 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
3231
3232 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
3233 definition.
3234 (cosh): Likewise.
3235 (tanh): Likewise.
3236
3237 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3238
3239 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
3240 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
3241 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
3242 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
3243 fields.
3244 (_dl_show_auxv): Give a special treatment to
3245 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
3246 and AT_L3_CACHEGEOMETRY.
3247 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
3248 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
3249 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
3250 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
3251
3252 2018-12-19 Andreas Schwab <schwab@suse.de>
3253
3254 * nscd/connections.c (check_use): Don't abort on invalid len.
3255
3256 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
3257
3258 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
3259 values in the 64bit value cases.
3260
3261 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
3262
3263 * include/time.h
3264 (__ctime64_r): Add.
3265 * time/ctime_r.c
3266 (__ctime64_r): Add.
3267 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
3268
3269 * include/time.h
3270 (__ctime64): Add.
3271 * time/gmtime.c
3272 (__ctime64): Add.
3273 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
3274
3275 * include/time.h
3276 (__gmtime64_r): Add.
3277 * time/gmtime.c
3278 (__gmtime64_r): Add.
3279 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
3280
3281 * include/time.h
3282 (__gmtime64): Add.
3283 * time/gmtime.c
3284 (__gmtime64): Add.
3285 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
3286
3287 * include/time.h
3288 (__localtime64_r): Add.
3289 * time/localtime.c
3290 (__localtime64_r): Add.
3291 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
3292
3293 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3294
3295 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
3296 kernel_sigction definition.
3297
3298 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
3299
3300 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
3301
3302 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
3303 __syscall_rt_sigaction.
3304 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
3305 (kernel_sigaction): Use Linux generic defintion.
3306 (STUB): Define.
3307 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
3308 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
3309 (__syscall_rt_sigaction): Remove implementation.
3310 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
3311 hidden.
3312 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
3313 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
3314 INTERNAL_SYSCALL): Remove definitions.
3315 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
3316 action and signal set size.
3317 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
3318 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
3319
3320 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3321 James Clarke <jrtc27@jrtc27.com>
3322
3323 [BZ #23967]
3324 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
3325 Define if SA_RESTORER is defined.
3326 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
3327 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
3328 already defined.
3329 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
3330 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
3331 definitions.
3332 (HAS_SA_RESTORER): Define.
3333 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
3334 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
3335 (HAS_SA_RESTORER): Define.
3336 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
3337 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
3338 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
3339 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
3340 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
3341
3342 2018-12-18 Joseph Myers <joseph@codesourcery.com>
3343
3344 * sysdeps/unix/sysv/linux/kernel-features.h
3345 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
3346 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3347 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
3348 * sysdeps/unix/sysv/linux/sh/kernel-features.h
3349 (__ASSUME_ST_INO_64_BIT): Likewise.
3350 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
3351 <kernel-features.h>.
3352 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
3353 Remove conditional code.
3354 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
3355 <kernel-features.h>.
3356 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
3357 Remove conditional code.
3358 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
3359 <kernel-features.h>.
3360 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
3361 Remove conditional code.
3362 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
3363 <kernel-features.h>.
3364 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
3365 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
3366
3367 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3368
3369 * sysdeps/s390/multiarch/ifunc-resolve.h
3370 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
3371 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
3372 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
3373 Delete macro definition.
3374 (s390_libc_ifunc_init): Rename to
3375 s390_libc_ifunc_expr_stfle_init.
3376 * sysdeps/s390/bzero: Use
3377 s390_libc_ifunc_expr_stfle_init instead of
3378 s390_libc_ifunc_init.
3379 * sysdeps/s390/memcmp.c: Likewise.
3380 * sysdeps/s390/memcpy.c: Likewise.
3381 * sysdeps/s390/mempcpy.c: Likewise.
3382 * sysdeps/s390/memset.c: Likewise.
3383
3384 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3385
3386 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
3387 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
3388
3389 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3390
3391 * sysdeps/s390/multiarch/Makefile
3392 (sysdep_routines): Remove wmemcmp variants.
3393 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
3394 * sysdeps/s390/multiarch/ifunc-impl-list.c
3395 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
3396 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
3397 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
3398 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
3399 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
3400 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
3401 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
3402 * sysdeps/s390/ifunc-wmemcmp.h: New file.
3403
3404 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3405
3406 * sysdeps/s390/multiarch/Makefile
3407 (sysdep_routines): Remove wmemset variants.
3408 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
3409 * sysdeps/s390/multiarch/ifunc-impl-list.c
3410 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
3411 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
3412 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
3413 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
3414 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
3415 * sysdeps/s390/multiarch/wmemset.c: Move to ...
3416 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
3417 * sysdeps/s390/ifunc-wmemset.h: New file.
3418
3419 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3420
3421 * sysdeps/s390/multiarch/Makefile
3422 (sysdep_routines): Remove wmemchr variants.
3423 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
3424 * sysdeps/s390/multiarch/ifunc-impl-list.c
3425 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
3426 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
3427 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
3428 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
3429 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
3430 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
3431 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
3432 * sysdeps/s390/ifunc-wmemchr.h: New file.
3433
3434 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3435
3436 * sysdeps/s390/multiarch/Makefile
3437 (sysdep_routines): Remove wcscspn variants.
3438 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
3439 * sysdeps/s390/multiarch/ifunc-impl-list.c
3440 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
3441 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
3442 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
3443 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
3444 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
3445 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
3446 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
3447 * sysdeps/s390/ifunc-wcscspn.h: New file.
3448
3449 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3450
3451 * sysdeps/s390/multiarch/Makefile
3452 (sysdep_routines): Remove wcspbrk variants.
3453 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
3454 * sysdeps/s390/multiarch/ifunc-impl-list.c
3455 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
3456 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
3457 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
3458 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
3459 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
3460 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
3461 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
3462 * sysdeps/s390/ifunc-wcspbrk.h: New file.
3463
3464 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3465
3466 * sysdeps/s390/multiarch/Makefile
3467 (sysdep_routines): Remove wcsspn variants.
3468 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
3469 * sysdeps/s390/multiarch/ifunc-impl-list.c
3470 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
3471 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
3472 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
3473 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
3474 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
3475 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
3476 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
3477 * sysdeps/s390/ifunc-wcsspn.h: New file.
3478
3479 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3480
3481 * sysdeps/s390/multiarch/Makefile
3482 (sysdep_routines): Remove wcsrchr variants.
3483 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
3484 * sysdeps/s390/multiarch/ifunc-impl-list.c
3485 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
3486 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
3487 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
3488 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
3489 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
3490 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
3491 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
3492 * sysdeps/s390/ifunc-wcsrchr.h: New file.
3493
3494 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3495
3496 * sysdeps/s390/multiarch/Makefile
3497 (sysdep_routines): Remove wcschrnul variants.
3498 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
3499 * sysdeps/s390/multiarch/ifunc-impl-list.c
3500 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
3501 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
3502 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
3503 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
3504 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
3505 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
3506 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
3507 * sysdeps/s390/ifunc-wcschrnul.h: New file.
3508
3509 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3510
3511 * sysdeps/s390/multiarch/Makefile
3512 (sysdep_routines): Remove wcschr variants.
3513 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
3514 * sysdeps/s390/multiarch/ifunc-impl-list.c
3515 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
3516 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
3517 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
3518 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
3519 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
3520 * sysdeps/s390/multiarch/wcschr.c: Move to ...
3521 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
3522 * sysdeps/s390/ifunc-wcschr.h: New file.
3523
3524 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3525
3526 * sysdeps/s390/multiarch/Makefile
3527 (sysdep_routines): Remove wcsncmp variants.
3528 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
3529 * sysdeps/s390/multiarch/ifunc-impl-list.c
3530 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
3531 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
3532 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
3533 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
3534 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
3535 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
3536 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
3537 * sysdeps/s390/ifunc-wcsncmp.h: New file.
3538
3539 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3540
3541 * sysdeps/s390/multiarch/Makefile
3542 (sysdep_routines): Remove wcscmp variants.
3543 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
3544 * sysdeps/s390/multiarch/ifunc-impl-list.c
3545 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
3546 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
3547 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
3548 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
3549 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
3550 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
3551 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
3552 * sysdeps/s390/ifunc-wcscmp.h: New file.
3553
3554 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3555
3556 * sysdeps/s390/multiarch/Makefile
3557 (sysdep_routines): Remove wcsncat variants.
3558 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
3559 * sysdeps/s390/multiarch/ifunc-impl-list.c
3560 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
3561 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
3562 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
3563 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
3564 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
3565 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
3566 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
3567 * sysdeps/s390/ifunc-wcsncat.h: New file.
3568
3569 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3570
3571 * sysdeps/s390/multiarch/Makefile
3572 (sysdep_routines): Remove wcscat variants.
3573 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
3574 * sysdeps/s390/multiarch/ifunc-impl-list.c
3575 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
3576 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
3577 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
3578 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
3579 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
3580 * sysdeps/s390/multiarch/wcscat.c: Move to ...
3581 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
3582 * sysdeps/s390/ifunc-wcscat.h: New file.
3583
3584 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3585
3586 * sysdeps/s390/multiarch/Makefile
3587 (sysdep_routines): Remove wcpncpy variants.
3588 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
3589 * sysdeps/s390/multiarch/ifunc-impl-list.c
3590 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
3591 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
3592 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
3593 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
3594 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
3595 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
3596 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
3597 * sysdeps/s390/ifunc-wcpncpy.h: New file.
3598
3599 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3600
3601 * sysdeps/s390/multiarch/Makefile
3602 (sysdep_routines): Remove wcsncpy variants.
3603 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
3604 * sysdeps/s390/multiarch/ifunc-impl-list.c
3605 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
3606 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
3607 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
3608 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
3609 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
3610 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
3611 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
3612 * sysdeps/s390/ifunc-wcsncpy.h: New file.
3613
3614 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3615
3616 * sysdeps/s390/multiarch/Makefile
3617 (sysdep_routines): Remove wcpcpy variants.
3618 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
3619 * sysdeps/s390/multiarch/ifunc-impl-list.c
3620 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
3621 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
3622 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
3623 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
3624 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
3625 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
3626 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
3627 * sysdeps/s390/ifunc-wcpcpy.h: New file.
3628
3629 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3630
3631 * sysdeps/s390/multiarch/Makefile
3632 (sysdep_routines): Remove wcscpy variants.
3633 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
3634 * sysdeps/s390/multiarch/ifunc-impl-list.c
3635 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
3636 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
3637 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
3638 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
3639 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
3640 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
3641 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
3642 * sysdeps/s390/ifunc-wcscpy.h: New file.
3643
3644 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3645
3646 * sysdeps/s390/multiarch/Makefile
3647 (sysdep_routines): Remove wcsnlen variants.
3648 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
3649 * sysdeps/s390/multiarch/ifunc-impl-list.c
3650 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
3651 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
3652 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
3653 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
3654 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
3655 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
3656 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
3657 * sysdeps/s390/ifunc-wcsnlen.h: New file.
3658
3659 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3660
3661 * sysdeps/s390/multiarch/Makefile
3662 (sysdep_routines): Remove wcslen variants.
3663 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
3664 * sysdeps/s390/multiarch/ifunc-impl-list.c
3665 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
3666 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
3667 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
3668 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
3669 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
3670 * sysdeps/s390/multiarch/wcslen.c: Move to ...
3671 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
3672 * sysdeps/s390/ifunc-wcslen.h: New file.
3673
3674 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3675
3676 * sysdeps/s390/multiarch/Makefile
3677 (sysdep_routines): Remove memrchr variants.
3678 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
3679 * sysdeps/s390/multiarch/ifunc-impl-list.c
3680 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
3681 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
3682 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
3683 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
3684 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
3685 * sysdeps/s390/multiarch/memrchr.c: Move to ...
3686 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
3687 * sysdeps/s390/ifunc-memrchr.h: New file.
3688
3689 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3690
3691 * sysdeps/s390/multiarch/Makefile
3692 (sysdep_routines): Remove memccpy variants.
3693 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
3694 * sysdeps/s390/multiarch/ifunc-impl-list.c
3695 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
3696 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
3697 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
3698 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
3699 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
3700 * sysdeps/s390/multiarch/memccpy.c: Move to ...
3701 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
3702 * sysdeps/s390/ifunc-memccpy.h: New file.
3703
3704 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3705
3706 * sysdeps/s390/multiarch/Makefile
3707 (sysdep_routines): Remove rawmemchr variants.
3708 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
3709 * sysdeps/s390/multiarch/ifunc-impl-list.c
3710 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
3711 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
3712 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
3713 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
3714 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
3715 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
3716 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
3717 * sysdeps/s390/ifunc-rawmemchr.h: New file.
3718
3719 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3720
3721 * sysdeps/s390/multiarch/Makefile
3722 (sysdep_routines): Remove memchr variants.
3723 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
3724 * sysdeps/s390/multiarch/ifunc-impl-list.c
3725 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
3726 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
3727 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
3728 * sysdeps/s390/multiarch/memchr.c: Move to ...
3729 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
3730 * sysdeps/s390/ifunc-memchr.h: New file.
3731 * sysdeps/s390/s390-64/memchr.S: Move to ...
3732 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
3733 for 31/64bit and ifunc handling.
3734 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
3735 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
3736 * sysdeps/s390/s390-32/memchr.S: Likewise.
3737
3738 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3739
3740 * sysdeps/s390/multiarch/Makefile
3741 (sysdep_routines): Remove strcspn variants.
3742 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
3743 * sysdeps/s390/multiarch/ifunc-impl-list.c
3744 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
3745 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
3746 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
3747 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
3748 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
3749 * sysdeps/s390/multiarch/strcspn.c: Move to ...
3750 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
3751 * sysdeps/s390/ifunc-strcspn.h: New file.
3752
3753 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3754
3755 * sysdeps/s390/multiarch/Makefile
3756 (sysdep_routines): Remove strpbrk variants.
3757 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
3758 * sysdeps/s390/multiarch/ifunc-impl-list.c
3759 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
3760 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
3761 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
3762 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
3763 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
3764 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
3765 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
3766 * sysdeps/s390/ifunc-strpbrk.h: New file.
3767
3768 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3769
3770 * sysdeps/s390/multiarch/Makefile
3771 (sysdep_routines): Remove strspn variants.
3772 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
3773 * sysdeps/s390/multiarch/ifunc-impl-list.c
3774 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
3775 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
3776 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
3777 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
3778 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
3779 * sysdeps/s390/multiarch/strspn.c: Move to ...
3780 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
3781 * sysdeps/s390/ifunc-strspn.h: New file.
3782
3783 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3784
3785 * sysdeps/s390/multiarch/Makefile
3786 (sysdep_routines): Remove strrchr variants.
3787 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
3788 * sysdeps/s390/multiarch/ifunc-impl-list.c
3789 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
3790 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
3791 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
3792 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
3793 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
3794 * sysdeps/s390/multiarch/strrchr.c: Move to ...
3795 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
3796 * sysdeps/s390/ifunc-strrchr.h: New file.
3797
3798 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3799
3800 * sysdeps/s390/multiarch/Makefile
3801 (sysdep_routines): Remove strchrnul variants.
3802 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
3803 * sysdeps/s390/multiarch/ifunc-impl-list.c
3804 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
3805 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
3806 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
3807 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
3808 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
3809 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
3810 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
3811 * sysdeps/s390/ifunc-strchrnul.h: New file.
3812
3813 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3814
3815 * sysdeps/s390/multiarch/Makefile
3816 (sysdep_routines): Remove strchr variants.
3817 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
3818 * sysdeps/s390/multiarch/ifunc-impl-list.c
3819 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
3820 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
3821 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
3822 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
3823 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
3824 * sysdeps/s390/multiarch/strchr.c: Move to ...
3825 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
3826 * sysdeps/s390/ifunc-strchr.h: New file.
3827
3828 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3829
3830 * sysdeps/s390/multiarch/Makefile
3831 (sysdep_routines): Remove strncmp variants.
3832 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
3833 * sysdeps/s390/multiarch/ifunc-impl-list.c
3834 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
3835 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
3836 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
3837 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
3838 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
3839 * sysdeps/s390/multiarch/strncmp.c: Move to ...
3840 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
3841 * sysdeps/s390/ifunc-strncmp.h: New file.
3842
3843 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3844
3845 * sysdeps/s390/multiarch/Makefile
3846 (sysdep_routines): Remove strcmp variants.
3847 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
3848 * sysdeps/s390/multiarch/ifunc-impl-list.c
3849 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
3850 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
3851 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
3852 * sysdeps/s390/multiarch/strcmp.c: Move to ...
3853 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
3854 * sysdeps/s390/ifunc-strcmp.h: New file.
3855 * sysdeps/s390/s390-64/strcmp.S: Move to ...
3856 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
3857 for 31/64bit and ifunc handling.
3858 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
3859 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
3860 * sysdeps/s390/s390-32/strcmp.S: Likewise.
3861
3862 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3863
3864 * sysdeps/s390/multiarch/Makefile
3865 (sysdep_routines): Remove strncat variants.
3866 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
3867 * sysdeps/s390/multiarch/ifunc-impl-list.c
3868 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
3869 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
3870 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
3871 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
3872 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
3873 * sysdeps/s390/multiarch/strncat.c: Move to ...
3874 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
3875 * sysdeps/s390/ifunc-strncat.h: New file.
3876
3877 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3878
3879 * sysdeps/s390/multiarch/Makefile
3880 (sysdep_routines): Remove strcat variants.
3881 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
3882 * sysdeps/s390/multiarch/ifunc-impl-list.c
3883 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
3884 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
3885 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
3886 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
3887 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
3888 * sysdeps/s390/multiarch/strcat.c: Move to ...
3889 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
3890 * sysdeps/s390/ifunc-strcat.h: New file.
3891
3892 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3893
3894 * sysdeps/s390/multiarch/Makefile
3895 (sysdep_routines): Remove stpncpy variants.
3896 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
3897 * sysdeps/s390/multiarch/ifunc-impl-list.c
3898 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
3899 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
3900 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
3901 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
3902 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
3903 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
3904 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
3905 * sysdeps/s390/ifunc-stpncpy.h: New file.
3906
3907 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3908
3909 * sysdeps/s390/multiarch/Makefile
3910 (sysdep_routines): Remove strncpy variants.
3911 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
3912 * sysdeps/s390/multiarch/ifunc-impl-list.c
3913 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
3914 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
3915 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
3916 * sysdeps/s390/multiarch/strncpy.c: Move to ...
3917 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
3918 * sysdeps/s390/ifunc-strncpy.h: New file.
3919 * sysdeps/s390/s390-64/strncpy.S: Move to ...
3920 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
3921 and adjust ifunc handling.
3922 * sysdeps/s390/s390-32/strncpy.S: Move to ...
3923 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
3924 and adjust ifunc handling.
3925 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
3926 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
3927
3928 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3929
3930 * sysdeps/s390/multiarch/Makefile
3931 (sysdep_routines): Remove stpcpy variants.
3932 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
3933 * sysdeps/s390/multiarch/ifunc-impl-list.c
3934 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
3935 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
3936 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
3937 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
3938 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
3939 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
3940 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
3941 * sysdeps/s390/ifunc-stpcpy.h: New file.
3942
3943 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3944
3945 * sysdeps/s390/multiarch/Makefile
3946 (sysdep_routines): Remove strcpy variants.
3947 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
3948 * sysdeps/s390/multiarch/ifunc-impl-list.c
3949 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
3950 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
3951 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
3952 * sysdeps/s390/multiarch/strcpy.c: Move to ...
3953 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
3954 * sysdeps/s390/ifunc-strcpy.h: New file.
3955 * sysdeps/s390/s390-64/strcpy.S: Move to ...
3956 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
3957 for 31/64bit and ifunc handling.
3958 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
3959 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
3960 * sysdeps/s390/s390-32/strcpy.S: Likewise.
3961
3962 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3963
3964 * sysdeps/s390/multiarch/Makefile
3965 (sysdep_routines): Remove strnlen variants.
3966 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
3967 * sysdeps/s390/multiarch/ifunc-impl-list.c
3968 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
3969 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
3970 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
3971 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
3972 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
3973 * sysdeps/s390/multiarch/strnlen.c: Move to ...
3974 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
3975 * sysdeps/s390/ifunc-strnlen.h: New file.
3976
3977 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3978
3979 * sysdeps/s390/multiarch/Makefile
3980 (sysdep_routines): Remove strlen variants.
3981 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
3982 * sysdeps/s390/multiarch/ifunc-impl-list.c
3983 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
3984 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
3985 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
3986 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
3987 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
3988 * sysdeps/s390/multiarch/strlen.c: Move to ...
3989 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
3990 * sysdeps/s390/ifunc-strlen.h: New file.
3991
3992 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3993
3994 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
3995 * sysdeps/s390/multiarch/ifunc-impl-list.c
3996 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
3997 * sysdeps/s390/ifunc-memmem.h: New file.
3998 * sysdeps/s390/memmem.c: Likewise.
3999 * sysdeps/s390/memmem-c.c: Likewise.
4000 * sysdeps/s390/memmem-vx.c: Likewise.
4001
4002 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4003
4004 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
4005 * sysdeps/s390/multiarch/ifunc-impl-list.c
4006 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
4007 * sysdeps/s390/ifunc-strstr.h: New file.
4008 * sysdeps/s390/strstr.c: Likewise.
4009 * sysdeps/s390/strstr-c.c: Likewise.
4010 * sysdeps/s390/strstr-vx.c: Likewise.
4011
4012 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4013
4014 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
4015 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
4016 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
4017 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
4018 New defines.
4019 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
4020 * sysdeps/s390/memmove-c.c: New file.
4021 * sysdeps/s390/memmove.c: Likewise.
4022 * sysdeps/s390/multiarch/ifunc-impl-list.c
4023 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
4024
4025 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4026
4027 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
4028 * sysdeps/s390/configure.ac: Add check for z13 support.
4029 * sysdeps/s390/configure: Regenerated.
4030
4031 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4032
4033 * sysdeps/s390/memcopy.h: New file.
4034
4035 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4036
4037 * sysdeps/s390/s390-32/bcopy.S: Remove.
4038 * sysdeps/s390/s390-64/bcopy.S: Likewise.
4039
4040 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4041
4042 * sysdeps/s390/ifunc-memcpy.h: New File.
4043 * sysdeps/s390/memcpy.S: Move to ...
4044 * sysdeps/s390/memcpy-z900.S ... here.
4045 Move implementations from memcpy-s390x.s to here.
4046 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
4047 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
4048 Remove memcpy/mempcpy variants.
4049 * sysdeps/s390/Makefile (sysdep_routines):
4050 Add memcpy/mempcpy variants.
4051 * sysdeps/s390/multiarch/ifunc-impl-list.c
4052 (__libc_ifunc_impl_list): Adjust ifunc variants for
4053 memcpy and mempcpy.
4054 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
4055 to ...
4056 * sysdeps/s390/memcpy.c: ... here.
4057 Adjust ifunc variants for memcpy.
4058 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
4059 * sysdeps/s390/mempcpy.c: ... here.
4060 Adjust ifunc variants for mempcpy.
4061 * sysdeps/s390/mempcpy.S: Delete file.
4062
4063 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4064
4065 * sysdeps/s390/s390-64/memcpy.S: Move to ...
4066 * sysdeps/s390/memcpy.S: ... here.
4067 Adjust to be usable for 31/64bit.
4068 * sysdeps/s390/s390-32/memcpy.S: Delete File.
4069 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
4070 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
4071 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
4072 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
4073 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
4074 Adjust to be usable for 31/64bit.
4075 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
4076 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
4077 * sysdeps/s390/multiarch/memcpy.c: ... here.
4078 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
4079
4080 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4081
4082 * sysdeps/s390/ifunc-memcmp.h: New File.
4083 * sysdeps/s390/memcmp.S: Move to ...
4084 * sysdeps/s390/memcmp-z900.S ... here.
4085 Move implementations from memcmp-s390x.s to here.
4086 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
4087 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
4088 Remove memcmp variants.
4089 * sysdeps/s390/Makefile (sysdep_routines):
4090 Add memcmp variants.
4091 * sysdeps/s390/multiarch/ifunc-impl-list.c
4092 (__libc_ifunc_impl_list): Adjust ifunc variants for
4093 memcmp.
4094 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
4095 to ...
4096 * sysdeps/s390/memcmp.c: ... here.
4097 Adjust ifunc variants for memcmp.
4098
4099 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4100
4101 * sysdeps/s390/s390-64/memcmp.S: Move to ...
4102 * sysdeps/s390/memcmp.S: ... here.
4103 Adjust to be usable for 31/64bit.
4104 * sysdeps/s390/s390-32/memcmp.S: Delete File.
4105 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
4106 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
4107 Remove memcmp.
4108 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
4109 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
4110 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
4111 Adjust to be usable for 31/64bit.
4112 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
4113 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
4114 * sysdeps/s390/multiarch/memcmp.c: ... here.
4115 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
4116
4117 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4118
4119 * sysdeps/s390/s390-32/bzero.S: Delete file.
4120 * sysdeps/s390/s390-64/bzero.S: Likewise.
4121 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
4122 * sysdeps/s390/bzero.c: New file.
4123 * sysdeps/s390/memset-z900.S: Add bzero entry points.
4124 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
4125 * sysdeps/s390/multiarch/ifunc-impl-list.c
4126 (__libc_ifunc_impl_list): Add bzero ifunc variants.
4127
4128 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4129
4130 * sysdeps/s390/ifunc-memset.h: New File.
4131 * sysdeps/s390/memset.S: Move to ...
4132 * sysdeps/s390/memset-z900.S ... here.
4133 Move implementations from memset-s390x.s to here.
4134 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
4135 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
4136 Remove memset variants.
4137 * sysdeps/s390/Makefile (sysdep_routines):
4138 Add memset variants.
4139 * sysdeps/s390/multiarch/ifunc-impl-list.c
4140 (__libc_ifunc_impl_list): Adjust ifunc variants for
4141 memset.
4142 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
4143 to ...
4144 * sysdeps/s390/memset.c: ... here.
4145 Adjust ifunc variants for memset.
4146
4147 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4148
4149 * sysdeps/s390/s390-64/memset.S: Move to ...
4150 * sysdeps/s390/memset.S: ... here.
4151 Adjust to be usable for 31/64bit.
4152 * sysdeps/s390/s390-32/memset.S: Delete File.
4153 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
4154 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
4155 Remove memset.
4156 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
4157 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
4158 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
4159 Adjust to be usable for 31/64bit.
4160 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
4161 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
4162 * sysdeps/s390/multiarch/memset.c: ... here.
4163 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
4164
4165 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4166
4167 * sysdeps/s390/multiarch/ifunc-resolve.h
4168 (s390_libc_ifunc_init, s390_libc_ifunc,
4169 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
4170
4171 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4172
4173 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
4174 * sysdeps/s390/configure.ac: Add check for z10 support.
4175 * sysdeps/s390/configure: Regenerated.
4176
4177 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
4178
4179 * sysdeps/i386/atomic-machine.h: Merged with ...
4180 * sysdeps/x86_64/atomic-machine.h: To ...
4181 * sysdeps/x86/atomic-machine.h: This. New file.
4182
4183 2018-12-18 Florian Weimer <fweimer@redhat.com>
4184
4185 Rewrite locale/gen-translit.pl in Python.
4186 * locale/Makefile (generated): Add C-translit.h.
4187 (before-compile): Add $(objpfx)C-translit.h.
4188 (C-translit.h): Move to $(objpfx). Create target directory.
4189 Build using Python script.
4190 * locale/gen-translit.py: New file.
4191 * locale/gen-translit.pl: Remove file.
4192 * locale/C-translit.h.in: Change comment character to '#' for
4193 easier parsing without a C preprocessor.
4194 * locale/C-translit.h: Remove generated file.
4195 * manual/install.texi (Tools for Compilation): Do not mention
4196 C-translit.h.
4197 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
4198 Remove locale/C-translit.h.
4199 * scripts/update-copyrights: Likewise.
4200 * INSTALL: Regenerate.
4201
4202 2018-12-18 Florian Weimer <fweimer@redhat.com>
4203
4204 [BZ #23995]
4205 * localedata/locales/bi_VU: Remove executable bit from file.
4206
4207 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
4208
4209 * include/time.h
4210 (__localtime64): Add.
4211 * manual/maint.texi: Document Y2038 symbol handling.
4212 * time/localtime.c
4213 (__localtime64): Add.
4214 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
4215
4216 2018-12-17 Joseph Myers <joseph@codesourcery.com>
4217
4218 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
4219 Do not clobber r12.
4220
4221 * scripts/glibcextract.py (compare_macro_consts): Take parameters
4222 to allow extra macros from first or second sources.
4223 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
4224 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
4225 (tests-special): Add $(objpfx)tst-mman-consts.out.
4226 ($(objpfx)tst-mman-consts.out): New makefile target.
4227
4228 2018-12-17 Mao Han <han_mao@c-sky.com>
4229
4230 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
4231 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
4232 without stat64 system call support.
4233 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
4234 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
4235 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
4236 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
4237 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
4238 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
4239 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
4240 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
4241 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
4242 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
4243 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
4244
4245 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
4246
4247 regex: fix storage-exhaustion error
4248 [BZ #18040]
4249 * posix/regexec.c (get_subexp):
4250 Do not continue if storage is exhausted.
4251
4252 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
4253
4254 regex: fix heap-use-after-free error
4255 [BZ #18040]
4256 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
4257 https://debbugs.gnu.org/32592
4258 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
4259 call extend_buffers which reallocates the re_string_t internal buffer.
4260 Local variable 'buf' was not updated in such case, resulting in
4261 use-after-free.
4262 * posix/regexec.c (get_subexp): Update 'buf' after call to
4263 get_subexp_sub.
4264
4265 2018-12-15 Florian Weimer <fweimer@redhat.com>
4266
4267 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
4268 (minimum_stride_size): Use it.
4269 (support_blob_repeat_allocate): Likewise.
4270
4271 2018-12-14 Joseph Myers <joseph@codesourcery.com>
4272
4273 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
4274 definition.
4275 (acosh): Likewise.
4276 (atanh): Likewise.
4277
4278 2018-12-14 Florian Weimer <fweimer@redhat.com>
4279
4280 * manual/process.texi (Process Creation Concepts): Remove
4281 documentation of process (ID) lifetime. List more process
4282 creation functions. Reference Process Identification section.
4283 (Process Identification): Add information about process ID
4284 lifetime. Describe Linux thread/task IDs.
4285 * manual/signal.texi (Signaling Another Process): Mention that the
4286 signal is always sent to the process.
4287
4288 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4289
4290 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
4291 and tst-ldbl-efgcvt.
4292 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
4293 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
4294 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
4295 (fcvt_tests, output_error, output_r_error, do_test): Use the
4296 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
4297 select the type of floating-point variables and arguments; to
4298 produce extra tests for double and conversion specifiers for
4299 printf; and to set the names of called functions.
4300 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
4301 in tst-efgcvt-template.c.
4302 * misc/tst-ldbl-efgcvt.c: Likewise.
4303
4304 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
4305
4306 * nss/Makefile (tst-nss-test3.out): New rule.
4307
4308 2018-12-13 Joseph Myers <joseph@codesourcery.com>
4309
4310 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
4311 clobber sp.
4312
4313 2018-12-13 fanjinke <fanjinke@hygon.cn>
4314
4315 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
4316 "HygonGenuine".
4317
4318 2018-12-13 Andreas Schwab <schwab@suse.de>
4319
4320 [BZ #23861]
4321 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
4322 (__pthread_rwlock_rdlock_full): Update expected value for
4323 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
4324 * nptl/tst-rwlock-pwn.c: New file.
4325 * nptl/Makefile (tests): Add tst-rwlock-pwn.
4326
4327 2018-12-12 Joseph Myers <joseph@codesourcery.com>
4328
4329 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
4330 definition.
4331
4332 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
4333
4334 * benchtests/scripts/compare_bench.py (do_compare): write to
4335 stderr in casestat is not present.
4336 * benchtests/scripts/compare_bench.py (plot_graphs): write to
4337 stderr in case timings field is not present. Also string showing
4338 the output filename goes into the stderr.
4339
4340 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
4341
4342 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
4343 and ZeroDivisorError exceptions.
4344 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
4345 argument to loop through user provided statistics.
4346 * benchtests/scripts/compare_bench.py (main): Include the --stats
4347 argument.
4348
4349 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
4350
4351 * benchtests/scripts/compare_bench.py (compare_runs): Continue
4352 instead of return.
4353
4354 2018-12-12 Florian Weimer <fweimer@redhat.com>
4355
4356 * sysdeps/posix/timespec_get.c: Add missing “any later version”
4357 clause to copyright header.
4358
4359 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4360
4361 [BZ #23614]
4362 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
4363 registers saved in the stack frame.
4364 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
4365 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
4366
4367 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4368
4369 * include/bits/monetary-ldbl.h: New file.
4370 * include/bits/printf-ldbl.h: Likewise.
4371 * include/bits/stdio-ldbl.h: Likewise.
4372 * include/bits/stdlib-ldbl.h: Likewise.
4373 * include/bits/syslog-ldbl.h: Likewise.
4374 * include/bits/wchar-ldbl.h: Likewise.
4375
4376 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4377
4378 * libio/libio.h: Remove redirection for _IO_vfprintf.
4379
4380 2018-12-11 Andreas Schwab <schwab@suse.de>
4381
4382 * Makerules: Remove all references to abilist-pattern.
4383 (update-all-abi): Simplify find expression.
4384
4385 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
4386
4387 [BZ #23961]
4388 * math/auto-libm-test-in: Add new test case.
4389 * math/auto-libm-test-out-pow: Regenerated.
4390 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
4391
4392 2018-12-10 DJ Delorie <dj@redhat.com>
4393
4394 [BZ #23948]
4395 * support/test-container.c: Move postclean step to before we
4396 change namespaces.
4397
4398 2018-12-10 Joseph Myers <joseph@codesourcery.com>
4399
4400 * scripts/gen-as-const.py (main): Handle --python option.
4401 * scripts/gen-py-const.awk: Remove.
4402 * Makerules (py-const-script): Use gen-as-const.py.
4403 ($(py-const)): Likewise.
4404 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
4405 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
4406 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
4407 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
4408 ~PTHREAD_MUTEX_NO_ELISION_NP.
4409 * manual/README.pretty-printers: Update reference to
4410 gen-py-const.awk.
4411
4412 * scripts/glibcextract.py: New file.
4413 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
4414 or tempfile. Import glibcexctract.
4415 (compute_c_consts): Remove. Moved to glibcextract.py.
4416 (gen_test): Update reference to compute_c_consts.
4417 (main): Likewise.
4418 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
4419 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
4420 * sysdeps/unix/sysv/linux/Makefile
4421 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
4422 Redirect stderr as well as stdout.
4423
4424 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
4425
4426 [BZ #19767]
4427 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
4428 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
4429 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
4430 ALWAYS_USE_VSYSCALL.
4431 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
4432 ALWAYS_USE_VSYSCALL.
4433 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
4434 ALWAYS_USE_VSYSCALL.
4435
4436 2018-12-10 Florian Weimer <fweimer@redhat.com>
4437
4438 [BZ #23972]
4439 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
4440 offset instead of count for clarity. Fix typo in comment.
4441 (__old_getdents64): Keep track of previous offset. Use it to call
4442 handle_overflow.
4443 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
4444 that d_off is never zero.
4445
4446 2018-12-10 Andreas Schwab <schwab@suse.de>
4447
4448 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
4449 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
4450 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
4451 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
4452 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
4453
4454 2018-12-10 Joseph Myers <joseph@codesourcery.com>
4455
4456 * timezone/private.h: Update from tzcode 2018g.
4457 * timezone/tzfile.h: Likewise.
4458 * timezone/tzselect.ksh: Likewise.
4459 * timezone/zdump.c: Likewise.
4460 * timezone/zic.c: Likewise.
4461
4462 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
4463
4464 [BZ #23490]
4465 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
4466 (do_test): Adjust buffer size and fix format.
4467
4468 2018-12-07 DJ Delorie <dj@redhat.com>
4469
4470 [BZ #23907]
4471 * malloc/tst-tcfree3.c: New.
4472 * malloc/Makefile: Add it.
4473
4474 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
4475
4476 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
4477
4478 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4479
4480 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
4481 used as a mask for the mode argument of __vfscanf_internal and
4482 __vfwscanf_internal.
4483 * stdio-common/vfscanf-internal.c
4484 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
4485 (__strtof128_internal): Define to __wcstof128_internal.
4486 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
4487 __strtof128_internal or __wcstof128_internal when the format of
4488 long double is the same as _Float128.
4489
4490 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
4491
4492 * include/unistd.h (__confstr): Add prototype and hidden prototype.
4493 * posix/confstr.c (confstr): Rename to __confstr.
4494 (__confstr): Add hidden def.
4495 (confstr): Add weak alias for __confstr.
4496 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
4497 confstr.
4498
4499 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
4500
4501 * NEWS: Mention getcpu.
4502 * include/sched.h (__getcpu): New libc_hidden_proto.
4503 * manual/resource.texi: Document getcpu.
4504 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
4505 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
4506 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
4507 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
4508 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
4509 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
4510 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
4511 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
4512 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
4513 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
4514 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
4515 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
4516 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
4517 Likewise.
4518 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
4519 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
4520 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
4521 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
4522 Likewise.
4523 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
4524 Likewise.
4525 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
4526 Likewise.
4527 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
4528 Likewise.
4529 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
4530 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
4531 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
4532 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
4533 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
4534 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
4535 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
4536 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
4537 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
4538 * sysdeps/unix/sysv/linux/getcpu.c: New file.
4539 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
4540 Also check getcpu.
4541
4542 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
4543
4544 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
4545 functions.
4546 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
4547
4548 2018-12-07 Florian Weimer <fweimer@redhat.com>
4549
4550 [BZ #17405]
4551 * posix/Makefile (routines): Add spawn_faction_addfchdir.
4552 * posix/Versions (GLIBC_2.29): Export
4553 posix_spawn_file_actions_addfchdir_np.
4554 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
4555 * posix/spawn_faction_destroy.c
4556 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
4557 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
4558 and the field action.fchdir_action.
4559 * posix/tst-spawn-chdir.c (add_chdir): New function.
4560 (do_test): Add do_fchdir loop. Call add_chdir.
4561 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
4562 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
4563 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
4564 posix_spawn_file_actions_addfchdir_np.
4565 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
4566 Likewise.
4567 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
4568 Likewise.
4569 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
4570 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
4571 Likewise.
4572 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
4573 Likewise.
4574 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
4575 Likewise.
4576 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
4577 Likewise.
4578 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
4579 Likewise.
4580 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
4581 Likewise.
4582 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4583 (GLIBC_2.29): Likewise.
4584 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4585 (GLIBC_2.29): Likewise.
4586 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4587 (GLIBC_2.29): Likewise.
4588 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4589 (GLIBC_2.29): Likewise.
4590 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
4591 Likewise.
4592 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4593 (GLIBC_2.29): Likewise.
4594 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4595 (GLIBC_2.29): Likewise.
4596 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
4597 (GLIBC_2.29): Likewise.
4598 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
4599 (GLIBC_2.29): Likewise.
4600 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
4601 Likewise.
4602 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
4603 Likewise.
4604 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
4605 Likewise.
4606 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
4607 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
4608 Likewise.
4609 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
4610 Likewise.
4611 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
4612 Likewise.
4613 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
4614 Likewise.
4615
4616 2018-12-06 Joseph Myers <joseph@codesourcery.com>
4617
4618 * manual/texinfo.tex: Update to version 2018-09-21.20 with
4619 trailing whitespace removed.
4620 * scripts/config.guess: Update to version 2018-11-28.
4621 * scripts/config.sub: Update to version 2018-11-28.
4622 * scripts/install-sh: Update to version 2018-03-11.20.
4623 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
4624 * scripts/move-if-change: Update to version 2018-03-07 03:47.
4625
4626 2018-12-07 Florian Weimer <fweimer@redhat.com>
4627
4628 [BZ #23927]
4629 CVE-2018-19591
4630 * inet/tst-if_index-long.c: New file.
4631 * inet/Makefile (tests): Add tst-if_index-long.
4632
4633 2018-12-07 Florian Weimer <fweimer@redhat.com>
4634
4635 * support/check.h (support_record_failure_is_failed): Declare.
4636 * support/descriptors.h: New file.
4637 * support/support_descriptors.c: Likewise.
4638 * support/tst-support_descriptors.c: Likewise.
4639 * support/support_record_failure.c
4640 (support_record_failure_is_failed): New function.
4641 * support/Makefile (libsupport-routines): Add support_descriptors.
4642 (tests): Add tst-support_descriptors.
4643
4644 2018-12-05 Zack Weinberg <zackw@panix.com>
4645 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4646
4647 * stdio-common/vfprintf-internal.c
4648 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
4649 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
4650 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
4651 and __no_long_double.
4652 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
4653 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
4654 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
4655 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
4656 and __nldbl_*syslog* functions.
4657 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
4658 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
4659 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
4660 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
4661 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
4662 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
4663 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
4664 (__nldbl_vwprintf, __nldbl_wprintf):
4665 Directly call the appropriate __v*printf_internal routine, passing
4666 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
4667 variable names.
4668 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
4669 (__nldbl___printf_chk, __nldbl___snprintf_chk)
4670 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
4671 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
4672 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
4673 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
4674 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
4675 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
4676 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
4677 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
4678 Likewise, and also pass PRINTF_FORTIFY when appropriate.
4679 (__nldbl_syslog, __nldbl_vsyslog):
4680 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
4681 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
4682 appropriate.
4683 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
4684 appropriate.
4685
4686 2018-12-05 Zack Weinberg <zackw@panix.com>
4687 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4688
4689 [BZ #11319]
4690 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
4691 Moved here from debug/vsprintf_chk.c.
4692 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
4693 and completion logic for the strfile to match exactly what
4694 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
4695 _IO_str_init_static_internal instead of maxlen-1.
4696 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
4697 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
4698 __vsprintf_internal.
4699
4700 * debug/vsprintf_chk.c (__vsprintf_chk)
4701 * debug/sprintf_chk.c (__sprintf_chk):
4702 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
4703 'flags' argument is positive, and slen as maxlen. No need to lock
4704 the FILE and/or construct a temporary FILE. Minimize and normalize
4705 header inclusions and variable names. Do not libc_hidden_def anything.
4706
4707 * debug/asprintf_chk.c (__asprintf_chk)
4708 * debug/dprintf_chk.c (__dprintf_chk)
4709 * debug/fprintf_chk.c (__fprintf_chk)
4710 * debug/fwprintf_chk.c (__fwprintf_chk)
4711 * debug/printf_chk.c (__printf_chk)
4712 * debug/snprintf_chk.c (__snprintf_chk)
4713 * debug/swprintf_chk.c (__swprintf_chk)
4714 * debug/vasprintf_chk.c (__vasprintf_chk)
4715 * debug/vdprintf_chk.c (__vdprintf_chk)
4716 * debug/vfprintf_chk.c (__vfprintf_chk)
4717 * debug/vfwprintf_chk.c (__vfwprintf_chk)
4718 * debug/vprintf_chk.c (__vprintf_chk)
4719 * debug/vsnprintf_chk.c (__vsnprintf_chk)
4720 * debug/vswprintf_chk.c (__vswprintf_chk)
4721 * debug/vwprintf_chk.c (__vwprintf_chk)
4722 * debug/wprintf_chk.c (__wprintf_chk):
4723 Directly call the corresponding vxxprintf_internal function, passing
4724 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
4725 the FILE and/or construct a temporary FILE. Minimize and normalize
4726 header inclusions and variable names. Do not libc_hidden_def anything.
4727
4728 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
4729 __obstack_vprintf_internal.
4730 (__obstack_vprintf_chk): Convert into a wrapper that calls
4731 __obstack_vprintf_internal (these two functions already had the
4732 same code) and move to new file...
4733 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
4734 file.
4735 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
4736 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
4737 * debug/Makefile (routines): Add vobprintf_chk.
4738
4739 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4740 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
4741 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
4742 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
4743 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
4744 (__nldbl___obstack_vfprintf_chk):
4745 Directly call the corresponding vxxprintf_internal function,
4746 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
4747 duplicate comparison of slen with 0 or maxlen from the corresponding
4748 non-__nldbl function.
4749
4750 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
4751 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
4752 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
4753 Remove libc_hidden_proto.
4754
4755 * stdio-common/vfprintf-internal.c
4756 (__vfprintf_internal, __vfwprintf_internal):
4757 Do not check _IO_FLAGS2_FORTIFY.
4758 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
4759 * libio/libioP.h: Update prototype of __vsprintf_internal and add
4760 a comment explaining why it has the maxlen argument.
4761 (_IO_acquire_lock_clear_flags2_fct): Remove.
4762 (_IO_acquire_lock_clear_flags2): Remove.
4763 (_IO_release_lock): Remove conditional statement which will
4764 now never execute.
4765 (_IO_acquire_lock): Remove variable which is now unused.
4766 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
4767 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
4768
4769 * stdio-common/Makefile (tests): Add tst-bz11319 and
4770 tst-bz11319-fortify2.
4771 (CFLAGS-tst-bz11319-fortify2.c): New macro.
4772 * stdio-common/tst-bz11319-fortify2.c: New file.
4773 * stdio-common/tst-bz11319.c: Likewise.
4774
4775 2018-12-05 Zack Weinberg <zackw@panix.com>
4776 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4777
4778 * misc/syslog.c: Include libioP.h, not iolibio.h.
4779 (__vsyslog_internal): New function with the former body of
4780 __vsyslog_chk; takes mode_flags argument same as
4781 __v*printf_internal. Call __vfprintf_internal directly.
4782
4783 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
4784 Remove libc_hidden_def.
4785 (__syslog, __syslog_chk): Use __vsyslog_internal.
4786 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
4787
4788 * include/sys/syslog.h: Add multiple inclusion guard.
4789 Add prototype for __vsyslog_internal.
4790 Remove declaration and libc_hidden_proto for __vsyslog_chk.
4791
4792 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
4793 Use __vsyslog_internal.
4794
4795 2018-12-05 Zack Weinberg <zackw@panix.com>
4796 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4797
4798 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
4799 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
4800 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
4801 New functions.
4802 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
4803 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
4804
4805 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
4806 Include wctype.h here if COMPILE_WPRINTF is defined.
4807 Define __vfprintf_internal or __vfwprintf_internal, depending
4808 on COMPILE_WPRINTF.
4809 Temporarily, on entry to this function, update mode_flags
4810 according to the environmental settings corresponding to
4811 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
4812 Throughout, check mode_flags instead of __ldbl_is_dbl and
4813 _IO_FLAGS2_FORTIFY on the destination FILE.
4814 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
4815 Include vfprintf-internal.c. Don't include wctype.h.
4816 * stdio-common/vfprintf.c: New file. Just define __vfprintf
4817 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
4818 and vfprintf.
4819 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
4820 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
4821 and vfwprintf.
4822 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
4823
4824 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
4825 and add mode_flags argument; use __vfprintf_internal.
4826 (__vdprintf): New function. Alias vdprintf to this.
4827 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
4828 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
4829 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
4830 (__obstack_printf): Use __obstack_printf_internal.
4831 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
4832 public aliases __vsnprintf and vsnprintf.
4833 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
4834 called internally.
4835 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
4836 public aliases _IO_vsprintf and vsprintf.
4837 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
4838 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
4839 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
4840 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
4841 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
4842
4843 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
4844 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
4845 * stdio-common/fprintf.c, stdio-common/fxprintf.c
4846 * stdio-common/printf.c: Use __vfprintf_internal.
4847
4848 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
4849 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
4850 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
4851
4852 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
4853 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
4854 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
4855 __vfwprintf_internal.
4856
4857 * libio/libio.h: Remove libc_hidden_proto and declaration for
4858 _IO_vfprintf.
4859 Remove declaration of _IO_vfwprintf.
4860 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
4861 _IO_vsprintf.
4862 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
4863 _IO_obstack_printf.
4864 * include/stdio.h: Add prototype for __vasprintf.
4865 (__vsnprintf): Remove declaration, because there are no more
4866 internal calls.
4867 * include/wchar.h (__vfwprintf, __vswprintf): Remove
4868 declaration, because there are no more internal calls.
4869
4870 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
4871 __vsnprintf_internal, instead of _IO_vsnprintf.
4872 * argp/argp-help.c (__argp_error, __argp_failure): Use
4873 __vasprintf_internal, instead of _IO_vasprintf.
4874 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
4875 redefine, because there are no more internal calls.
4876
4877 2018-12-05 Zack Weinberg <zackw@panix.com>
4878 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4879
4880 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
4881 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
4882 Include libio/strfile.h instead of libioP.h.
4883 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
4884 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
4885 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
4886 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
4887 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
4888 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
4889 necessary. Do not set __no_long_double. Normalize variable names.
4890 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
4891 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
4892 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
4893 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
4894 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
4895 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
4896 Call __vfscanf_internal / __vfwscanf_internal directly, passing
4897 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
4898 Do not set __no_long_double. Normalize variable names.
4899
4900 2018-12-05 Zack Weinberg <zackw@panix.com>
4901 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4902
4903 * stdio-common/isoc99_scanf.c
4904 * stdio-common/isoc99_fscanf.c
4905 * stdio-common/isoc99_sscanf.c
4906 * stdio-common/isoc99_vscanf.c
4907 * stdio-common/isoc99_vfscanf.c
4908 * stdio-common/isoc99_vsscanf.c
4909 * wcsmbs/isoc99_wscanf.c
4910 * wcsmbs/isoc99_fwscanf.c
4911 * wcsmbs/isoc99_swscanf.c
4912 * wcsmbs/isoc99_vwscanf.c
4913 * wcsmbs/isoc99_vfwscanf.c
4914 * wcsmbs/isoc99_vswscanf.c:
4915 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
4916 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
4917 No need to lock and unlock the FILE passed to that function.
4918
4919 * stdio-common/vfscanf-internal.c
4920 (__vfscanf_internal, __vfwscanf_internal):
4921 Don't look at _IO_FLAGS2_SCANF_STD.
4922 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
4923 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
4924 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
4925
4926 2018-12-05 Zack Weinberg <zackw@panix.com>
4927 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4928
4929 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
4930 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
4931 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
4932 * libio/strfile.h: Add multiple inclusion guard.
4933 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
4934
4935 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
4936 consistency with the other version of this file.
4937 (ldbl_compat_symbol): New macro.
4938 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
4939 New macro.
4940
4941 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
4942 Define __vfscanf_internal or __vfwscanf_internal, depending on
4943 COMPILE_WSCANF; don't define any other public symbols.
4944 Remove errval and code to set errp.
4945 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
4946 as the mode_flags argument.
4947 (encode_error, conv_error, input_error): Don't set errval.
4948 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
4949 Include vfscanf-internal.c.
4950 * stdio-common/vfscanf.c: New file defining the public entry
4951 point vfscanf, which calls __vfscanf_internal.
4952 * stdio-common/vfwscanf.c: New file defining the public entry
4953 point vfwscanf, which calls __vfwscanf_internal.
4954
4955 * stdio-common/iovfscanf.c: New file.
4956 * stdio-common/iovfwscanf.c: Likewise.
4957
4958 * stdio-common/Makefile (routines): Add vfscanf-internal,
4959 vfwscanf-internal, iovfscanf, iovfwscanf.
4960 * stdio-common/Versions: Mention GLIBC_2.29, so that
4961 it can be used in SHLIB_COMPAT expressions.
4962 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
4963 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
4964 Call __vfscanf_internal, instead of _IO_vfscanf.
4965 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
4966 _IO_vfscanf.
4967 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
4968 _IO_vfwscanf.
4969
4970 * libio/iovsscanf.c: Clean up includes, when possible. Use
4971 _IO_strfile_read or _IO_strfile_readw, when needed. Call
4972 __vfscanf_internal or __vfwscanf_internal directly.
4973 * libio/iovswscanf.c: Likewise.
4974 * libio/swscanf.c: Likewise.
4975 * libio/vscanf.c: Likewise.
4976 * libio/vwscanf.c: Likewise.
4977 * libio/wscanf.c: Likewise.
4978 * stdio-common/isoc99_fscanf.c: Likewise.
4979 * stdio-common/isoc99_scanf.c: Likewise.
4980 * stdio-common/isoc99_sscanf.c: Likewise.
4981 * stdio-common/isoc99_vfscanf.c: Likewise.
4982 * stdio-common/isoc99_vscanf.c: Likewise.
4983 * stdio-common/isoc99_vsscanf.c: Likewise.
4984 * stdio-common/scanf.c: Likewise.
4985 * stdio-common/sscanf.c: Likewise.
4986 * wcsmbs/isoc99_fwscanf.c: Likewise.
4987 * wcsmbs/isoc99_swscanf.c: Likewise.
4988 * wcsmbs/isoc99_vfwscanf.c: Likewise.
4989 * wcsmbs/isoc99_vswscanf.c: Likewise.
4990 * wcsmbs/isoc99_vwscanf.c: Likewise.
4991 * wcsmbs/isoc99_wscanf.c: Likewise.
4992
4993 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
4994
4995 * include/time.h
4996 (__tz_compute): Replace time_t with __time64_t.
4997 (__tz_convert): Replace time_t* with __time64_t.
4998 (__offtime): Replace time_t* with __time64_t.
4999 * time/gmtime.c
5000 (__gmtime_r): Adjust call to __tz_convert.
5001 (gmtime): Likewise.
5002 * time/localtime.c
5003 (__localtime_r): Likewise.
5004 (localtime): Likewise.
5005 * time/offtime.c: Replace time_t with __time64_t.
5006 * time/tzset.c: Likewise.
5007
5008 2018-12-04 Joseph Myers <joseph@codesourcery.com>
5009
5010 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
5011 dynamic linker unless [$(run-built-tests) = yes].
5012
5013 2018-12-03 DJ Delorie <dj@delorie.com>
5014
5015 * support/test-container.c (check_for_unshare_hints): New.
5016 (main): Call it if unshare fails. Add support for "su" scriptlet
5017 command.
5018
5019 2018-12-03 Joseph Myers <joseph@codesourcery.com>
5020
5021 * scripts/gen-as-const.py (compute_c_consts): Take an argument
5022 'START' to indicate that start text should be output.
5023 (gen_test): Likewise.
5024 (main): Generate 'START' for first symbol or '--' line, or at end
5025 of input if not previously generated.
5026
5027 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
5028
5029 [BZ #19767]
5030 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
5031 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
5032 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
5033 ALWAYS_USE_VSYSCALL.
5034
5035 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5036
5037 [BZ #23913]
5038 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
5039 new_argv by one.
5040
5041 2018-12-03 Carlos O'Donell <carlos@redhat.com>
5042
5043 [BZ #23923]
5044 * locale/programs/localedef.c: Declare boolean hard_links default true.
5045 (options): Add --no-hard-links option.
5046 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
5047 * locale/programs/localedef.h: Declare prototype for hard_links.
5048 * locale/programs/locfile.c (write_locale_data): Don't use hard
5049 links if hard_links is false.
5050
5051 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
5052
5053 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
5054 cpu_features_basic.
5055 (__cache_sysconf): Likewise.
5056 (init_cacheinfo): Likewise.
5057 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
5058 populate COMMON_CPUID_INDEX_80000007 and
5059 COMMON_CPUID_INDEX_80000008.
5060 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
5061 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
5062 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
5063 (init_cpu_features): Use _Static_assert on
5064 index_arch_Fast_Unaligned_Load.
5065 __get_cpuid_registers and __get_arch_feature. Updated for
5066 cpu_features_basic. Set stepping in cpu_features.
5067 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
5068 (FEATURE_INDEX_2): New.
5069 (FEATURE_INDEX_MAX): Changed to enum.
5070 (COMMON_CPUID_INDEX_D_ECX_1): New.
5071 (COMMON_CPUID_INDEX_80000007): Likewise.
5072 (COMMON_CPUID_INDEX_80000008): Likewise.
5073 (cpuid_registers): Likewise.
5074 (cpu_features_basic): Likewise.
5075 (CPU_FEATURE_USABLE): Likewise.
5076 (bit_arch_XXX_Usable): Likewise.
5077 (cpu_features): Use cpuid_registers and cpu_features_basic.
5078 (bit_arch_XXX): Reweritten.
5079 (bit_cpu_XXX): Likewise.
5080 (index_cpu_XXX): Likewise.
5081 (reg_XXX): Likewise.
5082 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
5083 <support/check.h>.
5084 (CHECK_CPU_FEATURE): New.
5085 (CHECK_CPU_FEATURE_USABLE): Likewise.
5086 (cpu_kinds): Likewise.
5087 (do_test): Print vendor, family, model and stepping. Check
5088 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
5089 (TEST_FUNCTION): Removed.
5090 Include <support/test-driver.c> instead of
5091 "../../test-skeleton.c".
5092 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
5093 Check POPCNT instead of POPCOUNT.
5094 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
5095
5096 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
5097
5098 * scripts/gen-as-const.py (main): Avoid emitting empty line when
5099 there is no element in `consts'.
5100
5101 2018-12-01 Florian Weimer <fweimer@redhat.com>
5102
5103 * support/support_capture_subprocess.c
5104 (support_capture_subprocess): Check that pipe descriptors have
5105 expected values. Close original pipe descriptors in subprocess.
5106
5107 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5108
5109 [BZ #23032]
5110 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
5111 attr with __pthread_default_barrierattr.
5112 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
5113 attr with __pthread_default_condattr.
5114 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
5115 attr with __pthread_default_mutexattr.
5116 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
5117 attr with __pthread_default_rwlockattr.
5118
5119 2018-12-01 Kemi Wang <kemi.wang@intel.com>
5120
5121 * manual/tunables.texi (POSIX Thread Tunables): New node.
5122 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
5123 * nptl/nptl-init.c: Include pthread_mutex_conf.h
5124 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
5125 __pthread_tunables_init.
5126 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
5127 (max_adaptive_count): Define.
5128 * nptl/pthread_mutex_conf.c: New file.
5129 * nptl/pthread_mutex_conf.h: New file.
5130 * sysdeps/generic/adaptive_spin_count.h: New file.
5131 * sysdeps/nptl/dl-tunables.list: New file.
5132 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
5133 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
5134 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
5135 Likewise.
5136
5137 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
5138
5139 [BZ #20544]
5140 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
5141 * stdlib/on_exit.c (__on_exit): Likewise.
5142 * stdlib/Makefile (tests): Add tst-bz20544.
5143 * stdlib/tst-bz20544.c: New test.
5144
5145 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
5146
5147 [BZ #19767]
5148 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
5149 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
5150 New.
5151
5152 2018-11-30 Florian Weimer <fweimer@redhat.com>
5153
5154 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
5155 Extend error logging.
5156 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
5157 symbol.
5158
5159 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5160
5161 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
5162 __sigismember instead of sigismember.
5163 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
5164 cancel_handler): New definitions.
5165 (do_system): Use posix_spawn instead of fork and execl and remove
5166 reentracy code.
5167 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
5168 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
5169 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
5170 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
5171 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
5172 * sysdeps/unix/sysv/linux/system.c: Likewise.
5173
5174 [BZ #22834]
5175 [BZ #17490]
5176 * NEWS: Add new semantic for atfork with popen and system.
5177 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
5178 fork and execl.
5179
5180 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
5181
5182 [BZ #23690]
5183 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
5184 modification order when accessing reloc_result->addr.
5185 * include/link.h (reloc_result): Add field init.
5186 * nptl/Makefile (tests): Add tst-audit-threads.
5187 (modules-names): Add tst-audit-threads-mod1 and
5188 tst-audit-threads-mod2.
5189 Add rules to build tst-audit-threads.
5190 * nptl/tst-audit-threads-mod1.c: New file.
5191 * nptl/tst-audit-threads-mod2.c: Likewise.
5192 * nptl/tst-audit-threads.c: Likewise.
5193 * nptl/tst-audit-threads.h: Likewise.
5194
5195 2018-11-30 Joseph Myers <joseph@codesourcery.com>
5196
5197 * scripts/gen-as-const.py: New file.
5198 * scripts/gen-as-const.awk: Remove.
5199 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
5200 gen-as-const.py.
5201 ($(objpfx)test-as-const-%.c): Likewise.
5202
5203 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
5204
5205 * elf/dl-exception.c: Include <_itoa.h>.
5206
5207 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5208
5209 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
5210 returned by __f_setlk.
5211
5212 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
5213 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5214
5215 * elf/Makefile (tests-internal): Add tst-create_format1.
5216 * elf/dl-exception.c (_dl_exception_create_format): Support
5217 %x, %lx and %zx.
5218 * elf/tst-create_format1.c: New file.
5219
5220 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
5221
5222 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
5223 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
5224 gnulib.)
5225 * argp/argp-help.c (__argp_failure): Likewise.
5226
5227 2018-11-29 Mao Han <han_mao@c-sky.com>
5228
5229 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
5230 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
5231 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
5232 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
5233 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
5234 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
5235 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
5236 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
5237 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
5238 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
5239 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
5240 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
5241 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
5242 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
5243 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
5244 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
5245 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
5246 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
5247 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
5248 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
5249 (R_CKCORE_TLS_TPOFF32): New defines.
5250
5251 2018-11-29 Florian Weimer <fweimer@redhat.com>
5252
5253 * posix/Makefile (before-compile): Remove testcases.h and
5254 ptestcases.h.
5255 (generated): Add testcases.h and ptestcases.h.
5256 (testcases.h, ptestcases.h): Move to $(objpfx).
5257 (runtests.o): Add dependency on testcases.h.
5258 (runptests.o): Add dependency on ptestcases.h.
5259 * posix/testcases.h, posix/ptestcases.h: Remove files.
5260 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
5261 not touch posix/testcases.h and posix/ptestcases.h.
5262
5263 2018-11-28 Florian Weimer <fweimer@redhat.com>
5264
5265 support: Add signal support to support_capture_subprocess_check.
5266 * support/capture_subprocess.h (support_capture_subprocess_check):
5267 Adjust comment and rename parameter.
5268 * support/support_capture_subprocess_check.c
5269 (print_actual_status): New function.
5270 (support_capture_subprocess_check): Support negative
5271 status_or_signal. Call print_actual_status.
5272 * support/tst-support_capture_subprocess.c (do_test): Call
5273 support_capture_subprocess_check.
5274 * libio/tst-vtables-common.c (termination_status)
5275 (init_termination_status): Remove.
5276 (check_for_termination): Adjust support_capture_subprocess_check
5277 call.
5278 (do_test): Remove call to init_termination_status.
5279
5280 2018-11-28 Joseph Myers <joseph@codesourcery.com>
5281
5282 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
5283 source directory instead of a copy.
5284 (CommandList.create_copy_dir): Remove.
5285
5286 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
5287
5288 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
5289
5290 2018-11-28 Florian Weimer <fweimer@redhat.com>
5291
5292 * support/support.h (support_quote_string): Do not use str
5293 parameter name.
5294
5295 2018-11-27 Joseph Myers <joseph@codesourcery.com>
5296
5297 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
5298 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
5299
5300 2018-11-27 Florian Weimer <fweimer@redhat.com>
5301
5302 * support/support.h (support_quote_string): Declare.
5303 * support/support_quote_string.c: New file.
5304 * support/tst-support_quote_string.c: Likewise.
5305 * support/Makefile (libsupport-routines): Add
5306 support_quote_string.
5307 (tests): Add tst-support_quote_string.
5308
5309 2018-11-27 Florian Weimer <fweimer@redhat.com>
5310
5311 [BZ #23927]
5312 CVE-2018-19591
5313 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
5314 descriptor leak in case of ENODEV error.
5315
5316 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
5317
5318 [BZ #19767]
5319 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
5320 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
5321 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
5322
5323 2018-11-26 Carlos O'Donell <carlos@redhat.com>
5324
5325 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
5326 Error for unknown lines.
5327
5328 2018-11-26 Joseph Myers <joseph@codesourcery.com>
5329
5330 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
5331 Touch additional files.
5332
5333 2018-11-26 Florian Weimer <fweimer@redhat.com>
5334
5335 [BZ #23907]
5336 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
5337 double-frees.
5338
5339 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
5340
5341 [BZ #19767]
5342 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
5343 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
5344 SHARED. Include sysdep.h.
5345 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
5346 ALWAYS_USE_VSYSCALL.
5347 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
5348 ALWAYS_USE_VSYSCALL.
5349
5350 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
5351
5352 [BZ #19767]
5353 * nptl/Makefile (tests-static): Add tst-cond11-static.
5354 (tests): Likewise.
5355 * nptl/tst-cond11-static.c: New File.
5356 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
5357 tst-affinity-static.
5358 (tests): Likewise.
5359 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
5360 instead of SHARED.
5361 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
5362 (USE_VSYSCALL): Likewise.
5363 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
5364 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
5365 instead of SHARED.
5366 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
5367 SHARED.
5368 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
5369 New.
5370
5371 2018-11-23 Joseph Myers <joseph@codesourcery.com>
5372
5373 [BZ #23915]
5374 * sysdeps/unix/sysv/linux/arm/kernel-features.h
5375 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
5376 Undefine.
5377
5378 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
5379
5380 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
5381 (tst-cet-legacy-1a-ARGS): New.
5382 ($(objpfx)tst-cet-legacy-1a): New target.
5383 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
5384
5385 2018-11-22 Joseph Myers <joseph@codesourcery.com>
5386
5387 * conform/conformtest.py (CompileSubTest.__init__): Set
5388 self.run_early to False.
5389 (ExecuteSubTest.__init__): Likewise.
5390 (HeaderTests.run): Try running all non-optional, non-XFAILed
5391 compilation tests in a single execution of the compiler.
5392
5393 * conform/conformtest.py (CompileSubTest): New class.
5394 (ExecuteSubTest): Likewise.
5395 (ElementTest.run): Rename to gen_subtests. Append tests to
5396 self.subtests instead of running them.
5397 (ConstantTest.run): Likewise.
5398 (SymbolTest.run): Likewise.
5399 (TypeTest.run): Likewise.
5400 (TagTest.run): Likewise.
5401 (FunctionTest.run): Likewise.
5402 (VariableTest.run): Likewise.
5403 (MacroFunctionTest.run): Likewise.
5404 (MacroStrTest.run): Likewise.
5405 (HeaderTests.handle_test_line): Generate subtests for tests.
5406 (HeaderTests.run): Run subtests for tests.
5407
5408 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5409
5410 * math/Versions (GLIBC_2.29): Add pow.
5411 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
5412 symbol.
5413 * math/w_pow.c: New file.
5414 * sysdeps/i386/fpu/w_pow.c: New file.
5415 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
5416 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
5417 and add necessary aliases.
5418 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
5419 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
5420 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5421 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5422 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5423 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5424 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5425 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5426 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5427 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5428 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5429 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5430 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5431 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5432 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5433 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5434 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5435 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5436 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5437 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5438 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5439 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5440 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5441 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5442 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5443 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5444 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
5445 __pow.
5446 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
5447 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
5448 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
5449
5450 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5451
5452 * math/Versions (GLIBC_2.29): Add log2.
5453 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
5454 symbol.
5455 * math/w_log2.c: New file.
5456 * sysdeps/i386/fpu/w_log2.c: New file.
5457 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
5458 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
5459 and add necessary aliases.
5460 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
5461 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
5462 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5463 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5464 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5465 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5466 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5467 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5468 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5469 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5470 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5471 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5472 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5473 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5474 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5475 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5476 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5477 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5478 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5479 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5480 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5481 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5482 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5483 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5484 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5485 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5486
5487 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5488
5489 * math/Versions (GLIBC_2.29): Add log.
5490 * math/w_log_compat.c (__log_compat): Change to versioned compat
5491 symbol.
5492 * math/w_log.c: New file.
5493 * sysdeps/i386/fpu/w_log.c: New file.
5494 * sysdeps/ia64/fpu/e_log.S: Update.
5495 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
5496 and add necessary aliases.
5497 * sysdeps/ieee754/dbl-64/w_log.c: New file.
5498 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
5499 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5500 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5501 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5502 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5503 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5504 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5505 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5506 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5507 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5508 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5509 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5510 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5511 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5512 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5513 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5514 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5515 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5516 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5517 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5518 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5519 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5520 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5521 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5522 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5523 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
5524 __log.
5525 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
5526 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
5527 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
5528 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
5529
5530 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5531
5532 * math/Versions (GLIBC_2.29): Add exp and exp2.
5533 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
5534 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
5535 * math/w_exp_compat.c (__exp_compat): Likewise.
5536 * math/w_exp.c: New file.
5537 * math/w_exp2.c: New file.
5538 * sysdeps/i386/fpu/w_exp.c: New file.
5539 * sysdeps/i386/fpu/w_exp2.c: New file.
5540 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
5541 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
5542 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
5543 and add necessary aliases.
5544 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
5545 and add necessary aliases.
5546 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
5547 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
5548 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
5549 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
5550 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5551 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5552 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5553 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5554 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5555 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5556 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5557 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5558 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5559 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5560 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5561 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5562 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5563 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5564 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5565 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5566 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5567 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5568 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5569 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5570 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5571 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5572 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5573 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5574 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
5575 (__ieee754_exp): Rename to __exp.
5576 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
5577 (__ieee754_exp): Rename to __exp.
5578 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
5579 (__ieee754_exp): Rename to __exp.
5580 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
5581 __exp.
5582 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
5583
5584 2018-11-20 DJ Delorie <dj@redhat.com>
5585
5586 * malloc/malloc.c (tcache_entry): Add key field.
5587 (tcache_put): Set it.
5588 (tcache_get): Likewise.
5589 (_int_free): Check for double free in tcache.
5590 * malloc/tst-tcfree1.c: New.
5591 * malloc/tst-tcfree2.c: New.
5592 * malloc/Makefile: Run the new tests.
5593 * manual/probes.texi: Document memory_tcache_double_free probe.
5594
5595 * dlfcn/dlerror.c (check_free): Prevent double frees.
5596
5597 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
5598
5599 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
5600
5601 2018-11-20 Joseph Myers <joseph@codesourcery.com>
5602
5603 * conform/conformtest.py (ElementTest.run): Use unique identifiers
5604 in tests. Use names for format arguments.
5605 (ConstantTest.run): Likewise.
5606 (SymbolTest.run): Likewise.
5607 (TypeTest.run): Likewise.
5608 (TagTest.run): Likewise.
5609 (FunctionTest.run): Likewise.
5610 (VariableTest.run): Likewise.
5611 (MacroFunctionTest.run): Likewise.
5612 (MacroStrTest.run): Likewise.
5613 (HeaderTests.__init__): Set self.num_tests.
5614 (HeaderTests.handle_test_line): Set test.num. Increment
5615 self.num_tests.
5616
5617 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
5618
5619 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
5620 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
5621 SEEK_SET.
5622
5623 2018-11-19 Mao Han <han_mao@c-sky.com>
5624
5625 * scripts/config.guess: Update to version 2018-08-29.
5626 * scripts/config.sub: Update to version 2018-08-29.
5627
5628 2018-11-19 Florian Weimer <fweimer@redhat.com>
5629
5630 support: Print timestamps in timeout handler.
5631 * support/support_test_main.c (print_timestamp): New function.
5632 (signal_handler): Use it to print the termination time and the
5633 time of the last write to standard output.
5634
5635 2018-11-16 Zack Weinberg <zackw@panix.com>
5636 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5637
5638 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
5639 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
5640 argument.
5641 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
5642 and add flags argument. Check flags instead of __ldbl_is_dbl when
5643 deciding whether to set is_long_double.
5644 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
5645 passing zero for flags argument.
5646 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
5647
5648 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5649 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
5650 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
5651 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
5652 variable names. Remove libc_hidden_def/libc_hidden_proto from
5653 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
5654 longer called from within the library.
5655 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
5656 for __nldbl___vstrfmon_l, declare it explicitly.
5657
5658 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
5659
5660 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
5661
5662 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
5663 macros
5664 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
5665 F_SETLK64, F_SETLKW64, respectively.
5666 * sysdeps/mach/hurd/f_setlk.c: New file.
5667 * sysdeps/mach/hurd/f_setlk.h: New file.
5668 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
5669 f_setlk.
5670 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
5671 (__libc_fcntl): Move non-flock operations to...
5672 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
5673 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
5674
5675 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
5676
5677 mktime: DEBUG_MKTIME cleanup
5678 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
5679 And it’s no longer needed now that glibc and Gnulib both have
5680 their own testing mechanisms for mktime.
5681 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
5682
5683 mktime: fix non-EOVERFLOW errno handling
5684 [BZ#23789]
5685 mktime was not properly reporting failures when the underlying
5686 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
5687 them like EOVERFLOW failures, and set errno to EOVERFLOW.
5688 The problem could happen on non-glibc platforms, with Gnulib.
5689 * time/mktime.c (guess_time_tm): Remove, replacing with ...
5690 (tm_diff): ... this simpler function, which does not change errno.
5691 All callers changed to deal with errno themselves.
5692 (ranged_convert, __mktime_internal): Return failure immediately if
5693 the underlying function reports any failure other than EOVERFLOW.
5694 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
5695 gap code fails.
5696
5697 mktime: fix bug with Y2038 DST transition
5698 [BZ#23789]
5699 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
5700 mishandle a DST transition that jumps over the Y2038 boundary.
5701 No such DST transitions are known so this is only a theoretical
5702 bug, but we might as well do things right.
5703
5704 mktime: make more room for overflow
5705 [BZ#23789]
5706 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
5707 This is so that we can add tm_diff results to a previous guess,
5708 which will be useful in a later patch.
5709
5710 mktime: simplify offset guess
5711 [BZ#23789]
5712 * time/mktime.c (__mktime_internal): Omit excess precision.
5713
5714 mktime: new test for mktime failure
5715 [BZ#23789]
5716 Based on a test suggested by Albert Aribaud in:
5717 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
5718 * time/Makefile (tests): Add bug-mktime4.
5719 * time/bug-mktime4.c: New file.
5720
5721 mktime: fix EOVERFLOW bug
5722 [BZ#23789]
5723 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
5724 Include libc-config.h, not config.h, for __set_errno.
5725 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
5726
5727 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
5728
5729 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
5730 __attribute_copy__ to copy attributes from name. Drop static qualifier
5731 to avoid warnings about leaf attribute not having effect on static
5732 functions.
5733
5734 2018-11-13 Florian Weimer <fweimer@redhat.com>
5735
5736 * malloc/malloc.c (fastbin_push_entry): New function.
5737 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
5738 (REMOVE_FB): Remove macro.
5739 (_int_malloc): Use fastbin_pop_entry and reindent.
5740 (_int_free): Use fastbin_push_entry.
5741 (malloc_consolidate): Use atomic_exchange_acquire.
5742
5743 2018-11-13 Joseph Myers <joseph@codesourcery.com>
5744
5745 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
5746 alias attribute, not with strong_alias.
5747
5748 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
5749 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
5750 with additional parameter thread.
5751 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
5752 in terms of __hidden_ver2.
5753 (hidden_tls_def): New macro.
5754 (libc_hidden_tls_def): Likewise.
5755 (rtld_hidden_tls_def): Likewise.
5756 (libm_hidden_tls_def): Likewise.
5757 (libmvec_hidden_tls_def): Likewise.
5758 (libresolv_hidden_tls_def): Likewise.
5759 (librt_hidden_tls_def): Likewise.
5760 (libdl_hidden_tls_def): Likewise.
5761 (libnss_files_hidden_tls_def): Likewise.
5762 (libnsl_hidden_tls_def): Likewise.
5763 (libnss_nisplus_hidden_tls_def): Likewise.
5764 (libutil_hidden_tls_def): Likewise.
5765 (libutil_hidden_tls_def): Likweise.
5766 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
5767 libc_hidden_tls_def.
5768 (__sim_disabled_exceptions_thread): Likewise.
5769 (__sim_round_mode_thread): Likewise.
5770
5771 * sysdeps/sparc/sparc-ifunc.h [SHARED]
5772 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
5773 copy attributes from name.
5774
5775 2018-11-12 Joseph Myers <joseph@codesourcery.com>
5776
5777 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
5778 Use __attribute_copy__ to copy attributes from name.
5779
5780 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
5781 with __hidden_ver1 call.
5782 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
5783 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
5784 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
5785 (__cosf): Do not declare here.
5786 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
5787 (__sincosf): Do not declare here.
5788 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
5789 (__sinf): Do not declare here.
5790
5791 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
5792 (__BIG_ENDIAN): Likewise.
5793 (__BYTE_ORDER): Likewise.
5794 (strong_alias): Likewise.
5795 (_strong_alias): Likewise.
5796
5797 2018-11-12 Florian Weimer <fweimer@redhat.com>
5798
5799 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
5800 function. Move after the definition of in_smallbin_range. Do not
5801 use __builtin_expect for paths that lead to a noreturn function.
5802 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
5803 because it is unclear whether this is in fact an unlikely
5804 condition.
5805 (_int_malloc, _int_free): Adjust.
5806 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
5807 variables.
5808 * malloc/arena.c (heap_trim): Likewise.
5809
5810 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
5811
5812 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
5813 it, free it if needed.
5814 (reauthenticate): Test and use ccwdir.
5815 (child_init_port): In non-resetids case, test and use ccwdir.
5816 (child_chdir): New nested function to set ccwdir.
5817 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
5818 * hurd/hurd/port.h (_hurd_port_move): New function.
5819 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
5820 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
5821 * hurd/Versions (_hurd_port_move): Export function.
5822 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
5823 symbol.
5824 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
5825 of dtablesize for allocating dtable_cloexec.
5826
5827 2018-11-09 Martin Sebor <msebor@redhat.com>
5828
5829 * include/libc-symbols.h (__attribute_copy__): Define macro unless
5830 it's already defined.
5831 (_strong_alias): Use __attribute_copy__.
5832 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
5833 * misc/sys/cdefs.h (__attribute_copy__): New macro.
5834 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
5835 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
5836 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
5837 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
5838 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
5839 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
5840 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
5841 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
5842 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
5843 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
5844 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
5845 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
5846 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
5847 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
5848 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
5849 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
5850 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
5851
5852 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5853
5854 * misc/tst-efgcvt.c: Include support/check.h and
5855 support/test-driver.c. Do not include test-skeleton.c.
5856 (error_count): Remove.
5857 (output_error): Replace increments to error_count with calls to
5858 support_record_failure.
5859 (output_r_error): Likewise.
5860 (special): Likewise.
5861 (do_test): Unconditionally return zero.
5862 (TEST_FUNCTION): Remove.
5863
5864 2018-11-09 Joseph Myers <joseph@codesourcery.com>
5865
5866 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
5867 not $(@D)/scratch.
5868 ($(linknamespace-header-tests)): Likewise.
5869
5870 * conform/conformtest.py: New file.
5871 * conform/conformtest.pl: Remove.
5872 * conform/GlibcConform.pm: Likewise.
5873 * conform/glibcconform.py (KEYWORDS_C90): New constant.
5874 (KEYWORDS_C99): Likewise.
5875 (KEYWORDS): Likewise.
5876 * conform/Makefile ($(conformtest-header-tests)): Use
5877 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
5878 option. Use --header instead of --headers.
5879 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
5880 function entries.
5881 * conform/data/spawn.h-data: Likewise.
5882 * conform/data/fcntl.h-data (openat): Add space after function
5883 name.
5884 * conform/data/wchar.h-data (wcscasecmp): Likewise.
5885 (wcscasecmp_l): Likewise.
5886 * conform/data/termios.h-data (c_cc): Add space after element
5887 name.
5888
5889 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5890
5891 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
5892 instead of manually comparing and reporting mismatching strings.
5893 * misc/tst-ldbl-error.c (do_one_test): Likewise.
5894 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
5895
5896 2018-11-08 Joseph Myers <joseph@codesourcery.com>
5897
5898 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
5899 __ASSUME_SOCKETCALL.
5900 * sysdeps/unix/sysv/linux/i386/kernel-features.h
5901 (__ASSUME_SOCKETCALL): Remove.
5902 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5903 (__ASSUME_SOCKETCALL): Likewise.
5904 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5905 (__ASSUME_SOCKETCALL): Likewise.
5906 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
5907 (__ASSUME_SOCKETCALL): Likewise.
5908 * sysdeps/unix/sysv/linux/s390/kernel-features.h
5909 (__ASSUME_SOCKETCALL): Likewise.
5910 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5911 (__ASSUME_SOCKETCALL): Likewise.
5912 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
5913 (__ASSUME_SOCKETCALL): Likewise.
5914
5915 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
5916
5917 [BZ #23509]
5918 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
5919 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
5920 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
5921 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
5922 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
5923 lc_unknown.
5924
5925 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
5926
5927 [BZ #17630]
5928 * resolv/tst-resolv-network.c: Add test for getnetbyname.
5929
5930 2018-11-07 Joseph Myers <joseph@codesourcery.com>
5931
5932 [BZ #23867]
5933 * sysdeps/unix/sysv/linux/arm/kernel-features.h
5934 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5935 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5936 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5937
5938 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5939
5940 * support/support_test_compare_string.c
5941 (support_test_compare_string): Fix printf format.
5942
5943 2018-11-07 Florian Weimer <fweimer@redhat.com>
5944
5945 Implement TEST_COMPARE_STRING.
5946 * support/check.h (TEST_COMPARE_STRING): Define.
5947 (support_test_compare_string): Declare.
5948 * support/Makefile (libsupport-routines): Add
5949 support_test_compare_string.
5950 (tests): Add tst-test_compare_string.
5951 * support/support_test_compare_string.c: New file.
5952 * support/tst-test_compare_string.c: Likewise.
5953
5954 2018-11-07 Andreas Schwab <schwab@suse.de>
5955
5956 [BZ #23864]
5957 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
5958 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
5959 Undef.
5960
5961 2018-11-06 Joseph Myers <joseph@codesourcery.com>
5962
5963 [BZ #23862]
5964 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5965 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
5966 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
5967 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
5968 Likewise.
5969
5970 2018-11-06 Florian Weimer <fweimer@redhat.com>
5971
5972 [BZ #17405]
5973 * posix/Makefile (routines): Add spawn_faction_addchdir.
5974 (tests): Add tst-spawn-chdir.
5975 * posix/Versions (GLIBC_2.29): Add
5976 posix_spawn_file_actions_addchdir_np.
5977 * posix/spawn_faction_addchdir.c: New file.
5978 * posix/spawn_faction_destroy.c
5979 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
5980 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
5981 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
5982 chdir_action.
5983 * posix/tst-spawn-chdir.c: New file.
5984 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
5985 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
5986 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
5987 posix_spawn_file_actions_addchdir_np.
5988 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
5989 Likewise.
5990 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
5991 Likewise.
5992 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
5993 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
5994 Likewise.
5995 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
5996 Likewise.
5997 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
5998 Likewise.
5999 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
6000 Likewise.
6001 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
6002 Likewise.
6003 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
6004 Likewise.
6005 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
6006 (GLIBC_2.29): Likewise.
6007 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
6008 (GLIBC_2.29): Likewise.
6009 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
6010 (GLIBC_2.29): Likewise.
6011 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
6012 (GLIBC_2.29): Likewise.
6013 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
6014 Likewise.
6015 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
6016 (GLIBC_2.29): Likewise.
6017 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
6018 (GLIBC_2.29): Likewise.
6019 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
6020 (GLIBC_2.29): Likewise.
6021 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
6022 (GLIBC_2.29): Likewise.
6023 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
6024 Likewise.
6025 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
6026 Likewise.
6027 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
6028 Likewise.
6029 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
6030 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
6031 Likewise.
6032 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
6033 Likewise.
6034 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
6035 Likewise.
6036 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
6037 Likewise.
6038
6039 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6040
6041 * misc/Makefile (tests): Add tst-ldbl-error.
6042 * misc/tst-ldbl-error.c: New file.
6043
6044 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6045
6046 * misc/Makefile (tests): Add tst-ldbl-warn.
6047 * misc/tst-ldbl-warn.c: New file.
6048
6049 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6050
6051 * argp/Makefile (tests): Add tst-ldbl-argp.
6052 * argp/tst-ldbl-argp.c: New file.
6053
6054 2018-11-05 Arjun Shankar <arjun@redhat.com>
6055
6056 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
6057 __gconv_path_elem and call __gconv_get_path unconditionally.
6058
6059 2018-11-05 Andreas Schwab <schwab@suse.de>
6060
6061 [BZ #22927]
6062 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
6063 creating the first helper thread failed.
6064
6065 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
6066
6067 * sysdeps/mach/hurd/msync.c: New file.
6068
6069 2018-11-02 Florian Weimer <fweimer@redhat.com>
6070
6071 * support/shell-container.c (copy_func): Call
6072 support_copy_file_range instead of copy_file_range to support
6073 cross-device copies.
6074
6075 2018-11-02 Florian Weimer <fweimer@redhat.com>
6076
6077 * support/test-container.c: Include <libc-pointer-arith.h> for
6078 ALIGN_UP.
6079
6080 2018-11-01 Zong Li <zong@andestech.com>
6081
6082 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
6083 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
6084 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
6085 (__FP_FRAC_SET_8): Add implementation for RV32 use.
6086
6087 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
6088 variable to avoid overlap arguments.
6089
6090 2018-11-01 Joseph Myers <joseph@codesourcery.com>
6091
6092 * posix/bug-regex22.c (main): Use puts with distinct error
6093 messages for unexpected success of re_compile_pattern, not printf
6094 with NULL argument to %s.
6095
6096 * stdio-common/bug22.c: Include <libc-diag.h>.
6097 (do_test): Disable -Wformat-overflow= warnings around fprintf
6098 calls outputting more than INT_MAX characters.
6099 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
6100 around printf call with NULL %s argument.
6101
6102 [BZ #23848]
6103 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
6104 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
6105 Undefine.
6106 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
6107 (__ASSUME_RECVMSG_SYSCALL): Likewise.
6108 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
6109 (__ASSUME_SENDTO_SYSCALL): Likewise.
6110 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
6111 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
6112 [!__arch64__].
6113 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
6114 (__ASSUME_CONNECT_SYSCALL): Likewise.
6115 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
6116 (__ASSUME_RECVFROM_SYSCALL): Likewise.
6117 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
6118 Define.
6119 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
6120 Likewise.
6121 [__LINUX_KERNEL_VERSION >= 0x040400]
6122 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6123 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
6124 Remove.
6125 (listen): Likewise.
6126 (setsockopt): Likewise.
6127
6128 2018-11-01 Fredrik Noring <noring@nocrew.org>
6129
6130 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
6131 with the ISA override.
6132
6133 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
6134
6135 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
6136 #endif.
6137
6138 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
6139
6140 * manual/errno.texi (EIEIO): Document how translators should
6141 translate the error message.
6142 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
6143 printing trailing whitespaces refused by git.
6144 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
6145 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
6146 * hurd/Makefile (user-interfaces): Add pci.
6147
6148 2018-10-30 Joseph Myers <joseph@codesourcery.com>
6149
6150 * conform/linknamespace.py: New file.
6151 * conform/linknamespace.pl: Remove file.
6152 * conform/Makefile ($(linknamespace-header-tests)): Use
6153 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
6154 option.
6155
6156 2018-10-30 Florian Weimer <fweimer@redhat.com>
6157
6158 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
6159 memory leaks.
6160
6161 2018-10-30 Florian Weimer <fweimer@redhat.com>
6162
6163 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
6164
6165 2018-10-30 Florian Weimer <fweimer@redhat.com>
6166
6167 * stdlib/tst-strtod-overflow.c (do_test): Switch to
6168 support_blob_repeat.
6169
6170 2018-10-30 Florian Weimer <fweimer@redhat.com>
6171
6172 Avoid spurious test failures in stdlib/test-bz22786.
6173 * support/Makefile (libsupport-routines): Add blob_repeat.
6174 (tests): Add tst-support_blob_repeat.
6175 * support/blob_repeat.h: New file.
6176 * support/blob_repeat.c: Likewise.
6177 * support/tst-support_blob_repeat.c: Likewise.
6178 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
6179 support_blob_repeat_allocate.
6180
6181 2018-10-30 Andreas Schwab <schwab@suse.de>
6182
6183 [BZ #23125]
6184 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
6185 Don't use tail call.
6186 * elf/tst-unwind-main.c: New file.
6187 * elf/Makefile (tests): Add tst-unwind-main.
6188 (CFLAGS-tst-unwind-main.c): Define.
6189
6190 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
6191
6192 [BZ #23791]
6193 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
6194 n_cs_precedes to 0.
6195 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
6196
6197 2018-10-29 Joseph Myers <joseph@codesourcery.com>
6198
6199 * conform/glibcconform.py: Do not import shutil.
6200 (list_exported_functions): Use tempfile.TemporaryDirectory instead
6201 of mkdtemp.
6202
6203 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
6204 critic_missing for versions before 3.4.
6205 * configure: Regenerated.
6206 * manual/install.texi (Tools for Compilation): Document
6207 requirement for Python to build glibc.
6208 * INSTALL: Regenerated.
6209 * Rules [PYTHON]: Make code unconditional.
6210 * benchtests/Makefile [PYTHON]: Likewise.
6211 * conform/Makefile [PYTHON]: Likewise.
6212 * manual/Makefile [PYTHON]: Likewise.
6213 * math/Makefile [PYTHON]: Likewise.
6214
6215 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
6216
6217 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
6218 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
6219 answer to interrupt_operation, return EIEIO instead of EINTR.
6220 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
6221 _hurd_intr_rpc_msg_about_to global point to start of controlled
6222 assembly snippet. Make it check canceled flag.
6223 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
6224 the _hurd_intr_rpc_msg_about_to point.
6225 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
6226 issue, remove cancel flag check.
6227
6228 2018-10-26 Joseph Myers <joseph@codesourcery.com>
6229
6230 * scripts/build-many-glibcs.py: Remove compatibility for missing
6231 os.cpu_count and re.fullmatch.
6232
6233 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
6234
6235 [BZ #23822]
6236 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
6237 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
6238 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
6239
6240 2018-10-25 Joseph Myers <joseph@codesourcery.com>
6241
6242 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
6243 macro.
6244
6245 2018-10-25 Florian Weimer <fweimer@redhat.com>
6246
6247 [BZ #23562]
6248 [BZ #23821]
6249 XFAIL siginfo_t si_band conform test on sparc64.
6250 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
6251 (__SI_BAND_TYPE): Only override long int default type on sparc64.
6252 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
6253 (conformtest-xfail-conds): Add sparc64-linux.
6254 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
6255 sparc64.
6256 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
6257
6258 2018-10-25 Joseph Myers <joseph@codesourcery.com>
6259
6260 * elf/elf.h (NT_MIPS_DSP): New macro.
6261 (NT_MIPS_FP_MODE): Likewise.
6262
6263 2018-10-25 Zong Li <zong@andestech.com>
6264
6265 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
6266 name by adding the file extension (.so).
6267
6268 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
6269
6270 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
6271 (test-xfail-ISO11/threads.h/linknamespace,
6272 test-xfail-ISO11/threads.h/conform): Add.
6273
6274 2018-10-24 Joseph Myers <joseph@codesourcery.com>
6275
6276 * math/gen-libm-test.py: Import os.
6277 (ALL_FLOATS_MANUAL): New constant.
6278 (ALL_FLOATS_SUFFIX): Likewise.
6279 (Ulps.all_functions): New function.
6280 (real_all_ulps): Likewise.
6281 (generate_err_table_sub): Likewise.
6282 (generate_err_table): Likewise.
6283 (main): Handle -s and -m options.
6284 * manual/libm-err-tab.pl: Remove.
6285 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
6286 instead of libm-err-tab.pl.
6287 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
6288 != no].
6289 * manual/install.texi (Tools for Compilation): Document
6290 requirement for Python to build manual.
6291 * INSTALL: Regenerated.
6292
6293 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
6294
6295 * bits/time64.h: New file.
6296 * include/time.h: Replace internal_time_t with __time64_t.
6297 * posix/bits/types (__time64_t): Add.
6298 * stdlib/Makefile: Add bits/time64.h to includes.
6299 * time/tzfile.c: Replace internal_time_t with __time64_t.
6300
6301 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6302
6303 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
6304 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
6305 __posix_spawn_file_actions_init, __posix_spawnattr_init,
6306 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
6307 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
6308 prototype.
6309 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
6310 * posix/spawn_faction_addclose.c
6311 (__posix_spawn_file_actions_addclose): Add hidden definition.
6312 * posix/spawn_faction_adddup2.c
6313 (__posix_spawn_file_actions_adddup2): Likewise.
6314 * posix/spawn_faction_destroy.c
6315 (__posix_spawn_file_actions_destroy): Likewise.
6316 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
6317 Likewise.
6318 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
6319 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
6320 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
6321 Likewise.
6322 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
6323 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
6324 Likewise.
6325
6326 2018-10-24 Andreas Schwab <schwab@suse.de>
6327
6328 [BZ #18093]
6329 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
6330 format cache.
6331 * elf/cache.c (print_cache): Likewise.
6332
6333 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
6334
6335 * bits/timesize.h: New file.
6336 * stdlib/Makefile (headers): Add bits/timesize.h.
6337 * sysdeps/unix/sysv/linux/bits/msq-pad.h
6338 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
6339 * sysdeps/unix/sysv/linux/bits/sem-pad.h
6340 (__SEM_PAD_AFTER_TIME): Likewise.
6341 * sysdeps/unix/sysv/linux/bits/shm-pad.h
6342 (__SHM_PAD_AFTER_TIME): Likewise.
6343 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
6344 (__MSQ_PAD_BEFORE_TIME): Likewise.
6345 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
6346 (__SEM_PAD_BEFORE_TIME): Likewise.
6347 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
6348 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
6349 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
6350 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
6351 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
6352 (__MSQ_PAD_BEFORE_TIME): Likewise.
6353 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
6354 (__SEM_PAD_BEFORE_TIME): Likewise.
6355 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
6356 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
6357 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
6358 (__MSQ_PAD_BEFORE_TIME): Likewise.
6359 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
6360 (__SEM_PAD_BEFORE_TIME): Likewise.
6361 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
6362 (__SHM_PAD_BEFORE_TIME): Likewise.
6363 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
6364 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
6365 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
6366
6367 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
6368
6369 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
6370 USE_RDTSCP is defined.
6371 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
6372 USE_RDTSCP is defined.
6373
6374 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6375
6376 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
6377 defined.
6378
6379 [BZ #23709]
6380 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
6381 independently of other flags.
6382
6383 2018-10-23 Florian Weimer <fweimer@redhat.com>
6384
6385 * time/tst-mktime2.c (N_STRINGS): Remove.
6386 (set_timezone): New function.
6387 (spring_forward_gap): Call it. Use FAIL_EXIT1.
6388 (mktime_test1): Report localtime failure and check errno value.
6389 Use TEST_COMPARE.
6390 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
6391 (do_test): Remove alarm call. Use set_timezone and array_length.
6392
6393 2018-10-23 Andreas Schwab <schwab@suse.de>
6394
6395 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
6396 (__start_context): Use END instead of PSEUDO_END.
6397
6398 2018-10-22 Joseph Myers <joseph@codesourcery.com>
6399
6400 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
6401 version to 4.19.
6402
6403 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
6404 version to 4.19.
6405
6406 [BZ #23793]
6407 * wcsmbs/c32rtomb.c: New file.
6408 * wcsmbs/mbrtoc32.c: Likewise.
6409 * wcsmbs/tst-c32-state.c: Likewise.
6410 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
6411 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
6412 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
6413 (tests): Add tst-c32-state.
6414 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
6415 $(gen-locales).
6416
6417 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
6418
6419 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
6420 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
6421
6422 2018-10-19 Joseph Myers <joseph@codesourcery.com>
6423
6424 [BZ #23794]
6425 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
6426 pair and return 0 in that case, and use saved character to
6427 interpret following character.
6428 * wcsmbs/tst-c16-surrogate.c: New file.
6429 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
6430 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
6431 Depend on $(gen-locales)
6432
6433 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
6434
6435 [BZ #23562]
6436 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
6437 (struct siginfo_t): Use correct type for si_band.
6438
6439 2018-10-19 Florian Weimer <fweimer@redhat.com>
6440
6441 [BZ #23689]
6442 * resource/bits/types/struct_rusage.h (struct rusage): Update
6443 comment on struct. Remove extraneous field comment.
6444
6445 2018-10-18 David S. Miller <davem@davemloft.net>
6446
6447 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
6448 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
6449 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
6450 sysdep_routines in subdir elf.
6451 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
6452 version for __vdso_clock_gettime.
6453 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
6454 Define.
6455 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
6456 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
6457
6458 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
6459
6460 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
6461
6462 * sysdeps/i386/init-arch.h: Removed.
6463 * sysdeps/i386/i586/init-arch.h: Likewise.
6464 * sysdeps/i386/i686/init-arch.h: Likewise.
6465 * sysdeps/i386/i686/hp-timing.h: Likewise.
6466 * sysdeps/x86_64/hp-timing.h: Likewise.
6467 * sysdeps/i386/isa.h: New file.
6468 * sysdeps/i386/i586/isa.h: Likewise.
6469 * sysdeps/i386/i686/isa.h: Likewise.
6470 * sysdeps/x86_64/isa.h: Likewise.
6471 * sysdeps/x86/hp-timing.h: New file.
6472 * sysdeps/x86/init-arch.h: Include <isa.h>.
6473
6474 2018-10-17 Joseph Myers <joseph@codesourcery.com>
6475
6476 * math/libm-test-pow.inc (pow_test_data): Do not allow
6477 divide-by-zero exception for pow(+/- 0, -Inf).
6478
6479 2018-10-17 Zack Weinberg <zackw@panix.com>
6480
6481 * manual/job.texi (Job Control is Optional): Remove node, as
6482 job control has not been optional in quite some time.
6483 (Job Control): Mention briefly that systems older than
6484 POSIX.1-2001 might not support job control.
6485 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
6486 defined on systems conforming to POSIX.1-2001.
6487
6488 2018-10-17 Arjun Shankar <arjun@redhat.com>
6489
6490 [BZ #22062]
6491 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
6492 indentation.
6493 * (__gconv_read_conf): Mark function static.
6494 * (once): New static variable.
6495 * (__gconv_load_conf): New function.
6496 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
6497 * iconv/gconv_db.c (once): Remove static variable.
6498 * (__gconv_compare_alias): Use __gconv_load_conf instead of
6499 __gconv_read_conf.
6500 * (__gconv_find_transform): Likewise.
6501 * iconv/tst-iconv-mt.c: New test.
6502 * iconv/Makefile: Add tst-iconv_mt.
6503
6504 2018-10-17 Joseph Myers <joseph@codesourcery.com>
6505
6506 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6507 bits/shm-pad.h.
6508 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
6509 (shmatt_t): Define as __syscall_ulong_t.
6510 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
6511 and [__SHM_PAD_AFTER_TIME].
6512 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
6513 Define shm_segsz and associated padding based on
6514 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
6515 Use __syscall_ulong_t instead of unsigned long int.
6516 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
6517 unsigned long int.
6518 [__USE_MISC] (struct shm_info): Likewise.
6519 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
6520 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
6521 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
6522 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
6523 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
6524 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
6525 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
6526 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
6527 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
6528 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
6529 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
6530
6531 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6532 bits/shmlba.h.
6533 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
6534 (SHMLBA): Remove macro.
6535 (__getpagesize): Remove function declaration.
6536 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
6537 <bits/shmlba.h>.
6538 (SHMLBA): Remove macro.
6539 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
6540 <bits/shmlba.h>.
6541 (SHMLBA): Remove macro.
6542 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
6543 <bits/shmlba.h>.
6544 (SHMLBA): Remove macro.
6545 (__getpagesize): Remove function declaration.
6546 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
6547 <bits/shmlba.h>.
6548 (SHMLBA): Remove macro.
6549 (__getshmlba): Remove function declaration.
6550 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
6551 (SHMLBA): Remove macro.
6552 (__getpagesize): Remove function declaration.
6553 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
6554 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
6555 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
6556 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
6557 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
6558 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
6559 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
6560 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
6561 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
6562 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
6563
6564 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
6565
6566 [BZ #23275]
6567 * nptl/tst-mutex10.c: New File.
6568 * nptl/Makefile (tests): Add tst-mutex10.
6569 (tst-mutex10-ENV): New variable.
6570 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
6571 Ensure that elision path is used if elision is available.
6572 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
6573 Likewise.
6574 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
6575 Likewise.
6576 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
6577 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
6578 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
6579 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
6580 Likewise.
6581 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
6582 (__pthread_mutex_cond_lock_adjust): Likewise.
6583 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
6584 Likewise.
6585 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
6586 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
6587 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
6588 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
6589 Add comments.
6590 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
6591 Use atomic_load_relaxed and atomic_store_relaxed.
6592 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
6593 Use atomic_store_relaxed.
6594
6595 2018-10-17 Andreas Schwab <schwab@suse.de>
6596
6597 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
6598 * crypt/badsalttest.c (TIMEOUT): Likewise.
6599 * crypt/sha256c-test.c (TIMEOUT): Likewise.
6600 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
6601 * io/test-lfs.c (TIMEOUT): Likewise.
6602 * libio/tst-atime.c (TIMEOUT): Likewise.
6603 * localedata/tst-leaks.c (TIMEOUT): Likewise.
6604 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
6605 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
6606 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
6607 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
6608 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
6609 * nptl/tst-cond11.c (TIMEOUT): Likewise.
6610 * nptl/tst-cond14.c (TIMEOUT): Likewise.
6611 * nptl/tst-cond15.c (TIMEOUT): Likewise.
6612 * nptl/tst-cond24.c (TIMEOUT): Likewise.
6613 * nptl/tst-cond25.c (TIMEOUT): Likewise.
6614 * nptl/tst-kill2.c (TIMEOUT): Likewise.
6615 * nptl/tst-kill3.c (TIMEOUT): Likewise.
6616 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
6617 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
6618 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
6619 * nptl/tst-once2.c (TIMEOUT): Likewise.
6620 * nptl/tst-once3.c (TIMEOUT): Likewise.
6621 * nptl/tst-once4.c (TIMEOUT): Likewise.
6622 * nptl/tst-robust8.c (TIMEOUT): Likewise.
6623 * nptl/tst-robust9.c (TIMEOUT): Likewise.
6624 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
6625 * nptl/tst-sem14.c (TIMEOUT): Likewise.
6626 * nptl/tst-sem6.c (TIMEOUT): Likewise.
6627 * nptl/tst-signal3.c (TIMEOUT): Likewise.
6628 * nptl/tst-spin4.c (TIMEOUT): Likewise.
6629 * nptl/tst-tls3.c (TIMEOUT): Likewise.
6630 * nptl/tst-tls4.c (TIMEOUT): Likewise.
6631 * posix/tst-chmod.c (TIMEOUT): Likewise.
6632 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
6633 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
6634 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
6635 * posix/tst-regex2.c (TIMEOUT): Likewise.
6636 * posix/tst-waitid.c (TIMEOUT): Likewise.
6637 * rt/tst-aio.c (TIMEOUT): Likewise.
6638 * rt/tst-aio10.c (TIMEOUT): Likewise.
6639 * rt/tst-aio4.c (TIMEOUT): Likewise.
6640 * rt/tst-aio5.c (TIMEOUT): Likewise.
6641 * rt/tst-aio6.c (TIMEOUT): Likewise.
6642 * rt/tst-aio64.c (TIMEOUT): Likewise.
6643 * rt/tst-aio7.c (TIMEOUT): Likewise.
6644 * rt/tst-aio9.c (TIMEOUT): Likewise.
6645 * rt/tst-clock.c (TIMEOUT): Likewise.
6646 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
6647 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
6648 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
6649 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
6650 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
6651 * rt/tst-timer4.c (TIMEOUT): Likewise.
6652 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
6653 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
6654 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
6655 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
6656 * time/tst-ftime.c (TIMEOUT): Likewise.
6657 * timezone/tst-tzset.c (TIMEOUT): Likewise.
6658
6659 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
6660
6661 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
6662 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
6663 for thunderX2.
6664
6665 2018-10-15 Joseph Myers <joseph@codesourcery.com>
6666
6667 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6668 bits/sem-pad.h.
6669 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
6670 instead of <bits/wordsize.h>.
6671 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
6672 and [__SEM_PAD_AFTER_TIME].
6673 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
6674 __syscall_ulong_t instead of unsigned long int.
6675 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
6676 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
6677 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
6678 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
6679 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
6680 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
6681 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
6682 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
6683 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
6684 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
6685 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
6686
6687 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
6688
6689 regex: simplify by using intprops.h
6690 [BZ#23744]
6691 * posix/regex_internal.h [_LIBC]: Include intprops.h.
6692 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
6693 intprops.h defines them.
6694
6695 regex: __builtin_expect → __glibc_unlikely
6696 [BZ#23744]
6697 This refactoring was prompted by a problem when the regex code is
6698 used as part of Gnulib and when the builder’s compiler does not grok
6699 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
6700 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
6701 Although this refactoring does not fix the problem directly,
6702 we might as well have Gawk use the now-preferred glibc style for when
6703 __builtin_expect is unavailable.
6704 * posix/regex_internal.h (BE): Remove.
6705 All uses replaced by __glibc_unlikely or __glibc_likely.
6706
6707 2018-10-11 Joseph Myers <joseph@codesourcery.com>
6708
6709 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6710 bits/msq-pad.h.
6711 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
6712 instead of <bits/wordsize.h>.
6713 (msgqnum_t): Define as __syscall_ulong_t.
6714 (msglen_t): Likewise.
6715 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
6716 and [__MSQ_PAD_AFTER_TIME].
6717 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
6718 __syscall_ulong_t instead of unsigned long int.
6719 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
6720 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
6721 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
6722 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
6723 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
6724 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
6725 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
6726 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
6727 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
6728 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
6729 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
6730
6731 2018-10-10 Joseph Myers <joseph@codesourcery.com>
6732
6733 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
6734 (struct shmid_ds): Condition padding after time fields on
6735 [__WORDSIZE == 32].
6736 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
6737 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
6738 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
6739
6740 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
6741 (struct semid_ds): Condition padding after time fields on
6742 [__WORDSIZE == 32].
6743 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
6744 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
6745 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
6746 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
6747
6748 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
6749 (struct msqid_ds): Condition padding after time fields on
6750 [__WORDSIZE == 32].
6751 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
6752 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
6753 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
6754 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
6755
6756 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
6757
6758 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
6759
6760 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
6761
6762 * libio/tst-readline.c (TIMEOUT): Define.
6763
6764 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
6765
6766 mktime fix for Gnulib + coreutils
6767 [BZ#23745]
6768 This fix affects only Gnulib. Problem discovered when
6769 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
6770 * time/mktime.c:
6771 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
6772 Do not define since it is not used. Defining an unused static
6773 function prompts a warning from GCC when Coreutils is configured
6774 with --enable-gcc-warnings.
6775
6776 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
6777
6778 * benchtests/scripts/compare_bench.py (main): set float type on
6779 threshold argument.
6780
6781 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
6782
6783 [BZ #23740]
6784 * localedata/locales/kl_GL (mon): Update, the relative case.
6785 (alt_mon): Add, fill with month names in the nominative case.
6786 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
6787 (d_fmt): Set to "%b %d %Y".
6788
6789 2018-10-04 Joseph Myers <joseph@codesourcery.com>
6790
6791 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
6792 <bits/mman-linux.h>.
6793 (PROT_READ): Don't define here.
6794 (PROT_WRITE): Likewise.
6795 (PROT_EXEC): Likewise.
6796 (PROT_NONE): Likewise.
6797 (PROT_GROWSDOWN): Likewise.
6798 (PROT_GROWSUP): Likewise.
6799 (MAP_SHARED): Likewise.
6800 (MAP_PRIVATE): Likewise.
6801 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
6802 [__USE_MISC] (MAP_FILE): Likewise.
6803 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
6804 [__USE_MISC] (MAP_ANON): Likewise.
6805 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
6806 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
6807 (MCL_CURRENT): Likewise.
6808 (MCL_FUTURE): Likewise.
6809 (MCL_ONFAULT): Likewise.
6810 [__USE_MISC] (MADV_NORMAL): Likewise.
6811 [__USE_MISC] (MADV_RANDOM): Likewise.
6812 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
6813 [__USE_MISC] (MADV_WILLNEED): Likewise.
6814 [__USE_MISC] (MADV_DONTNEED): Likewise.
6815 [__USE_MISC] (MADV_FREE): Likewise.
6816 [__USE_MISC] (MADV_REMOVE): Likewise.
6817 [__USE_MISC] (MADV_DONTFORK): Likewise.
6818 [__USE_MISC] (MADV_DOFORK): Likewise.
6819 [__USE_MISC] (MADV_HWPOISON): Likewise.
6820 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
6821 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
6822 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
6823 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
6824 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
6825 (__MAP_ANONYMOUS): New macro.
6826 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
6827 <bits/mman-linux.h> inclusion.
6828 (MAP_FIXED): Likewise.
6829 (MS_SYNC): Likewise.
6830 (MS_ASYNC): Likewise.
6831 (MS_INVALIDATE): Likewise.
6832 [__USE_MISC] (MADV_MERGEABLE): Likewise.
6833 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
6834 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
6835 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
6836 [__USE_MISC] (MADV_DONTDUMP): Likewise.
6837 [__USE_MISC] (MADV_DODUMP): Likewise.
6838 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
6839 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
6840
6841 [BZ #23735]
6842 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
6843 Define.
6844 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
6845 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
6846 Add test-nldbl-redirect.
6847 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
6848 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
6849 $(objpfx)libnldbl_nonshared.a.
6850
6851 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
6852
6853 * support/support.h (support_objdir_elf_ldso): New variable.
6854 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
6855 * support/Makefile (CFLAGS-support_paths.c): Add definition
6856 for OBJDIR_ELF_LDSO_PATH.
6857 * support/test-container.c (main): Search for the ld.so
6858 which is also used by the testsuite.
6859
6860 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
6861
6862 [BZ #20209]
6863 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
6864 should be "sap" rather than "sab".
6865 (day): Fix spelling of Sunday, should be "sapaat" rather than
6866 "sabaat".
6867
6868 2018-10-02 Joseph Myers <joseph@codesourcery.com>
6869
6870 * math/libm-test-fma.inc (fma_test_data): Add more tests.
6871
6872 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
6873
6874 [BZ #19444]
6875 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
6876 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
6877 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
6878
6879 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6880
6881 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
6882
6883 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
6884
6885 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
6886 Add -mrtm.
6887 (CFLAGS-elision-unlock.c): Likewise.
6888 (CFLAGS-elision-timed.c): Likewise.
6889 (CFLAGS-elision-trylock.c): Likewise.
6890 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
6891
6892 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6893
6894 [BZ #21037]
6895 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
6896 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
6897 new fd_to_filename interface.
6898 * libio/freopen64.c (freopen64): Likewise.
6899 * libio/tst-memstream.h: New file.
6900 * libio/tst-memstream4.c: Likewise.
6901 * libio/tst-wmemstream4.c: Likewise.
6902 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
6903 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
6904 and remove internal dynamic allocation.
6905
6906 2018-10-01 Joseph Myers <joseph@codesourcery.com>
6907
6908 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
6909 (MREMAP_MAYMOVE): Do not define here.
6910 [__USE_GNU] (MREMAP_FIXED): Likewise.
6911 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
6912 (MREMAP_MAYMOVE): Define here instead.
6913 [__USE_GNU] (MREMAP_FIXED): Likewise.
6914 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
6915 (MREMAP_MAYMOVE): Remove.
6916 [__USE_GNU] (MREMAP_FIXED): Likewise.
6917
6918 2018-09-28 Joseph Myers <joseph@codesourcery.com>
6919
6920 * math/fromfp.h: Do not include <math_private.h>.
6921 * math/s_cacosh_template.c: Likewise.
6922 * math/s_casin_template.c: Likewise.
6923 * math/s_casinh_template.c: Likewise.
6924 * math/s_ccos_template.c: Likewise.
6925 * math/s_cproj_template.c: Likewise.
6926 * math/s_fdim_template.c: Likewise.
6927 * math/s_fmaxmag_template.c: Likewise.
6928 * math/s_fminmag_template.c: Likewise.
6929 * math/s_iseqsig_template.c: Likewise.
6930 * math/s_ldexp_template.c: Likewise.
6931 * math/s_nextdown_template.c: Likewise.
6932 * math/w_log1p_template.c: Likewise.
6933 * math/w_scalbln_template.c: Likewise.
6934 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
6935 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
6936 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
6937 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
6938 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
6939 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
6940 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
6941 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
6942 * sysdeps/i386/fpu/s_atanl.c: Likewise.
6943 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
6944 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
6945 * sysdeps/i386/fpu/s_fdim.c: Likewise.
6946 * sysdeps/i386/fpu/s_logbl.c: Likewise.
6947 * sysdeps/i386/fpu/s_rintl.c: Likewise.
6948 * sysdeps/i386/fpu/s_significandl.c: Likewise.
6949 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
6950 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
6951 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6952 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
6953 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
6954 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6955 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
6956 * sysdeps/ieee754/k_standardf.c: Likewise.
6957 * sysdeps/ieee754/k_standardl.c: Likewise.
6958 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6959 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
6960 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
6961 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
6962 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
6963 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
6964 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
6965 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6966 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6967 * sysdeps/ieee754/s_signgam.c: Likewise.
6968 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
6969 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
6970 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
6971 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6972 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6973 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
6974 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6975 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
6976 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6977 * sysdeps/riscv/rvd/s_finite.c: Likewise.
6978 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
6979 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
6980 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
6981 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
6982 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
6983 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
6984 * sysdeps/riscv/rvf/fegetround.c: Likewise.
6985 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
6986 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
6987 * sysdeps/riscv/rvf/fesetround.c: Likewise.
6988 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
6989 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
6990 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
6991 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6992 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
6993 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6994 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
6995 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
6996 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
6997 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
6998 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
6999 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
7000 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
7001 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
7002 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
7003 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
7004 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
7005 <math_private.h>.
7006 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
7007
7008 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
7009
7010 [BZ #23716]
7011 * sysdeps/i386/dl-cet.c: Removed.
7012 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
7013 prototype.
7014 (_dl_runtime_profile_shstk): Likewise.
7015 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
7016 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
7017
7018 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7019
7020 [BZ #23579]
7021 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
7022 do_test_with_invalid_iov): New tests.
7023 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
7024 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
7025 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
7026 errno is ENOSYS.
7027 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
7028 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
7029 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
7030
7031 2018-09-27 Joseph Myers <joseph@codesourcery.com>
7032
7033 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7034 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
7035 (MATH_REDIRECT_BINARY_ARGS): New macro.
7036 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7037 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
7038 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
7039 header inclusion.
7040 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
7041 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
7042 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
7043 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
7044 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
7045 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
7046 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
7047 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
7048 Likewise.
7049 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
7050 Likewise.
7051 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
7052 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
7053 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
7054 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
7055 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
7056 Likewise.
7057 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
7058 Likewise.
7059 * sysdeps/generic/math_private_calls.h
7060 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
7061 Do not declare and define as an inline function.
7062 * math/divtc3.c (__divtc3): Use copysign functions instead of
7063 __copysign variants.
7064 * math/multc3.c (__multc3): Likewise.
7065 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
7066 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
7067 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
7068 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
7069 Likewise.
7070 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
7071 (__ieee754_yn): Likewise.
7072 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
7073 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
7074 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
7075 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
7076 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
7077 (__sin): Likewise.
7078 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
7079 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
7080 Likewise.
7081 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
7082 Likewise.
7083 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
7084 Likewise.
7085 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
7086 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
7087 Likewise.
7088 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
7089 (__ieee754_ynf): Likewise.
7090 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
7091 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
7092 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
7093 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
7094 Likewise.
7095 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
7096 (__ieee754_ynl): Likewise.
7097 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
7098 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
7099 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
7100 Likewise.
7101 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
7102 (__ieee754_ynl): Likewise.
7103 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
7104 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
7105 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
7106 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7107 Likewise.
7108 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
7109 (__ieee754_ynl)
7110 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
7111 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
7112 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
7113 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7114 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7115
7116 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7117 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
7118 using MATH_REDIRECT.
7119 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
7120 header inclusion.
7121 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
7122 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
7123 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
7124 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
7125 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
7126 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
7127 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
7128 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
7129 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
7130 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
7131 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
7132 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
7133 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
7134 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
7135 (round): Redirect to __round.
7136 (__roundl): Call round instead of __round.
7137 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
7138 Remove macro.
7139 [_ARCH_PWR5X] (__roundf): Likewise.
7140 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
7141 functions instead of __round variants.
7142 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
7143 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
7144 Likewise.
7145 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
7146 Likewise.
7147 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
7148 Likewise.
7149 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
7150 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
7151 __lroundl.
7152 (__ieee754_expl): Call roundl instead of __roundl.
7153
7154 2018-09-27 Andreas Schwab <schwab@suse.de>
7155
7156 [BZ #23717]
7157 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
7158 (do_test): Make st1 static.
7159
7160 2018-09-26 Andreas Schwab <schwab@suse.de>
7161
7162 [BZ #23707]
7163 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
7164 * elf/Makefile (tests): Add tst-unwind-ctor.
7165 (modules-names): Add tst-unwind-ctor-lib.
7166 ($(objpfx)tst-unwind-ctor): Depend on
7167 $(objpfx)tst-unwind-ctor-lib.so.
7168
7169 2018-09-26 Joseph Myers <joseph@codesourcery.com>
7170
7171 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
7172 file. Most contents moved from ....
7173 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
7174 and include <bits/mman-map-flags-generic.h>.
7175 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7176 (sysdep_headers): Add bits/mman-map-flags-generic.h.
7177 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
7178 <bits/mman-map-flags-generic.h>.
7179 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
7180 macros defined in <bits/mman-map-flags-generic.h>.
7181 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
7182 <bits/mman-map-flags-generic.h>.
7183 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
7184 defined in <bits/mman-map-flags-generic.h>.
7185
7186 2018-09-26 Andreas Schwab <schwab@suse.de>
7187
7188 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
7189 output.
7190
7191 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
7192 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7193 Fangrui Song <maskray@google.com>
7194
7195 [BZ #20480]
7196 * config.make.in (have-textrel_ifunc): New define.
7197 * configure.ac: Add check if linker supports textrel relocation with
7198 ifunc.
7199 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
7200 tst-ifunc-textrel.
7201 (CFLAGS-tst-ifunc-textrel.c): New rule.
7202 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
7203 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
7204 * elf/tst-ifunc-textrel.c: New file.
7205
7206 2018-09-25 Joseph Myers <joseph@codesourcery.com>
7207
7208 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
7209 <bits/procfs-prregset.h>.
7210 (prgregset_t): Define using __prgregset_t.
7211 (prfpregset_t): Define using __prfpregset_t.
7212 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7213 (sysdep_headers): Add bits/procfs-prregset.h.
7214 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
7215 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
7216 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
7217 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
7218
7219 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
7220 <bits/procfs-id.h> and <bits/procfs-extra.h>.
7221 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
7222 pr_uid and pr_gid.
7223 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7224 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
7225 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
7226 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
7227 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
7228 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
7229 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
7230 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
7231 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
7232 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
7233 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
7234 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
7235 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
7236 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
7237 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
7238 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
7239 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
7240 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
7241 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
7242 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
7243 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
7244 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
7245 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
7246 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
7247
7248 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
7249 AArch64 version. Include <bits/procfs.h>.
7250 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7251 (sysdep_headers): Add bits/procfs.h.
7252 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
7253 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
7254 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
7255 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
7256 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
7257 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
7258 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
7259 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
7260 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
7261 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
7262 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
7263 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
7264 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
7265 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
7266 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
7267 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
7268 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
7269
7270 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7271
7272 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
7273 Use libsupport.
7274
7275 2018-09-25 Arjun Shankar <arjun@redhat.com>
7276
7277 * iconv/gconv_int.h (__gconv_path_elem): Remove.
7278 (__gconv_max_path_elem_len): Likewise.
7279 (__gconv_nmodules): Likewise.
7280 (__gconv_get_path): Likewise.
7281 (path_elem): Move to ...
7282 * iconv/gconv_conf.c: ... here.
7283 (__gconv_get_path): Mark function static.
7284 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
7285 * iconv/gconv_open.c: ... here.
7286
7287 2018-09-24 Andreas Schwab <schwab@suse.de>
7288
7289 * scripts/haveversions.awk: New file.
7290 * Makerules ($(common-objpfx)Versions.def)
7291 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
7292 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
7293 Move rules ...
7294 * Makeconfig ($(common-objpfx)Versions.def)
7295 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
7296 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
7297 ... here.
7298 ($(common-objpfx)Versions.mk): New rule. Include it.
7299 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
7300 Emit error if build-obsolete-nsl = yes.
7301 * manual/install.texi (Configuring and compiling): Describe
7302 --enable-obsolete-nsl as unavaiable after version 2.28.
7303 * INSTALL: Regenerate.
7304
7305 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7306
7307 * NEWS: Add note about new TLE support on powerpc64le.
7308 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
7309 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
7310 __ununsed1.
7311 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
7312 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
7313 * sysdeps/powerpc/powerpc32/sysdep.h,
7314 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
7315 ABORT_TRANSACTION): Remove macros.
7316 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
7317 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
7318 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
7319 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
7320 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
7321 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
7322 usage.
7323 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
7324
7325 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
7326
7327 [BZ #10425]
7328 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
7329 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
7330 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
7331 which is the same as in it_IT.
7332 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
7333 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
7334
7335 2018-09-20 Joseph Myers <joseph@codesourcery.com>
7336
7337 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7338 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
7339 using MATH_REDIRECT.
7340 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
7341 header inclusion.
7342 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
7343 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
7344 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
7345 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
7346 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
7347 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
7348 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
7349 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
7350 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
7351 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
7352 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
7353 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
7354 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
7355 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
7356 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
7357 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
7358 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
7359 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
7360 (ceil): Redirect to __ceil.
7361 (floor): Redirect to __floor.
7362 (trunc): Redirect to __trunc.
7363 (__truncl): Call trunc instead of __trunc.
7364 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
7365 Remove macro.
7366 [_ARCH_PWR5X] (__truncf): Likewise.
7367 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
7368 trunc functions instead of __trunc variants.
7369 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
7370 Likewise.
7371 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
7372 Likewise.
7373 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
7374 Likewise.
7375 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7376 Likewise.
7377
7378 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
7379 [__i586__ || __pentium__].
7380 [__i486__]: Handle explicitly.
7381 (HAS_CPUID): Define to 1 if above macros are undefined.
7382 (HAS_I586): Likewise.
7383 (HAS_I686): Likewise.
7384
7385 2018-09-20 Florian Weimer <fweimer@redhat.com>
7386
7387 * misc/tst-gethostid.c: New file.
7388 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
7389 (tst-gethostid): Link with -ldl.
7390
7391 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
7392
7393 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
7394 value from gethostbyname_r.
7395
7396 2018-09-19 Carlos O'Donell <carlos@redhat.com>
7397
7398 * stdlib/tst-setcontext9.c (f1): Rename to...
7399 (f1a): ... this.
7400 (f1b): New function implementing lower half of f1 in alternate stack.
7401
7402 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
7403
7404 Fix mktime localtime offset confusion
7405 [BZ #23603]
7406 * include/time.h (__mktime_internal): The localtime offset is now
7407 of type long int instead of time_t. This is the longstanding type
7408 in glibc, and it is more than enough to represent difference
7409 between localtime and gmtime even if it is 32 bits and time_t is
7410 64. Changing it now will let us avoid an unnecessary change when
7411 time_t is widened to 64 bits on 32-bit platforms.
7412 * time/mktime-internal.h (mktime_offset_t): Now long int.
7413
7414 Merge mktime, timegm from upstream Gnulib
7415 [BZ #23603][BZ #16346]
7416 This fixes some obscure problems with integer overflow.
7417 Although it looks scary, it is almost all a byte-for-byte copy
7418 from Gnulib, and the Gnulib code has been tested reasonably well.
7419 * include/intprops.h: New file, copied from Gnulib.
7420 * include/verify.h, time/mktime-internal.h:
7421 New tiny files, simplified from Gnulib.
7422 * time/mktime.c: Copy from Gnulib. This has the following changes:
7423 Do not include config.h if DEBUG_MKTIME is nonzero.
7424 Include stdbool.h, intprops.h, verify.h.
7425 Include string.h only if needed.
7426 Include stdlib.h on MS-Windows.
7427 Include mktime-internal.h.
7428 (DEBUG_MKTIME): Default to 0, and simplify later uses.
7429 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
7430 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
7431 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
7432 simplify later conditionals; default the others to zero. Use
7433 these conditionals to express only the code needed on the current
7434 platform. In uses of these conditionals, explicitly spell out how
7435 _LIBC affects things, so it’s easier to review from a glibc
7436 viewpoint.
7437 (WRAPV): Remove; no longer needed now that we have
7438 systematic overflow checking.
7439 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
7440 compartmentalize tzset issues. Move system-dependent tzsettish
7441 code here from mktime.
7442 (verify): Remove; now done by verify.h. All uses changed.
7443 (long_int): Use a more-conservative definition, to avoid
7444 integer overflow.
7445 (SHR): Remove, replacing with ...
7446 (shr): New function, which means we needn’t worry about side
7447 effects in args, and conversion analysis is simpler.
7448 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
7449 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
7450 (time_t_avg, time_t_add_ok): Remove.
7451 (mktime_min, mktime_max): New constants.
7452 (leapyear, isdst_differ): Use bool for booleans.
7453 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
7454 Use long_int, not time_t, for mktime differences.
7455 (long_int_avg): New function, replacing time_t_avg.
7456 INT_ADD_WRAPV replaces time_t_add_ok.
7457 (guess_time_tm): 6th arg is now long_int, not time_t const *.
7458 All uses changed.
7459 (convert_time): New function.
7460 (ranged_convert): Use it.
7461 (__mktime_internal): Last arg now points to mktime_offset_t, not
7462 time_t. All uses changed. This is a no-op on glibc, where
7463 mktime_offset_t is always time_t. Use int, not time_t, for UTC
7464 offset guess. Directly check for integer overflow instead of
7465 using a heuristic that works only 99.9...% of the time.
7466 Access *OFFSET only once, to avoid an unlikely race if the
7467 compiler delays a load and if this cascades into a signed integer
7468 overflow.
7469 (mktime): Move tzsettish code to my_tzset, and move
7470 localtime_offset to within mktime so that it doesn’t
7471 need a separate ifdef.
7472 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
7473 instead of localtime.
7474 * time/timegm.c: Copy from Gnulib. This has the following changes:
7475 Include mktime-internal.h.
7476 [!_LIBC]: Include config.h and time.h. Do not include
7477 timegm.h or time_r.h. Make __mktime_internal a macro,
7478 and include mktime-internal.h to get its declaration.
7479 (timegm): Temporary is now mktime_offset_t, not time_t.
7480 This affects only Gnulib.
7481
7482 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
7483
7484 [BZ #23637]
7485 * string/test-strstr.c (pr23637): New function.
7486 (test_main): Add tests with longer needles.
7487 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
7488 * string/strstr.c (AVAILABLE): Likewise.
7489
7490 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
7491
7492 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
7493
7494 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
7495
7496 * NEWS: Mention pow improvements.
7497 * math/Makefile (type-double-routines): Add e_pow_log_data.
7498 * sysdeps/generic/math_private.h (__exp1): Remove.
7499 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
7500 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
7501 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
7502 contraction.
7503 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
7504 (exp_inline): Remove.
7505 (__ieee754_exp): Only single double input is handled.
7506 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
7507 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
7508 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
7509 (__pow_log_data): Define.
7510 * sysdeps/ieee754/dbl-64/upow.h: Remove.
7511 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
7512 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
7513 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
7514 contraction.
7515 (CFLAGS-e_pow-fma4.c): Likewise.
7516
7517 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
7518
7519 Simplify tzfile fstat failure code
7520 [BZ #21716]
7521 * time/tzfile.c (__tzfile_read): Simplify slightly.
7522
7523 Fix tzfile low-memory assertion failure
7524 [BZ #21716]
7525 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
7526 when registering time zone abbreviations.
7527
7528 2018-09-18 Joseph Myers <joseph@codesourcery.com>
7529
7530 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
7531 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
7532 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
7533 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
7534 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
7535 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
7536 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
7537 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
7538 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
7539
7540 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
7541 __ceil.
7542 (__ceill): Call ceil instead of __ceil.
7543 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
7544 __floor.
7545 (__floorl): Call floor instead of __floor.
7546
7547 2018-09-17 Joseph Myers <joseph@codesourcery.com>
7548
7549 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7550 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
7551 using MATH_REDIRECT.
7552 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
7553 header inclusion.
7554 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
7555 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
7556 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
7557 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
7558 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
7559 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
7560 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
7561 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
7562 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
7563 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
7564 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
7565 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
7566 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
7567 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
7568 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
7569 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
7570 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
7571 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
7572 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
7573 Remove macro.
7574 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
7575 functions instead of __ceil variants.
7576 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
7577 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
7578 Likewise.
7579 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
7580 Likewise.
7581 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7582 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
7583 Likewise.
7584 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7585 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7586
7587 [BZ #21286]
7588 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
7589 constant.
7590 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
7591 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
7592 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
7593 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
7594 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
7595 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
7596 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
7597 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
7598 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
7599 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
7600 (ILL_BADIADDR): Remove constant.
7601 (TRAP_BRANCH): Likewise.
7602 (TRAP_HWBKPT): Likewise.
7603
7604 2018-09-14 Joseph Myers <joseph@codesourcery.com>
7605
7606 [BZ #23656]
7607 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
7608 Remove [_MIPS_SIM = _ABIN32] conditional case.
7609 (struct elf_prpsinfo): Likewise.
7610
7611 [BZ #23649]
7612 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
7613 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
7614 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
7615 Likewise.
7616 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
7617 elf_prpsinfo): Likewise.
7618 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
7619 elf_prpsinfo): Likewise.
7620 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
7621 Likewise.
7622
7623 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7624 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
7625 using MATH_REDIRECT.
7626 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
7627 header inclusion.
7628 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
7629 * sysdeps/alpha/fpu/s_rint.c: Likewise.
7630 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
7631 * sysdeps/i386/fpu/s_rintl.c: Likewise.
7632 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
7633 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
7634 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
7635 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
7636 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
7637 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7638 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
7639 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
7640 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
7641 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
7642 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
7643 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
7644 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
7645 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
7646 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
7647 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
7648 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
7649 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
7650 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
7651 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
7652 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
7653 * sysdeps/x86_64/fpu/math_private.h: Remove file.
7654 * math/e_scalb.c (invalid_fn): Use rint functions instead of
7655 __rint variants.
7656 * math/e_scalbf.c (invalid_fn): Likewise.
7657 * math/e_scalbl.c (invalid_fn): Likewise.
7658 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
7659 Likewise.
7660 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
7661 Likewise.
7662 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
7663 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
7664 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
7665 Likewise.
7666 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
7667 Likewise.
7668 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7669 Likewise.
7670 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
7671 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
7672
7673 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7674 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
7675 New macro.
7676 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7677 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
7678 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7679 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
7680 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7681 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
7682 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7683 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
7684 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7685 && !NO_MATH_REDIRECT] (floor): Likewise.
7686 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
7687 header inclusion.
7688 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
7689 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
7690 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
7691 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
7692 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
7693 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
7694 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7695 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
7696 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
7697 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
7698 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
7699 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
7700 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7701 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7702 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
7703 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
7704 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
7705 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
7706 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
7707 Remove macro.
7708 [_ARCH_PWR5X] (__floorf): Likewise.
7709 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
7710 inline function.
7711 [__SSE4_1__] (__floorf): Likewise.
7712 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
7713 instead of __floor variants.
7714 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
7715 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
7716 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
7717 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
7718 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
7719 * math/w_tgamma_compat.c (__tgamma): Likewise.
7720 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
7721 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
7722 * math/w_tgammal_compat.c (__tgammal): Likewise.
7723 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
7724 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
7725 Likewise.
7726 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
7727 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
7728 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
7729 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
7730 Likewise.
7731 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
7732 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
7733 Likewise.
7734 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
7735 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
7736 Likewise.
7737 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
7738 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
7739 Likewise.
7740 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
7741 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7742 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
7743 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
7744 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7745 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7746
7747 2018-09-12 Joseph Myers <joseph@codesourcery.com>
7748
7749 * elf/Makefile (modules-names-tests): New variable.
7750
7751 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
7752
7753 * NEWS: Mention log2 improvements.
7754 * math/Makefile (type-double-routines): Add e_log2_data.
7755 * sysdeps/i386/fpu/e_log2_data.c: New file.
7756 * sysdeps/ia64/fpu/e_log2_data.c: New file.
7757 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
7758 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
7759 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
7760 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
7761 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
7762
7763 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
7764
7765 * NEWS: Mention log improvement.
7766 * math/Makefile (type-double-routines): Add e_log_data.
7767 * sysdeps/i386/fpu/e_log_data.c: New file.
7768 * sysdeps/ia64/fpu/e_log_data.c: New file.
7769 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
7770 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
7771 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
7772 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
7773 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
7774 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
7775
7776 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
7777 Xuepeng Guo <xuepeng.guo@intel.com>
7778
7779 [BZ #23606]
7780 * sysdeps/i386/start.S: Include <sysdep.h>
7781 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
7782 enabled. Add cfi_undefined (eip).
7783
7784 2018-09-11 Joseph Myers <joseph@codesourcery.com>
7785
7786 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
7787 (MOVQ): Likewise.
7788 (EXTRACT_WORDS64): Likewise.
7789 (INSERT_WORDS64): Likewise.
7790 (GET_FLOAT_WORD): Likewise.
7791 (SET_FLOAT_WORD): Likewise.
7792
7793 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
7794 argument.
7795 (Config.build_gcc): Use --disable-libsanitizer for first GCC
7796 build, but not for second build if --full-gcc. Use
7797 --enable-languages=all for second build if --full-gcc.
7798 (get_parser): Add --full-gcc option.
7799 (main): Update call to Context.
7800
7801 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
7802
7803 [BZ #10797]
7804 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
7805 Single Quotation Mark).
7806 (thousands_sep): Likewise.
7807 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
7808 * localedata/locales/it_IT (thousands_sep): Use ".".
7809 (grouping): Use "3;3".
7810
7811 2018-09-10 Joseph Myers <joseph@codesourcery.com>
7812
7813 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
7814 x86_64 and i686 configs using --enable-obsolete-rpc
7815 --enable-obsolete-nsl.
7816
7817 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
7818
7819 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
7820
7821 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
7822
7823 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
7824 Increment size of new_argv by one.
7825
7826 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
7827
7828 [BZ #17426]
7829 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
7830 * localedata/locales/ar_IN (d_fmt): Likewise.
7831 * localedata/locales/bhb_IN (d_fmt): Likewise.
7832 * localedata/locales/bho_IN (d_fmt): Likewise.
7833 * localedata/locales/bn_BD (d_fmt): Likewise.
7834 * localedata/locales/bn_IN (d_fmt): Likewise.
7835 * localedata/locales/doi_IN (d_fmt): Likewise.
7836 * localedata/locales/gu_IN (d_fmt): Likewise.
7837 * localedata/locales/hi_IN (d_fmt): Likewise.
7838 * localedata/locales/hne_IN (d_fmt): Likewise.
7839 * localedata/locales/kn_IN (d_fmt): Likewise.
7840 * localedata/locales/mag_IN (d_fmt): Likewise.
7841 * localedata/locales/mai_IN (d_fmt): Likewise.
7842 * localedata/locales/mjw_IN (d_fmt): Likewise.
7843 * localedata/locales/ml_IN (d_fmt): Likewise.
7844 * localedata/locales/mni_IN (d_fmt): Likewise.
7845 * localedata/locales/mr_IN (d_fmt): Likewise.
7846 * localedata/locales/pa_IN (d_fmt): Likewise.
7847 * localedata/locales/raj_IN (d_fmt): Likewise.
7848 * localedata/locales/sat_IN (d_fmt): Likewise.
7849 * localedata/locales/sd_IN (d_fmt): Likewise.
7850 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
7851 * localedata/locales/ta_IN (d_fmt): Likewise.
7852 * localedata/locales/ta_LK (d_fmt): Likewise.
7853 * localedata/locales/tcy_IN (d_fmt): Likewise.
7854 * localedata/locales/ur_IN (d_fmt): Likewise.
7855
7856 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
7857 * localedata/locales/ks_IN (d_fmt): Likewise.
7858 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
7859
7860 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
7861 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
7862 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
7863 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
7864
7865 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
7866
7867 * NEWS: Mention exp and exp2 improvements.
7868 * math/Makefile (libm-support): Remove t_exp.
7869 (type-double-routines): Add math_err and e_exp_data.
7870 * sysdeps/aarch64/libm-test-ulps: Update.
7871 * sysdeps/arm/libm-test-ulps: Update.
7872 * sysdeps/i386/fpu/e_exp_data.c: New file.
7873 * sysdeps/i386/fpu/math_err.c: New file.
7874 * sysdeps/i386/fpu/t_exp.c: Remove.
7875 * sysdeps/ia64/fpu/e_exp_data.c: New file.
7876 * sysdeps/ia64/fpu/math_err.c: New file.
7877 * sysdeps/ia64/fpu/t_exp.c: Remove.
7878 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
7879 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
7880 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
7881 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
7882 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
7883 * sysdeps/ieee754/dbl-64/math_config.h: New file.
7884 * sysdeps/ieee754/dbl-64/math_err.c: New file.
7885 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
7886 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
7887 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
7888 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
7889 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
7890 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
7891 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
7892 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7893 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7894
7895 2018-09-05 Joseph Myers <joseph@codesourcery.com>
7896
7897 * sysdeps/alpha/fpu/math_private.h: Remove.
7898
7899 * sysdeps/generic/math_private.h
7900 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
7901 Move this inline function ....
7902 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
7903 * include/math.h [!_ISOMAC]: To here....
7904
7905 2018-09-04 Joseph Myers <joseph@codesourcery.com>
7906
7907 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
7908 code ....
7909 [!FE_HAVE_ROUNDING_MODES]: And this code ....
7910 * include/fenv.h [!_ISOMAC]: ... to here.
7911 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
7912 (feraiseexcept): Likewise.
7913 * math/fromfp.h: Do not include <fenv_private.h>.
7914 * math/s_cexp_template.c: Likewise.
7915 * math/s_csin_template.c: Likewise.
7916 * math/s_csinh_template.c: Likewise.
7917 * math/s_ctan_template.c: Likewise.
7918 * math/s_ctanh_template.c: Likewise.
7919 * math/s_iseqsig_template.c: Likewise.
7920 * math/w_acos_compat.c: Likewise.
7921 * math/w_acosf_compat.c: Likewise.
7922 * math/w_acosl_compat.c: Likewise.
7923 * math/w_asin_compat.c: Likewise.
7924 * math/w_asinf_compat.c: Likewise.
7925 * math/w_asinl_compat.c: Likewise.
7926 * math/w_j0_compat.c: Likewise.
7927 * math/w_j0f_compat.c: Likewise.
7928 * math/w_j0l_compat.c: Likewise.
7929 * math/w_j1_compat.c: Likewise.
7930 * math/w_j1f_compat.c: Likewise.
7931 * math/w_j1l_compat.c: Likewise.
7932 * math/w_jn_compat.c: Likewise.
7933 * math/w_jnf_compat.c: Likewise.
7934 * math/w_log10_compat.c: Likewise.
7935 * math/w_log10f_compat.c: Likewise.
7936 * math/w_log10l_compat.c: Likewise.
7937 * math/w_log2_compat.c: Likewise.
7938 * math/w_log2f_compat.c: Likewise.
7939 * math/w_log2l_compat.c: Likewise.
7940 * math/w_log_compat.c: Likewise.
7941 * math/w_logf_compat.c: Likewise.
7942 * math/w_logl_compat.c: Likewise.
7943 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7944 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7945 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7946 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7947 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7948 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7949 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7950 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7951 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7952 * sysdeps/ieee754/k_standardl.c: Likewise.
7953 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7954 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7955 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7956 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7957 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7958 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7959 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7960 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7961 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7962 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7963 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7964 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7965 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7966 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7967 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7968 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7969 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7970 * math/w_ilogb_template.c: Include <fenv.h> instead of
7971 <fenv_private.h>.
7972 * math/w_llogb_template.c: Likewise.
7973 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7974 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7975
7976 2018-09-03 Joseph Myers <joseph@codesourcery.com>
7977
7978 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
7979 * math/fromfp.h: Include <fenv_private.h>.
7980 * math/math-narrow.h: Likewise.
7981 * math/s_cexp_template.c: Likewise.
7982 * math/s_csin_template.c: Likewise.
7983 * math/s_csinh_template.c: Likewise.
7984 * math/s_ctan_template.c: Likewise.
7985 * math/s_ctanh_template.c: Likewise.
7986 * math/s_iseqsig_template.c: Likewise.
7987 * math/w_acos_compat.c: Likewise.
7988 * math/w_acosf_compat.c: Likewise.
7989 * math/w_acosl_compat.c: Likewise.
7990 * math/w_asin_compat.c: Likewise.
7991 * math/w_asinf_compat.c: Likewise.
7992 * math/w_asinl_compat.c: Likewise.
7993 * math/w_ilogb_template.c: Likewise.
7994 * math/w_j0_compat.c: Likewise.
7995 * math/w_j0f_compat.c: Likewise.
7996 * math/w_j0l_compat.c: Likewise.
7997 * math/w_j1_compat.c: Likewise.
7998 * math/w_j1f_compat.c: Likewise.
7999 * math/w_j1l_compat.c: Likewise.
8000 * math/w_jn_compat.c: Likewise.
8001 * math/w_jnf_compat.c: Likewise.
8002 * math/w_llogb_template.c: Likewise.
8003 * math/w_log10_compat.c: Likewise.
8004 * math/w_log10f_compat.c: Likewise.
8005 * math/w_log10l_compat.c: Likewise.
8006 * math/w_log2_compat.c: Likewise.
8007 * math/w_log2f_compat.c: Likewise.
8008 * math/w_log2l_compat.c: Likewise.
8009 * math/w_log_compat.c: Likewise.
8010 * math/w_logf_compat.c: Likewise.
8011 * math/w_logl_compat.c: Likewise.
8012 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
8013 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
8014 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
8015 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
8016 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
8017 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
8018 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
8019 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
8020 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
8021 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
8022 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
8023 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
8024 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
8025 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
8026 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
8027 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
8028 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
8029 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
8030 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
8031 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
8032 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
8033 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
8034 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
8035 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
8036 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
8037 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
8038 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
8039 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
8040 * sysdeps/ieee754/float128/float128_private.h: Likewise.
8041 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
8042 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
8043 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
8044 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
8045 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
8046 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
8047 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
8048 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
8049 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
8050 * sysdeps/ieee754/k_standardl.c: Likewise.
8051 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
8052 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
8053 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
8054 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
8055 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
8056 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
8057 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
8058 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
8059 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
8060 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
8061 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
8062 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
8063 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
8064 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
8065 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
8066 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
8067 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
8068 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
8069 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
8070 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
8071 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
8072 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
8073 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
8074 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
8075 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
8076 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
8077 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
8078 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
8079 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
8080 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
8081 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
8082 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
8083 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
8084 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
8085 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
8086 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
8087 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
8088 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
8089 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
8090 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
8091 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
8092 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
8093 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
8094 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
8095 * sysdeps/riscv/rvd/s_finite.c: Likewise.
8096 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
8097 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
8098 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
8099 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
8100 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
8101 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
8102 * sysdeps/riscv/rvf/fegetround.c: Likewise.
8103 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
8104 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
8105 * sysdeps/riscv/rvf/fesetround.c: Likewise.
8106 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
8107 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
8108 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
8109 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
8110 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
8111 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
8112 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
8113 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
8114 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
8115 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
8116 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
8117 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
8118 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
8119 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
8120 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
8121 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
8122
8123 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
8124
8125 [BZ #20271]
8126 * include/stdio.h (__libc_fatal): Mention newline in comment.
8127 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
8128 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
8129 * nscd/initgrcache.c (addinitgroupsX): Likewise.
8130 * nss/nsswitch.c (__nss_next2): Likewise.
8131 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
8132 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
8133 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
8134 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
8135 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
8136 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
8137 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
8138 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
8139 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
8140 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
8141 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
8142 * sysdeps/unix/sysv/linux/netlink_assert_response.c
8143 (__netlink_assert_response): Likewise.
8144
8145 2018-08-31 Joseph Myers <joseph@codesourcery.com>
8146
8147 * conform/glibcconform.py: New file.
8148 * conform/list-header-symbols.py: Likewise.
8149 * conform/list-header-symbols.pl: Remove.
8150 * conform/Makefile (tests-special): Only add linknamespace tests
8151 if [PYTHON].
8152 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
8153
8154 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
8155
8156 [BZ #23597]
8157 * support/Makefile (libsupport-routines): Add
8158 support_copy_file_range and xcopy_file_range.
8159 * support/support.h: Include <sys/types.h>.
8160 (support_copy_file_range): New prototype.
8161 * support/support_copy_file_range.c: New file. Copied and
8162 modified from io/copy_file_range-compat.c.
8163 * support/test-container.c (copy_one_file): Call xcopy_file_rang
8164 instead of copy_file_range.
8165 * support/xcopy_file_range.c: New file.
8166 * support/xunistd.h (xcopy_file_range): New prototype.
8167
8168 2018-08-30 Carlos O'Donell <carlos@redhat.com>
8169
8170 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
8171 xpthread_create and xpthread_join.
8172
8173 2018-08-30 Florian Weimer <fweimer@redhat.com>
8174
8175 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
8176
8177 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
8178
8179 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
8180 if malloc fails.
8181
8182 2018-08-29 Joseph Myers <joseph@codesourcery.com>
8183
8184 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
8185 and minus_oflow as non-finite.
8186
8187 2018-08-28 Joseph Myers <joseph@codesourcery.com>
8188
8189 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
8190 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
8191 moved to fenv_private.h except for ...
8192 (TOINT_INTRINSICS): Kept in math_private.h.
8193 (roundtoint): Likewise.
8194 (converttoint): Likewise.
8195 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
8196 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
8197 * sysdeps/arm/math_private.h: Remove.
8198 * sysdeps/generic/fenv_private.h: New file. Contents moved from
8199 ....
8200 * sysdeps/generic/math_private.h: ... this file. Include
8201 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
8202 Include <fenv_private.h>. Remove functions and macros moved to
8203 fenv_private.h.
8204 * sysdeps/i386/fpu/math_private.h: Remove.
8205 * sysdeps/mips/math_private.h: Move to ....
8206 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
8207 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
8208 [__mips_hard_float] conditional. Include next <fenv_private.h>.
8209 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
8210 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
8211 * sysdeps/powerpc/fpu/math_private.h: Do not include
8212 <fenv_private.h>.
8213 * sysdeps/riscv/rvf/math_private.h: Move to ....
8214 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
8215 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
8216 <fenv_private.h>.
8217 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
8218 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
8219 * sysdeps/sparc/fpu/math_private.h: Remove.
8220 * sysdeps/i386/fpu/fenv_private.h: Move to ....
8221 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
8222 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
8223 <fenv_private.h>.
8224 * sysdeps/x86_64/fpu/math_private.h: Do not include
8225 <sysdeps/i386/fpu/fenv_private.h>.
8226
8227 2018-08-28 Florian Weimer <fweimer@redhat.com>
8228
8229 [BZ #23578]
8230 * posix/tst-regcomp-truncated.c: New file.
8231 * posix/Makefile (tests): Add it.
8232 (tst-regcomp-truncated.out): Depend on generated locales.
8233
8234 2018-08-28 Florian Weimer <fweimer@redhat.com>
8235
8236 * support/test-container.c (main): Treat unshare failure with
8237 EPERM as an unsupported test.
8238
8239 2018-08-28 Florian Weimer <fweimer@redhat.com>
8240
8241 [BZ #23520]
8242 nscd: Fix use-after-free in addgetnetgrentX and its callers.
8243 * nscd/netgroupcache.c
8244 (addgetnetgrentX): Add tofreep parameter. Do not free
8245 heap-allocated buffer.
8246 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
8247 (addgetnetgrentX_ignore): New function.
8248 (addgetnetgrent): Call it.
8249 (readdgetnetgrent): Likewise.
8250
8251 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
8252
8253 * string/memmem.c: Use memcmp for first match.
8254
8255 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
8256
8257 [BZ #17426]
8258 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
8259
8260 2018-08-27 DJ Delorie <dj@redhat.com>
8261
8262 * support/Makefile (others): Don't list programs explicitly as a
8263 dependency of "others".
8264
8265 2018-08-27 Joseph Myers <joseph@codesourcery.com>
8266
8267 * sysdeps/generic/math-tests-trap-force.h: New file.
8268 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
8269 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
8270 * sysdeps/powerpc/math-tests.h: Remove file.
8271 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
8272
8273 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
8274 Torvald Riegel <triegel@redhat.com>
8275
8276 [BZ #23538]
8277 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
8278 Update r to include the set wake-request flag if waiters are
8279 remaining after spinning.
8280
8281 2018-08-27 Joseph Myers <joseph@codesourcery.com>
8282
8283 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
8284
8285 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
8286
8287 [BZ #23578]
8288 regex: fix uninitialized memory access
8289 I introduced this bug into gnulib in commit
8290 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
8291 eventually it was merged into glibc. The bug was found by
8292 project-repo <bugs@feusi.co> and reported here:
8293 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
8294 Diagnosis and draft fix reported by Assaf Gordon here:
8295 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
8296 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
8297 * posix/regex_internal.c (build_wcs_upper_buffer):
8298 Fix bug when mbrtowc returns 0.
8299
8300 2018-08-24 Carlos O'Donell <carlos@redhat.com>
8301
8302 * po/be.po: Update translation.
8303
8304 2018-08-24 DJ Delorie <dj@delorie.com>
8305
8306 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
8307 $(libunwind).
8308
8309 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
8310
8311 [BZ #23400]
8312 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
8313 create temporary files in source tree.
8314
8315 2018-08-24 Joseph Myers <joseph@codesourcery.com>
8316
8317 * sysdeps/generic/math-tests-trap.h: New file.
8318 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
8319 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
8320 * sysdeps/aarch64/math-tests.h: Remove file.
8321 * sysdeps/arm/math-tests.h: Likewise.
8322 * sysdeps/riscv/math-tests.h: Likewise.
8323 * sysdeps/aarch64/math-tests-trap.h: New file.
8324 * sysdeps/arm/math-tests-trap.h: Likewise.
8325 * sysdeps/riscv/math-tests-trap.h: Likewise.
8326
8327 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
8328
8329 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
8330 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
8331 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
8332 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
8333 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
8334 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
8335 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
8336 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
8337 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
8338 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
8339 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
8340 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
8341 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
8342 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
8343 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
8344 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
8345 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
8346 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
8347
8348 2018-08-23 Joseph Myers <joseph@codesourcery.com>
8349
8350 * sysdeps/generic/math-tests-exceptions.h: New file.
8351 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
8352 (EXCEPTION_TESTS_float): Do not define here.
8353 (EXCEPTION_TESTS_double): Likewise.
8354 (EXCEPTION_TESTS_long_double): Likewise.
8355 (EXCEPTION_TESTS_float128): Likewise.
8356 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
8357 Likewise.
8358 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
8359 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
8360 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
8361 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
8362 * sysdeps/mips/math-tests.h: Likewise.
8363 * sysdeps/nios2/math-tests.h: Likewise.
8364 * sysdeps/riscv/math-tests.h [!__riscv_flen]
8365 (EXCEPTION_TESTS_float): Do not define here.
8366 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
8367 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
8368 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
8369
8370 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
8371
8372 * NEWS: Move optimized sinf entry to 2.29.
8373
8374 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
8375
8376 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
8377
8378 2018-08-22 DJ Delorie <dj@redhat.com>
8379
8380 * Makefile (testroot.pristine): New rules to initialize the
8381 test-in-container "testroot".
8382 * Makerules (all-testsuite): Add tests-container.
8383 * Rules (tests-expected): Add tests-container.
8384 (binaries-all-tests): Likewise.
8385 (tests-container): New, run these tests in the testroot container.
8386 * support/Makefile (others): Add *-container, support_paths.c,
8387 xmkdirp, and links-dso-program.
8388 * support/links-dso-program-c.c: New.
8389 * support/links-dso-program.cc: New.
8390 * support/test-container.c: New.
8391 * support/shell-container.c: New.
8392 * support/echo-container.c: New.
8393 * support/true-container.c: New.
8394 * support/xmkdirp.c: New.
8395 * support/xsymlink.c: New.
8396 * support/support_paths.c: New.
8397 * support/support.h: Add support paths prototypes.
8398 * support/xunistd.h: Add xmkdirp () and xsymlink ().
8399
8400 * nss/tst-nss-test3.c: Convert to test-in-container.
8401 * nss/tst-nss-test3.root/: New.
8402
8403 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
8404
8405 regex: port Gnulib code to z/OS POSIX environment
8406 Problem reported by Arnold Robbins in:
8407 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
8408 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
8409 Undef.
8410
8411 2018-08-22 Joseph Myers <joseph@codesourcery.com>
8412
8413 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
8414 (ROUNDING_TESTS_double): Remove.
8415 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
8416 (ROUNDING_TESTS_double): Remove.
8417 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
8418 (ROUNDING_TESTS_double): Remove.
8419 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
8420 (ROUNDING_TESTS_float): Remove.
8421 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
8422 (ROUNDING_TESTS_float): Remove.
8423 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
8424 (ROUNDING_TESTS_float): Remove.
8425 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
8426 !TEST_MATHVEC here.
8427 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
8428 (IF_ROUND_INIT_FE_UPWARD): Likewise.
8429
8430 * sysdeps/generic/math-tests-rounding.h: New file.
8431 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
8432 (ROUNDING_TESTS_float): Do not define here.
8433 (ROUNDING_TESTS_double): Likewise.
8434 (ROUNDING_TESTS_long_double): Likewise.
8435 (ROUNDING_TESTS_float128): Likewise.
8436 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
8437 (ROUNDING_TESTS_double): Undefine before defining.
8438 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
8439 (ROUNDING_TESTS_double): Undefine before defining.
8440 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
8441 (ROUNDING_TESTS_double): Undefine before defining.
8442 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
8443 (ROUNDING_TESTS_float): Undefine before defining.
8444 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
8445 (ROUNDING_TESTS_float): Undefine before defining.
8446 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
8447 (ROUNDING_TESTS_float): Undefine before defining.
8448 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
8449 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
8450 not define here.
8451 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
8452 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
8453 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
8454 * sysdeps/riscv/math-tests.h [!__riscv_flen]
8455 (ROUNDING_TESTS_float): Do not define here.
8456 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
8457 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
8458 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
8459 (ROUNDING_TESTS_float): Likewise.
8460 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
8461 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
8462 * sysdeps/mips/math-tests.h [__mips_soft_float]
8463 (ROUNDING_TESTS_float): Likewise.
8464 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
8465 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
8466 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
8467 (ROUNDING_TESTS_double): Likewise.
8468 (ROUNDING_TESTS_long_double): Likewise.
8469
8470 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
8471
8472 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
8473 (PF_XDP): New macro.
8474 (AF_XDP): New macro.
8475 (SOL_XDP): New macro.
8476
8477 2018-08-21 Joseph Myers <joseph@codesourcery.com>
8478
8479 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
8480 (TCP_INQ): Likewise.
8481 (TCP_CM_INQ): Likewise.
8482 (TCP_REPAIR_ON): Likewise.
8483 (TCP_REPAIR_OFF): Likewise.
8484 (TCP_REPAIR_OFF_NO_WP): Likewise.
8485 (struct tcp_zerocopy_receive): New type.
8486
8487 2018-08-21 Florian Weimer <fweimer@redhat.com>
8488
8489 * support/support.h (support_descriptor_supports_holes): Declare.
8490 * support/Makefile (libsupport-routines): Add
8491 support_descriptor_supports_holes.
8492 * support/support_descriptor_supports_holes.c: New file.
8493 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
8494 and stop testing if holes are not supported.
8495 * io/test-lfs.c (do_prepare): Likewise.
8496 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
8497 Likewise.
8498 * timezone/tst-tzset.c (create_tz_file): Likewise.
8499 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
8500 variable.
8501 (do_prepare): Set it.
8502 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
8503
8504 2018-08-21 Florian Weimer <fweimer@redhat.com>
8505
8506 [BZ #17248]
8507 * Makeconfig (+cflags): Do not sort (and deduplicate).
8508
8509 2018-08-21 Florian Weimer <fweimer@redhat.com>
8510
8511 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
8512 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
8513
8514 2018-08-20 Florian Weimer <fweimer@redhat.com>
8515
8516 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
8517 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
8518
8519 2018-08-20 Joseph Myers <joseph@codesourcery.com>
8520
8521 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
8522 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
8523 and ssi_arch members.
8524
8525 * elf/elf.c (NT_VMCOREDD): New macro.
8526 (AT_MINSIGSTKSZ): Likewise.
8527
8528 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
8529
8530 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
8531 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
8532 s_cosf-ppc64 and s_cosf-power8.
8533 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
8534 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
8535 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
8536 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
8537 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
8538 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
8539 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
8540 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
8541 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
8542 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
8543 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
8544 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
8545
8546 2018-08-17 Florian Weimer <fweimer@redhat.com>
8547
8548 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
8549
8550 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
8551
8552 * malloc/malloc.c (_int_malloc): Additional binning code checks.
8553
8554 2018-08-16 Florian Weimer <fweimer@redhat.com>
8555
8556 * configure.ac: Add --with-nonshared-cflags option.
8557 * config.make.in (extra-nonshared-cflags): Set variable.
8558 * Makeconfig (CFLAGS-.oS): Use it.
8559 * manual/install.texi (Configuring and compiling): Document
8560 --with-nonshared-cflags.
8561 * configure: Regenerate.
8562 * INSTALL: Likewise.
8563
8564 2018-08-16 Florian Weimer <fweimer@redhat.com>
8565
8566 * Makeconfig (ASFLAGS): Always append required assembler flags.
8567
8568 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
8569
8570 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
8571 (malloc_consolidate): Likewise.
8572
8573 2018-08-16 Pochang Chen <johnchen902@gmail.com>
8574
8575 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
8576
8577 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
8578
8579 * benchtests/bench-strlen.c (do_test): Allocate buffers before
8580 every strlen call.
8581
8582 * benchtests/bench-strlen.c: Print performance numbers in json.
8583
8584 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
8585
8586 * sysdeps/powerpc/powerpc64/multiarch/Makefile
8587 (sysdep_routines): Build strcmp-power9 and strncmp-power9
8588 only for little endian.
8589 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
8590 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
8591 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
8592 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
8593 Add check for little endian.
8594 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
8595 (__strcmp_power9): Add check for little endian.
8596 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
8597 Add check for little endian.
8598 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
8599 (__strncmp_power9): Add check for little endian.
8600 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
8601 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
8602 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
8603 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
8604 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
8605
8606 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
8607
8608 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
8609 [!STRLEN](STRLEN): Set to __strlen.
8610 * sysdeps/aarch64/multiarch/strlen.c: New file.
8611 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
8612 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
8613 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
8614 (__libc_ifunc_impl_list): Add strlen.
8615 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
8616 strlen_generic and strlen_asimd.
8617
8618 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
8619
8620 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
8621 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
8622 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
8623
8624 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
8625
8626 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
8627
8628 2018-08-14 Florian Weimer <fweimer@redhat.com>
8629
8630 [BZ #23519]
8631 * include/stdio.h (__vfxprintf): Declare.
8632 * stdio-common/fxprintf.c (__vfxprintf): New function.
8633 (__fxprintf): Call it.
8634 * misc/err.c (convert_and_print): Remove function.
8635 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
8636 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
8637 * misc/Makefile (tests): Add tst-warn-wide.
8638 * misc/tst-warn-wide.c: New file.
8639
8640 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
8641 Szabolcs Nagy <szabolcs.nagy@arm.com>
8642
8643 * NEWS: Mention sinf, cosf, sincosf.
8644 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
8645 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
8646 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
8647 constants rather than including generic sincosf.h.
8648 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
8649 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
8650 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
8651 (reduced_cos): Remove.
8652 (sinf_poly): New function.
8653 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
8654
8655 2018-08-14 Florian Weimer <fweimer@redhat.com>
8656
8657 [BZ #23521]
8658 [BZ #23522]
8659 * nss/nss_files/files-alias.c (get_next_alias): During :include:
8660 processing, bail out if no room, and close the stream before
8661 returning ERANGE.
8662 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
8663 (tst-nss-files-alias-leak): Link with libdl.
8664 (tst-nss-files-alias-leak.out): Depend on nss_files.
8665
8666 * nss/tst-nss-files-alias-leak.c: New file.
8667
8668 2018-08-14 Florian Weimer <fweimer@redhat.com>
8669
8670 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
8671 server_user, stat_user.
8672
8673 2018-08-13 Joseph Myers <joseph@codesourcery.com>
8674
8675 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
8676 version to 4.18.
8677 (io_pgetevents): New syscall.
8678 (rseq): Likewise.
8679
8680 * manual/install.texi (Configuring and compiling): Do not list
8681 tools used for testing pretty printers here.
8682 (Tools for Compilation): List Python, PExpect and GDB here.
8683 Update descriptions of uses of Perl and Python.
8684 * INSTALL: Regenerate.
8685
8686 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
8687 version to 4.18.
8688
8689 2018-08-13 Florian Weimer <fweimer@redhat.com>
8690
8691 * misc/error.c (error): Add missing va_end call.
8692 (error_at_line): Likewise.
8693
8694 2018-08-13 Florian Weimer <fweimer@redhat.com>
8695
8696 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
8697
8698 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
8699
8700 * benchtests/scripts/benchout.schema.json (properties): Add
8701 new properties.
8702
8703 * benchtests/bench-skeleton.c (main): Add duration and
8704 iterations attributes.
8705
8706 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
8707
8708 regex: Gnulib unibyte RRI uses bytes not chars
8709 Adjust the non-glibc code to agree with what Gawk needs for
8710 rational range interpretation (RRI) for regular expression ranges.
8711 In unibyte locales, Gawk wants ranges to use the underlying byte
8712 rather than the character code point. This change does not affect
8713 glibc proper.
8714 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
8715 In unibyte locales, use the byte value rather than
8716 running it through btowc.
8717
8718 2018-08-10 Joseph Myers <joseph@codesourcery.com>
8719
8720 * sysdeps/generic/math-tests-snan.h: New file.
8721 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
8722 (SNAN_TESTS_float): Do not define here.
8723 (SNAN_TESTS_double): Likewise.
8724 (SNAN_TESTS_long_double): Likewise.
8725 (SNAN_TESTS_float128): Likewise.
8726 * sysdeps/i386/fpu/math-tests-snan.h: New file.
8727 * sysdeps/i386/fpu/math-tests.h: Remove file.
8728 * sysdeps/ia64/math-tests-snan.h: New file.
8729 * sysdeps/ia64/math-tests.h: Remove file.
8730 * sysdeps/x86/math-tests.h: Likewise.
8731 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
8732
8733 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
8734 Szabolcs Nagy <szabolcs.nagy@arm.com>
8735
8736 * math/Makefile: Add s_sincosf_data.c.
8737 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
8738 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
8739 (sincosf_poly): Likewise.
8740 (reduce_small): Likewise.
8741 (reduce_large): Likewise.
8742 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
8743 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
8744 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
8745 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
8746
8747 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
8748 Szabolcs Nagy <szabolcs.nagy@arm.com>
8749
8750 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
8751 (converttoint): Use lround.
8752 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
8753 document the semantics when TOINT_INTRINSICS is set.
8754 (converttoint): Likewise.
8755 (TOINT_RINT): Remove.
8756 (TOINT_SHIFT): Remove.
8757 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
8758 path.
8759
8760 2018-08-10 Florian Weimer <fweimer@redhat.com>
8761
8762 [BZ #23497]
8763 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
8764 function.
8765 (__old_getdents64): Use getdents64. Convert entries without
8766 moving them.
8767 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
8768 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
8769 tst-readdir64-compat.
8770
8771 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8772
8773 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
8774 Fix unwind.
8775
8776 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8777
8778 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
8779 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
8780 code to s390x-mcount.h and #include it.
8781 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
8782 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
8783 (__fentry__): Add.
8784
8785 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8786
8787 * stdlib/Versions: Remove __fentry__.
8788 * sysdeps/i386/Versions: Add __fentry__.
8789 * sysdeps/x86_64/Versions: Add __fentry__.
8790
8791 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8792
8793 * sysdeps/s390/Makefile: Register the new tests.
8794 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
8795 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
8796 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
8797 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
8798 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
8799 * sysdeps/s390/tst-dl-runtime.c: New file.
8800
8801 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8802
8803 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8804 Do not clobber R0.
8805
8806 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8807
8808 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8809 Do not clobber R0.
8810
8811 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8812
8813 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8814 Do not clobber R0.
8815
8816 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8817
8818 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8819 Do not clobber R0.
8820
8821 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8822
8823 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8824 Use symbolic offsets for stack variables.
8825
8826 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8827
8828 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8829 Use symbolic offsets for stack variables.
8830
8831 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8832
8833 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8834 Use symbolic offsets for stack variables.
8835
8836 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8837
8838 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8839 Use symbolic offsets for stack variables.
8840
8841 2018-08-09 Joseph Myers <joseph@codesourcery.com>
8842
8843 * math/gen-libm-test.py: New file.
8844 * math/gen-libm-test.pl: Remove.
8845 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
8846 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
8847 gen-libm-test.pl.
8848 ($(libm-test-c-noauto-obj)): Likewise.
8849 ($(libm-test-c-auto-obj)): Likewise.
8850 ($(libm-test-c-narrow-obj)): Likewise.
8851 (regen-ulps): Likewise.
8852 * math/README.libm-test: Update references to gen-libm-test.pl.
8853 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
8854 referencing gen-libm-test.pl.
8855 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
8856 * math/libm-test-support.c: Likewise.
8857 * math/libm-test-support.h: Likewise.
8858 * sysdeps/generic/libm-test-ulps: Likewise.
8859
8860 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
8861
8862 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
8863 Fix value.
8864
8865 2018-08-08 Joseph Myers <joseph@codesourcery.com>
8866
8867 * math/libm-test-nextdown.inc (do_test): Move comment to ....
8868 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
8869
8870 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
8871
8872 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
8873 symbols.
8874 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
8875 __pthread_setspecific): Add hidden proto.
8876 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
8877 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
8878
8879 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
8880
8881 * benchtests/bench-string.h (buf1_size, buf2_size): New
8882 variables.
8883 (init_sizes): New function.
8884 (test_init): Use it.
8885 (alloc_buf, exit_error): New functions.
8886 (alloc_bufs): Use ALLOC_BUF.
8887 (realloc_bufs): Remove.
8888 * benchtests/bench-memcmp.c (do_test): Adjust.
8889 * benchtests/bench-memset-large.c (do_test): Likewise.
8890 * benchtests/bench-memset-walk.c (do_test): Likewise.
8891 * benchtests/bench-memset.c (do_test): Likewise.
8892 * benchtests/bench-strncmp.c (do_test): Likewise.
8893
8894 2018-08-06 Andreas Schwab <schwab@suse.de>
8895
8896 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
8897 of CONST_THREAD_AREA.
8898
8899 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
8900
8901 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
8902 (STATE_SAVE_MASK): Likewise.
8903 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
8904 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
8905 (STATE_SAVE_MASK): Likewise.
8906 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
8907 instead of <cpu-features.h>.
8908
8909 2018-08-03 DJ Delorie <dj@redhat.com>
8910
8911 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
8912 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
8913
8914 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
8915
8916 2018-08-03 Joseph Myers <joseph@codesourcery.com>
8917
8918 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
8919 after TEST_* calls.
8920 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
8921 * math/libm-test-logb.inc (logb_test_data): Likewise.
8922
8923 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
8924
8925 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
8926 * string/strstr.c (AVAILABLE): Likewise.
8927
8928 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
8929
8930 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
8931 <init-arch.h>.
8932 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
8933 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
8934 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
8935
8936 2018-08-03 Carlos O'Donell <carlos@redhat.com>
8937
8938 * po/be.po: Update translation.
8939
8940 * po/be.po: Update translation.
8941
8942 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
8943
8944 * sysdeps/x86/cpu-features-offsets.sym
8945 (rtld_global_ro_offsetof): Removed.
8946 (CPU_FEATURES_SIZE): Likewise.
8947 (CPUID_OFFSET): Likewise.
8948 (CPUID_SIZE): Likewise.
8949 (CPUID_EAX_OFFSET): Likewise.
8950 (CPUID_EBX_OFFSET): Likewise.
8951 (CPUID_ECX_OFFSET): Likewise.
8952 (CPUID_EDX_OFFSET): Likewise.
8953 (FAMILY_OFFSET): Likewise.
8954 (MODEL_OFFSET): Likewise.
8955 (FEATURE_OFFSET): Likewise.
8956 (FEATURE_SIZ): Likewise.
8957 (COMMON_CPUID_INDEX_1): Likewise.
8958 (COMMON_CPUID_INDEX_7): Likewise.
8959 (FEATURE_INDEX_1): Likewise.
8960 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
8961
8962 2018-08-02 Carlos O'Donell <carlos@redhat.com>
8963
8964 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
8965 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
8966 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
8967 (install-locales): Depend on install-locale-archive.
8968 (install-locale-archive): Define.
8969 (install-locale-files): Define.
8970 (build-one-locale): Define macro.
8971 * manual/install.texi (Running make install): Document.
8972 * manual/INSTALL: Regenerate.
8973
8974 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
8975
8976 * benchtests/scripts/compare_strings.py: Import traceback.
8977 (parse_file): Pretty-print error.
8978
8979 * NEWS: Mention the change.
8980 * elf/dl-tunables.list: Rename tune namespace to cpu.
8981 * sysdeps/powerpc/dl-tunables.list: Likewise.
8982 * sysdeps/x86/dl-tunables.list: Likewise.
8983 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
8984 cpu.name.
8985 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
8986 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
8987 * manual/README.tunables: Likewise.
8988 * manual/tunables.texi: Likewise.
8989 * sysdeps/powerpc/cpu-features.c: Likewise.
8990 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
8991 (init_cpu_features): Likewise.
8992 * sysdeps/x86/cpu-features.c: Likewise.
8993 * sysdeps/x86/cpu-features.h: Likewise.
8994 * sysdeps/x86/cpu-tunables.c: Likewise.
8995 * sysdeps/x86_64/Makefile: Likewise.
8996 * sysdeps/x86/dl-cet.c: Likewise.
8997
8998 2018-08-02 Joseph Myers <joseph@codesourcery.com>
8999
9000 [BZ #23479]
9001 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
9002 [__mips_hard_float].
9003 (FE_UNDERFLOW): Likewise.
9004 (FE_OVERFLOW): Likewise.
9005 (FE_DIVBYZERO): Likewise.
9006 (FE_INVALID): Likewise.
9007 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
9008 (FE_TOWARDZERO): Define only if [__mips_hard_float].
9009 (FE_UPWARD): Likewise.
9010 (FE_DOWNWARD): Likewise.
9011 (__FE_UNDEFINED): Define if [!__mips_hard_float]
9012 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
9013 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
9014 [__mips_hard_float].
9015 (FP_ROUNDMODE): Likewise.
9016 (FP_RND_NEAREST): Likewise.
9017 (FP_RND_ZERO): Likewise.
9018 (FP_RND_PINF): Likewise.
9019 (FP_RND_MINF): Likewise.
9020 (FP_EX_INVALID): Likewise.
9021 (FP_EX_OVERFLOW): Likewise.
9022 (FP_EX_UNDERFLOW): Likewise.
9023 (FP_EX_DIVZERO): Likewise.
9024 (FP_EX_INEXACT): Likewise.
9025 (FP_INIT_ROUNDMODE): Likewise.
9026 * sysdeps/mips/nofpu/fesetenv.c: New file.
9027 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
9028
9029 2018-08-01 Joseph Myers <joseph@codesourcery.com>
9030
9031 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
9032 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
9033 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
9034 conditional on [FE_UPWARD].
9035
9036 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
9037
9038 regex: fix memory leak in Gnulib
9039 Problem and fix reported by Assaf Gordon in:
9040 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
9041 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
9042 range_ends members too, as they are defined in 'struct
9043 re_charset_t' even if not _LIBC. This affects only Gnulib.
9044
9045 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
9046
9047 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
9048 ...
9049 (get_common_indices): This.
9050 (init_cpu_features): Updated.
9051
9052 2018-08-01 Joseph Myers <joseph@codesourcery.com>
9053
9054 * sysdeps/generic/math-tests-snan-payload.h: New file.
9055 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
9056 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
9057 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
9058 * sysdeps/generic/math-tests.h: Include
9059 <math-tests-snan-payload.h>.
9060 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
9061 * sysdeps/hppa/math-tests.h: Remove file.
9062 * sysdeps/mips/math-tests.h [!__mips_nan2008]
9063 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
9064 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
9065 Likewise.
9066
9067 * sysdeps/generic/math-tests-snan-cast.h: New file.
9068 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
9069 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
9070 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
9071 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
9072
9073 2018-08-01 Carlos O'Donel <carlos@redhat.com>
9074
9075 * version.h (RELEASE): Set to "development".
9076 (VERSION): Set to "2.28.9000".
9077 * NEWS (2.29): New section.
9078
9079 * version.h (RELEASE): Set to "stable".
9080 (VERSION): Set to "2.28".
9081 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
9082 * NEWS: Add the list of bugs fixed in 2.28.
9083
9084 * po/ca.po: Update to latest version.
9085 * po/cs.po: Likewise
9086 * po/da.po: Likewise
9087 * po/el.po: Likewise
9088 * po/eo.po: Likewise
9089 * po/es.po: Likewise
9090 * po/fi.po: Likewise
9091 * po/fr.po: Likewise
9092 * po/gl.po: Likewise
9093 * po/hu.po: Likewise
9094 * po/ia.po: Likewise
9095 * po/id.po: Likewise
9096 * po/it.po: Likewise
9097 * po/ja.po: Likewise
9098 * po/ko.po: Likewise
9099 * po/lt.po: Likewise
9100 * po/nb.po: Likewise
9101 * po/nl.po: Likewise
9102 * po/pt_BR.po: Likewise
9103 * po/ru.po: Likewise
9104 * po/rw.po: Likewise
9105 * po/sk.po: Likewise
9106 * po/sl.po: Likewise
9107 * po/tr.po: Likewise
9108 * po/zh_CN.po: Likewise
9109 * po/zh_TW.po: Likewise
9110
9111 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
9112
9113 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
9114 initialization...
9115 (init): ... before initializing libpthread.
9116
9117 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
9118 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
9119 (__mach_setup_tls): ... new function.
9120 (mach_setup_tls): New alias.
9121 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
9122 __mach_setup_thread.
9123 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
9124 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
9125 * mach/Versions [libc] (mach_setup_tls): Add symbol.
9126 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
9127
9128 2018-07-31 Carlos O'Donell <carlos@redhat.com>
9129
9130 * manual/install.texi: Update versions.
9131 * INSTALL: Regenerate.
9132
9133 * manual/contrib.texi (Contributors): Update contributions.
9134
9135 2018-07-31 Carlos O'Donell <carlos@redhat.com>
9136
9137 * po/be.po: Update translations.
9138
9139 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9140
9141 * sysdeps/sh/libm-test-ulps: Update.
9142
9143 2018-07-30 Carlos O'Donell <carlos@redhat.com>
9144
9145 * po/bg.po: Update translations.
9146 * po/de.po: Likewise.
9147 * po/hr.po: Likewise.
9148 * po/pt_BR.po: Likewise.
9149 * po/sv.po: Likewise.
9150 * po/vi.po: Likewise.
9151
9152 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
9153
9154 [BZ #23467]
9155 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
9156 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
9157 (CFLAGS-tst-cet-property-1.o): New.
9158 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
9159 ($(objpfx)tst-cet-property-2): Likewise.
9160 ($(objpfx)tst-cet-property-2.out): Likewise.
9161 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
9162 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
9163 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
9164 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
9165 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
9166
9167 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
9168
9169 [BZ #23458]
9170 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
9171
9172 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
9173
9174 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
9175 __sbrk): Do not set attribute_hidden.
9176 * sysdeps/mach/hurd/not-errno.h: New file.
9177 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
9178 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
9179
9180 2018-07-27 Carlos O'Donell <carlos@redhat.com>
9181
9182 * po/uk.po: Update translations.
9183 * po/cs.po: Likewise.
9184 * po/pl.po: Likewise.
9185
9186 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
9187
9188 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
9189 parse beyond the note end.
9190
9191 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9192
9193 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
9194 kernel does not support OFD locks.
9195 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
9196
9197 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
9198
9199 * sysdeps/mach/hurd/Versions (libc): Make __access and
9200 __access_noerrno external so they can override the ld symbols.
9201 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
9202 __writev, __open64, __access_noerrno extern so they can be overrided.
9203 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
9204 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
9205
9206 2018-07-26 Carlos O'Donell <carlos@redhat.com>
9207
9208 * po/libc.pot: Regenerate.
9209
9210 2018-07-26 Joseph Myers <joseph@codesourcery.com>
9211
9212 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
9213
9214 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
9215
9216 [BZ #23459]
9217 * sysdeps/x86/cpu-features.c (get_extended_indices): New
9218 function.
9219 (init_cpu_features): Call get_extended_indices for both Intel
9220 and AMD CPUs.
9221 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
9222 Remove "for AMD" comment.
9223
9224 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
9225
9226 [BZ # 23456]
9227 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
9228 COMMON_CPUID_INDEX_80000001.
9229
9230 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
9231
9232 * string/tst-xbzero-opt.c (use_test_buffer): New function.
9233 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
9234
9235 2018-07-26 Florian Weimer <fweimer@redhat.com>
9236
9237 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
9238 aliases for symbols not in the implementation namespace.
9239
9240 2018-07-25 Carlos O'Donell <carlos@redhat.com>
9241
9242 [BZ #23393]
9243 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
9244 lowercase in LATIN script.
9245 * localedata/Makefile (test-input): Add en_US.UTF-8.
9246 * localedata/en_US.UTF-8.in: New file.
9247 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
9248 and restore old tests.
9249 * posix/tst-regexloc.c (do_test): Add back range expression test.
9250
9251 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9252
9253 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
9254
9255 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9256
9257 * nptl/threads.h: Move to ...
9258 * sysdeps/nptl/threads.h: ... here.
9259 * sysdeps/hurd/stdc-predef.h: New file.
9260
9261 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9262
9263 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
9264 tst-cet-setcontext-1 if CET is enabled.
9265 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
9266 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
9267
9268 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9269
9270 * include/threads.h: Move to ...
9271 * sysdeps/nptl/threads.h: ... here.
9272 * sysdeps/htl/threads.h: New file.
9273 * conform/Makefile (linknamespace-libs-ISO11): Use
9274 static-thread-library instead of linking libpthread.
9275 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
9276
9277 2018-07-25 Florian Weimer <fweimer@redhat.com>
9278
9279 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
9280 nanoseconds into seconds.
9281 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
9282 (do_test): Likewise.
9283 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
9284 (do_test): Likewise. Avoid nanosecond overflow and spurious
9285 timeouts due to system load.
9286 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
9287 (child_wait): Increment it.
9288 (do_test): Wait as long as necessary until all expected threads
9289 have arrived.
9290
9291 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
9292 H.J. Lu <hongjiu.lu@intel.com>
9293
9294 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
9295 __ssp.
9296 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
9297 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
9298 (__push___start_context): New.
9299 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
9300 <asm/prctl.h>.
9301 (__getcontext): Record the current shadow stack base. Save the
9302 caller's shadow stack pointer and base.
9303 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
9304 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
9305 (__push___start_context): New prototype.
9306 (__makecontext): Call __push___start_context to allocate a new
9307 shadow stack, push __start_context onto the new stack as well
9308 as the new shadow stack.
9309 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
9310 <asm/prctl.h>.
9311 (__setcontext): Restore the target shadow stack.
9312 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
9313 <asm/prctl.h>.
9314 (__swapcontext): Record the current shadow stack base. Save
9315 the caller's shadow stack pointer and base. Restore the target
9316 shadow stack.
9317 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
9318 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
9319 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
9320
9321 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9322
9323 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
9324 tst-setcontext8 and tst-setcontext9.
9325 * stdlib/tst-setcontext6.c: New file.
9326 * stdlib/tst-setcontext7.c: Likewise.
9327 * stdlib/tst-setcontext8.c: Likewise.
9328 * stdlib/tst-setcontext9.c: Likewise.
9329
9330 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9331
9332 * stdlib/Makefile ((tests): Add tst-setcontext5.
9333 * stdlib/tst-setcontext5.c: New file.
9334
9335 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9336
9337 * stdlib/Makefile (tests): Add tst-setcontext4.
9338 * stdlib/tst-setcontext4.c: New file.
9339
9340 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9341
9342 * stdlib/Makefile (tests): Add tst-swapcontext1.
9343 * stdlib/tst-swapcontext1.c: New test.
9344
9345 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9346
9347 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
9348 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
9349 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
9350 and tst-cet-legacy-4c.
9351 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
9352 and tst-cet-legacy-mod-4.
9353 (CFLAGS-tst-cet-legacy-2.c): New.
9354 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
9355 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
9356 (CFLAGS-tst-cet-legacy-3.c): Likewise.
9357 (CFLAGS-tst-cet-legacy-4.c): Likewise.
9358 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
9359 ($(objpfx)tst-cet-legacy-1): Likewise.
9360 ($(objpfx)tst-cet-legacy-2): Likewise.
9361 ($(objpfx)tst-cet-legacy-2.out): Likewise.
9362 ($(objpfx)tst-cet-legacy-2a): Likewise.
9363 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
9364 ($(objpfx)tst-cet-legacy-4): Likewise.
9365 ($(objpfx)tst-cet-legacy-4.out): Likewise.
9366 ($(objpfx)tst-cet-legacy-4a): Likewise.
9367 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
9368 (tst-cet-legacy-4a-ENV): Likewise.
9369 ($(objpfx)tst-cet-legacy-4b): Likewise.
9370 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
9371 (tst-cet-legacy-4b-ENV): Likewise.
9372 ($(objpfx)tst-cet-legacy-4c): Likewise.
9373 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
9374 (tst-cet-legacy-4c-ENV): Likewise.
9375 * sysdeps/x86/tst-cet-legacy-1.c: New file.
9376 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
9377 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
9378 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
9379 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
9380 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
9381 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
9382 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
9383 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
9384 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
9385 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
9386
9387 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9388
9389 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
9390 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
9391 with ssp_base.
9392 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
9393 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
9394 with ssp_base.
9395
9396 2018-07-25 Andreas Schwab <schwab@suse.de>
9397
9398 [BZ #23442]
9399 * locale/weightwc.h (findidx): Handle the case where usrc is a
9400 prefix of cp but one character too short.
9401
9402 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9403
9404 * NEWS: Add ISO C threads addition.
9405
9406 2018-07-24 Florian Weimer <fweimer@redhat.com>
9407
9408 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9409 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
9410 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
9411 4.13.
9412
9413 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9414
9415 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
9416 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
9417 <sys/prctl.h> and <asm/prctl.h>.
9418 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
9419 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
9420 and <asm/prctl.h>.
9421 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
9422 ARCH_CET_LEGACY_BITMAP.
9423 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
9424 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
9425 * sysdeps/x86/libc-start.c: Include <startup.h>.
9426
9427 2018-07-24 Florian Weimer <fweimer@redhat.com>
9428
9429 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
9430 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
9431
9432 2018-07-24 Rical Jasan <rj@2c3t.io>
9433 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9434 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
9435
9436 [BZ #14092]
9437 * manual/debug.texi: Update adjacent chapter name.
9438 * manual/probes.texi: Likewise.
9439 * manual/threads.texi (ISO C Threads): New section.
9440 (POSIX Threads): Convert to a section.
9441
9442 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9443 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
9444
9445 [BZ# 14092]
9446 * nptl/Makefile (tests): Add new test files.
9447 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
9448 * nptl/tst-cnd-basic.c: Likewise.
9449 * nptl/tst-cnd-broadcast.c: Likewise.
9450 * nptl/tst-cnd-timedwait.c: Likewise.
9451 * nptl/tst-mtx-basic.c: Likewise.
9452 * nptl/tst-mtx-recursive.c: Likewise.
9453 * nptl/tst-mtx-timedlock.c: Likewise.
9454 * nptl/tst-mtx-trylock.c: Likewise.
9455 * nptl/tst-thrd-basic.c: Likewise.
9456 * nptl/tst-thrd-detach.c: Likewise.
9457 * nptl/tst-thrd-sleep.c: Likewise.
9458 * nptl/tst-tss-basic.c: Likewise.
9459
9460 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9461
9462 [BZ #14092]
9463 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
9464 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
9465 symbols.
9466 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9467 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
9468 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9469 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
9470 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9471 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9472 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9473 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9474 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9475 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9476 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9477 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9478 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9479 Likewise.
9480 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9481 Likewise.
9482 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
9483 Likewise.
9484 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
9485 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9486 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9487 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9488 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9489 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9490 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9491 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9492 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9493 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
9494 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
9495 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
9496 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
9497 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
9498 Likewise.
9499 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
9500 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
9501 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
9502 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
9503 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
9504 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
9505 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
9506 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
9507 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
9508 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
9509 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
9510 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
9511 ikewise.
9512 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
9513 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
9514 Likewise.
9515 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
9516 Likewise.
9517 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
9518 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
9519 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
9520 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
9521 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
9522 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
9523 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
9524 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
9525
9526 [BZ #14092]
9527 * conform/data/threads.h-data (thread_local): New macro.
9528 (TSS_DTOR_ITERATIONS): Likewise.
9529 (tss_t): New type.
9530 (tss_dtor_t): Likewise.
9531 (tss_create): New function.
9532 (tss_get): Likewise.
9533 (tss_set): Likewise.
9534 (tss_delete): Likewise.
9535 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
9536 tss_get, and tss_set objects.
9537 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
9538 * nptl/tss_create.c: New file.
9539 * nptl/tss_delete.c: Likewise.
9540 * nptl/tss_get.c: Likewise.
9541 * nptl/tss_set.c: Likewise.
9542 * sysdeps/nptl/threads.h (thread_local): New define.
9543 (TSS_DTOR_ITERATIONS): Likewise.
9544 (tss_t): New typedef.
9545 (tss_dtor_t): Likewise.
9546 (tss_create): New prototype.
9547 (tss_get): Likewise.
9548 (tss_set): Likewise.
9549 (tss_delete): Likewise.
9550
9551 [BZ #14092]
9552 * conform/data/threads.h-data (cnd_t): New type.
9553 (cnd_init): New function.
9554 (cnd_signal): Likewise.
9555 (cnd_broadcast): Likewise.
9556 (cnd_wait): Likewise.
9557 (cnd_timedwait): Likewise.
9558 (cnd_destroy): Likewise.
9559 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
9560 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
9561 object.
9562 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
9563 * nptl/cnd_broadcast.c: New file.
9564 * nptl/cnd_destroy.c: Likewise.
9565 * nptl/cnd_init.c: Likewise.
9566 * nptl/cnd_signal.c: Likewise.
9567 * nptl/cnd_timedwait.c: Likewise.
9568 * nptl/cnd_wait.c: Likewise.
9569 * sysdeps/nptl/threads.h (cnd_t): New type.
9570 (cnd_init): New prototype.
9571 (cnd_signa): Likewise.
9572 (cnd_broadcast): Likewise.
9573 (cnd_wait): Likewise.
9574 (cnd_timedwait): Likewise.
9575 (cnd_destroy): Likewise.
9576
9577 [BZ #14092]
9578 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
9579 (once_flag): New type.
9580 (call_once): New function.
9581 * nptl/Makefile (libpthread-routines): Add call_once object.
9582 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
9583 * nptl/call_once.c: New file.
9584 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
9585 (once_flag): New type.
9586 (call_once): New prototype.
9587
9588 [BZ #14092]
9589 * conform/data/threads.h-data (mtx_plain): New constant.
9590 (mtx_recursive): Likewise.
9591 (mtx_timed): Likewise.
9592 (mtx_t): New type.
9593 (mtx_init): New function.
9594 (mtx_lock): Likewise.
9595 (mtx_timedlock): Likewise.
9596 (mtx_trylock): Likewise.
9597 (mtx_unlock): Likewise.
9598 (mtx_destroy): Likewise.
9599 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
9600 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
9601 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
9602 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
9603 * nptl/mtx_destroy.c: New file.
9604 * nptl/mtx_init.c: Likewise.
9605 * nptl/mtx_lock.c: Likewise.
9606 * nptl/mtx_timedlock.c: Likewise.
9607 * nptl/mtx_trylock.c: Likewise.
9608 * nptl/mtx_unlock.c: Likewise.
9609 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
9610 (mtx_recursive): Likewise.
9611 (mtx_timed): Likewise.
9612 (mtx_t): New type.
9613 (mtx_init): New prototype.
9614 (mtx_lock): Likewise.
9615 (mtx_timedlock): Likewise.
9616 (mtx_trylock): Likewise.
9617 (mtx_unlock): Likewise.
9618 (mtx_destroy): Likewise.
9619
9620 [BZ #14092]
9621 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
9622 (linknamespace-libs-ISO11): Add libpthread.a.
9623 * conform/data/threads.h-data: New file: add C11 thrd_* types and
9624 functions.
9625 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
9626 * nptl/Makefile (headers): Add threads.h.
9627 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
9628 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
9629 thrd_yield.
9630 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
9631 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
9632 thrd_join, thrd_sleep, and thrd_yield symbols.
9633 * nptl/descr.h (struct pthread): Add c11 field.
9634 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
9635 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
9636 routine with expected function prototype.
9637 (__pthread_create_2_1): Add C11 threads check based on attribute
9638 value.
9639 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
9640 * nptl/thrd_create.c: New file.
9641 * nptl/thrd_current.c: Likewise.
9642 * nptl/thrd_detach.c: Likewise.
9643 * nptl/thrd_equal.c: Likewise.
9644 * nptl/thrd_exit.c: Likewise.
9645 * nptl/thrd_join.c: Likewise.
9646 * nptl/thrd_priv.h: Likewise.
9647 * nptl/thrd_sleep.c: Likewise.
9648 * nptl/thrd_yield.c: Likewise.
9649 * include/threads.h: Likewise.
9650
9651 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9652
9653 * bits/indirect-return.h: New file.
9654 * misc/sys/cdefs.h (__glibc_has_attribute): New.
9655 * sysdeps/x86/bits/indirect-return.h: Likewise.
9656 * stdlib/Makefile (headers): Add bits/indirect-return.h.
9657 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
9658 (swapcontext): Add __INDIRECT_RETURN.
9659 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
9660 (prepare_test_buffer): Use it.
9661
9662 2018-07-24 Andreas Schwab <schwab@suse.de>
9663
9664 [BZ #23448]
9665 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
9666 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
9667
9668 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9669
9670 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
9671 Redefine if shadow stack is enabled.
9672 (SYSCALL_ERROR_LABEL): Likewise.
9673 (__vfork): Pop shadow stack and jump back to to caller directly
9674 when shadow stack is in use.
9675 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
9676 Redefine if shadow stack is enabled.
9677 (SYSCALL_ERROR_LABEL): Likewise.
9678 (__vfork): Pop shadow stack and jump back to to caller directly
9679 when shadow stack is in use.
9680
9681 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9682
9683 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
9684 enabled.
9685 (foo): Likewise.
9686 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
9687 (foo): Likewise.
9688
9689 2018-07-20 Joseph Myers <joseph@codesourcery.com>
9690
9691 * scripts/build-many-glibcs.py (Context.checkout): Default
9692 binutils version to 2.31 branch.
9693
9694 2018-07-20 Zong Li <zong@andestech.com>
9695
9696 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
9697 URL of gcc's tarball.
9698
9699 2018-07-20 Florian Weimer <fweimer@redhat.com>
9700
9701 [BZ #23396]
9702 * posix/regcomp.c (build_equiv_class): When comparing weights, do
9703 not compare an extra byte after the end of the weights.
9704
9705 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
9706
9707 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
9708 to 1.
9709 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
9710 hidden prototypes.
9711 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
9712 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
9713 * scripts/check-execstack.awk: Consider `xfail' variable containing a
9714 list of libraries whose stack executability is expected.
9715 * elf/Makefile ($(objpfx)check-execstack.out): Pass
9716 $(check-execstack-xfail) to check-execstack.awk through `xfail'
9717 variable.
9718 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
9719 libc.so libpthread.so.
9720
9721 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
9722
9723 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
9724 SOCK_NONBLOCK.
9725 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
9726 and SOCK_NONBLOCK.
9727 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
9728 implement __pipe2.
9729 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
9730
9731 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9732
9733 * benchtests/scripts/compare_bench.py (__main__): use the argparse
9734 library to improve command line parsing.
9735 (__main__): make schema file as optional parameter (--schema),
9736 defaulting to benchtests/scripts/benchout.schema.json.
9737 (main): move out of the parsing stuff to __main_  and leave it
9738 only as caller of main comparison functions.
9739
9740 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
9741
9742 * NEWS: Add a note for Intel CET status.
9743 * manual/install.texi: Likewise.
9744 * INSTALL: Regenerated.
9745
9746 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
9747
9748 [BZ #23140]
9749 * localedata/locales/oc_FR (mon): Rename to...
9750 (alt_mon): This, then update October (typo fix).
9751 (mon): New content (genitive case, month names preceded by
9752 "de" or "d’").
9753
9754 [BZ #23422]
9755 * localedata/locales/oc_FR (abday): Update all items.
9756 (day): Update Wednesday and Saturday (typo fixes).
9757 (abmon): Update all items, except May.
9758 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
9759 (LC_IDENTIFICATION): Bump the revision number and date.
9760 Keep the "category" entries in alphabetic order.
9761 (LC_ADDRESS): Remove no longer needed comment.
9762 (LC_COLLATE): Use “copy "ca_ES"”.
9763 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
9764 "name_mrs".
9765
9766 2018-07-18 Joseph Myers <joseph@codesourcery.com>
9767
9768 * grp/tst_fgetgrent.c: Include <unistd.h>.
9769 (main): Use mkstemp instead of tmpnam.
9770 * io/test-utime.c (main): Likewise.
9771 * posix/annexc.c (macrofile): Change to modifiable array.
9772 (main): Remove macrofile here.
9773 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
9774 macrofile here.
9775 (check_header): Do not remove macrofile here.
9776 * posix/bug-getopt1.c: Include <stdlib.h>.
9777 (do_test): Use mkstemp instead of tmpnam.
9778 * posix/bug-getopt2.c: Include <stdlib.h>.
9779 (do_test): Use mkstemp instead of tmpnam.
9780 * posix/bug-getopt3.c: Include <stdlib.h>.
9781 (do_test): Use mkstemp instead of tmpnam.
9782 * posix/bug-getopt4.c: Include <stdlib.h>.
9783 (do_test): Use mkstemp instead of tmpnam.
9784 * posix/bug-getopt5.c: Include <stdlib.h>.
9785 (do_test): Use mkstemp instead of tmpnam.
9786 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
9787 (main): Use mkstemp instead of tmpnam.
9788 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
9789 (main): Use mkstemp instead of tmpnam.
9790 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
9791 (main): use mkstemp instead of tmpnam.
9792 * stdlib/isomac.c (macrofile): Change to modifiable array.
9793 (main): Remove macrofile here.
9794 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
9795 macrofile here.
9796 (check_header): Do not remove macrofile here.
9797
9798 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9799
9800 * manual/tunables.texi: Document glibc.tune.x86_ibt and
9801 glibc.tune.x86_shstk.
9802
9803 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9804
9805 * NEWS: Mention --enable-cet.
9806 * manual/install.texi: Document --enable-cet.
9807 * INSTALL: Regenerated.
9808
9809 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9810
9811 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
9812 Add _CET_NOTRACK before indirect jump to jump table.
9813
9814 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9815
9816 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
9817 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9818 to jump table.
9819
9820 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9821
9822 * sysdeps/i386/i686/multiarch/strcat-sse2.S
9823 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9824 to jump table.
9825
9826 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9827
9828 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
9829 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9830 to jump table.
9831
9832 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9833
9834 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
9835 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9836 to jump table.
9837
9838 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9839
9840 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
9841 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9842 to jump table.
9843 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
9844
9845 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9846
9847 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
9848 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9849 to jump table.
9850
9851 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9852
9853 * sysdeps/i386/i686/multiarch/memset-sse2.S
9854 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9855 to jump table.
9856
9857 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9858
9859 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
9860 indirect jump to jump table.
9861
9862 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9863
9864 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
9865 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9866 to jump table.
9867 (MEMCPY): Likewise.
9868
9869 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9870
9871 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
9872 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9873 to jump table.
9874 (MEMCPY): Likewise.
9875
9876 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9877
9878 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9879 _CET_NOTRACK before indirect jump to jump table.
9880
9881 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9882
9883 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
9884 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9885 to jump table.
9886
9887 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9888
9889 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
9890 indirect jump to jump table.
9891
9892 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
9893
9894 [BZ #22241]
9895 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
9896 (LOCALES): Likewise.
9897 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
9898 * localedata/locales/sah_RU: New file.
9899 * localedata/sah_RU.UTF-8.in: New file.
9900
9901 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9902
9903 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
9904 "sysdep.h".
9905 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
9906 _CET_ENDBR to indirect jump targets and adjust jump destination
9907 for _CET_ENDBR.
9908 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
9909 "sysdep.h".
9910 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
9911 _CET_ENDBR to indirect jump targets and adjust jump destination
9912 for _CET_ENDBR.
9913 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
9914 "sysdep.h".
9915 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
9916 _CET_ENDBR to indirect jump targets and adjust jump destination
9917 for _CET_ENDBR.
9918
9919 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9920
9921 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9922 _CET_ENDBR.
9923
9924 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9925
9926 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
9927 _CET_ENDBR.
9928 (_dl_tlsdesc_undefweak): Likewise.
9929 (_dl_tlsdesc_dynamic): Likewise.
9930 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
9931 (_dl_tlsdesc_resolve_rel): Likewise.
9932 (_dl_tlsdesc_resolve_rela): Likewise.
9933 (_dl_tlsdesc_resolve_hold): Likewise.
9934 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
9935 (_dl_tlsdesc_undefweak): Likewise.
9936 (_dl_tlsdesc_dynamic): Likewise.
9937 (_dl_tlsdesc_resolve_rela): Likewise.
9938 (_dl_tlsdesc_resolve_hold): Likewise.
9939
9940 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9941
9942 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
9943 (_fini): Likewise.
9944 * sysdeps/x86_64/crti.S (_init): Likewise.
9945 (_fini): Likewise.
9946
9947 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
9948
9949 [BZ #23140]
9950 * localedata/locales/os_RU (mon): Rename to...
9951 (alt_mon): This.
9952 (mon): Import from CLDR (genitive case).
9953
9954 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9955
9956 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
9957 cet-tunables.h> when CET is enabled.
9958
9959 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
9960
9961 [BZ #21598]
9962 * configure.ac: Add --enable-cet.
9963 * configure: Regenerated.
9964 * elf/Makefille (all-built-dso): Add a comment.
9965 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
9966 Include <dl-prop.h>.
9967 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
9968 segment.
9969 * elf/dl-open.c: Include <dl-prop.h>.
9970 (dl_open_worker): Call _dl_open_check.
9971 * elf/rtld.c: Include <dl-prop.h>.
9972 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
9973 _rtld_main_check.
9974 * sysdeps/generic/dl-prop.h: New file.
9975 * sysdeps/i386/dl-cet.c: Likewise.
9976 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
9977 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
9978 * sysdeps/x86/cet-tunables.h: Likewise.
9979 * sysdeps/x86/check-cet.awk: Likewise.
9980 * sysdeps/x86/configure: Likewise.
9981 * sysdeps/x86/configure.ac: Likewise.
9982 * sysdeps/x86/dl-cet.c: Likewise.
9983 * sysdeps/x86/dl-procruntime.c: Likewise.
9984 * sysdeps/x86/dl-prop.h: Likewise.
9985 * sysdeps/x86/libc-start.h: Likewise.
9986 * sysdeps/x86/link_map.h: Likewise.
9987 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
9988 _CET_ENDBR.
9989 (_dl_runtime_profile): Likewise.
9990 (_dl_runtime_resolve_shstk): New.
9991 (_dl_runtime_profile_shstk): Likewise.
9992 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
9993 if CET is enabled.
9994 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
9995 (CFLAGS-.os): Likewise.
9996 (CFLAGS-.op): Likewise.
9997 (CFLAGS-.oS): Likewise.
9998 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
9999 is enabled.
10000 (tests-special): Add $(objpfx)check-cet.out.
10001 (cet-built-dso): New.
10002 (+$(cet-built-dso:=.note)): Likewise.
10003 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
10004 ($(objpfx)check-cet.out): New.
10005 (generated): Add check-cet.out.
10006 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
10007 <cet-tunables.h>.
10008 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
10009 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
10010 (init_cpu_features): Call get_cet_status to check CET status
10011 and update dl_x86_feature_1 with CET status. Call
10012 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
10013 (set_x86_shstk). Disable and lock CET in libc.a.
10014 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
10015 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
10016 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
10017 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
10018 (_CET_ENDBR): Define if not defined.
10019 (ENTRY): Add _CET_ENDBR.
10020 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
10021 x86_shstk.
10022 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
10023 _CET_ENDBR.
10024 (_dl_runtime_profile): Likewise.
10025
10026 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
10027
10028 [BZ #21895]
10029 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
10030 restore r2 on longjmp.
10031 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
10032 test list.
10033 Added rules to build test tst-setjmp-bug21895-static.
10034 Added module setjmp-bug21895 and rules to build a shared object from it.
10035 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
10036 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
10037
10038 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
10039
10040 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
10041 * benchtests/bench-strstr.c: Likewise.
10042 * string/memmem.c (FASTSEARCH): Define.
10043 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
10044 Add support for FASTSEARCH.
10045 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
10046 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
10047 (FASTSEARCH): Define.
10048 * string/test-strcasestr.c: Rename __strnlen to strnlen.
10049 * string/test-strstr.c: Likewise.
10050
10051 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
10052
10053 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
10054 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
10055
10056 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
10057 H.J. Lu <hongjiu.lu@intel.com>
10058
10059 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
10060 (__longjmp): Restore shadow stack pointer if shadow stack is
10061 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
10062 isn't defined for __longjmp_cancel.
10063 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
10064 (_setjmp): Save shadow stack pointer if shadow stack is enabled
10065 and SHADOW_STACK_POINTER_OFFSET is defined.
10066 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
10067 (setjmp): Save shadow stack pointer if shadow stack is enabled
10068 and SHADOW_STACK_POINTER_OFFSET is defined.
10069 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
10070 (__sigsetjmp): Save shadow stack pointer if shadow stack is
10071 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
10072 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
10073 <jmp_buf-ssp.h>.
10074 (____longjmp_chk): Restore shadow stack pointer if shadow stack
10075 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
10076 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
10077 Remove jmp_buf-ssp.sym.
10078 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
10079 <jmp_buf-ssp.h>.
10080 (____longjmp_chk): Restore shadow stack pointer if shadow stack
10081 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
10082 * sysdeps/x86/Makefile (gen-as-const-headers): Add
10083 jmp_buf-ssp.sym.
10084 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
10085 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
10086 (__longjmp): Restore shadow stack pointer if shadow stack is
10087 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
10088 isn't defined for __longjmp_cancel.
10089 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
10090 (__sigsetjmp): Save shadow stack pointer if shadow stack is
10091 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
10092
10093 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
10094
10095 [BZ #22563]
10096 * nptl/pthread_create.c: Include <tls-setup.h>.
10097 (__pthread_create_2_1): Call tls_setup_tcbhead.
10098 * sysdeps/generic/tls-setup.h: New file.
10099 * sysdeps/x86/nptl/tls-setup.h: Likewise.
10100 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
10101 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
10102 Likewise.
10103 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
10104 to feature_1.
10105 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
10106 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
10107 (X86_FEATURE_1_SHSTK): Likewise.
10108 (CET_ENABLED): Likewise.
10109 (IBT_ENABLED): Likewise.
10110 (SHSTK_ENABLED): Likewise.
10111
10112 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
10113
10114 [BZ #23208]
10115 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
10116 (LOCALES): Likewise.
10117 * localedata/dsb_DE.UTF-8.in: New file.
10118 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
10119
10120 2018-07-12 Florian Weimer <fweimer@redhat.com>
10121
10122 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
10123 __mprotect, not mprotect.
10124
10125 2018-07-11 Florian Weimer <fweimer@redhat.com>
10126
10127 * io/Makefile (headers): Add bits/statx.h.
10128
10129 2018-07-10 Mike FABIAN <mfabian@redhat.com>
10130
10131 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
10132 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
10133 and headers.
10134 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
10135 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
10136 for utf8_gen.py
10137
10138 2018-07-10 Florian Weimer <fweimer@redhat.com>
10139
10140 * io/Makefile (routines): Add statx.
10141 (tests-internal): Add tst-statx.
10142 * io/Versions (GLIBC_2.28): Export statx.
10143 * io/bits/statx.h: New file.
10144 * io/sys/stat.h [__USE_GNU]: Include it.
10145 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
10146 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
10147 Define.
10148 * io/statx.c: New file.
10149 * io/statx_generic.: Likewise.
10150 * io/tst-statx.: Likewise.
10151 * include/bits/statx.h: Likewise.
10152 * sysdeps/unix/sysv/linux/kernel-features.h
10153 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
10154 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
10155 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
10156 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
10157 Undefine.
10158 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10159 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
10160 * sysdeps/unix/sysv/linux/statx.c: New file.
10161 * manual/filesys.texi: Note that statx is undocumented.
10162 * sysdeps/**/libc*.abilist: Update.
10163
10164 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10165
10166 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
10167 a kernel issue which lead to test failure in some cases.
10168
10169 2018-07-10 Florian Weimer <fweimer@redhat.com>
10170
10171 [BZ #23036]
10172 * posix/regexec.c (check_node_accept_bytes): When comparing
10173 weights, do not compare an extra byte after the end of the
10174 weights.
10175
10176 2018-07-10 Florian Weimer <fweimer@redhat.com>
10177
10178 * libio/readline.c: Fix copyright year.
10179 * libio/tst-readline.c Likewise.
10180 * nss/tst-nss-files-hosts-getent.c: Likewise.
10181
10182 2018-07-06 Florian Weimer <fweimer@redhat.com>
10183
10184 [BZ #18991]
10185 * nss/nss_files/files-XXX.c (internal_getent): Use
10186 __libc_readline_unlocked. Seek back to the start of the line if
10187 parsing failes with ERANGE.
10188 (get_contents_ret, get_contents): Remove.
10189 * nss/tst-nss-files-hosts-getent.c: New file.
10190 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
10191 (tst-nss-files-hosts-getent): Link with -ldl.
10192
10193 2018-07-06 Florian Weimer <fweimer@redhat.com>
10194
10195 * include/stdio.h (__libc_readline_unlocked): Declare.
10196 (__ftello64, __fseeko64): Declare aliases.
10197 * libio/readline.c: New file.
10198 * libio/tst-readline.c: Likewise.
10199 (routines): Add readline.
10200 (tests-internal): Add tst-readlime.
10201 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
10202 __libc_readline_unlocked.
10203 * libio/fseeko.c (__fseeko): Rename from fseeko.
10204 (fseeko): Add alias.
10205 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
10206 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
10207 (fseeko64): Add alias.
10208 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
10209 * libio/ftello64.c (__ftello64): Rename from ftello64.
10210 (ftello64): Add alias.
10211
10212 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
10213
10214 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
10215 HWCAP_ATOMICS.
10216
10217 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
10218
10219 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
10220 Use dl_hwcap without masking.
10221 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
10222 Remove HWCAP_CPUID.
10223
10224 2018-07-06 Florian Weimer <fweimer@redhat.com>
10225
10226 * conform/conformtest.pl (checknamespace): Escape literal braces
10227 in regular expressions.
10228
10229 2018-07-06 Amit Pawar <amit.pawar@amd.com>
10230
10231 * sysdeps/x86/cpu-features.c (get_common_indeces):
10232 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
10233 * sysdeps/x86/cpu-features.c (init_cpu_features):
10234 AVX_Fast_Unaligned_Load is disabled for Excavator core.
10235
10236 2018-07-05 Florian Weimer <fweimer@redhat.com>
10237
10238 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
10239 protector.
10240 (CFLAGS-elf-init.oS): Likewise.
10241
10242 2018-07-05 Florian Weimer <fweimer@redhat.com>
10243 Carlos O'Donell <carlos@redhat.com>
10244
10245 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
10246 $(no-stack-protector). stack_chk_fail_local.c can be compiled
10247 with stack protector enabled because there is no risk of infinite
10248 recursion.
10249
10250 2018-07-05 Maciej W. Rozycki <macro@mips.com>
10251
10252 [BZ #19818]
10253 [BZ #23307]
10254 * libc-abis (ABSOLUTE): New ABI.
10255 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
10256 * NEWS: Mention the new ABI.
10257
10258 2018-07-05 Florian Weimer <fweimer@redhat.com>
10259
10260 [BZ # 17662]
10261 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
10262 (RENAME_WHITEOUT): Define.
10263 [__USE_GNU] (renameat2): Declare.
10264 * stdio-common/Makefile (routines): Add renameat2.
10265 (tests): Add tst-renameat2.
10266 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
10267 * stdio-common/renameat2.c: New file.
10268 * stdio-common/tst-renameat2.c: Likewise.
10269 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
10270 * manual/filesys.texi (Temporary Files): Note that renameat2 is
10271 undocumented.
10272 * sysdeps/unix/sysv/linux/kernel-features.h
10273 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
10274 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
10275 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
10276 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10277 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
10278 * sysdeps/unix/sysv/linux/sh/kernel-features.h
10279 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
10280 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
10281 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
10282 * include/stdio.h (__renameat): Add alias for renameat.
10283 * stdio-common/renameat.c (__renameat): Rename from renameat.
10284 Add hidden definition and alias.
10285 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
10286 * sysdeps/mach/hurd/renameat.c: Likewise.
10287 * sysdeps/**/libc*.abilist: Add renameat2.
10288
10289 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10290
10291 * posix/bug-regex33.c: Fix build after regex sync.
10292
10293 2018-07-04 Carlos O'Donell <carlos@redhat.com>
10294
10295 [BZ #23164]
10296 * localedata/tst-langinfo-setlocale.c: New file.
10297 * localedata/tst-langinfo-setlocale-static.c: New file.
10298 * localedata/tst-langinfo-newlocale.c: New file.
10299 * localedata/tst-langinfo-newlocale-static.c: New file.
10300 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
10301 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
10302 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
10303 (tests-static): Remove tst-langinfo-static. Add
10304 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
10305 (tests-special): Remove $(objpfx)tst-langinfo.out,
10306 $(objpfx)tst-langinfo-static.out. Add
10307 $(objpfx)tst-langinfo-setlocale.out,
10308 $(objpfx)tst-langinfo-newlocale.out,
10309 $(objpfx)tst-langinfo-setlocale-static.out,
10310 $(objpfx)tst-langinfo-newlocale-static.out.
10311 ($(objpfx)tst-langinfo.out): Remove.
10312 ($(objpfx)tst-langinfo-static.out): Remove.
10313 ($(objpfx)tst-langinfo-newlocale.out): New target.
10314 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
10315 (test-xfail-tst-langinfo-newlocale-static): Add.
10316 ($(objpfx)tst-langinfo-setlocale.out): New target.
10317 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
10318 * localedata/tst-langinfo.c: Call test_locale.
10319 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
10320 data.
10321
10322 2018-07-04 Florian Weimer <fweimer@redhat.com>
10323
10324 testrun.sh: Implement --tool=strace, --tool=valgrind
10325 * Makefile (testrun-script): Define variable.
10326 (testrun.sh): Use variable.
10327 * manual/install.texi (Tools for Compilation): make 4.0 or later
10328 is required.
10329 * configure.ac: Check for make 4.0 or later.
10330 * INSTALL: Regenerate.
10331 * configure: Likewise.
10332
10333 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10334
10335 [BZ #23233]
10336 [BZ #21163]
10337 [BZ #18986]
10338 [BZ #13762]
10339 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
10340 * posix/PCRE.tests: Remove invalid test.
10341 * posix/bug-regex28.c: Fix expected values for used syntax.
10342 * posix/bug-regex37.c: New file.
10343 * posix/bug-regex38.c: Likewise.
10344 * posix/regcomp.c: Sync with gnulib.
10345 * posix/regex.c: Likewise.
10346 * posix/regex.h: Likewise.
10347 * posix/regex_internal.c: Likewise.
10348 * posix/regex_internal.h: Likewise.
10349 * posix/regexec.c: Likewise.
10350
10351 2018-06-26 Mike FABIAN <mfabian@redhat.com>
10352
10353 [BZ #23308]
10354 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
10355 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
10356 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
10357 * localedata/unicode-gen/PropList.txt: likewise.
10358 * localedata/unicode-gen/UnicodeData.txt: likewise.
10359 * localedata/charmaps/UTF-8: Regenerate.
10360 * localedata/locales/i18n_ctype: likewise.
10361 * localedata/locales/tr_TR: likewise.
10362 * localedata/locales/translit_circle: likewise.
10363 * localedata/locales/translit_cjk_compat: likewise.
10364 * localedata/locales/translit_combining: likewise.
10365 * localedata/locales/translit_compat: likewise.
10366 * localedata/locales/translit_font: likewise.
10367 * localedata/locales/translit_fraction: likewise.
10368
10369 2018-07-03 Florian Weimer <fweimer@redhat.com>
10370
10371 [BZ #23363]
10372 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
10373 * stdio-common/tst-printf.sh: Adjust expected output.
10374 * LICENSES: Update.
10375
10376 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10377
10378 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
10379 symbol.
10380
10381 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10382
10383 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
10384 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
10385 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
10386 * stdio-common/tst-printfsz-islongdouble.c: New file.
10387 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
10388 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
10389 [subdir == stdio-common] (routines): Add ieee128-printf_size.
10390 [subdir == stdio-common] (tests-internal): Add
10391 test-printf-size-ieee128, and test-printf-size-ibm128.
10392 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
10393 (CFLAGS-test-printf-size-ibm128.c): New variables.
10394 [subdir == stdio-common] (tests-special): Add
10395 $(objpfx)test-printf-size-ieee128.out and
10396 $(objpfx)test-printf-size-ibm128.out.
10397 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
10398 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
10399 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
10400 __printf_sizeieee128.
10401 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
10402 New file.
10403 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
10404 Likewise.
10405 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
10406 Likewise.
10407
10408 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
10409
10410 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
10411 (exp2f_inline): Likewise.
10412 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
10413 (__math_uflowf): Likewise.
10414 (__math_may_uflowf): Likewise.
10415 (__math_divzerof): Likewise.
10416 (__math_invalidf): Likewise.
10417 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
10418 (__math_oflowf): Likewise.
10419 (__math_uflowf): Likewise.
10420 (__math_may_uflowf): Likewise.
10421 (__math_divzerof): Likewise.
10422 (__math_invalidf): Likewise.
10423
10424 2018-06-29 DJ Delorie <dj@redhat.com>
10425 Carlos O'Donell <carlos@redhat.com>
10426
10427 [BZ #23329]
10428 * include/libc-symbols.h: Comment the freeres framework.
10429 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
10430 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
10431 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
10432 * dlfcn/dlerror.c: Include libc-symbols.h
10433 (__dlerror_main_freeres): New function.
10434 * dlfcn/dlfreeres.c: New file.
10435 * dlfcn/sdlfreeres.c: New file.
10436 * include/dlfcn.h: Declare __dlerror_main_freeres.
10437 * malloc/set-freeres.c: Declare __libdl_freeres, and
10438 __libpthread_freeres.
10439 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
10440 the releavant libraries are loaded.
10441 * malloc/thread-freeres.c: Add comments.
10442 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
10443 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
10444 * nptl/allocatestack.c (__nptl_free_stacks): New function.
10445 (__free_stacks): Rename to...
10446 (free_stacks): ...this. Mark static.
10447 (queue_stack): Call free_stacks.
10448 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
10449 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
10450 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
10451 ptr_freeres element from struct.
10452 (pthread_functions): Remove .ptr_freeres from struct initializer.
10453 [SHARED] (nptl_freeres): Remove.
10454 * nptl/nptlfreeres.c: New file.
10455 * nptl/pthreadP.h
10456 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
10457 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
10458 attribute_hidden.
10459 (__free_stacks): Rename to...
10460 (__nptl_stacks_freeres): ...this.
10461 (__shm_directory_freeres): Declare.
10462 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
10463 (__nptl_unwind_freeres): ...this.
10464 * resolv/res-close.c: Add comment.
10465 * resolv/resolv_conf.c: Include libc-symbols.h.
10466 * string/strerror_l.c: Include libc-symbols.h.
10467 * sunrpc/rpc_thread.c: Include libc-symbols.h.
10468 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
10469 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
10470 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
10471
10472 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10473
10474 * stdlib/tst-strfmon_l.c: Add tests for long double.
10475
10476 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
10477
10478 [BZ #23208]
10479 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
10480 * localedata/locales/dsb_DE: New file.
10481
10482 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
10483
10484 [BZ #23140]
10485 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
10486 genitive case).
10487 (alt_mon): New entry, import from CLDR (nominative case).
10488
10489 2018-06-29 Sylvain Lesage <severo@rednegra.net>
10490
10491 [BZ #22996]
10492 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
10493
10494 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
10495
10496 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
10497 Use vector registers.
10498
10499 * sysdeps/aarch64/multiarch/memmove_falkor.S
10500 (__memcpy_falkor): Use vector registers.
10501
10502 2018-06-29 Martin Sebor <msebor@redhat.com>
10503
10504 * manual/stdio.texi (Customizing Printf): Mention interaction
10505 with GCC built-ins.
10506
10507 2018-06-29 Maciej W. Rozycki <macro@mips.com>
10508
10509 [BZ #23307]
10510 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
10511 `st_value' is 0 if `st_shndx' is SHN_ABS.
10512 * elf/tst-absolute-zero.c: New file.
10513 * elf/tst-absolute-zero-lib.c: New file.
10514 * elf/tst-absolute-zero-lib.lds: New file.
10515 * elf/Makefile (tests): Add `tst-absolute-zero'.
10516 (modules-names): Add `tst-absolute-zero-lib'.
10517 (LDLIBS-tst-absolute-zero-lib.so): New variable.
10518 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
10519 ($(objpfx)tst-absolute-zero: New dependency.
10520
10521 2018-06-29 Zack Weinberg <zackw@panix.com>
10522
10523 * configure.ac: New command-line option --disable-crypt.
10524 Force --disable-nss-crypt when --disable-crypt is given, with a
10525 warning if it was explicitly enabled.
10526 * configure: Regenerate.
10527 * config.make.in: New boolean substitution variable $(build-crypt).
10528 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
10529 when $(build-crypt).
10530 * manual/install.texi: Document --disable-crypt.
10531 * INSTALL: Regenerate.
10532
10533 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
10534 which is never set.
10535 * conform/Makefile: Only include libcrypt.a in
10536 linknamespace-libs-xsi and linknamespace-libs-XPG4
10537 when $(build-crypt).
10538 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
10539 USE_CRYPT to 1 when $(build-crypt).
10540 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
10541 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
10542 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
10543
10544 2018-06-29 Zack Weinberg <zackw@panix.com>
10545
10546 * crypt/crypt.h, posix/unistd.h: Update comments and
10547 prototypes for crypt and crypt_r.
10548
10549 * manual/crypt.texi (Cryptographic Functions): New initial
10550 exposition.
10551 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
10552 (Unpredictable Bytes): Improve initial exposition. Clarify error
10553 behavior of getentropy and getrandom.
10554 * manual/examples/genpass.c: Generate a salt using getentropy
10555 instead of the current time. Use hash $5$ (SHA-2-256).
10556 * manual/examples/testpass.c: Demonstrate validation against
10557 hashes generated with three different one-way functions.
10558
10559 * manual/intro.texi: crypt.texi does not need an overview
10560 anymore.
10561
10562 * manual/nss.texi, manual/memory.texi, manual/socket.texi
10563 * manual/terminal.texi: Consistently refer to "passphrases"
10564 * instead of "passwords", and to the "user database" instead
10565 * of the "password database".
10566 * manual/users.texi: Similarly. Add notes about how actual
10567 passphrase hashes are now stored in the shadow database.
10568 Remove 20-year-old junk todo note.
10569
10570 2018-06-29 Zack Weinberg <zackw@panix.com>
10571
10572 * manual/crypt.texi: Use a normal top-level @node declaration.
10573 Move most of the introductory text to the 'crypt' section.
10574 Move the example programs below the @deftypefun for 'crypt_r'.
10575 Move the 'getpass' section...
10576 * manual/terminal.texi: ...here.
10577
10578 2018-06-29 Zack Weinberg <zackw@panix.com>
10579 Florian Weimer <fweimer@redhat.com>
10580
10581 * posix/unistd.h: Do not declare encrypt.
10582 (_XOPEN_CRYPT): Remove macro definition.
10583 (crypt): Declare only for _USE_MISC.
10584 * stdlib/stdlib.h: Do not declare setkey.
10585 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
10586 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
10587
10588 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
10589 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
10590 into compat symbols. Don't define initial_perm if it's not
10591 going to be used.
10592 * crypt/cert.c: Link explicitly with the expected versions for
10593 setkey and encrypt. If they are not available at all, mark
10594 the test as unsupported.
10595
10596 * sunrpc/des_crypt.c: Unconditionally block linkage with
10597 cbc_crypt and ecb_crypt for new binaries.
10598 * sunrpc/des_soft.c: Unconditionally block linkage with
10599 des_setparity for new binaries.
10600
10601 * manual/crypt.texi: Remove the entire "DES Encryption"
10602 section. Also remove the paragraph talking about FIPS 140-2
10603 from the introduction.
10604 * manual/string.texi (strfry, memfrob): Revise. Recommend use
10605 of libgcrypt for "real" encryption, not DES.
10606 * manual/conf.texi (Constants for Sysconf): Mention that
10607 _XOPEN_CRYPT is no longer impelemented.
10608
10609 * conform/data/unistd.h-data: Remove crypt function declaration.
10610
10611 2018-06-29 Florian Weimer <fweimer@redhat.com>
10612
10613 [BZ #23351]
10614 * malloc/hooks.c: Update comments on restoring of dumped heaps.
10615 (disallow_malloc_check): Remove variable.
10616 (__malloc_check_init): Adjust.
10617 (malloc_set_state): Update comment.
10618 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
10619 declarations.
10620
10621 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
10622
10623 [BZ #23140]
10624 * localedata/locales/ast_ES (mon): Rename to...
10625 (alt_mon): This.
10626 (mon): Import from CLDR (genitive case).
10627
10628 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
10629 Jakub Sitnicki <jkbs@redhat.com>
10630
10631 [BZ #21812]
10632 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
10633 on NLM_F_DUMP_INTR.
10634
10635 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
10636
10637 * manual/llio.texi: Remove spurious space.
10638
10639 2018-06-28 Florian Weimer <fweimer@redhat.com>
10640
10641 [BZ #23349]
10642 * time/bits/types/struct_timespec.h: Change header inclusion guard to
10643 _STRUCT_TIMESPEC.
10644
10645 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10646
10647 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
10648 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
10649 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
10650 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
10651 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
10652 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
10653 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
10654
10655 2018-06-27 Maciej W. Rozycki <macro@mips.com>
10656
10657 [BZ #23266]
10658 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
10659 Copy and null-terminate entries that are not terminated, in
10660 addition to empty ones.
10661
10662 2018-06-27 Florian Weimer <fweimer@redhat.com>
10663
10664 [BZ #18023]
10665 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
10666 (extend_alloca_account): Remove.
10667 * manual/stdio.texi (Variable Arguments Output): Update comment.
10668
10669 2018-06-27 Joseph Myers <joseph@codesourcery.com>
10670
10671 * nptl/sockperf.c: Remove file.
10672
10673 2018-06-27 Florian Weimer <fweimer@redhat.com>
10674
10675 [BZ #18023]
10676 * elf/dl-deps.c (_dl_map_object_deps): Use struct
10677 scratch_buffer instead of extend_alloca.
10678
10679 2018-06-27 Florian Weimer <fweimer@redhat.com>
10680
10681 [BZ #18023]
10682 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
10683 scratch_buffer instead of extend_alloca. Update comments.
10684
10685 2018-06-27 Florian Weimer <fweimer@redhat.com>
10686
10687 [BZ #18023]
10688 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
10689 instead of extend_alloca.
10690
10691 2018-06-26 Joseph Myers <joseph@codesourcery.com>
10692
10693 [BZ #13888]
10694 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
10695 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
10696 /tmp.
10697 * scripts/test-installation.pl: Put temporary files in build
10698 directory, not /tmp.
10699 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
10700 (CFLAGS-bug4.c): Likewise.
10701 (CFLAGS-bug5.c): Likewise.
10702 (CFLAGS-test-fseek.c): Likewise.
10703 (CFLAGS-test-popen.c): Likewise.
10704 (CFLAGS-test_rdwr.c): Likewise.
10705 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
10706 /tmp.
10707 * stdio-common/bug4.c (main): Likewise.
10708 * stdio-common/bug5.c (main): Likewise.
10709 * stdio-common/test-fseek.c (TESTFILE): Likewise.
10710 * stdio-common/test-popen.c (do_test): Likewise.
10711 * stdio-common/test_rdwr.c (main): Likewise.
10712
10713 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
10714
10715 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
10716 (sem_open): Set sem.newsem.pad to zero for valgrind.
10717
10718 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10719
10720 [BZ #20251]
10721 * NEWS: Mention fcntl64 addition.
10722 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
10723 * login/utmp_file.c: Likewise.
10724 * sysdeps/posix/fdopendir.c: Likewise.
10725 * sysdeps/posix/opendir.c: Likewise.
10726 * sysdeps/unix/pt-fcntl.c: Likewise.
10727 * include/fcntl.h (__libc_fcntl64, __fcntl64,
10728 __fcntl64_nocancel_adjusted): New prototype.
10729 (__fcntl_nocancel_adjusted): Remove prototype.
10730 * io/Makefile (routines): Add fcntl64.
10731 (CFLAGS-fcntl64.c): New rule.
10732 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
10733 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
10734 * io/fcntl.h (fcntl64): Add prototype and redirect if
10735 __USE_FILE_OFFSET64 is defined.
10736 * io/fcntl64.c: New file.
10737 * manual/llio.text: Add a note for which commands fcntl acts a
10738 cancellation point.
10739 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
10740 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
10741 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
10742 New symbols.
10743 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
10744 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
10745 non-LFS case.
10746 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
10747 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
10748 to __fcntl64_nocancel.
10749 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
10750 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
10751 to __fcntl64_nocancel.
10752 * sysdeps/generic/not-cancel.h: Likewise.
10753 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
10754 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
10755 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
10756 (fcntl64): New symbol.
10757 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
10758 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
10759 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
10760 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
10761 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
10762 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
10763 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
10764 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
10765 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
10766 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
10767 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
10768 fcntl64): Likewise.
10769 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
10770 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
10771 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
10772 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
10773 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
10774 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
10775 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
10776 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
10777 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
10778 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
10779 Likewise.
10780 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
10781 Likewise.
10782 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
10783 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
10784 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
10785
10786 2018-06-26 Florian Weimer <fweimer@redhat.com>
10787
10788 Run thread shutdown functions in an explicit order.
10789 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
10790 definition.
10791 (__libc_thread_freeres): Call thread shutdown functions
10792 explicitly.
10793 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
10794 * include/string.h (__strerror_thread_freeres): Declare.
10795 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
10796 arena_thread_freeres. No longer static. Remove thread shutdown
10797 hook registration.
10798 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
10799 Declare.
10800 * resolv/res-close.c (__res_thread_freeres): Renamed from
10801 res_thread_freeres. No longer static. Remove thread shutdown
10802 hook registration.
10803 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
10804 * resolv/resolv_conf.c (freeres): Remove incorrect section
10805 attribute and use libc_freeres_fn.
10806 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
10807 strerror_thread_freeres. No longer static. Remove thread
10808 shutdown hook registration.
10809 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
10810 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
10811 shutdown hook registration.
10812 * Makerules (shlib.lds): Do not provide section boundary symbols
10813 for __libc_thread_subfreeres.
10814 * manual/memory.texi (Basic Allocation): Update comment.
10815
10816 2018-06-26 Florian Weimer <fweimer@redhat.com>
10817
10818 Remove always-defined _RPC_THREAD_SAFE_ macro.
10819 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
10820 Do not define _RPC_THREAD_SAFE_.
10821 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
10822 conditional.
10823 * sunrpc/clnt_perr.c: Likewise.
10824 * sunrpc/clnt_raw.c: Likewise.
10825 * sunrpc/clnt_simp.c: Likewise.
10826 * sunrpc/key_call.c: Likewise.
10827 * sunrpc/rpc_common.c: Likewise.
10828 * sunrpc/rpc_main.c: Likewise.
10829 * sunrpc/rpc_thread.c: Likewise.
10830 * sunrpc/svc.c: Likewise.
10831 * sunrpc/svc_raw.c: Likewise.
10832 * sunrpc/svc_simple.c: Likewise.
10833 * sumrpc/svcauth_des.c: Likewise.
10834
10835 2018-06-26 Florian Weimer <fweimer@redhat.com>
10836
10837 * libio/Makefile (tests-internal): Add tst-vtables,
10838 tst-vtables-interposed.
10839 * libio/tst-vtables.c: New file.
10840 * libio/tst-vtables-common.c: Likewise.
10841 * libio/tst-vtables-interposed.c: Likewise.
10842
10843 2018-06-26 Florian Weimer <fweimer@redhat.com>
10844
10845 * support/support_test_main.c (support_test_main): Only call
10846 setvbuf if not disables.
10847 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
10848 * support/test-driver.h (struct test_config): Add no_setvbuf member.
10849
10850 2018-06-26 Florian Weimer <fweimer@redhat.com>
10851
10852 [BZ #23313]
10853 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
10854
10855 2018-06-25 Florian Weimer <fweimer@redhat.com>
10856
10857 [BZ #18023]
10858 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
10859 Use struct scratch_buffer instead of extend_alloca.
10860
10861 2018-06-25 Florian Weimer <fweimer@redhat.com>
10862
10863 [BZ #18023]
10864 * nss/getent.c (initgroups_keys): Use dynarray instead of
10865 extend_alloca.
10866
10867 2018-06-25 Florian Weimer <fweimer@redhat.com>
10868
10869 [BZ #18023]
10870 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
10871 Use struct scratch_buffer instead of extend_alloca.
10872
10873 2018-06-25 Florian Weimer <fweimer@redhat.com>
10874
10875 [BZ #18023]
10876 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
10877 back to malloc directly, without stack allocations.
10878
10879 2018-06-25 Florian Weimer <fweimer@redhat.com>
10880
10881 [BZ #18023]
10882 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
10883 of extend_alloca.
10884
10885 2018-06-25 Florian Weimer <fweimer@redhat.com>
10886
10887 [BZ #18023]
10888 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
10889 of extend_alloca.
10890 * nscd/hstcache.c (addhstbyX): Likewise.
10891 * nscd/pwdcache.c (addpwbyX): Likewise.
10892 * nscd/servicescache.c (addservbyX): Likewise.
10893
10894 2018-06-25 Florian Weimer <fweimer@redhat.com>
10895
10896 [BZ #18023]
10897 * nscd/connections.c (read_cmdline): New function.
10898 (restart): Use it. Update comment.
10899
10900 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
10901
10902 [BZ #23140]
10903 * localedata/locales/csb_PL (mon): Rename to...
10904 (alt_mon): This.
10905 (abmon): Rename to...
10906 (ab_alt_mon): This.
10907 (mon): Add with proper genitive forms, copy from Wikipedia.
10908 (abmon): Likewise.
10909
10910 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
10911
10912 [BZ #19485]
10913 * localedata/locales/csb_PL (mon): Fix typos:
10914 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
10915 (yesstr): Add, value is "jo".
10916 (nostr): Add, value is "nié".
10917
10918 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10919
10920 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
10921 all log1p and significand functions on m680x0.
10922 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
10923 of s_significand.c..
10924 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
10925 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
10926 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
10927 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
10928 s_log1p.c and include it..
10929
10930 2018-06-21 Vincent Chen <vincentc@andestech.com>
10931
10932 * elf/elf.h (R_NDS32_NONE): New define.
10933 (R_NDS32_32_RELA): Likewise.
10934 (R_NDS32_COPY): Likewise.
10935 (R_NDS32_GLOB_DAT): Likewise.
10936 (R_NDS32_JUMP_SLOT): Likewise.
10937 (R_NDS32_RELATIVE): Likewise.
10938 (R_NDS32_TLS_TPOFF): Likewise.
10939 (R_NDS32_TLS_DESC): Likewise.
10940
10941 2018-06-21 Mark Wielaard <mark@klomp.org>
10942
10943 * elf/elf.h (R_BPF_MAP_FD): Removed.
10944 (R_BPF_64_64, R_BPF_64_32): New.
10945
10946 2018-06-21 Florian Weimer <fweimer@redhat.com>
10947
10948 [BZ #23253]
10949 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
10950 Renamed from libc_feholdsetround_ctx.
10951 (default_libc_feresetround_ctx): Renamed from
10952 libc_feresetround_ctx.
10953 (default_libc_feholdsetround_noex_ctx): Renamed from
10954 libc_feholdsetround_noex_ctx.
10955 (default_libc_feresetround_noex_ctx): Renamed from
10956 libc_feresetround_noex_ctx.
10957 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
10958 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
10959 forwardning to the old implementations under the new names.
10960 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
10961 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
10962 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
10963 (libc_feresetround_ctx): Forward to default implements for i386
10964 and MATH_SET_BOTH_ROUNDING_MODES.
10965 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
10966 Add -DMATH_SET_BOTH_ROUNDING_MODES.
10967
10968 2018-06-20 Joseph Myers <joseph@codesourcery.com>
10969
10970 * string/tst-cmp.c: Include <libc-diag.h>.
10971 (strncmp_max): Disable -Wstringop-overflow= around call to
10972 strncmp.
10973 (strncasecmp_max): Disable -Wstringop-overflow= around call to
10974 strncasecmp.
10975
10976 * string/bug-strpbrk1.c: Include <libc-diag.h>.
10977 (main): Disable -Wunused-value around call to strpbrk.
10978 * string/bug-strspn1.c: Include <libc-diag.h>.
10979 (main): Disable -Wunused-value around call to strspn.
10980
10981 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10982 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10983
10984 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
10985 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
10986
10987 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10988
10989 * math/Makefile (libm-calls): Move s_significandF to...
10990 (gen-libm-calls): ... here.
10991 * math/s_significand_template.c: New file.
10992 * math/s_significand.c: Removed.
10993 * math/s_significandf.c: Removed.
10994 * math/s_significandl.c: Removed.
10995 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
10996 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
10997
10998 * math/e_exp2_template.c (declare_mgen_finite_alias,
10999 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
11000 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
11001 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
11002
11003 2018-06-20 Florian Weimer <fweimer@redhat.com>
11004
11005 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
11006
11007 2018-06-19 Joseph Myers <joseph@codesourcery.com>
11008
11009 [BZ #23280]
11010 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
11011 floating-point number to strtod functions rather than possibly
11012 negating result of those functions.
11013 * stdio-common/tst-scanf-round.c: New file.
11014 * stdio-common/Makefile (tests): Add tst-scanf-round.
11015 ($(objpfx)tst-scanf-round): Depend on $(libm).
11016
11017 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
11018
11019 * sysdeps/mach/hurd/localplt.data: Move to...
11020 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
11021 R_386_GLOB_DAT like on Linux i386.
11022
11023 2018-06-18 Joseph Myers <joseph@codesourcery.com>
11024
11025 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
11026 (SHM_STAT_ANY): New macro.
11027 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
11028 (SHM_STAT_ANY): Likewise.
11029 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
11030 (SHM_STAT_ANY): Likewise.
11031 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
11032 (SHM_STAT_ANY): Likewise.
11033 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
11034 (SHM_STAT_ANY): Likewise.
11035 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
11036 (SHM_STAT_ANY): Likewise.
11037 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
11038 (SHM_STAT_ANY): Likewise.
11039 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
11040 (SHM_STAT_ANY): Likewise.
11041 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
11042 (SHM_STAT_ANY): Likewise.
11043 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
11044 (SHM_STAT_ANY): Likewise.
11045 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
11046 (SHM_STAT_ANY): Likewise.
11047 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
11048 (SHM_STAT_ANY): Likewise.
11049
11050 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
11051 (SEM_STAT_ANY): New macro.
11052 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
11053 (SEM_STAT_ANY): Likewise.
11054 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
11055 (SEM_STAT_ANY): Likewise.
11056 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
11057 (SEM_STAT_ANY): Likewise.
11058 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
11059 (SEM_STAT_ANY): Likewise.
11060 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
11061 (SEM_STAT_ANY): Likewise.
11062 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
11063 (SEM_STAT_ANY): Likewise.
11064 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
11065 (SEM_STAT_ANY): Likewise.
11066 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
11067 (SEM_STAT_ANY): Likewise.
11068 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
11069 (SEM_STAT_ANY): Likewise.
11070
11071 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
11072 (MSG_STAT_ANY): New macro.
11073 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
11074 (MSG_STAT_ANY): Likewise.
11075 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
11076 (MSG_STAT_ANY): Likewise.
11077 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
11078 (MSG_STAT_ANY): Likewise.
11079 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
11080 (MSG_STAT_ANY): Likewise.
11081 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
11082 (MSG_STAT_ANY): Likewise.
11083 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
11084 (MSG_STAT_ANY): Likewise.
11085 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
11086 (MSG_STAT_ANY): Likewise.
11087 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
11088 (MSG_STAT_ANY): Likewise.
11089 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
11090 (MSG_STAT_ANY): Likewise.
11091
11092 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
11093 (MAP_TYPE): Change value to 0x2b.
11094
11095 2018-06-18 Florian Weimer <fweimer@redhat.com>
11096
11097 [BZ #15722]
11098 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
11099 socket with SOCK_CLOEXEC.
11100
11101 2018-06-18 Joseph Myers <joseph@codesourcery.com>
11102
11103 [BZ #23303]
11104 * sysdeps/powerpc/powerpc64/le/Makefile
11105 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
11106 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
11107 (gnulib-tests): Also add $(f128-loader-link) for
11108 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
11109
11110 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
11111
11112 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
11113 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
11114 of sendfile.
11115 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
11116 (sendfile64): New strong alias.
11117 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
11118 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
11119 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
11120 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
11121 attribute.
11122 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
11123 ___pthread_get_cleanup_stack.
11124 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
11125 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
11126 * mach/shortcut.awk: Make syscall stubs include
11127 <mach-shortcuts-hidden.h> and add hidden definition.
11128 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
11129 (__mach_msg): Add hidden prototype.
11130 * mach/msg.c: Include <mach.h>.
11131 (__mach_msg): Add hidden definition.
11132 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
11133 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
11134 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
11135 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
11136 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
11137 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
11138 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
11139 prototype and definition.
11140 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
11141 hidden target for _hurd_self_sigstate.
11142
11143 2018-06-15 Joseph Myers <joseph@codesourcery.com>
11144
11145 [BZ #23007]
11146 * stdlib/tst-strtod-nan-sign-main.c: New file.
11147 * stdlib/tst-strtod-nan-sign.c: Likewise.
11148 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
11149 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
11150 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
11151 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
11152 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
11153
11154 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
11155
11156 [BZ #23007]
11157 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
11158 appropriate sign.
11159
11160 2018-06-14 Florian Weimer <fweimer@redhat.com>
11161
11162 [BZ #23290]
11163 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
11164 that the result stays within the ISO-8859-1 range.
11165 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
11166 characters are defined in IBM273.
11167
11168 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
11169
11170 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
11171 __mach_task_self): Remove attribute_hidden.
11172
11173 2018-06-14 Joseph Myers <joseph@codesourcery.com>
11174
11175 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
11176 ignore -Wrestrict for one test.
11177
11178 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
11179 Szabolcs Nagy <szabolcs.nagy@arm.com>
11180
11181 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
11182
11183 2018-06-14 Florian Weimer <fweimer@redhat.com>
11184
11185 * scripts/update-abilist.sh: Accept empty list of files to patch.
11186
11187 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
11188
11189 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
11190 test-xfail-check-abi-libmachuser): Add.
11191 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
11192 __libc_read and __libc_write to __read and __write.
11193 * sysdeps/hurd/include/hurd/port.h: New file.
11194 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
11195 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
11196 __thread_switch, __evc_wait): Move declarations to...
11197 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
11198 attribute_hidden.
11199 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
11200 use PLT to call _hurd_self_sigstate.
11201
11202 2018-06-13 Joseph Myers <joseph@codesourcery.com>
11203
11204 [BZ #23279]
11205 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
11206 MAX_EXP as overflowing.
11207 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
11208 overflow flag.
11209 (round_str): Output also whether result overflows in each rounding
11210 mode.
11211 * stdlib/tst-strtod-round-data: Add more tests.
11212 * stdlib/tst-strtod-round-data.h: Regenerated.
11213 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
11214 (TEST): Handle extra arguments for overflow flags.
11215 (struct test_overflow): New type.
11216 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
11217 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
11218 (test_in_one_mode): Take argument with overflow information.
11219 (do_test): Update calls to test_in_one_mode.
11220
11221 2018-06-12 Carlos O'Donell <carlos@redhat.com>
11222
11223 * elf/dl-load (_dl_dst_substitute): Correct comment.
11224 (_dl_dst_count): Likewise.
11225
11226 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
11227 lll_futex_timed_wait.
11228
11229 2018-06-12 Joseph Myers <joseph@codesourcery.com>
11230
11231 [BZ #23277]
11232 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
11233 attribute.
11234 * math/test-nan-const.c: New file.
11235 * math/Makefile (tests): Add test-nan-const.
11236 (CFLAGS-test-nan-const.c): New variable.
11237
11238 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
11239
11240 * benchtests/scripts/compare_strings.py (process_results): Add
11241 funcs argument. Compare only functions which are selected.
11242 (main): Check if base function is among selected functions.
11243 Pass selected functions to process_results.
11244 (__main__): Add -f/--functions argument.
11245
11246 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
11247 Hongbo Zhang <hongbo.zhang@linaro.org>
11248
11249 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
11250 __memcpy_falkor for phecda core.
11251 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
11252 __memmove_falkor for phecda core.
11253 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
11254 __memset_falkor for phecda core.
11255 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
11256 for phecda core.
11257 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
11258 macro to identify phecda core.
11259
11260 2018-06-12 Carlos O'Donell <carlos@redhat.com>
11261 Andreas Schwab <schwab@suse.de>
11262 Dmitry V. Levin <ldv@altlinux.org>
11263 Florian Weimer <fweimer@redhat.com>
11264
11265 [BZ #23102]
11266 [BZ #21942]
11267 [BZ #18018]
11268 [BZ #23259]
11269 CVE-2011-0536
11270 * elf/dl-dst.h: Remove DL_DST_COUNT.
11271 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
11272 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
11273 (is_dst): Comment. Support ELF gABI.
11274 (_dl_dst_count): Comment. Simplify and count DSTs.
11275 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
11276 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
11277 locals.
11278
11279 2018-06-12 Zack Weinberg <zackw@panix.com>
11280
11281 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
11282 * sysdeps/unix/sysv/linux/dl-sysdep.c
11283 Include not-cancel.h. Use __close_nocancel instead of __close,
11284 __open64_nocancel instead of __open, __read_nocancel instead of
11285 __libc_read, and __write_nocancel instead of __libc_write.
11286
11287 * csu/check_fds.c (check_one_fd)
11288 * sysdeps/posix/fdopendir.c (__fdopendir)
11289 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
11290 instead of __fcntl and/or __libc_fcntl.
11291
11292 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
11293 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
11294 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
11295 Use __open64_nocancel instead of __open_nocancel.
11296
11297 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
11298 hidden_proto declarations to the end and issue them if either
11299 IS_IN(libc) or IS_IN(rtld).
11300 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
11301 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
11302 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
11303 read_nocancel, waitpid_nocancel, write_nocancel.
11304
11305 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
11306 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
11307 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
11308
11309 * nptl/pt-fcntl.c: New file.
11310 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
11311 (libpthread-routines): Add pt-fcntl.
11312 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
11313 (__libc_fcntl): Remove attribute_hidden.
11314 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
11315 __fcntl_nocancel_adjusted, not fcntl_common.
11316 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
11317 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
11318 to fcntl_nocancel.c.
11319 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
11320 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
11321 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
11322 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
11323
11324 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
11325 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
11326 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
11327 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
11328 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
11329 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
11330 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
11331 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
11332 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
11333 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
11334 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
11335 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
11336 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
11337 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
11338 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
11339 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
11340 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
11341 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
11342 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
11343 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
11344
11345 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
11346 libpthread-routines.
11347 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
11348 defines nothing.
11349
11350 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
11351 __libc_read, and __write instead of __libc_write. Define
11352 __open64 in addition to __open.
11353
11354 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
11355
11356 [BZ #23250]
11357 [BZ #10686]
11358 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
11359 to _private_tm[3] and add __glibc_reserved2.
11360 Add _Static_assert of offset of __private_ss == 0x30.
11361 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
11362 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
11363
11364 2018-06-12 Florian Weimer <fweimer@redhat.com>
11365
11366 x86: Make strncmp usable from rtld.
11367 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
11368 __strncmp_ia32 if in libc (and not in rtld).
11369 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
11370 strncmp if not in libc (and not to __strncmp_sse2).
11371
11372 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
11373
11374 [BZ #23140]
11375 * localedata/locales/gd_GB (mon): Rename to...
11376 (alt_mon): This.
11377 (mon): Import from CLDR (genitive case).
11378 * localedata/locales/hsb_DE (mon): Rename to...
11379 (alt_mon): This.
11380 (mon): Import from CLDR (genitive case).
11381 * localedata/locales/wa_BE (mon): Rename to...
11382 (alt_mon): This.
11383 (mon): Add, fill with the proper genitive forms, but CLDR data
11384 is incomplete; completed according to the comments in this file.
11385 (d_t_fmt): Do not use "di" before the month name, no longer needed.
11386
11387 * localedata/locales/wa_BE (country_name): Reword
11388 "Beljike" -> "Beldjike".
11389
11390 2018-06-11 Joseph Myers <joseph@codesourcery.com>
11391
11392 [BZ #23272]
11393 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
11394 cases of non-finite arguments.
11395 * math/libm-test-fma.inc (fma_test_data): Add more tests.
11396
11397 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
11398
11399 [BZ #23174]
11400 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
11401
11402 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11403
11404 [BZ #23264]
11405 * include/unistd.h (__execvpex): New prototype.
11406 * posix/Makefile (tests): Add tst-spawn4.
11407 (tests-internal): Add tst-spawn4-compat.
11408 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
11409 * posix/tst-spawn4-compat.c: New file.
11410 * posix/tst-spawn4.c: Likewise.
11411 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
11412 binaries as shell scripts.
11413 * sysdeps/posix/spawni.c (__spawni): Likewise.
11414
11415 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
11416
11417 [BZ #23145]
11418 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
11419 ($(all-built-dso:=.dynsym): New target.
11420 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
11421 ($(objpfx)check-initfini.out): New target.
11422 (generated): Add check-initfini.out.
11423 * scripts/check-initfini.awk: New file.
11424 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
11425 (_fini): Likewise.
11426 * sysdeps/alpha/crti.S (_init): Mark as hidden.
11427 (_fini): Likewise.
11428 * sysdeps/arm/crti.S (_init): Mark as hidden.
11429 (_fini): Likewise.
11430 * sysdeps/hppa/crti.S (_init): Mark as hidden.
11431 (_fini): Likewise.
11432 * sysdeps/i386/crti.S (_init): Mark as hidden.
11433 (_fini): Likewise.
11434 * sysdeps/ia64/crti.S (_init): Mark as hidden.
11435 (_fini): Likewise.
11436 * sysdeps/m68k/crti.S (_init): Mark as hidden.
11437 (_fini): Likewise.
11438 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
11439 (_fini): Likewise.
11440 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
11441 (_fini): Likewise.
11442 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
11443 (_fini): Likewise.
11444 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
11445 (_fini): Likewise.
11446 * sysdeps/nios2/crti.S (_init): Mark as hidden.
11447 (_fini): Likewise.
11448 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
11449 (_fini): Likewise.
11450 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
11451 (_fini): Likewise.
11452 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
11453 (_fini): Likewise.
11454 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
11455 (_fini): Likewise.
11456 * sysdeps/sh/crti.S (_init): Mark as hidden.
11457 (_fini): Likewise.
11458 * sysdeps/sparc/crti.S (_init): Mark as hidden.
11459 (_fini): Likewise.
11460 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
11461 (_fini): Likewise.
11462
11463 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11464
11465 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
11466 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
11467 and TF redirection to KFtype and KF only when the default
11468 long double type is not the IEEE 128-bit floating point type.
11469
11470 2018-06-05 Joseph Myers <joseph@codesourcery.com>
11471
11472 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
11473 macro.
11474 (HWCAP_USCAT): Likewise.
11475 (HWCAP_ILRCPC): Likewise.
11476 (HWCAP_FLAGM): Likewise.
11477 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
11478 Increase to 28.
11479 (_dl_aarch64_cap_flags): Add new flag names.
11480
11481 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
11482 (MAP_FIXED_NOREPLACE): New macro.
11483 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
11484 (MAP_FIXED_NOREPLACE): Likewise.
11485 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
11486 (MAP_FIXED_NOREPLACE): Likewise.
11487 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
11488 (MAP_FIXED_NOREPLACE): Likewise.
11489 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
11490 (MAP_FIXED_NOREPLACE): Likewise.
11491 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
11492 (MAP_FIXED_NOREPLACE): Likewise.
11493 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
11494 (MAP_FIXED_NOREPLACE): Likewise.
11495 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
11496 (MAP_FIXED_NOREPLACE): Likewise.
11497 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
11498 (MAP_FIXED_NOREPLACE): Likewise.
11499 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
11500 (MAP_FIXED_NOREPLACE): Likewise.
11501 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
11502 (MAP_FIXED_NOREPLACE): Likewise.
11503 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
11504 (MAP_FIXED_NOREPLACE): Likewise.
11505 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
11506 (MAP_FIXED_NOREPLACE): Likewise.
11507 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
11508 (MAP_FIXED_NOREPLACE): Likewise.
11509 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
11510 (MAP_FIXED_NOREPLACE): Likewise.
11511
11512 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
11513 version to 4.17.
11514
11515 2018-06-04 Joseph Myers <joseph@codesourcery.com>
11516
11517 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
11518 version to 4.17
11519
11520 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
11521
11522 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
11523 int.
11524 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
11525
11526 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11527
11528 * benchtests/scripts/compare_string.py: (process_results) Catch
11529 exception in non-existent base_func and catch exception in
11530 non-existent attribute.
11531 (parse_file) Catch exception if input file does not exist.
11532
11533 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11534
11535 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
11536 options to avoid diff calculation and omit header, respectively.
11537 (main): process --no-diff and --no-header
11538
11539 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11540 H.J. Lu <hongjiu.lu@intel.com>
11541
11542 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11543 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
11544 wcsncmp-sse2.
11545 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
11546 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
11547 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
11548 and __wcsncmp_sse2.
11549 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
11550 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
11551 AVX unaligned load is fast and vzeroupper is preferred.
11552 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
11553 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
11554 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
11555 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
11556 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
11557 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
11558 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
11559 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
11560 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
11561 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
11562 is undefined.
11563
11564 2018-06-01 Florian Weimer <fweimer@redhat.com>
11565
11566 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
11567 configuring with --disable-multi-arch, building with
11568 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
11569 Haswell-era CPU.
11570
11571 2018-06-01 Florian Weimer <fweimer@redhat.com>
11572
11573 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
11574 results from building with “-march=x86-64 -mtune=generic
11575 -mfpmath=sse” and running on a Haswell-era CPU.
11576
11577 2018-06-01 Joseph Myers <joseph@codesourcery.com>
11578
11579 [BZ #18473]
11580 * soft-fp/sqrttf2.c: Remove file.
11581 * soft-fp/sqrtdf2.c: Move to ....
11582 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
11583 <shlib-compat.h>.
11584 (__sqrtdf2): Make conditional on
11585 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
11586 symbol.
11587 * soft-fp/sqrtsf2.c: Move to ....
11588 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
11589 <shlib-compat.h>.
11590 (__sqrtsf2): Make conditional on
11591 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
11592 symbol.
11593 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
11594 (gcc-double-routines): Remove sqrtdf2.
11595 (gcc-quad-routines): Remove sqrttf2.
11596 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
11597 Do not filter out sqrtsf2 and sqrtdf2.
11598 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
11599 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
11600
11601 2018-06-01 Florian Weimer <fweimer@redhat.com>
11602
11603 * sysdeps/generic/libcidn.abilist: Remove file.
11604
11605 2018-06-01 Florian Weimer <fweimer@redhat.com>
11606
11607 [BZ #23236]
11608 * libio/strfile.h (struct _IO_str_fields): Rename members to
11609 discourage their use and add comment.
11610 (_IO_STR_DYNAMIC): Remove unused macro.
11611 * libio/strops.c (_IO_str_init_static_internal): Do not use
11612 callback pointers. Call malloc and free.
11613 (_IO_str_overflow): Do not use callback pointers. Call malloc
11614 and free.
11615 (enlarge_userbuf): Likewise.
11616 (_IO_str_finish): Call free.
11617 * libio/wstrops.c (_IO_wstr_init_static): Initialize
11618 _allocate_buffer_unused.
11619 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
11620 and free.
11621 (enlarge_userbuf): Likewise.
11622 (_IO_wstr_finish): Call free.
11623 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
11624 _allocate_buffer_unused, _free_buffer_unused.
11625 * libio/memstream.c (__open_memstream): Likewise.
11626 * libio/vasprintf.c (_IO_vasprintf): Likewise.
11627 * libio/wmemstream.c (open_wmemstream): Likewise.
11628
11629 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
11630
11631 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
11632 AMD Ryzen 7 1800X.
11633
11634 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
11635
11636 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
11637 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
11638 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
11639 New file.
11640 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
11641 Likewise.
11642 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
11643
11644 2018-05-29 Florian Weimer <fweimer@redhat.com>
11645
11646 * support/Makefile (libsupport-routines): Add
11647 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
11648 xpthread_barrierattr_setpshared.
11649 * support/xpthread_barrierattr_destroy.c: New file.
11650 * support/xpthread_barrierattr_init.c: Likewise.
11651 * support/xpthread_barrierattr_setpshared.c: Likewise.
11652
11653 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
11654
11655 [BZ #23206]
11656 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
11657 _r_debug and update DT_DEBUG for debugger.
11658
11659 2018-05-29 Florian Weimer <fweimer@redhat.com>
11660
11661 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
11662 (tst-strtod5i.out): Likewise.
11663
11664 2018-05-25 Joseph Myers <joseph@codesourcery.com>
11665
11666 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
11667 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
11668 (sparc64-quad-routines): New variable. Moved from ....
11669 [$(subdir) = soft-fp] (sysdep_routines): Add
11670 $(sparc64-quad-routines). Moved from ....
11671 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
11672 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
11673 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
11674 moved from ....
11675 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
11676 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
11677 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
11678 * sysdeps/sparc/sparc64/qp_add.c: ... here.
11679 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
11680 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
11681 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
11682 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
11683 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
11684 * sysdeps/sparc/sparc64/qp_div.c: ... here.
11685 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
11686 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
11687 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
11688 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
11689 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
11690 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
11691 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
11692 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
11693 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
11694 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
11695 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
11696 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
11697 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
11698 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
11699 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
11700 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
11701 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
11702 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
11703 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
11704 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
11705 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
11706 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
11707 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
11708 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
11709 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
11710 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
11711 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
11712 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
11713 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
11714 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
11715 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
11716 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
11717 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
11718 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
11719 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
11720 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
11721 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
11722 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
11723 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
11724 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
11725 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
11726 * sysdeps/sparc/sparc64/qp_util.c: ... here.
11727 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
11728 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
11729 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
11730 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
11731 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
11732 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
11733
11734 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
11735 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
11736 (sparc32-quad-routines): New variable. Moved from ....
11737 [$(subdir) = soft-fp] (sysdep_routines): Add
11738 $(sparc32-quad-routines). Moved from ....
11739 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
11740 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
11741 moved from ....
11742 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
11743 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
11744 * sysdeps/sparc/sparc32/q_add.c: ... here.
11745 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
11746 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
11747 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
11748 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
11749 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
11750 * sysdeps/sparc/sparc32/q_div.c: ... here.
11751 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
11752 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
11753 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
11754 * sysdeps/sparc/sparc32/q_feq.c: ... here.
11755 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
11756 * sysdeps/sparc/sparc32/q_fge.c: ... here.
11757 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
11758 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
11759 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
11760 * sysdeps/sparc/sparc32/q_fle.c: ... here.
11761 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
11762 * sysdeps/sparc/sparc32/q_flt.c: ... here.
11763 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
11764 * sysdeps/sparc/sparc32/q_fne.c: ... here.
11765 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
11766 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
11767 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
11768 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
11769 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
11770 * sysdeps/sparc/sparc32/q_mul.c: ... here.
11771 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
11772 * sysdeps/sparc/sparc32/q_neg.c: ... here.
11773 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
11774 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
11775 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
11776 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
11777 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
11778 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
11779 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
11780 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
11781 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
11782 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
11783 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
11784 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
11785 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
11786 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
11787 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
11788 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
11789 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
11790 * sysdeps/sparc/sparc32/q_sub.c: ... here.
11791 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
11792 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
11793 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
11794 * sysdeps/sparc/sparc32/q_util.c: ... here.
11795 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
11796 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
11797 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
11798 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
11799
11800 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11801 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11802
11803 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
11804 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
11805 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
11806 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
11807
11808 2018-05-24 Joseph Myers <joseph@codesourcery.com>
11809
11810 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
11811 powerpc/soft-fp.
11812 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
11813 Likewise.
11814 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
11815 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
11816
11817 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11818
11819 [BZ #23171]
11820 * math/math.h [C++] (iseqsig): Fix parameter type for the long
11821 double version.
11822
11823 2018-05-23 Joseph Myers <joseph@codesourcery.com>
11824
11825 * sysdeps/sh/Implies: Remove sh/soft-fp.
11826 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
11827 * sysdeps/sh/sfp-machine.h: ... here.
11828
11829 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
11830
11831 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
11832 (__mempcpy_erms): Skip zero length.
11833 (__memmove_erms): Likewise.
11834 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11835 (__memset_erms): Likewise.
11836
11837 2018-05-23 Joseph Myers <joseph@codesourcery.com>
11838
11839 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
11840 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
11841 Add functions moved from ....
11842 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
11843 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
11844 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
11845 from ....
11846 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
11847 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
11848 * sysdeps/alpha/e_sqrtl.c: ... here.
11849 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
11850 * sysdeps/alpha/local-soft-fp.h: ... here.
11851 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
11852 * sysdeps/alpha/ots_add.c: ... here.
11853 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
11854 * sysdeps/alpha/ots_cmp.c: ... here.
11855 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
11856 * sysdeps/alpha/ots_cmpe.c: ... here.
11857 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
11858 * sysdeps/alpha/ots_cvtqux.c: ... here.
11859 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
11860 * sysdeps/alpha/ots_cvtqx.c: ... here.
11861 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
11862 * sysdeps/alpha/ots_cvttx.c: ... here.
11863 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
11864 * sysdeps/alpha/ots_cvtxq.c: ... here.
11865 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
11866 * sysdeps/alpha/ots_cvtxt.c: ... here.
11867 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
11868 * sysdeps/alpha/ots_div.c: ... here.
11869 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
11870 * sysdeps/alpha/ots_mul.c: ... here.
11871 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
11872 * sysdeps/alpha/ots_nintxq.c: ... here.
11873 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
11874 * sysdeps/alpha/ots_sub.c: ... here.
11875 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
11876 * sysdeps/alpha/sfp-machine.h: ... here.
11877
11878 2018-05-23 Florian Weimer <fweimer@redhat.com>
11879
11880 [BZ #19728]
11881 [BZ #19729]
11882 [BZ #22247]
11883 CVE-2016-6261
11884 CVE-2016-6263
11885 CVE-2017-14062
11886 Switch to extern IDNA implementation (libidn2).
11887 * libidn: Remove subdirectory.
11888 * LICENSES: Do not mention licensing conditions for the removed
11889 libidn code.
11890 * config.h.in (HAVE_LIBIDN): Remove.
11891 * include/dlfcn.h (__libc_dlopen): Update comment.
11892 * include/idna.h: Remove file.
11893 * inet/Makefile (routines): Add idna.
11894 (tests-static, tests-internal): Add tst-idna_name_classify.
11895 (LOCALES): Generate locales for tests.
11896 (tst-idna_name_classify.out): Depend on generated locales.
11897 * inet/idna_name_classify.c: New file.
11898 * inet/tst-idna_name_classify.c: Likewise.
11899 * inet/net-internal.h (__idna_to_dns_encoding)
11900 (__idna_from_dns_encoding): Declare.
11901 * inet/net-internal.h (enum idna_name_classification): Define.
11902 (__idna_name_classify): Declare.
11903 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
11904 __idna_from_dns_encoding.
11905 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
11906 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
11907 name as a fallback in case of encoding errors.
11908 (getnameinfo): Use DEPRECATED_NI_IDN.
11909 * inet/idna.c: New file.
11910 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
11911 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
11912 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
11913 (modules-names): Add tst-no-libidn2.
11914 (extra-test-objs): Add tst-no-libidn2.os.
11915 (LDFLAGS-tst-no-libidn2.so): Set soname.
11916 (LOCALES): Set, and generate locales.
11917 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
11918 (tst-resolv-ai_idn-latin1): Likewise.
11919 (tst-resolv-ai_idn-nolibidn2): Likewise.
11920 (tst-resolv-ai_idn.out): Depend on locales.
11921 (tst-resolv-ai_idn-latin1.out): Depend on locales.
11922 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
11923 tst-no-libidn2.so.
11924 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
11925 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
11926 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
11927 * resolv/tst-resolv-ai_idn.c: New file.
11928 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
11929 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
11930 * resolv/tst-no-libidn2.c: Likewise.
11931 * support/support_format_addrinfo.c (format_ai_flags): Do not
11932 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
11933 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
11934 (gaih_inet): Call __idna_to_dns_encoding and
11935 __idna_from_dns_encoding, and use the original (punycode) name if
11936 __idna_from_dns_encoding fails due to an encoding error.
11937 (getaddrinfo): Use DEPRECATED_AI_IDN.
11938 * sysdeps/unix/inet/Subdirs (libidn): Remove.
11939 * sysdeps/unix/inet/configure: Remove file.
11940 * sysdeps/unix/inet/configure.ac: Likewise.
11941
11942 2018-05-23 Florian Weimer <fweimer@redhat.com>
11943
11944 Implement allocate_once.
11945 * include/allocate_once.h: New file.
11946 * misc/allocate_once.c: Likewise.
11947 * misc/tst-allocate_once.c: Likewise.
11948 * misc/Makefile (routines): Add allocate_once.
11949 (tests-internal): Add tst-allocate_once.
11950 (generated): Add tst-allocate_once.mtrace,
11951 tst-allocate_once-mem.out.
11952 (tests-special): Add tst-allocate_once-mem.out.
11953 (tst-allocate_once-ENV): Set MALLOC_TRACE.
11954 (tst-allocate_once-mem.out): Call mtrace.
11955 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
11956
11957 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
11958
11959 [BZ #23196]
11960 * string/test-memcpy.c (do_test1): New function.
11961 (test_main): Call it.
11962
11963 2018-05-23 Andreas Schwab <schwab@suse.de>
11964
11965 [BZ #23196]
11966 CVE-2018-11237
11967 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
11968 (L(preloop_large)): Save initial destination pointer in %r11 and
11969 use it instead of %rax after the loop.
11970 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
11971
11972 2018-05-22 Joseph Myers <joseph@codesourcery.com>
11973
11974 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
11975 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
11976 -I../soft-fp. Moved from ....
11977 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
11978 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
11979 * sysdeps/aarch64/e_sqrtl.c: ... here.
11980 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
11981 * sysdeps/aarch64/sfp-machine.h: ... here.
11982
11983 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
11984 -Wmaybe-uninitialized around access to fq[0].
11985 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
11986 Likewise.
11987
11988 [BZ #18471]
11989 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
11990 aliases for non-libc case of versioned symbols.
11991 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
11992 (llseek): Define as compat symbol if
11993 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
11994 with link warning.
11995 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
11996 Make into a compat symbol, disabled for minimum symbol version
11997 GLIBC_2.28 and later.
11998 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
11999
12000 2018-05-22 Florian Weimer <fweimer@redhat.com>
12001
12002 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
12003 not add -mpreferred-stack-boundary=4.
12004 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
12005 (stack-align-test-flags): Likewise.
12006 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
12007 Likewise.
12008 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
12009 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
12010 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
12011 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
12012 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
12013 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
12014 (CFLAGS-tst-align2.c): Likewise.
12015
12016 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
12017
12018 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
12019 (index_arch_Prefer_FSRM): Likewise.
12020 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
12021 Also check Prefer_FSRM.
12022 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
12023 Also return OPTIMIZE (erms) for Prefer_FSRM.
12024
12025 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
12026
12027 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
12028 (index_cpu_FSRM): Likewise.
12029 (reg_FSRM): Likewise.
12030
12031 2018-05-18 Joseph Myers <joseph@codesourcery.com>
12032
12033 * math/gen-tgmath-tests.py: Import sys.
12034 (Tests.__init__): Initialize macros_seen.
12035 (Tests.add_tests): Add macro to macros_seen. Only generate tests
12036 if requested to do so for this macro.
12037 (Tests.add_all_tests): Take argument for macro for which to
12038 generate tests.
12039 (Tests.check_macro_list): New function.
12040 (main): Handle check-list argument and argument specifying macro
12041 for which to generate tests.
12042 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
12043 [PYTHON] (tgmath3-macro-tests): Likewise.
12044 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
12045 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
12046 not test-tgmath3.c.
12047 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
12048 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
12049 to CFLAGS.
12050 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
12051 [PYTHON] ($(foreach
12052 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
12053 rule.
12054 [PYTHON] (tests-special): Add
12055 $(objpfx)test-tgmath3-macro-list.out.
12056 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
12057
12058 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
12059 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
12060 later.
12061
12062 [BZ #22639]
12063 * time/tzset.c (SECSPERDAY): Cast to time_t.
12064 * time/tst-y2039.c: New file.
12065 * time/Makefile (tests): Add tst-y2039.
12066
12067 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
12068
12069 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
12070 (PREFETCH_ONE_SET): Remove duplicate line.
12071
12072 2018-05-17 Florian Weimer <fweimer@redhat.com>
12073
12074 * sysdeps/generic/math-type-macros-double.h: Include
12075 <math-nan-payload-double.h> after <libm-alias-double.h>.
12076 * sysdeps/generic/math-type-macros-float.h: Include
12077 <math-nan-payload-float.h> after <libm-alias-float.h>.
12078 * sysdeps/generic/math-type-macros-float128.h: Include
12079 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
12080 * sysdeps/generic/math-type-macros-ldouble.h: Include
12081 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
12082
12083 2018-05-17 Andreas Schwab <schwab@suse.de>
12084
12085 * resolv/res_send.c (__res_context_send): Don't set errno when
12086 returing error after malloc failure.
12087
12088 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
12089
12090 * nptl/allocatestack.c (allocate_stack): Remove the
12091 !__ASSUME_PRIVATE_FUTEX paths.
12092 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
12093 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
12094 Likewise.
12095 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
12096 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
12097 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
12098 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
12099 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
12100 !__ASSUME_PRIVATE_FUTEX path.
12101 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
12102 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
12103 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
12104 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
12105 !__ASSUME_PRIVATE_FUTEX macros.
12106 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
12107 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
12108 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
12109 * sysdeps/unix/sysv/linux/kernel-features.h
12110 (__ASSUME_PRIVATE_FUTEX): Removed.
12111
12112 2018-05-17 Joseph Myers <joseph@codesourcery.com>
12113
12114 * math/Makefile (libm-narrow-fns): Add div.
12115 (libm-test-funcs-narrow): Likewise.
12116 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
12117 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
12118 * math/gen-auto-libm-tests.c (test_functions): Add div.
12119 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
12120 (NARROW_DIV_ROUND_TO_ODD): Likewise.
12121 (NARROW_DIV_TRIVIAL): Likewise.
12122 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
12123 macro.
12124 (__ddivl): Likewise.
12125 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
12126 ddiv.
12127 (CFLAGS-nldbl-ddiv.c): New variable.
12128 (CFLAGS-nldbl-fdiv.c): Likewise.
12129 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
12130 __nldbl_ddivl.
12131 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
12132 prototype.
12133 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
12134 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
12135 * math/auto-libm-test-in: Add tests of div.
12136 * math/auto-libm-test-out-narrow-div: New generated file.
12137 * math/libm-test-narrow-div.inc: New file.
12138 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
12139 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
12140 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
12141 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
12142 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
12143 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
12144 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
12145 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
12146 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
12147 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
12148 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
12149 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
12150 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
12151 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
12152 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
12153 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
12154 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
12155 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
12156 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12157 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12158 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12159 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12160 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12161 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12162 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12163 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12164 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12165 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12166 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12167 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12168 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12169 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12170 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12171 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
12172 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12173 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12174 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12175 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12176 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12177 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12178 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12179 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12180 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12181 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12182
12183 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12184
12185 [BZ #23178]
12186 * nscd/nscd-client.h (sendfileall): Remove prototype.
12187 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
12188 (handle_request): Use writeall instead of sendfileall.
12189 * nscd/aicache.c (addhstaiX): Likewise.
12190 * nscd/grpcache.c (cache_addgr): Likewise.
12191 * nscd/hstcache.c (cache_addhst): Likewise.
12192 * nscd/initgrcache.c (addinitgroupsX): Likewise.
12193 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
12194 * nscd/pwdcache.c (cache_addpw): Likewise.
12195 * nscd/servicescache.c (cache_addserv): Likewise.
12196 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
12197 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
12198 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
12199 Remove define.
12200
12201 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
12202
12203 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
12204 Include <string/strncat.c>.
12205 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
12206 alias.
12207 (__GI___strncat): New hidden alias.
12208
12209 2018-05-16 Joseph Myers <joseph@codesourcery.com>
12210
12211 * sysdeps/mips/mips32/libm-test-ulps: Update.
12212 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
12213
12214 2018-05-16 Florian Weimer <fweimer@redhat.com>
12215
12216 * support/Makefile (libsupport-routines): Add support_quote_blob,
12217 support_test_compare_blob.
12218 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
12219 * support/check.h (TEST_COMPARE_BLOB): Define.
12220 (support_test_compare_blob): Declare.
12221 * support/support.h (support_quote_blob): Declare.
12222 * support/support_quote_blob.c: New file.
12223 * support/support_test_compare_blob.c: Likewise.
12224 * support/tst-support_quote_blob.c: Likewise.
12225 * support/tst-test_compare_blob.c: Likewise.
12226
12227 2018-05-16 Florian Weimer <fweimer@redhat.com>
12228
12229 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
12230 of <strtod_nan_double.h>.
12231 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
12232 instead of SET_MANTISSA.
12233 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
12234 of include <strtod_nan_float.h>.
12235 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
12236 instead of <strtod_nan_ldouble.h>.
12237 * stdlib/strtod_nan_double.h: Move to ...
12238 * sysdeps/generic/math-nan-payload-double.h: ... here.
12239 (FLOAT): Remove definition.
12240 (SET_MANTISSA): Rename to ...
12241 (SET_NAN_PAYLOAD): ... this.
12242 * stdlib/strtod_nan_float.h: Move to ...
12243 * sysdeps/generic/math-nan-payload-float.h: ... here.
12244 (FLOAT): Remove definition.
12245 (SET_MANTISSA): Rename to ...
12246 (SET_NAN_PAYLOAD): ... this.
12247 * sysdeps/generic/math-type-macros-double.h: Include
12248 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
12249 instead of <math-svid-compat.h>.
12250 * sysdeps/generic/math-type-macros-float.h: Include
12251 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
12252 instead of <math-svid-compat.h>.
12253 * sysdeps/generic/math-type-macros-float128.h: Include
12254 <math-nan-payload-float128.h>.
12255 * sysdeps/generic/math-type-macros-ldouble.h: Include
12256 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
12257 instead of <math-svid-compat.h>.
12258 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
12259 check for definition.
12260 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
12261 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
12262 Include <ieee754_float128.h>.
12263 (FLOAT): Remove definition.
12264 (SET_MANTISSA): Rename to ...
12265 (SET_NAN_PAYLOAD): ... this.
12266 * sysdeps/ieee754/float128/strtof128_nan.c: Include
12267 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
12268 Do not include <float128_private.h>.
12269 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
12270 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
12271 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
12272 (FLOAT): Remove definition.
12273 (SET_MANTISSA): Rename to ...
12274 (SET_NAN_PAYLOAD): ... this.
12275 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
12276 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
12277 (FLOAT): Remove definition.
12278 (SET_MANTISSA): Rename to ...
12279 (SET_NAN_PAYLOAD): ... this.
12280 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
12281 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
12282 (FLOAT): Remove definition.
12283 (SET_MANTISSA): Rename to ...
12284 (SET_NAN_PAYLOAD): ... this.
12285 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
12286 of "../stdlib/strtod_nan_double.h".
12287 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
12288 of "../stdlib/strtod_nan_float.h".
12289 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
12290 instead of "../stdlib/strtod_nan_ldouble.h".
12291 * manual/arith.texi (Parsing of Floats): Adjust comment.
12292
12293 2018-05-16 Joseph Myers <joseph@codesourcery.com>
12294
12295 * math/Makefile (libm-narrow-fns): Add mul.
12296 (libm-test-funcs-narrow): Likewise.
12297 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
12298 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
12299 * math/gen-auto-libm-tests.c (test_functions): Add mul.
12300 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
12301 (NARROW_MUL_ROUND_TO_ODD): Likewise.
12302 (NARROW_MUL_TRIVIAL): Likewise.
12303 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
12304 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
12305 macro.
12306 (__dmull): Likewise.
12307 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
12308 dmul.
12309 (CFLAGS-nldbl-dmul.c): New variable.
12310 (CFLAGS-nldbl-fmul.c): Likewise.
12311 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
12312 __nldbl_dmull.
12313 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
12314 prototype.
12315 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
12316 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
12317 * math/auto-libm-test-in: Add tests of mul.
12318 * math/auto-libm-test-out-narrow-mul: New generated file.
12319 * math/libm-test-narrow-mul.inc: New file.
12320 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
12321 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
12322 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
12323 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
12324 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
12325 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
12326 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
12327 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
12328 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
12329 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
12330 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
12331 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
12332 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
12333 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
12334 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
12335 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
12336 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
12337 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
12338 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12339 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12340 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12341 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12342 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12343 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12344 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12345 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12346 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12347 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12348 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12349 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12350 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12351 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12352 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12353 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
12354 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12355 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12356 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12357 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12358 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12359 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12360 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12361 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12362 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12363 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12364
12365 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
12366
12367 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
12368 with *%eax in call.
12369
12370 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
12371
12372 * sysdeps/i386/ldsodefs.h: Removed.
12373 * sysdeps/x86_64/ldsodefs.h: Moved to ...
12374 * sysdeps/x86/ldsodefs.h: This.
12375 (La_i86_regs): New.
12376 (La_i86_retval): Likewise.
12377 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
12378 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
12379
12380 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
12381
12382 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
12383 unnecessary testl.
12384
12385 2018-05-13 Alan Modra <amodra@gmail.com>
12386
12387 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
12388 R_PARISC_TLS_DTPOFF32 reloc addend.
12389
12390 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12391
12392 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
12393 * math/math.h: Restrict the prototype definition for the functions
12394 issignaling(_Float128) and iszero(_Float128); and template
12395 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
12396 __HAVE_FLOAT128_UNLIKE_LDBL.
12397 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
12398 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
12399 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
12400 __f128() constants; define the type _Float128 as long double;
12401 and reuse long double in __CFLOAT128.
12402
12403 2018-05-11 Joseph Myers <joseph@codesourcery.com>
12404
12405 * sysdeps/generic/math_private.h: Do not include
12406 <math-barriers.h>.
12407 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
12408 <math_private.h>.
12409 * math/fromfp.h: Include <math-barriers.h>.
12410 * math/math-narrow.h: Likewise.
12411 * math/s_nextafter.c: Likewise.
12412 * math/s_nexttowardf.c: Likewise.
12413 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
12414 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
12415 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
12416 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
12417 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12418 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12419 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12420 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12421 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12422 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12423 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12424 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12425 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12426 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12427 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
12428 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
12429 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12430 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12431 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
12432 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12433 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12434 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12435 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12436 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12437 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12438 * sysdeps/ieee754/k_standardl.c: Likewise.
12439 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12440 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12441 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
12442 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
12443 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12444 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12445 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12446 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12447 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12448 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
12449 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
12450 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12451 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12452 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12453 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12454 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
12455 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
12456 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
12457 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12458 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12459 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
12460 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
12461
12462 2018-05-11 Florian Weimer <fweimer@redhat.com>
12463
12464 Use 64-bit epoch values in the time zone file parser.
12465 * include/time.h (internal_time_t): Define.
12466 (__tzfile_compute): Use it.
12467 * time/tzfile.c (struct leap): Use internal_time_t for epoch
12468 member.
12469 (transitions): Switch to internal_time_t.
12470 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
12471 types.
12472 (__tzfile_compute): Use internal_time_t for timer argument. Check
12473 for truncation before calling __offtime.
12474
12475 2018-05-11 Florian Weimer <fweimer@redhat.com>
12476
12477 [BZ #23166]
12478 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
12479 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
12480 Likewise.
12481 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
12482 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
12483 export without --enable-obsolete-rpc.
12484 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
12485 symbol. This should not have been exported, ever.
12486
12487 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
12488
12489 [BZ #23152]
12490 * localedata/locales/gd_GB (abmon): Fix typo in May:
12491 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
12492
12493 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
12494
12495 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
12496 Use multiple registers to copy data in loop tail.
12497
12498 * sysdeps/aarch64/multiarch/memmove_falkor.S
12499 (__memmove_falkor): Use multiple registers to move data in
12500 loop tail.
12501
12502 2018-05-10 Joseph Myers <joseph@codesourcery.com>
12503
12504 * math/math-underflow.h: New file.
12505 * sysdeps/generic/math_private.h: Do not include <float.h>.
12506 (fabs_tg): Remove macro. Moved to math-underflow.h.
12507 (min_of_type_f): Likewise.
12508 (min_of_type_): Likewise.
12509 (min_of_type_l): Likewise.
12510 (min_of_type_f128): Likewise.
12511 (min_of_type): Likewise.
12512 (math_check_force_underflow): Likewise.
12513 (math_check_force_underflow_nonneg): Likewise.
12514 (math_check_force_underflow_complex): Likewise.
12515 * math/e_exp2_template.c: Include <math-underflow.h>.
12516 * math/k_casinh_template.c: Likewise.
12517 * math/s_catan_template.c: Likewise.
12518 * math/s_catanh_template.c: Likewise.
12519 * math/s_ccosh_template.c: Likewise.
12520 * math/s_cexp_template.c: Likewise.
12521 * math/s_clog10_template.c: Likewise.
12522 * math/s_clog_template.c: Likewise.
12523 * math/s_csin_template.c: Likewise.
12524 * math/s_csinh_template.c: Likewise.
12525 * math/s_csqrt_template.c: Likewise.
12526 * math/s_ctan_template.c: Likewise.
12527 * math/s_ctanh_template.c: Likewise.
12528 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
12529 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12530 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12531 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12532 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12533 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12534 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12535 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12536 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12537 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12538 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12539 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12540 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12541 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12542 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12543 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12544 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12545 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12546 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12547 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12548 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12549 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12550 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12551 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12552 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12553 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12554 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
12555 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12556 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12557 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12558 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12559 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12560 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12561 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12562 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12563 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
12564 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12565 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12566 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12567 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12568 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
12569 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
12570 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12571 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12572 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
12573 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12574 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
12575 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
12576 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12577 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12578 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
12579 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
12580 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
12581 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
12582 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12583 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
12584 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12585 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
12586 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
12587 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12588 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12589 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
12590 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12591 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
12592 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12593 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12594 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12595 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
12596 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12597 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
12598 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12599 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
12600 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
12601 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
12602 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12603 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12604 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12605 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
12606 * sysdeps/x86/fpu/powl_helper.c: Likewise.
12607 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
12608 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
12609 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
12610 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
12611 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
12612
12613 2018-05-09 Joseph Myers <joseph@codesourcery.com>
12614
12615 * sysdeps/generic/math-barriers.h: New file.
12616 * sysdeps/generic/math_private.h [!math_opt_barrier]
12617 (math_opt_barrier): Move to math-barriers.h.
12618 [!math_opt_barrier] (math_force_eval): Likewise.
12619 * sysdeps/aarch64/fpu/math-barriers.h: New file.
12620 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
12621 math-barriers.h.
12622 (math_force_eval): Likewise.
12623 * sysdeps/alpha/fpu/math-barriers.h: New file.
12624 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
12625 math-barriers.h.
12626 (math_force_eval): Likewise.
12627 * sysdeps/x86/fpu/math-barriers.h: New file.
12628 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
12629 math-barriers.h.
12630 (math_force_eval): Likewise.
12631 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
12632 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
12633 multiple-include guard for rename.
12634 * sysdeps/powerpc/fpu/math-barriers.h: New file.
12635 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
12636 math-barriers.h.
12637 (math_force_eval): Likewise.
12638
12639 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
12640
12641 [BZ #22786]
12642 CVE-2018-11236
12643 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
12644 computation.
12645 * stdlib/Makefile (test-bz22786): New test.
12646 * stdlib/test-bz22786.c: New test.
12647
12648 2018-05-09 Joseph Myers <joseph@codesourcery.com>
12649
12650 * include/math-narrow-eval.h: New file. Contents moved from ....
12651 * sysdeps/generic/math_private.h: ... here.
12652 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
12653 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
12654 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
12655 * stdlib/strtod_l.c: Likewise.
12656 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
12657 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
12658 * sysdeps/i386/fpu/s_fdim.c: Likewise.
12659 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12660 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12661 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12662 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12663 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
12664 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12665 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
12666 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12667 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
12668 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12669 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12670 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12671 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12672 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
12673 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
12674 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12675 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12676 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12677 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12678 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12679 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12680 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
12681 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12682 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12683 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12684 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
12685
12686 2018-05-08 Andreas Schwab <schwab@suse.de>
12687
12688 * sysdeps/nptl/internaltypes.h: Fix comment.
12689
12690 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
12691
12692 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
12693 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
12694 hidden.
12695
12696 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
12697
12698 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
12699 of I into loop header.
12700 * benchtests/bench-memmove-walk.c
12701 (test_main): Likewise.
12702
12703 2018-05-07 Alexandre Oliva <oliva@gnu.org>
12704
12705 Revert:
12706 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
12707 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
12708
12709 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
12710
12711 [BZ #20419]
12712 * elf/dl-load.c (open_verify): Fix stack overflow.
12713 * elf/Makefile (tst-big-note): New test.
12714 * elf/tst-big-note-lib.S: New.
12715 * elf/tst-big-note.c: New.
12716
12717 2018-05-04 Joseph Myers <joseph@codesourcery.com>
12718
12719 * scripts/abilist.awk: Ignore absolute symbols.
12720 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
12721 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
12722 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
12723 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
12724 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
12725 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
12726 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12727 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
12728 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
12729 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
12730 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
12731 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
12732 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
12733 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
12734 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
12735 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
12736 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
12737 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
12738 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12739 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
12740 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
12741 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
12742 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
12743 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
12744 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
12745 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
12746 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
12747 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
12748 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12749 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
12750 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
12751 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12752 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
12753 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
12754 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
12755 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
12756 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
12757 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
12758 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
12759 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
12760 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
12761 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
12762 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
12763 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
12764 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12765 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
12766 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
12767 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
12768 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
12769 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
12770 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
12771 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
12772 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
12773 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
12774 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12775 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
12776 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
12777 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12778 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
12779 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
12780 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
12781 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
12782 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
12783 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
12784 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
12785 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
12786 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
12787 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
12788 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
12789 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
12790 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12791 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
12792 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
12793 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
12794 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
12795 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
12796 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
12797 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
12798 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
12799 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
12800 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12801 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
12802 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
12803 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12804 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
12805 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
12806 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
12807 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
12808 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
12809 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
12810 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
12811 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
12812 Likewise.
12813 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
12814 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12815 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
12816 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
12817 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12818 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
12819 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
12820 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
12821 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
12822 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
12823 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
12824 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
12825 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
12826 Likewise.
12827 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
12828 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12829 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
12830 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
12831 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12832 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
12833 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
12834 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
12835 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
12836 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
12837 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
12838 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
12839 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
12840 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
12841 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12842 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
12843 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
12844 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12845 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
12846 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
12847 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
12848 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
12849 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
12850 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
12851 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12852 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
12853 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
12854 Likewise.
12855 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
12856 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
12857 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
12858 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
12859 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12860 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
12861 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
12862 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
12863 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
12864 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
12865 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
12866 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
12867 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
12868 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
12869 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
12870 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
12871 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
12872 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
12873 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
12874 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
12875 Likewise.
12876 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
12877 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
12878 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
12879 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12880 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
12881 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
12882 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
12883 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
12884 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
12885 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
12886 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12887 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
12888 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
12889 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12890 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
12891 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
12892 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
12893 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
12894 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12895 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
12896 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
12897 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12898 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
12899 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
12900 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
12901 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
12902 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
12903 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
12904 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
12905 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12906 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
12907 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
12908 Likewise.
12909 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
12910 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
12911 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
12912 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
12913 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
12914 Likewise.
12915 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
12916 Likewise.
12917 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
12918 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
12919 Likewise.
12920 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
12921 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12922 Likewise.
12923 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
12924 Likewise.
12925 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
12926 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
12927 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
12928 Likewise.
12929 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
12930 Likewise.
12931 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
12932 Likewise.
12933 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
12934 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
12935 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
12936 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
12937 Likewise.
12938 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
12939 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
12940 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
12941 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12942 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12943 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
12944 Likewise.
12945 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
12946 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
12947 Likewise.
12948 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
12949 Likewise.
12950 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
12951 Likewise.
12952 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
12953 Likewise.
12954 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
12955 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
12956 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
12957 Likewise.
12958 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
12959 Likewise.
12960 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
12961 Likewise.
12962 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
12963 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
12964 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
12965 Likewise.
12966 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
12967 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
12968 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
12969 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
12970 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12971 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
12972 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
12973 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
12974 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
12975 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
12976 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
12977 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
12978 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
12979 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
12980 Likewise.
12981 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12982 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
12983 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
12984 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12985 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
12986 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
12987 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
12988 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
12989 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
12990 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
12991 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
12992 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
12993 Likewise.
12994 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12995 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
12996 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
12997 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12998 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
12999 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
13000 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
13001 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
13002 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
13003 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
13004 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
13005 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
13006 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
13007 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
13008 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
13009 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
13010 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13011 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
13012 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
13013 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
13014 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
13015 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
13016 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
13017 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
13018 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
13019 Likewise.
13020 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
13021 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
13022 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
13023 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
13024 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13025 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
13026 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
13027 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
13028 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
13029 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
13030 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
13031 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
13032 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
13033 Likewise.
13034 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
13035 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
13036 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
13037 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
13038 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13039 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
13040 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
13041 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
13042 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
13043 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
13044 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
13045 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
13046 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
13047 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
13048 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
13049 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
13050 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
13051 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13052 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
13053 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
13054 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
13055 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
13056 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
13057 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
13058 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
13059 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
13060 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
13061 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
13062 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
13063 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
13064 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
13065 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13066 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
13067 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
13068 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
13069 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
13070 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
13071 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
13072
13073 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
13074
13075 [BZ #23137]
13076 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
13077 Use atomic_load_acquire to load __tid.
13078
13079 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
13080
13081 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
13082 Restore the pointer into %rdx, after syscall and use %rdx,
13083 instead of %rsi, to restore context.
13084
13085 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
13086
13087 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
13088 Pop the pointer into %rdx after syscall and use %rdx, instead
13089 of %rsi, to restore context.
13090
13091 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
13092
13093 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
13094 handlers after setjmp.
13095 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
13096 defined.
13097 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
13098 <libc-pointer-arith.h>.
13099 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
13100 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
13101 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
13102 _JUMP_BUF_SIGSET_BITS_PER_WORD.
13103 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
13104 * sysdeps/x86/__longjmp_cancel.S: New file.
13105 * sysdeps/x86/longjmp.c: Likewise.
13106 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
13107
13108 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13109
13110 * NEWS: Add ustat.h deprecation entry.
13111 * bits/ustat.h: Remove file.
13112 * misc/sys/ustat.h: Likewise.
13113 * misc/ustat.h: Likewise.
13114 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
13115 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
13116 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
13117 compatibility mode.
13118 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
13119 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
13120 generic Linux implementation.
13121
13122 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13123
13124 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
13125 * math/w_expl_compat.c: Likewise.
13126 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
13127
13128 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
13129
13130 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
13131
13132 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13133
13134 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
13135 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
13136 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
13137 Remove.
13138 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
13139 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
13140 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
13141 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
13142 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
13143 and SYSCALL_LL64.
13144
13145 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13146
13147 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
13148
13149 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
13150 * math/w_asin_template.c: Likewise.
13151 * math/w_atanh_template.c: Likewise.
13152
13153 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
13154
13155 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
13156 to powerpc/powerpc64/be for big-endian.
13157 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
13158 little-endian.
13159
13160 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
13161 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
13162 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
13163 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
13164 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
13165 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
13166 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
13167 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
13168 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
13169 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
13170 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
13171 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
13172 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
13173 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
13174 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
13175 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
13176 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
13177 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
13178 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
13179 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
13180 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
13181 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
13182 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
13183 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
13184 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
13185 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
13186 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
13187 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
13188 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
13189 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
13190 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
13191 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
13192
13193 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
13194 adjusted to imply powerpc64 and older processors on powerpc64/be.
13195 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
13196 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
13197 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
13198 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
13199 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
13200 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
13201 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
13202 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
13203 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
13204 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
13205 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
13206 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
13207 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
13208 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
13209 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
13210 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
13211 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
13212 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
13213 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
13214 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
13215 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
13216 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
13217 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
13218 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
13219 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
13220 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
13221 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
13222 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
13223 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
13224 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
13225 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
13226
13227 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
13228 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
13229 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
13230 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
13231
13232 * sysdeps/powerpc/powerpc64/be/Implies: New file.
13233 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
13234 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
13235 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
13236
13237 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
13238 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
13239 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
13240 * sysdeps/powerpc/powerpc64le/configure: Likewise.
13241 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
13242 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
13243 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
13244 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
13245 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
13246 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
13247 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
13248
13249 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
13250 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
13251 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
13252 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
13253 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
13254 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
13255 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
13256 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
13257 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
13258 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
13259 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
13260
13261 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
13262 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
13263 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
13264 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
13265 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
13266 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
13267 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
13268 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
13269 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
13270 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
13271 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
13272 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
13273
13274 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
13275 and adjusted to imply olders processors.
13276 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
13277 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
13278 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
13279 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
13280 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
13281 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
13282 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
13283 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
13284 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
13285 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
13286 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
13287
13288 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
13289 powerpc64/le.
13290 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
13291 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
13292
13293 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
13294 powerpc64le.
13295 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
13296 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
13297
13298 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
13299 powerpc64/be.
13300 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
13301 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
13302 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
13303
13304 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
13305 powerpc64 and adjusted.
13306 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
13307 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
13308 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
13309 Likewise.
13310
13311 2018-04-27 Joseph Myers <joseph@codesourcery.com>
13312
13313 * sysdeps/tile: Remove.
13314 * sysdeps/unix/sysv/linux/tile: Likewise.
13315 * README (tilegx-*-linux-gnu): Remove from list of supported
13316 configurations.
13317 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
13318 contribution of support for generic Linux kernel syscall
13319 interface.
13320 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
13321 tilegx configurations.
13322 (Config.install_linux_headers): Do not handle tile.
13323 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
13324 in comment.
13325 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
13326 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
13327 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
13328 conditional undefine and redefine.
13329 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
13330 in comment.
13331 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
13332 conditional undefine and redefine.
13333
13334 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
13335
13336 * signal/tst-sigaction.c: New file to test BZ #23069.
13337 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
13338
13339 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13340
13341 [BZ #22766]
13342 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
13343 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
13344 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
13345 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
13346
13347 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13348
13349 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
13350 _DIRENT_MATCHES_DIRENT64 is not defined.
13351 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
13352 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
13353 is defined.
13354 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
13355 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
13356
13357 2018-04-25 Joseph Myers <joseph@codesourcery.com>
13358
13359 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
13360 version to GCC 8 branch.
13361
13362 2018-04-24 Joseph Myers <joseph@codesourcery.com>
13363
13364 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
13365 (check_no_hidden): Use type of original function when declaring
13366 alias.
13367
13368 * sysdeps/unix/sysv/linux/sys/ptrace.h
13369 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
13370 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
13371 (struct __ptrace_seccomp_metadata): New type.
13372 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
13373 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13374 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
13375 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13376 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
13377 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13378 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
13379 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13380 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
13381 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13382 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
13383 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13384 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
13385 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13386 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
13387 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13388
13389 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13390
13391 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
13392 defined.
13393 * dirent/versionsort.c (versionsort): Likewise.
13394 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
13395 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
13396 * dirent/versionsort64.c (versionsort64): Likewise.
13397 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
13398 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
13399 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
13400 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
13401 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
13402 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
13403 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
13404 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
13405 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
13406 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
13407 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
13408 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
13409 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
13410 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
13411
13412 2018-04-23 Joseph Myers <joseph@codesourcery.com>
13413
13414 * elf/elf.h (NT_PPC_PKEY): New macro.
13415
13416 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
13417
13418 [BZ #23094]
13419 * localedata/locales/hr_HR: fix thousands_sep and
13420 mon_thousands_sep
13421
13422 2018-04-20 Joseph Myers <joseph@codesourcery.com>
13423
13424 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
13425 (XTABS): Define to TAB3.
13426
13427 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13428
13429 * sysdeps/hppa/fpu/libm-test-ulps: Update.
13430
13431 * dirent/scandir-tail-common.c: New file.
13432 * dirent/scandir-tail.c: Use scandir-tail-common.c.
13433 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
13434 * dirent/scandir.c: Use scandir-tail-common.c.
13435 * dirent/scandirat.c: Likewise.
13436 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
13437 * dirent/scandir64.c (scandir64): Always build and alias to scandir
13438 if _DIRENT_MATCHES_DIRENT64 is defined.
13439 * dirent/scandirat64.c (scandirat64): Likewise.
13440 * include/dirent.h (__scandir_tail): Only define iff
13441 _DIRENT_MATCHES_DIRENT64 is not defined.
13442 (__scandir64_tail): Define regardless.
13443 (__scandirat, scandirat64): Remove libc_hidden_proto.
13444 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
13445 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
13446 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
13447 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
13448 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
13449 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
13450 * sysdeps/unix/sysv/linux/scandir64.c: New file.
13451
13452 2018-04-20 Joseph Myers <joseph@codesourcery.com>
13453
13454 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
13455 New macro.
13456 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
13457 Increase to 24.
13458 (_dl_aarch64_cap_flags): Add asimdfhm.
13459
13460 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
13461
13462 * sysdeps/nios2/libm-test-ulps: Update.
13463
13464 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13465
13466 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
13467 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
13468
13469 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
13470 requirements.
13471 (_DIRENT_MATCHES_DIRENT64): Undef
13472 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
13473 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
13474 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
13475 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
13476 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
13477 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
13478 use getdents64 syscalls as base.
13479 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
13480 symbol if required.
13481 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
13482 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
13483 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
13484 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
13485 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
13486 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
13487 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
13488 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
13489 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13490 (__get_clockfreq_via_proc_openprom): Use __getdents64.
13491 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
13492
13493 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
13494
13495 * scripts/test_printers_common.py (init_test): Disable lock elision.
13496
13497 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
13498
13499 * math/test-tgmath.c (count_double, count_float,
13500 count_ldouble, count_cdouble, count_cfloat,
13501 count_cldouble): Use volatile int.
13502
13503 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
13504
13505 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
13506 (conformtest-xfail-conds): Add i386-gnu.
13507 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
13508 i386-gnu.
13509 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
13510 ipc_perm.cuid, ipc_perm.cgid): Likewise.
13511 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
13512 msqid_ds.msg_lrpid): Likewise.
13513 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
13514 Likewise.
13515 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
13516 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
13517 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
13518 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
13519 unsigned int.
13520 (struct statvfs64): Likewise.
13521 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
13522 Likewise.
13523 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
13524 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
13525 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
13526 instead of wait_queue.
13527 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
13528 instead of vm_area_struct.
13529 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
13530 struct sched_param definition to it.
13531 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
13532 * bits/types/struct_sched_param.h: New file.
13533 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
13534 <bits/types/struct_sched_param.h> instead of <sched.h>.
13535 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
13536 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
13537 generic version but include <bits/pthreadtypes.h> to make struct
13538 sigevent's sigev_notify_attributes field a pthread_attr_t*.
13539 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
13540 non-compliant.
13541 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
13542 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
13543 [__USE_XOPEN] (OFDEL): New macro.
13544 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
13545 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
13546 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
13547 prototypes.
13548 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
13549 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
13550 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
13551 non-compliant.
13552 * sysdeps/i386/sys/ucontext.h: Likewise.
13553 * sysdeps/m68k/sys/ucontext.h: Likewise.
13554 * sysdeps/mips/sys/ucontext.h: Likewise.
13555 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
13556 * sysdeps/mach/hurd/i386/Makefile
13557 (test-xfail-POSIX/fcntl.h/conform): Add.
13558 (test-xfail-POSIX/signal.h/conform): Add.
13559 (test-xfail-POSIX/semaphore.h/conform): Add.
13560 (test-xfail-POSIX/regex.h/conform): Add.
13561 (test-xfail-POSIX/aio.h/conform): Add.
13562 (test-xfail-POSIX/mqueue.h/conform): Add.
13563 (test-xfail-POSIX/sys/types.h/conform): Add.
13564 (test-xfail-UNIX98/fcntl.h/conform): Add.
13565 (test-xfail-UNIX98/netdb.h/conform): Add.
13566 (test-xfail-UNIX98/signal.h/conform): Add.
13567 (test-xfail-UNIX98/semaphore.h/conform): Add.
13568 (test-xfail-UNIX98/regex.h/conform): Add.
13569 (test-xfail-UNIX98/aio.h/conform): Add.
13570 (test-xfail-UNIX98/ftw.h/conform): Add.
13571 (test-xfail-UNIX98/mqueue.h/conform): Add.
13572 (test-xfail-UNIX98/netinet/in.h/conform): Add.
13573 (test-xfail-UNIX98/sys/wait.h/conform): Add.
13574 (test-xfail-UNIX98/sys/sem.h/conform): Add.
13575 (test-xfail-UNIX98/sys/uio.h/conform): Add.
13576 (test-xfail-UNIX98/sys/socket.h/conform): Add.
13577 (test-xfail-UNIX98/sys/types.h/conform): Add.
13578 (test-xfail-UNIX98/stdlib.h/conform): Add.
13579 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
13580 (test-xfail-POSIX2008/fcntl.h/conform): Add.
13581 (test-xfail-POSIX2008/netdb.h/conform): Add.
13582 (test-xfail-POSIX2008/signal.h/conform): Add.
13583 (test-xfail-POSIX2008/semaphore.h/conform): Add.
13584 (test-xfail-POSIX2008/regex.h/conform): Add.
13585 (test-xfail-POSIX2008/aio.h/conform): Add.
13586 (test-xfail-POSIX2008/mqueue.h/conform): Add.
13587 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
13588 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
13589 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
13590 (test-xfail-POSIX2008/sys/types.h/conform): Add.
13591 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
13592 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
13593 (test-xfail-XOPEN2K/netdb.h/conform): Add.
13594 (test-xfail-XOPEN2K/signal.h/conform): Add.
13595 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
13596 (test-xfail-XOPEN2K/regex.h/conform): Add.
13597 (test-xfail-XOPEN2K/aio.h/conform): Add.
13598 (test-xfail-XOPEN2K/ftw.h/conform): Add.
13599 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
13600 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
13601 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
13602 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
13603 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
13604 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
13605 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
13606 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
13607 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
13608 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
13609 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
13610 (test-xfail-XOPEN2K8/signal.h/conform): Add.
13611 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
13612 (test-xfail-XOPEN2K8/regex.h/conform): Add.
13613 (test-xfail-XOPEN2K8/aio.h/conform): Add.
13614 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
13615 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
13616 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
13617 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
13618 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
13619 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
13620 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
13621 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
13622 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
13623 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
13624 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
13625 i386-gnu.
13626 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
13627 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
13628
13629 2018-04-18 Joseph Myers <joseph@codesourcery.com>
13630
13631 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
13632 --enable-obsolete for powerpc-linux-gnuspe.
13633
13634 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
13635
13636 * conform/data/sys/un.h-data: Allow sun_ prefix.
13637 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
13638 prototypes.
13639 * sysdeps/mach/include/mach.h: Likewise.
13640 * sysdeps/mach/include/mach/mig_support.h: Likewise.
13641 * sysdeps/mach/include/mach_error.h: Likewise.
13642
13643 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13644
13645 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
13646 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
13647 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
13648 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
13649
13650 2018-04-16 Andreas Schwab <schwab@suse.de>
13651
13652 [BZ #19527]
13653 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
13654
13655 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
13656
13657 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
13658 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
13659
13660 2018-04-12 DJ Delorie <dj@redhat.com>
13661
13662 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13663 version to 4.16.
13664
13665 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
13666
13667 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
13668 (struct kernel_sigaction): Use the same definition on 31bit as is used
13669 on 64bit.
13670
13671 2018-04-09 Florian Weimer <fweimer@redhat.com>
13672
13673 [BZ #23037]
13674 * resolv/res_send.c (send_dg): Use designated initializers instead
13675 of assignment to zero-initialize other fields of struct mmsghdr.
13676
13677 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13678
13679 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
13680 __READDIR_ALIAS): Undefine after usage.
13681 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
13682 __READDIR_R_ALIAS): Likewise.
13683 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
13684 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
13685 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
13686 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
13687 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
13688 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
13689 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
13690 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
13691 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
13692 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
13693 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
13694 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
13695 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
13696 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
13697 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
13698 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
13699 * sysdeps/unix/sysv/linux/readdir.c: New file.
13700 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
13701 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
13702 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
13703
13704 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
13705
13706 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
13707
13708 * manual/charset.texi (Converting a Character): Fix typo.
13709
13710 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13711
13712 * sysdeps/sparc/fpu/libm-test-ulps: Update.
13713
13714 * sysdeps/arm/libm-test-ulps: Update.
13715
13716 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
13717 as base implementation.
13718 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
13719 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
13720 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
13721 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
13722 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
13723 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
13724 remove unrequired definitions and update comments.
13725 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
13726 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
13727 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
13728 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
13729 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
13730 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
13731 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
13732 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
13733 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
13734 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
13735 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
13736 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
13737 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
13738 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
13739 and RESET_SA_RESTORER hooks.
13740
13741 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
13742
13743 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
13744
13745 2018-04-05 Florian Weimer <fweimer@redhat.com>
13746
13747 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
13748 integer overflow, memory leak on error, and indeterminate errno
13749 value. Add a null wide character to terminate the result string.
13750 * manual/charset.texi (Converting a Character): Mention embedded
13751 null bytes in the mbrtowc input string. Explain what happens in
13752 the -2 result case. Do not claim that mbrtowc is simple or
13753 obvious to use. Adjust the description of the code example. Use
13754 @code, not @var, for concrete variables.
13755
13756 2018-04-05 Florian Weimer <fweimer@redhat.com>
13757
13758 * manual/examples/mbstouwcs.c: New file.
13759 * manual/charset.texi (Converting a Character): Include it.
13760
13761 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
13762
13763 * include/dirent.h (dirfd): Add hidden proto.
13764 * dirent/dirfd.c (dirfd): Add hidden def.
13765 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
13766 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
13767
13768 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13769
13770 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
13771 sin, cos and sincos to 1 ULP.
13772
13773 2018-04-04 Maciej W. Rozycki <macro@mips.com>
13774
13775 [BZ #19818]
13776 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
13777 symbols.
13778 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
13779 * elf/tst-absolute-sym.c: New file.
13780 * elf/tst-absolute-sym-lib.c: New file.
13781 * elf/tst-absolute-sym-lib.lds: New file.
13782 * elf/Makefile (tests): Add `tst-absolute-sym'.
13783 (modules-names): Add `tst-absolute-sym-lib'.
13784 (LDLIBS-tst-absolute-sym-lib.so): New variable.
13785 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
13786 ($(objpfx)tst-absolute-sym): New dependency.
13787
13788 [BZ #19818]
13789 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
13790 parameter.
13791 (SYMBOL_ADDRESS): New macro.
13792 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
13793 SYMBOL_ADDRESS for symbol address calculation.
13794 * elf/dl-runtime.c (_dl_fixup): Likewise.
13795 (_dl_profile_fixup): Likewise.
13796 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
13797 * elf/rtld.c (dl_main): Likewise.
13798 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
13799 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
13800 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
13801 (elf_machine_rela): Likewise.
13802 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
13803 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
13804 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
13805 (elf_machine_rela): Likewise.
13806 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
13807 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
13808 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
13809 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
13810 Likewise.
13811 (elf_machine_reloc): Likewise.
13812 (elf_machine_got_rel): Likewise.
13813 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
13814 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
13815 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
13816 Likewise.
13817 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
13818 Likewise.
13819 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
13820 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
13821 Likewise.
13822 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
13823 Likewise.
13824 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
13825 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
13826 Likewise.
13827 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13828 Likewise.
13829 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
13830 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
13831
13832 2018-04-04 Zack Weinberg <zackw@panix.com>
13833
13834 * sysdeps/generic/internal-signals.h: Include signal.h,
13835 sigsetops.h, and stdbool.h.
13836 (__libc_signal_block_all): Actually block all signals.
13837 (__libc_signal_block_app): Likewise.
13838 (__libc_signal_restore_set): Actually restore the signal mask.
13839
13840 2018-04-04 Florian Weimer <fweimer@redhat.com>
13841
13842 inet: Actually build and run tst-deadline.
13843 * inet/Makefile (tests-internal): Add tst-deadline and do not
13844 overwrite the variable.
13845 (tests-static-internal): Remove variable.
13846
13847 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
13848
13849 [BZ #22947]
13850 * bits/uio-ext.h (RWF_APPEND): New.
13851 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
13852 * manual/llio.texi: Document RWF_APPEND.
13853 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
13854 (RWF_SUPPORTED): Add RWF_APPEND.
13855
13856 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13857
13858 [BZ #22391]
13859 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
13860 check for internal nptl signals.
13861 * nptl/sigaction.c (__sigaction): Likewise.
13862 * signal/sigaddset.c (sigaddset): Likewise.
13863 * signal/sigdelset.c (sigdelset): Likewise.
13864 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
13865 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
13866 value.
13867 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
13868 to filter out internal nptl signals.
13869 * signal/tst-sigset.c (do_test): Check ech signal indidually and
13870 also check realtime signals using standard macros.
13871 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
13872 __is_internal_signal, __libc_signal_block_all,
13873 __libc_signal_block_app, __libc_signal_restore_set): New functions.
13874 * sysdeps/nptl/sigfillset.c: Remove file.
13875 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
13876 Change return to bool.
13877 (__clear_internal_signals): Remove SIGTIMER clean since it is
13878 equal to SIGCANEL on Linux.
13879 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
13880 signal set was constructed using standard functions.
13881
13882 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
13883
13884 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
13885 ifname is too long.
13886 * hurd/hurdsig.c (interrupted_reply_port_location): Use
13887 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
13888 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
13889 hidden def.
13890 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
13891 * signal/sigaddset.c: Include <sigsetopts.h>.
13892 * signal/sigdelset.c: Likewise.
13893
13894 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13895
13896 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
13897 (__cos): Likewise.
13898 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
13899 logic as sin and cos.
13900
13901 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13902
13903 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
13904 inputs. Return correct sign.
13905 (do_sincos): Remove small input check before do_sin, let do_sin set
13906 the sign.
13907 (__sin): Likewise.
13908 (__cos): Likewise.
13909
13910 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13911
13912 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
13913 (do_cos_slow): Likewise.
13914 (do_sin_slow): Likewise.
13915 (reduce_and_compute): Likewise.
13916 (slow): Likewise.
13917 (slow1): Likewise.
13918 (slow2): Likewise.
13919 (sloww): Likewise.
13920 (sloww1): Likewise.
13921 (sloww2): Likewise.
13922 (bslow): Likewise.
13923 (bslow1): Likewise.
13924 (bslow2): Likewise.
13925 (cslow2): Likewise.
13926
13927 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13928
13929 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
13930 (do_cos): Remove corp parameter and calculations.
13931 (do_sin): Likewise.
13932 (do_sincos): Remove cor variable.
13933 (__sin): Use do_sincos for huge inputs.
13934 (__cos): Likewise.
13935 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13936 (reduce_and_compute_sincos): Remove unused function.
13937
13938 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13939
13940 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
13941 reduce_sincos, improve accuracy to 136 bits.
13942 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
13943 (__sin): Use improved reduction and simplified do_sincos calculation.
13944 (__cos): Likewise.
13945 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13946
13947 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13948
13949 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
13950 (do_sincos_2): Likewise.
13951 (__sin): Remove middle range reduction case.
13952 (__cos): Likewise.
13953 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
13954 reduction case.
13955
13956 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13957
13958 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
13959 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
13960 inputs.
13961 (__cos): Likewise.
13962 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
13963
13964 2018-04-03 Joseph Myers <joseph@codesourcery.com>
13965
13966 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13967 version to 4.16
13968
13969 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13970
13971 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
13972 Remove definitions.
13973 (opendir_oflags): Use O_DIRECTORY regardless.
13974 (__opendir, __opendirat): Remove need_isdir_precheck usage.
13975 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
13976
13977 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13978
13979 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
13980 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
13981 macros.
13982 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
13983 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
13984 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
13985 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
13986 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
13987 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
13988
13989 * htl/Makefile: Bump licence to LGPL 2.1+.
13990 * htl/alloca_cutoff.c: Likewise.
13991 * htl/cthreads-compat.c: Likewise.
13992 * htl/lockfile.c: Likewise.
13993 * htl/pt-alloc.c: Likewise.
13994 * htl/pt-cancel.c: Likewise.
13995 * htl/pt-cleanup.c: Likewise.
13996 * htl/pt-create.c: Likewise.
13997 * htl/pt-dealloc.c: Likewise.
13998 * htl/pt-detach.c: Likewise.
13999 * htl/pt-exit.c: Likewise.
14000 * htl/pt-getattr.c: Likewise.
14001 * htl/pt-initialize.c: Likewise.
14002 * htl/pt-internal.h: Likewise.
14003 * htl/pt-join.c: Likewise.
14004 * htl/pt-self.c: Likewise.
14005 * htl/pt-setcancelstate.c: Likewise.
14006 * htl/pt-setcanceltype.c: Likewise.
14007 * htl/pt-sigmask.c: Likewise.
14008 * htl/pt-spin-inlines.c: Likewise.
14009 * htl/pt-testcancel.c: Likewise.
14010 * htl/pt-yield.c: Likewise.
14011 * htl/tests/test-1.c: Likewise.
14012 * htl/tests/test-10.c: Likewise.
14013 * htl/tests/test-11.c: Likewise.
14014 * htl/tests/test-12.c: Likewise.
14015 * htl/tests/test-13.c: Likewise.
14016 * htl/tests/test-14.c: Likewise.
14017 * htl/tests/test-15.c: Likewise.
14018 * htl/tests/test-16.c: Likewise.
14019 * htl/tests/test-17.c: Likewise.
14020 * htl/tests/test-2.c: Likewise.
14021 * htl/tests/test-3.c: Likewise.
14022 * htl/tests/test-4.c: Likewise.
14023 * htl/tests/test-5.c: Likewise.
14024 * htl/tests/test-6.c: Likewise.
14025 * htl/tests/test-7.c: Likewise.
14026 * htl/tests/test-8.c: Likewise.
14027 * htl/tests/test-9.c: Likewise.
14028 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
14029 * sysdeps/htl/bits/cancelation.h: Likewise.
14030 * sysdeps/htl/bits/pthread-np.h: Likewise.
14031 * sysdeps/htl/bits/pthread.h: Likewise.
14032 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
14033 * sysdeps/htl/bits/semaphore.h: Likewise.
14034 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
14035 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
14036 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
14037 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
14038 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
14039 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
14040 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
14041 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
14042 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
14043 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
14044 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
14045 * sysdeps/htl/old_pt-atfork.c: Likewise.
14046 * sysdeps/htl/pt-atfork.c: Likewise.
14047 * sysdeps/htl/pt-attr-destroy.c: Likewise.
14048 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
14049 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
14050 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
14051 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
14052 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
14053 * sysdeps/htl/pt-attr-getscope.c: Likewise.
14054 * sysdeps/htl/pt-attr-getstack.c: Likewise.
14055 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
14056 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
14057 * sysdeps/htl/pt-attr-init.c: Likewise.
14058 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
14059 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
14060 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
14061 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
14062 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
14063 * sysdeps/htl/pt-attr-setscope.c: Likewise.
14064 * sysdeps/htl/pt-attr-setstack.c: Likewise.
14065 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
14066 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
14067 * sysdeps/htl/pt-attr.c: Likewise.
14068 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
14069 * sysdeps/htl/pt-barrier-init.c: Likewise.
14070 * sysdeps/htl/pt-barrier-wait.c: Likewise.
14071 * sysdeps/htl/pt-barrier.c: Likewise.
14072 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
14073 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
14074 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
14075 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
14076 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
14077 * sysdeps/htl/pt-cond-destroy.c: Likewise.
14078 * sysdeps/htl/pt-cond-init.c: Likewise.
14079 * sysdeps/htl/pt-cond-signal.c: Likewise.
14080 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
14081 * sysdeps/htl/pt-cond-wait.c: Likewise.
14082 * sysdeps/htl/pt-cond.c: Likewise.
14083 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
14084 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
14085 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
14086 * sysdeps/htl/pt-condattr-init.c: Likewise.
14087 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
14088 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
14089 * sysdeps/htl/pt-destroy-specific.c: Likewise.
14090 * sysdeps/htl/pt-equal.c: Likewise.
14091 * sysdeps/htl/pt-getconcurrency.c: Likewise.
14092 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
14093 * sysdeps/htl/pt-getschedparam.c: Likewise.
14094 * sysdeps/htl/pt-getspecific.c: Likewise.
14095 * sysdeps/htl/pt-init-specific.c: Likewise.
14096 * sysdeps/htl/pt-key-create.c: Likewise.
14097 * sysdeps/htl/pt-key-delete.c: Likewise.
14098 * sysdeps/htl/pt-key.h: Likewise.
14099 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
14100 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
14101 * sysdeps/htl/pt-mutex-init.c: Likewise.
14102 * sysdeps/htl/pt-mutex-lock.c: Likewise.
14103 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
14104 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
14105 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
14106 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
14107 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
14108 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
14109 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
14110 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
14111 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
14112 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
14113 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
14114 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
14115 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
14116 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
14117 * sysdeps/htl/pt-mutexattr.c: Likewise.
14118 * sysdeps/htl/pt-once.c: Likewise.
14119 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
14120 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
14121 * sysdeps/htl/pt-rwlock-init.c: Likewise.
14122 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
14123 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
14124 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
14125 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
14126 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
14127 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
14128 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
14129 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
14130 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
14131 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
14132 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
14133 * sysdeps/htl/pt-setconcurrency.c: Likewise.
14134 * sysdeps/htl/pt-setschedparam.c: Likewise.
14135 * sysdeps/htl/pt-setschedprio.c: Likewise.
14136 * sysdeps/htl/pt-setspecific.c: Likewise.
14137 * sysdeps/htl/pt-spin.c: Likewise.
14138 * sysdeps/htl/pt-startup.c: Likewise.
14139 * sysdeps/htl/pthread.h: Likewise.
14140 * sysdeps/htl/sem-close.c: Likewise.
14141 * sysdeps/htl/sem-destroy.c: Likewise.
14142 * sysdeps/htl/sem-getvalue.c: Likewise.
14143 * sysdeps/htl/sem-init.c: Likewise.
14144 * sysdeps/htl/sem-open.c: Likewise.
14145 * sysdeps/htl/sem-post.c: Likewise.
14146 * sysdeps/htl/sem-timedwait.c: Likewise.
14147 * sysdeps/htl/sem-trywait.c: Likewise.
14148 * sysdeps/htl/sem-unlink.c: Likewise.
14149 * sysdeps/htl/sem-wait.c: Likewise.
14150 * sysdeps/hurd/htl/pt-kill.c: Likewise.
14151 * sysdeps/i386/htl/pt-machdep.h: Likewise.
14152 * sysdeps/mach/htl/pt-block.c: Likewise.
14153 * sysdeps/mach/htl/pt-spin.c: Likewise.
14154 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
14155 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
14156 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
14157 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
14158 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
14159 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
14160 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
14161 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
14162 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
14163 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
14164 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
14165 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
14166 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
14167 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
14168 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
14169 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
14170 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
14171 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
14172 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
14173 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
14174 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
14175 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
14176 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
14177 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
14178 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
14179 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
14180 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
14181 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
14182 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
14183 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
14184 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
14185 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
14186 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
14187 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
14188 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
14189 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
14190 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
14191 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
14192 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
14193 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
14194 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
14195 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
14196 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
14197
14198 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
14199 * README: Remove the mention of out-of-tree patches needed for
14200 GNU/Hurd.
14201
14202 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
14203 (UTIME_NOW, UTIME_OMIT): Define macros.
14204
14205 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
14206 instead of pthread_detach.
14207 (__cthread_fork): Call __pthread_create instead of pthread_create.
14208 (__cthread_keycreate): Call __pthread_key_create instead of
14209 pthread_key_create.
14210 (__cthread_getspecific): Call __pthread_getspecific instead of
14211 pthread_getspecific.
14212 (__cthread_setspecific): Call __pthread_setspecific instead of
14213 pthread_setspecific.
14214 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
14215 __pthread_mutex_unlock instead of pthread_mutex_lock and
14216 pthread_mutex_unlock.
14217 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
14218 ___pthread_get_cleanup_stack.
14219 (__pthread_get_cleanup_stack): New strong alias.
14220 * htl/pt-create.c: Include <pthreadP.h>.
14221 (entry_point): Call __pthread_exit instead of pthread_exit.
14222 (pthread_create): Rename to __pthread_create.
14223 (pthread_create): New strong alias.
14224 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
14225 (pthread_detach): New strong alias.
14226 (__pthread_detach): Call __pthread_cond_broadcast instead of
14227 pthread_cond_broadcast.
14228 * htl/pt-exit.c: Include <pthreadP.h>.
14229 (__pthread_exit): Call __pthread_setcancelstate and
14230 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
14231 __pthread_get_cleanup_stack.
14232 * htl/pt-testcancel.c: Include <pthreadP.h>.
14233 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
14234 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
14235 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
14236 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
14237 pthread_attr_getstacksize.
14238 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
14239 Rename to __pthread_attr_getstackaddr.
14240 (pthread_attr_getstackaddr): New strong alias.
14241 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
14242 Rename to __pthread_attr_getstacksize.
14243 (pthread_attr_getstacksize): New strong alias.
14244 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
14245 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
14246 (pthread_attr_setstack): New strong alias.
14247 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
14248 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
14249 pthread_attr_getstacksize, pthread_attr_setstacksize and
14250 pthread_attr_setstackaddr.
14251 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
14252 Rename to __pthread_attr_setstackaddr.
14253 (pthread_attr_setstackaddr): New strong alias.
14254 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
14255 Rename to __pthread_attr_setstacksize.
14256 (pthread_attr_setstacksize): New strong alias.
14257 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
14258 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
14259 pthread_exit.
14260 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
14261 (__pthread_key_create): New hidden def.
14262 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
14263 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
14264 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
14265 __pthread_exit, __pthread_key_create, __pthread_getspecific,
14266 __pthread_setspecific, __pthread_setcancelstate,
14267 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
14268 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
14269 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
14270 declarations.
14271 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
14272 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
14273 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
14274 (pthread_attr_setstackaddr): New strong alias.
14275 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
14276 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
14277 (pthread_attr_setstacksize): New strong alias.
14278 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
14279 (call_exit): Call __pthread_exit instead of pthread_exit.
14280 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
14281 (_pthread_mutex_init): New hidden definition.
14282 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
14283 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
14284 instead of pthread_attr_init and pthread_attr_setstack.
14285
14286 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
14287 __vm_deallocate instead of vm_allocate and vm_deallocate.
14288 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
14289 setenv.
14290 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
14291 of geteuid.
14292 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
14293 strdup.
14294 * hurd/siginfo.c: Include <libioP.h>.
14295 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
14296 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
14297 munmap.
14298 * mach/devstream.c: Include <libioP.h>.
14299 (dealloc_ref): Call __mach_port_deallocate instead of
14300 mach_port_deallocate.
14301 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
14302 Call __mach_port_deallocate instead of mach_port_deallocate.
14303 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
14304 pathconf.
14305 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
14306 munmap.
14307 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
14308 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
14309 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
14310 of munmap.
14311 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
14312 of close.
14313 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
14314 instead of sysconf.
14315 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
14316 __clock_gettime instead of clock_gettime.
14317 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
14318 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
14319 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
14320 * sysdeps/unix/bsd/stty.c (stty): Likewise.
14321 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
14322 tcgetattr.
14323 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
14324 __clock_gettime and __nanosleep instead of clock_gettime and
14325 nanosleep.
14326 * hurd/catch-signal.c (hurd_catch_signal): Rename to
14327 __hurd_catch_signal.
14328 (hurd_catch_signal): New strong alias.
14329 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
14330 __hurd_catch_signal instead of hurd_catch_signal.
14331 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
14332 * hurd/hurdexec.c (_hurd_init): Add hidden def.
14333 * hurd/hurdinit.c (_hurd_init): Add hidden def.
14334 * hurd/hurdsig.c: Include <mach/mig_support.h>.
14335 (_hurd_thread_sigstate): Add hidden def.
14336 (_hurd_internal_post_signal): Use __mutex_unlock instead of
14337 mutex_unlock.
14338 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
14339 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
14340 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
14341 __hurd_file_name_path_lookup.
14342 (hurd_file_name_path_lookup): New strong alias.
14343 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
14344 hurd_file_name_path_lookup.
14345 * mach/errstring.c (mach_error_type): Add hidden def.
14346 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
14347 * mach/mutex-init.c (__mutex_init): Add hidden def.
14348 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
14349 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
14350 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
14351 * sysdeps/mach/hurd/getcwd.c
14352 (_hurd_canonicalize_directory_name_internal): Rename to
14353 __hurd_canonicalize_directory_name_internal.
14354 (_hurd_canonicalize_directory_name_internal): New strong alias.
14355 (__canonicalize_directory_name_internal, __getcwd): Call
14356 __hurd_canonicalize_directory_name_internal instead of
14357 _hurd_canonicalize_directory_name_internal.
14358 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
14359 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
14360 hidden defs.
14361 * sysdeps/hurd/include/hurd.h: New file.
14362 * sysdeps/hurd/include/hurd/fd.h: New file.
14363 * sysdeps/hurd/include/hurd/signal.h: New file.
14364 * sysdeps/mach/include/lock-intern.h: New file.
14365 * sysdeps/mach/include/mach.h: New file.
14366 * sysdeps/mach/include/mach/mig_support.h: New file.
14367 * sysdeps/mach/include/mach_error.h: New file.
14368 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
14369 prototype.
14370 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
14371 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
14372 _HEADER_H_HIDDEN_DEF macro.
14373 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
14374 _hurd_fd_error_signal): Add hidden prototype.
14375 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
14376 hidden def.
14377 * libio/iolibio.h (_IO_puts): New hidden prototype.
14378 * libio/ioputs.c (_IO_puts): New hidden def.
14379 * sysdeps/mach/hurd/localplt.data: New file.
14380
14381 2018-04-02 Agustina Arzille <avarzille@riseup.net>
14382 Amos Jeffries <squid3@treenet.co.nz>
14383 David Michael <fedora.dm0@gmail.com>
14384 Marco Gerards <marco@gnu.org>
14385 Marcus Brinkmann <marcus@gnu.org>
14386 Neal H. Walfield <neal@gnu.org>
14387 Pino Toscano <toscano.pino@tiscali.it>
14388 Richard Braun <rbraun@sceen.net>
14389 Roland McGrath <roland@gnu.org>
14390 Samuel Thibault <samuel.thibault@ens-lyon.org>
14391 Thomas DiModica <ricinwich@yahoo.com>
14392 Thomas Schwinge <tschwinge@gnu.org>
14393
14394 * htl: New directory.
14395 * sysdeps/htl: New directory.
14396 * sysdeps/hurd/htl: New directory.
14397 * sysdeps/i386/htl: New directory.
14398 * sysdeps/mach/htl: New directory.
14399 * sysdeps/mach/hurd/htl: New directory.
14400 * sysdeps/mach/hurd/i386/htl: New directory.
14401 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
14402 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
14403 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
14404
14405 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
14406
14407 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
14408 signals in thread created for runing timers.
14409
14410 2018-04-01 Florian Weimer <fweimer@redhat.com>
14411
14412 * support/support_format_addrinfo.c (support_format_addrinfo):
14413 Include unknown error number in formatted result.
14414
14415 2018-03-29 Florian Weimer <fweimer@redhat.com>
14416
14417 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
14418 capture SIGBUS.
14419
14420 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14421
14422 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
14423 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
14424 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
14425 (__ASSUME_CLONE_BACKWARDS): Define.
14426
14427 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
14428
14429 [BZ #23024]
14430 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
14431 early when linux sentinel value is set.
14432
14433 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
14434
14435 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
14436
14437 2018-03-27 Andreas Schwab <schwab@suse.de>
14438
14439 [BZ #23005]
14440 * resolv/res_send.c (__res_context_send): Return ENOMEM if
14441 allocation of private copy of nsaddr_list fails.
14442
14443 2018-03-26 Joseph Myers <joseph@codesourcery.com>
14444
14445 [BZ #16552]
14446 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
14447 * sysdeps/unix/sysv/linux/umount.c: ... here.
14448 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
14449 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
14450 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
14451 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
14452 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
14453 * sysdeps/unix/sysv/linux/umount.S: Likewise.
14454 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
14455
14456 2018-03-26 Andreas Schwab <schwab@suse.de>
14457
14458 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
14459 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
14460 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
14461 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
14462 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
14463 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
14464 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
14465 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
14466 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
14467 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
14468 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
14469 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
14470 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
14471 (R_RISCV_NUM): Define.
14472
14473 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
14474
14475 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
14476 TLS declaration of errno.
14477 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
14478 __libc_setup_tls.
14479 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
14480 (ARCH_SETUP_TLS): Likewise.
14481 * sysdeps/mach/hurd/libc-start.h: New file copied from
14482 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
14483 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
14484 instead of __libc_setup_tls.
14485 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
14486 __libc_setup_tls before initializing libpthread and running _hurd_init
14487 which starts the signal thread.
14488 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
14489 Declare function.
14490 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14491
14492 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
14493
14494 [BZ #22998]
14495 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
14496 after it is defined.
14497
14498 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
14499 Max Horn <max@quendi.de>
14500
14501 [BZ #22644]
14502 CVE-2017-18269
14503 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
14504 branch conditions.
14505 * string/test-memmove.c (do_test2): New testcase.
14506
14507 2018-03-22 Joseph Myers <joseph@codesourcery.com>
14508
14509 * sysdeps/generic/frame.h: Remove file.
14510 * sysdeps/arm/frame.h: Likewise.
14511 * sysdeps/hppa/frame.h: Likewise.
14512 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
14513 macro.
14514 (GET_FRAME): Likewise.
14515 (GET_STACK): Likewise.
14516 (CALL_SIGHANDLER): Likewise.
14517 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
14518 Likewise.
14519 (GET_FRAME): Likewise.
14520 (GET_STACK): Likewise.
14521 (CALL_SIGHANDLER): Likewise.
14522 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
14523 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14524 (GET_FRAME): Likewise.
14525 (GET_STACK): Likewise.
14526 (CALL_SIGHANDLER): Likewise.
14527 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
14528 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14529 (GET_FRAME): Likewise.
14530 (GET_STACK): Likewise.
14531 (ADVANCE_STACK_FRAME): Likewise.
14532 (CALL_SIGHANDLER): Likewise.
14533 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
14534 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14535 (GET_FRAME): Likewise.
14536 (GET_STACK): Likewise.
14537 (CALL_SIGHANDLER): Likewise.
14538 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
14539 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14540 (GET_FRAME): Likewise.
14541 (GET_STACK): Likewise.
14542 (CALL_SIGHANDLER): Likewise.
14543 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
14544 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14545 (GET_FRAME): Likewise.
14546 (GET_STACK): Likewise.
14547 (CALL_SIGHANDLER): Likewise.
14548 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
14549 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14550 (GET_FRAME): Likewise.
14551 (GET_STACK): Likewise.
14552 (CALL_SIGHANDLER): Likewise.
14553 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
14554 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14555 (GET_FRAME): Likewise.
14556 (GET_STACK): Likewise.
14557 (CALL_SIGHANDLER): Likewise.
14558 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
14559 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14560 (GET_FRAME): Likewise.
14561 (GET_STACK): Likewise.
14562 (CALL_SIGHANDLER): Likewise.
14563 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
14564 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14565 (GET_FRAME): Likewise.
14566 (GET_STACK): Likewise.
14567 (CALL_SIGHANDLER): Likewise.
14568 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
14569 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14570 (GET_FRAME): Likewise.
14571 (GET_STACK): Likewise.
14572 (CALL_SIGHANDLER): Likewise.
14573 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
14574 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14575 (GET_FRAME): Likewise.
14576 (GET_STACK): Likewise.
14577 (CALL_SIGHANDLER): Likewise.
14578 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
14579 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14580 (FIRST_FRAME_POINTER): Likewise.
14581 (ADVANCE_STACK_FRAME): Likewise.
14582 (GET_STACK): Likewise.
14583 (GET_FRAME): Likewise.
14584 (CALL_SIGHANDLER): Likewise.
14585 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
14586 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14587 (ADVANCE_STACK_FRAME): Likewise.
14588 (GET_STACK): Likewise.
14589 (GET_FRAME): Likewise.
14590 (CALL_SIGHANDLER): Likewise.
14591 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
14592 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14593 (GET_FRAME): Likewise.
14594 (GET_STACK): Likewise.
14595 (CALL_SIGHANDLER): Likewise.
14596 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
14597 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14598 (GET_FRAME): Likewise.
14599 (GET_STACK): Likewise.
14600 (CALL_SIGHANDLER): Likewise.
14601
14602 2018-03-21 Joseph Myers <joseph@codesourcery.com>
14603
14604 * sysdeps/x86_64/backtrace.c: Move to ....
14605 * debug/backtrace.c: ... here.
14606 * sysdeps/aarch64/backtrace.c: Remove file.
14607 * sysdeps/alpha/backtrace.c: Likewise.
14608 * sysdeps/hppa/backtrace.c: Likewise.
14609 * sysdeps/ia64/backtrace.c: Likewise.
14610 * sysdeps/mips/backtrace.c: Likewise.
14611 * sysdeps/nios2/backtrace.c: Likewise.
14612 * sysdeps/riscv/backtrace.c: Likewise.
14613 * sysdeps/sh/backtrace.c: Likewise.
14614 * sysdeps/tile/backtrace.c: Likewise.
14615
14616 2018-03-20 Joseph Myers <joseph@codesourcery.com>
14617
14618 [BZ #22987]
14619 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
14620 function.
14621 (fdimf): Likewise.
14622 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
14623
14624 [BZ #17343]
14625 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
14626 possibly overflowing computations.
14627
14628 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
14629
14630 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
14631 values from Linux-specific section now that it is in the GNU section.
14632 * sysdeps/gnu/errlist.c: Regenerate.
14633
14634 2018-03-20 Joseph Myers <joseph@codesourcery.com>
14635
14636 * math/Makefile (libm-narrow-fns): Add sub.
14637 (libm-test-funcs-narrow): Likewise.
14638 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
14639 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
14640 * math/gen-auto-libm-tests.c (test_functions): Add sub.
14641 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
14642 (NARROW_SUB_ROUND_TO_ODD): Likewise.
14643 (NARROW_SUB_TRIVIAL): Likewise.
14644 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
14645 macro.
14646 (__dsubl): Likewise.
14647 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
14648 dsub.
14649 (CFLAGS-nldbl-dsub.c): New variable.
14650 (CFLAGS-nldbl-fsub.c): Likewise.
14651 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
14652 __nldbl_dsubl.
14653 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
14654 prototype.
14655 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
14656 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
14657 * math/auto-libm-test-in: Add tests of sub.
14658 * math/auto-libm-test-out-narrow-sub: New generated file.
14659 * math/libm-test-narrow-sub.inc: New file.
14660 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
14661 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
14662 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
14663 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
14664 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
14665 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
14666 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
14667 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
14668 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
14669 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
14670 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
14671 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
14672 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
14673 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
14674 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
14675 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
14676 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
14677 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
14678 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14679 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14680 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14681 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14682 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14683 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14684 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14685 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14686 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14687 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14688 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14689 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14690 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14691 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14692 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14693 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
14694 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14695 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14696 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14697 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14698 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14699 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14700 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14701 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14702 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
14703 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
14704 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14705 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14706
14707 2018-03-19 Joseph Myers <joseph@codesourcery.com>
14708
14709 [BZ #20079]
14710 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
14711
14712 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
14713
14714 * benchtests/bench-timing.h (attribute_hidden): Undefine.
14715
14716 2018-03-18 Richard Braun <rbraun@sceen.net>
14717
14718 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
14719 thread reference.
14720
14721 2018-03-18 Agustina Arzille <avarzille@riseup.net>
14722
14723 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
14724 (__libc_cleanup_fct): Define function.
14725 (__libc_cleanup_region_start, __libc_cleanup_region_end,
14726 __libc_cleanup_end): Rewrite implementation using
14727 __attribute__ ((__cleanup__)).
14728 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
14729 * hurd/Makefile (routines): Add hurdlock.
14730 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
14731 interface.
14732 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
14733 * hurd/hurdpid.c: Include <lowlevellock.h>
14734 (_S_msg_proc_newids): Use lll_wait to synchronize.
14735 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
14736 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
14737 * mach/Makefile (lock-headers): Remove machine-lock.h.
14738 * mach/lock-intern.h: Include <lowlevellock.h> instead of
14739 <machine-lock.h>.
14740 (__spin_lock_t): New type.
14741 (__SPIN_LOCK_INITIALIZER): New macro.
14742 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
14743 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
14744 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
14745 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
14746 (__mutex_init): Initialize with lll.
14747 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
14748 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
14749 needing lll.
14750 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14751 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
14752 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
14753 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
14754 (__setpgid): Use lll for synchronization.
14755 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
14756 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
14757 instead of <cthreads.h>.
14758 (_IO_lock_inexpensive): New macro
14759 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
14760 (__libc_lock_self0): New declaration.
14761 (__libc_lock_owner_self): New macro.
14762 (__libc_key_t): Remove type.
14763 (_LIBC_LOCK_INITIALIZER): New macro.
14764 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
14765 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
14766 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
14767 __libc_lock_define_initialized_recursive,
14768 __rtld_lock_define_initialized_recursive,
14769 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
14770 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
14771 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
14772 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
14773 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
14774 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
14775 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
14776 New macros.
14777 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
14778 * hurd/hurdlock.c: New file.
14779 * hurd/hurdlock.h: New file.
14780 * mach/lowlevellock.h: New file
14781
14782 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
14783
14784 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
14785 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
14786 when opening a symlink with O_NOFOLLOW.
14787 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
14788 path when flags contains O_NOFOLLOW.
14789 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
14790 if flags contains O_DIRECTORY and the result is a directory.
14791 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
14792 oneself when the pointer given in D is nul (as set by ext2fs).
14793 * sysdeps/mach/hurd/mlockall.c: New file.
14794 * sysdeps/mach/hurd/munlockall.c: New file.
14795
14796 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
14797
14798 * hurd/hurdsig.c: Include <pthread.h>.
14799 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
14800 get the signal thread stack layout.
14801 * hurd/Makefile (headers): Remove threadvar.h.
14802 (inline-headers): Remove threadvar.h.
14803 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
14804 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
14805 __hurd_threadvar_max, __hurd_errno_location.
14806 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
14807 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
14808 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
14809 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
14810 unless TLS is not initialized yet, in which case we do not need a
14811 critical section yet anyway.
14812 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
14813 <machine-sp.h>.
14814 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
14815 declarations.
14816 (__hurd_threadvar_index): Remove enum.
14817 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
14818 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
14819 inlines.
14820 (__hurd_reply_port0): New variable declaration.
14821 (__hurd_local_reply_port): New macro.
14822 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
14823 (interrupted_reply_port_location): Add thread_t parameter. Use it
14824 with THREAD_TCB to access thread-local variables.
14825 (_hurdsig_abort_rpcs): Pass ss->thread to
14826 interrupted_reply_port_location.
14827 (_hurd_internal_post_signal): Likewise.
14828 (_hurdsig_init): Use presence of cthread_fork instead of
14829 __hurd_threadvar_stack_mask to start signal thread by hand.
14830 Remove signal thread threadvar initialization.
14831 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
14832 * hurd/sigunwind.c: Include <hurd/threadvar.h>
14833 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
14834 of threadvar.
14835 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
14836 __libc_lock_self0.
14837 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
14838 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
14839 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
14840 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
14841 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
14842 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
14843 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
14844 define variables.
14845 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
14846 <hurd/threadvar.h>.
14847 [IS_IN(rtld)] (rtld_errno): New variable.
14848 [IS_IN(rtld)] (__errno_location): New weak function.
14849 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
14850 * sysdeps/mach/hurd/errno.c: Remove file.
14851 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
14852 (__fork): Remove THREADVAR_SPACE macro and its use.
14853 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
14854 variable.
14855 (init): Do not initialize threadvar.
14856 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
14857 symbol.
14858 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
14859 __hurd_local_reply_port instead of threadvar.
14860 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
14861 _hurd_sigstate fields.
14862 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
14863 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
14864 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
14865 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
14866 instead of threadvar.
14867 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
14868 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
14869 (use_threadvar, global_reply_port): Remove variables.
14870 (__hurd_reply_port0): New variable.
14871 (__mig_get_reply_port): Use __hurd_local_reply_port and
14872 __hurd_reply_port0 instead of threadvar.
14873 (__mig_dealloc_reply_port): Likewise.
14874 (__mig_init): Do not initialize threadvar.
14875 * sysdeps/mach/hurd/profil.c: Fix comment.
14876 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
14877 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
14878 cthread_keycreate, cthread_getspecific, cthread_setspecific to
14879 __cthread_fork, __cthread_detach, __pthread_getattr_np,
14880 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
14881 __cthread_setspecific.
14882 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
14883 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
14884 __cthread_t instead of cthread_fork, cthread_detach,
14885 pthread_getattr_np, pthread_attr_getstack.
14886 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
14887 __cthread_keycreate.
14888 (cthread_getspecific): Rename to __cthread_getspecific.
14889 (cthread_setspecific): Rename to __cthread_setspecific.
14890 (__libc_getspecific): Use __cthread_getspecific instead of
14891 cthread_getspecific.
14892 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
14893 __cthread_keycreate instead of cthread_keycreate.
14894 (__libc_setspecific): Use __cthread_setspecific instead of
14895 cthread_setspecific.
14896 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
14897 Likewise.
14898 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
14899 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
14900 testing whether it is defined.
14901
14902 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
14903
14904 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
14905 Define macro.
14906 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
14907 * sysdeps/mach/i386/thread_state.h
14908 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
14909 i386_THREAD_STATE.
14910 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
14911 i386_THREAD_STATE.
14912 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
14913
14914 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
14915 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
14916
14917 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
14918 macros.
14919 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
14920 descriptor instead of creating a new one.
14921 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
14922
14923 * mach/setup-thread.c: Include <ldsodefs.h>.
14924 (__mach_setup_thread): Call _dl_allocate_tls, pass
14925 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
14926 MACHINE_THREAD_STATE_FLAVOR, before getting
14927 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
14928 MACHINE_THREAD_STATE_FLAVOR with the result.
14929 * hurd/hurdfault.c (_hurdsig_fault_init): Call
14930 MACHINE_THREAD_STATE_FIX_NEW.
14931 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
14932 too. Add original thread parameter.
14933
14934 2018-03-16 Joseph Myers <joseph@codesourcery.com>
14935
14936 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
14937 Remove inline function.
14938
14939 * sysdeps/i386/fpu/libm-test-ulps: Update.
14940 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
14941
14942 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
14943
14944 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
14945 commit.
14946
14947 2018-03-15 Joseph Myers <joseph@codesourcery.com>
14948
14949 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
14950 (__sincos_code): Remove define and undefine.
14951 [__FAST_MATH__] (__sincos): Remove inline function.
14952 [__FAST_MATH__] (__sincosf): Remove inline function.
14953 [__FAST_MATH__] (__sincosl): Remove inline function.
14954 (__atan2l): Remove inline functions.
14955 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
14956 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
14957 function.
14958 (floor): Remove inline function.
14959 (ceil): Likewise.
14960 [__FAST_MATH__] (__ldexp_code): Remove macro.
14961 [__FAST_MATH__] (ldexp): Remove inline function.
14962 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
14963 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
14964 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
14965 [__USE_ISOC99] (__lrint_code): Remove macro.
14966 [__USE_ISOC99] (__llrint_code): Likewise.
14967 [__USE_ISOC99] (lrintf): Remove inline function.
14968 [__USE_ISOC99] (lrint): Likewise.
14969 [__USE_ISOC99] (lrintl): Likewise.
14970 [__USE_ISOC99] (llrint): Likewise.
14971 [__USE_ISOC99] (llrintf): Likewise.
14972 [__USE_ISOC99] (llrintl): Likewise.
14973
14974 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14975
14976 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
14977 (__ieee754_sqrtf): Remove.
14978 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
14979 (__ieee754_sqrtf): Remove.
14980 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
14981 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14982 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
14983 (__ieee754_sqrtf): Remove.
14984 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
14985 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
14986 (sqrtf): Remove.
14987 (sqrtl): Remove.
14988 (__ieee754_sqrt): Remove.
14989 (__ieee754_sqrtf): Remove.
14990 (__ieee754_sqrtl): Remove.
14991 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14992 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
14993 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
14994 (__ieee754_sqrtf): Remove.
14995 (__ieee754_sqrtl): Remove.
14996
14997 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14998
14999 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
15000 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
15001 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
15002 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
15003 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
15004 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
15005 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
15006 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
15007 Likewise.
15008 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
15009 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
15010 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
15011 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
15012 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
15013 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
15014 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
15015 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
15016 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
15017 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
15018 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
15019 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
15020 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
15021 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
15022 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
15023 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
15024 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
15025 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
15026 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
15027 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
15028 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
15029 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
15030 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
15031 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
15032 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
15033 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
15034 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
15035 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
15036 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
15037 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
15038 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
15039 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
15040 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
15041 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
15042 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
15043 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
15044 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
15045 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
15046 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
15047 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
15048
15049 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
15050
15051 * include/math.h (sqrt): Declare with asm redirect.
15052 (sqrtf): Likewise.
15053 (sqrtl): Likewise.
15054 (sqrtf128): Likewise.
15055 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
15056 nonlib and libnldbl with -fmath-errno.
15057 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
15058 * math/w_sqrt_template.c: Likewise.
15059 * math/w_sqrtf_compat.c: Likewise.
15060 * math/w_sqrtl_compat.c: Likewise.
15061 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
15062 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
15063 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
15064 complex.h.
15065
15066 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
15067
15068 * benchtests/Makefile: Define _ISOMAC.
15069 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
15070 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
15071 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
15072 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
15073 * benchtests/bench-timing.h: Define attribute_hidden.
15074
15075 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
15076
15077 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
15078 mov + lsr.
15079
15080 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
15081
15082 [BZ #22963]
15083 * localedata/locales/cs_CZ (mon): Rename to...
15084 (alt_mon): This.
15085 (mon): Import from CLDR (genitive case).
15086
15087 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
15088
15089 [BZ #22937]
15090 * localedata/locales/el_CY (abmon): Rename to...
15091 (ab_alt_mon): This.
15092 (abmon): Import from CLDR (abbreviated genitive case).
15093 * localedata/locales/el_GR (abmon): Rename to...
15094 (ab_alt_mon): This.
15095 (abmon): Import from CLDR (abbreviated genitive case).
15096
15097 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
15098
15099 [BZ #22932]
15100 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
15101
15102 2018-03-15 Robert Buj <robert.buj@gmail.com>
15103
15104 [BZ #22848]
15105 * localedata/locales/ca_ES (abmon): Rename to...
15106 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
15107 (mon): Rename to...
15108 (alt_mon): This.
15109 (abmon): Import from CLDR (genitive case, month names preceded by
15110 "de" or "d’").
15111 (mon): Likewise.
15112 (abday): Synchronize with CLDR.
15113 (d_t_fmt): Likewise.
15114 (d_fmt): Likewise.
15115 (am_pm): Likewise.
15116
15117 (LC_TIME): Improve indentation.
15118 (LC_TELEPHONE): Likewise.
15119 (LC_NAME): Likewise.
15120 (LC_ADDRESS): Likewise.
15121
15122 2018-03-14 Joseph Myers <joseph@codesourcery.com>
15123
15124 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
15125 (lrintf): Remove definitions used only with old GCC.
15126 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
15127 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
15128 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
15129 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
15130 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
15131 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
15132 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
15133 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
15134 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
15135 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
15136 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
15137 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
15138 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
15139 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
15140 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
15141 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
15142 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
15143 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
15144 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
15145 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
15146 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
15147 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
15148 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
15149 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
15150 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
15151 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
15152 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
15153 [__FAST_MATH__] (__M_SQRT2): Remove macro.
15154
15155 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
15156
15157 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
15158 instruction to unbreak builds with binutils 2.26 and older.
15159
15160 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
15161
15162 * sysdeps/aarch64/strncmp.S (count): New macro.
15163 (strncmp): Store misaligned length in SRC1 in COUNT.
15164 (mutual_align): Adjust.
15165 (misaligned8): Load dword at a time when it is safe.
15166
15167 2018-03-12 Zack Weinberg <zackw@panix.com>
15168
15169 [BZ #1190]
15170 [BZ #19476]
15171 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
15172 if the _IO_EOF_SEEN bit is already set; update commentary.
15173 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
15174 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
15175
15176 * support/support_openpty.c, support/tty.h: New files.
15177 * support/Makefile (libsupport-routines): Add support_openpty.
15178
15179 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
15180 New test cases.
15181 * libio/Makefile (tests): Add tst-fgetc-after-eof.
15182 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
15183
15184 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
15185
15186 * po/pt_BR.po: Update translations.
15187
15188 2018-03-12 David Michael <fedora.dm0@gmail.com>
15189
15190 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
15191 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
15192 get a port to the startup server.
15193
15194 2018-03-11 Zack Weinberg <zackw@panix.com>
15195
15196 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
15197 before nldbl-compat.h.
15198
15199 2018-03-10 Zack Weinberg <zackw@panix.com>
15200
15201 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
15202 math.h or math_private.h.
15203
15204 * sysdeps/alpha/fpu/s_isnan.c
15205 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
15206 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
15207 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
15208 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
15209 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
15210 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
15211 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
15212 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
15213 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
15214 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
15215 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
15216 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
15217 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
15218 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
15219 Include math_private.h.
15220
15221 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
15222 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
15223 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
15224 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
15225 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
15226 * sysdeps/powerpc/power7/fpu/s_logb.c:
15227 Include math.h and math_private.h.
15228
15229 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
15230 uses of $at in .set noat / .set at.
15231
15232 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
15233
15234 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
15235 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
15236 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
15237 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
15238 Likewise.
15239
15240 2018-03-09 Florian Weimer <fweimer@redhat.com>
15241
15242 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
15243 in comment.
15244
15245 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
15246
15247 [BZ #22919]
15248 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
15249 Add nop before __startcontext, add explaining comments.
15250
15251 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15252
15253 [BZ #22926]
15254 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
15255 empty for __SPE__.
15256 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
15257 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
15258 Do not build hardware transactional code for __SPE__.
15259 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
15260 (__lll_trylock_elision): Likewise.
15261 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
15262 (__lll_unlock_elision): Likewise.
15263
15264 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
15265 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
15266 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
15267 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
15268 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
15269 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
15270 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
15271 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
15272 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
15273 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
15274 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
15275 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
15276 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
15277 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
15278 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
15279 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
15280 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
15281 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
15282 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
15283 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
15284 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
15285 * sysdeps/unix/sysv/linux/arm/kernel-features.h
15286 (__ASSUME_CLONE_BACKWARDS): Define.
15287 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
15288 __clone2 if __NR_clone2 is defined.
15289 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
15290 (__ASSUME_CLONE_BACKWARDS): Likewise.
15291 * sysdeps/unix/sysv/linux/i386/kernel-features.h
15292 (__ASSUME_CLONE_BACKWARDS): Likewise.
15293 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
15294 (__ASSUME_CLONE2): Likewise.
15295 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
15296 (__ASSUME_CLONE_BACKWARDS3): Likewise.
15297 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
15298 variants and the define architecture can use.
15299 (__ASSUME_CLONE_DEFAULT): Define as default.
15300 * sysdeps/unix/sysv/linux/mips/kernel-features.h
15301 (__ASSUME_CLONE_BACKWARDS): Likewise.
15302 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
15303 (__ASSUME_CLONE_BACKWARDS): Likewise.
15304 * sysdeps/unix/sysv/linux/s390/kernel-features.h
15305 (__ASSUME_CLONE_BACKWARDS2): Likewise.
15306
15307 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
15308
15309 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
15310
15311 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
15312 time.
15313
15314 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
15315 (do_test_limit): Likewise.
15316
15317 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
15318 for every implementation.
15319 (do_test): Likewise.
15320
15321 * benchtests/bench-strncmp.c: Convert output to json.
15322
15323 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
15324
15325 * io/futimens.c: Add missing start-of-file descriptive comment.
15326 * io/utime.c: Likewise.
15327 * misc/futimesat.c: Likewise.
15328 * misc/utimes.c: Likewise.
15329 * sysdeps/mach/hurd/futimesat.c: Likewise.
15330 * sysdeps/mach/hurd/utimes.c: Likewise.
15331 * sysdeps/posix/utime.c: Likewise.
15332 * sysdeps/posix/utimes.c: Likewise.
15333 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
15334 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
15335 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
15336 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
15337
15338 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
15339
15340 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
15341 hurd_futimes.
15342 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
15343 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
15344 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
15345 (__futimens): Move implementation to...
15346 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
15347 utime_tvalue_from_tspec): ... new helper functions.
15348 (hurd_futimens): New function.
15349 * sysdeps/mach/hurd/futimesat.c: New file.
15350 * sysdeps/mach/hurd/utimensat.c: New file.
15351
15352 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
15353
15354 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
15355 UTIME_OMIT): New macros.
15356 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
15357 before reverting to converting time spec to time value and calling
15358 __file_utimes.
15359 * sysdeps/mach/hurd/utime-helper.c: New file.
15360 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
15361 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
15362 reverting to utime_tvalue_from_tval and __file_utimes.
15363 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
15364 (__lutimes): Just call hurd_futimens after lookup.
15365 * sysdeps/mach/hurd/utimes.c: Likewise.
15366
15367 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
15368
15369 * bits/sigaction.h: Add include guard.
15370 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
15371 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
15372 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
15373 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
15374 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
15375 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
15376 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
15377 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
15378 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
15379
15380 2018-03-05 Joseph Myers <joseph@codesourcery.com>
15381
15382 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
15383 -Wmaybe-uninitialized for -Os.
15384 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
15385 this disabling.
15386
15387 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15388
15389 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
15390 __INO_T_MATCHES_INO64_T is defined.
15391 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
15392 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
15393 of definition.
15394 * dirent/alphasort64.c: Likewise.
15395 * dirent/scandir.c: Likewise.
15396 * dirent/scandir64-tail.c: Likewise.
15397 * dirent/scandir64.c: Likewise.
15398 * dirent/scandirat.c: Likewise.
15399 * dirent/scandirat64.c: Likewise.
15400 * dirent/versionsort.c: Likewise.
15401 * dirent/versionsort64.c: Likewise.
15402 * include/dirent.h: Likewise.
15403
15404 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
15405 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
15406 for socketpair endpoint.
15407 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
15408 WRITE_BUFFER_SIZE as buffer size for sending socket.
15409 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
15410 issue on system where send is implemented with sendto syscall.
15411 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
15412 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
15413 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
15414 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
15415
15416 [BZ #21269]
15417 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
15418 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
15419 sa_restorer for vDSO case.
15420 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
15421
15422 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
15423
15424 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
15425 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
15426 * hurd/hurd/ioctl.h: Include <mach/port.h>
15427 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
15428 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
15429 <mach/mach_types.h> and <mach/message.h>.
15430 (headers): Move mach/param.h to bits/mach/param.h.
15431 * sysdeps/mach/i386/mach/param.h: Move file to ...
15432 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
15433 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
15434 of <mach/param.h>.
15435 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
15436 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
15437 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
15438 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
15439 trivial, for C++ conformity.
15440 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
15441 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
15442 Process mig output through $(migheadersed).
15443 * hurd/Makefile (migheadersed): Define variable.
15444 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
15445 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
15446 headers.
15447 * hurd/hurd.h: Include <bits/types/sigset_t.h>
15448 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
15449 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
15450 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
15451 <bits/types/sigset_t.h>.
15452 [!defined __USE_GNU]: Do not #error out.
15453 (struct hurd_sigstate): Use _NSIG instead of NSIG.
15454 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
15455 Include <stddef.h> and <bits/types/sigset_t.h>
15456 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
15457 instead of sighandler_t.
15458 * stdlib/errno.h (error_t): Move definition to...
15459 * bits/types/error_t.h: ... new header.
15460 * stdlib/Makefile (headers): Add bits/types/error_t.h.
15461 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
15462 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
15463 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
15464 * hurd/hurd.h: Include <bits/types/error_t.h>
15465 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
15466 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
15467 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
15468 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
15469 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
15470 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
15471 * sysdeps/mach/hurd/futimens.c: New file.
15472
15473 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
15474
15475 [BZ #22918]
15476 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
15477 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
15478 * nscd/gai.c (__nss_hosts_database): Readd definition.
15479 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
15480 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
15481 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
15482
15483 2018-03-02 Joseph Myers <joseph@codesourcery.com>
15484
15485 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
15486 (ifunc_one): Likewise.
15487
15488 2018-03-01 DJ Delorie <dj@delorie.com>
15489
15490 [BZ #22342]
15491 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
15492 key value.
15493
15494 2018-03-01 Maciej W. Rozycki <macro@mips.com>
15495
15496 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
15497 `match_pid' parameter.
15498 (td_ta_thr_iter): Update accordingly.
15499
15500 2018-03-01 Florian Weimer <fweimer@redhat.com>
15501
15502 * nptl/Makefile (install-lib-ldscripts): Remove.
15503 (install): Remove rule.
15504 ($(inst_libdir)/libpthread.so): Likewise.
15505
15506 2018-03-01 Mike FABIAN <mfabian@redhat.com>
15507
15508 [BZ #22896]
15509 * localedata/locales/an_ES: update month and day names,
15510 improve d_fmt, improve postal_fmt, add country_post,
15511 add country_isbn
15512
15513 2018-03-01 Mike FABIAN <mfabian@redhat.com>
15514
15515 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
15516 Ukrainian instead of Bulgarian.
15517
15518 2018-03-01 Florian Weimer <fweimer@redhat.com>
15519
15520 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
15521 reference.
15522
15523 2018-03-01 Florian Weimer <fweimer@redhat.com>
15524
15525 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
15526 * nptl/Makefile (routines): Add pthread_atfork.
15527 (static-only-routines): Set to pthread_atfork.
15528 (libpthread-routines): Remove pthread_atfork.
15529 (libpthread-static-only-routines): Remove.
15530 (install): Update comment.
15531 (libpthread.so): Do not install libpthread_nonshared.a.
15532 (tests): Do not link with libpthread_nonshared.a.
15533 (generated): Remove libpthread_nonshared.a.
15534 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
15535 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
15536 with libpthread_nonshared.a.
15537
15538 2018-02-28 Joseph Myers <joseph@codesourcery.com>
15539
15540 [BZ #22902]
15541 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
15542 (libc_feholdexcept_setroundf128): New macro.
15543 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
15544
15545 [BZ #15105]
15546 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
15547 libc_hidden_def.
15548 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
15549 * include/inttypes.h: New file.
15550
15551 2018-02-27 Joseph Myers <joseph@codesourcery.com>
15552
15553 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
15554 -Os in two more places.
15555
15556 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15557
15558 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
15559 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
15560 be sorted correctly at the moment because of a bug.
15561
15562 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15563
15564 [BZ #22550] - es_ES locale (and other es_* locales): collation should
15565 treat ñ as a primary different character, sync the collation
15566 for Spanish with CLDR.
15567 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
15568 * localedata/Makefile: Add new test files.
15569 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
15570 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
15571 collation order.
15572 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
15573 * localedata/am_ET.UTF-8.in: New test file.
15574 * localedata/az_AZ.UTF-8.in: Likewise.
15575 * localedata/be_BY.UTF-8.in: Likewise.
15576 * localedata/ber_DZ.UTF-8.in: Likewise.
15577 * localedata/ber_MA.UTF-8.in: Likewise.
15578 * localedata/bg_BG.UTF-8.in: Likewise.
15579 * localedata/br_FR.UTF-8.in: Likewise.
15580 * localedata/cmn_TW.UTF-8.in: Likewise.
15581 * localedata/crh_UA.UTF-8.in: Likewise.
15582 * localedata/csb_PL.UTF-8.in: Likewise.
15583 * localedata/cv_RU.UTF-8.in: Likewise.
15584 * localedata/cy_GB.UTF-8.in: Likewise.
15585 * localedata/dz_BT.UTF-8.in: Likewise.
15586 * localedata/eo.UTF-8.in: Likewise.
15587 * localedata/es_ES.UTF-8.in: Likewise.
15588 * localedata/fa_IR.UTF-8.in: Likewise.
15589 * localedata/fi_FI.UTF-8.in: Likewise.
15590 * localedata/fil_PH.UTF-8.in: Likewise.
15591 * localedata/fur_IT.UTF-8.in: Likewise.
15592 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
15593 * localedata/ha_NG.UTF-8.in: Likewise.
15594 * localedata/ig_NG.UTF-8.in: Likewise.
15595 * localedata/ik_CA.UTF-8.in: Likewise.
15596 * localedata/kk_KZ.UTF-8.in: Likewise.
15597 * localedata/ku_TR.UTF-8.in: Likewise.
15598 * localedata/ky_KG.UTF-8.in: Likewise.
15599 * localedata/ln_CD.UTF-8.in: Likewise.
15600 * localedata/mi_NZ.UTF-8.in: Likewise.
15601 * localedata/ml_IN.UTF-8.in: Likewise.
15602 * localedata/mn_MN.UTF-8.in: Likewise.
15603 * localedata/mr_IN.UTF-8.in: Likewise.
15604 * localedata/mt_MT.UTF-8.in: Likewise.
15605 * localedata/nb_NO.UTF-8.in: Likewise.
15606 * localedata/om_KE.UTF-8.in: Likewise.
15607 * localedata/os_RU.UTF-8.in: Likewise.
15608 * localedata/ps_AF.UTF-8.in: Likewise.
15609 * localedata/ro_RO.UTF-8.in: Likewise.
15610 * localedata/ru_RU.UTF-8.in: Likewise.
15611 * localedata/sc_IT.UTF-8.in: Likewise.
15612 * localedata/se_NO.UTF-8.in: Likewise.
15613 * localedata/sq_AL.UTF-8.in: Likewise.
15614 * localedata/sv_SE.UTF-8.in: Likewise.
15615 * localedata/szl_PL.UTF-8.in: Likewise.
15616 * localedata/tg_TJ.UTF-8.in: Likewise.
15617 * localedata/tk_TM.UTF-8.in: Likewise.
15618 * localedata/tt_RU.UTF-8.in: Likewise.
15619 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
15620 * localedata/ug_CN.UTF-8.in: Likewise.
15621 * localedata/uz_UZ.UTF-8.in: Likewise.
15622 * localedata/vi_VN.UTF-8.in: Likewise.
15623 * localedata/yi_US.UTF-8.in: Likewise.
15624 * localedata/yo_NG.UTF-8.in: Likewise.
15625 * localedata/zh_CN.UTF-8.in: Likewise.
15626 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
15627 file and fix bugs in the collation.
15628 * localedata/locales/az_AZ: Likewise.
15629 * localedata/locales/be_BY: Likewise.
15630 * localedata/locales/ber_DZ: Likewise.
15631 * localedata/locales/ber_MA: Likewise.
15632 * localedata/locales/bg_BG: Likewise.
15633 * localedata/locales/br_FR: Likewise.
15634 * localedata/locales/br_FR@euro: Likewise.
15635 * localedata/locales/ca_ES: Likewise.
15636 * localedata/locales/cns11643_stroke: Likewise.
15637 * localedata/locales/crh_UA: Likewise.
15638 * localedata/locales/cs_CZ: Likewise.
15639 * localedata/locales/csb_PL: Likewise.
15640 * localedata/locales/cv_RU: Likewise.
15641 * localedata/locales/cy_GB: Likewise.
15642 * localedata/locales/da_DK: Likewise.
15643 * localedata/locales/dz_BT: Likewise.
15644 * localedata/locales/en_CA: Likewise.
15645 * localedata/locales/eo: Likewise.
15646 * localedata/locales/es_CU: Likewise.
15647 * localedata/locales/es_EC: Likewise.
15648 * localedata/locales/es_ES: Likewise.
15649 * localedata/locales/es_US: Likewise.
15650 * localedata/locales/et_EE: Likewise.
15651 * localedata/locales/fa_IR: Likewise.
15652 * localedata/locales/fi_FI: Likewise.
15653 * localedata/locales/fil_PH: Likewise.
15654 * localedata/locales/fur_IT: Likewise.
15655 * localedata/locales/gez_ER@abegede: Likewise.
15656 * localedata/locales/ha_NG: Likewise.
15657 * localedata/locales/hr_HR: Likewise.
15658 * localedata/locales/hsb_DE: Likewise.
15659 * localedata/locales/hu_HU: Likewise.
15660 * localedata/locales/ig_NG: Likewise.
15661 * localedata/locales/ik_CA: Likewise.
15662 * localedata/locales/is_IS: Likewise.
15663 * localedata/locales/iso14651_t1_pinyin: Likewise.
15664 * localedata/locales/kk_KZ: Likewise.
15665 * localedata/locales/ku_TR: Likewise.
15666 * localedata/locales/ky_KG: Likewise.
15667 * localedata/locales/ln_CD: Likewise.
15668 * localedata/locales/lt_LT: Likewise.
15669 * localedata/locales/lv_LV: Likewise.
15670 * localedata/locales/mi_NZ: Likewise.
15671 * localedata/locales/ml_IN: Likewise.
15672 * localedata/locales/mn_MN: Likewise.
15673 * localedata/locales/mr_IN: Likewise.
15674 * localedata/locales/mt_MT: Likewise.
15675 * localedata/locales/nb_NO: Likewise.
15676 * localedata/locales/om_KE: Likewise.
15677 * localedata/locales/os_RU: Likewise.
15678 * localedata/locales/pl_PL: Likewise.
15679 * localedata/locales/ps_AF: Likewise.
15680 * localedata/locales/ro_RO: Likewise.
15681 * localedata/locales/ru_RU: Likewise.
15682 * localedata/locales/ru_UA: Likewise.
15683 * localedata/locales/sc_IT: Likewise.
15684 * localedata/locales/se_NO: Likewise.
15685 * localedata/locales/si_LK: Likewise.
15686 * localedata/locales/sq_AL: Likewise.
15687 * localedata/locales/sv_FI: Likewise.
15688 * localedata/locales/sv_FI@euro: Likewise.
15689 * localedata/locales/sv_SE: Likewise.
15690 * localedata/locales/szl_PL: Likewise.
15691 * localedata/locales/tg_TJ: Likewise.
15692 * localedata/locales/ti_ER: Likewise.
15693 * localedata/locales/tk_TM: Likewise.
15694 * localedata/locales/tl_PH: Likewise.
15695 * localedata/locales/tr_TR: Likewise.
15696 * localedata/locales/tt_RU: Likewise.
15697 * localedata/locales/tt_RU@iqtelif: Likewise.
15698 * localedata/locales/ug_CN: Likewise.
15699 * localedata/locales/uk_UA: Likewise.
15700 * localedata/locales/uz_UZ: Likewise.
15701 * localedata/locales/uz_UZ@cyrillic: Likewise.
15702 * localedata/locales/vi_VN: Likewise.
15703 * localedata/locales/yi_US: Likewise.
15704 * localedata/locales/yo_NG: Likewise.
15705
15706 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15707
15708 * gen-locales.mk: Make test files which contain @ modifiers in their
15709 name work.
15710 * localedata/gen-locale.sh: Likewise.
15711
15712 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15713
15714 * posix/tst-fnmatch.input: Fix results for range expressions
15715 for non C locales.
15716 * posix/tst-regexloc.c: Do not use a range expression for
15717 de_DE.ISO-8859-1 locale.
15718
15719 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15720
15721 * posix/bug-regex5.c: Fix test case because with the new
15722 iso14651_t1_common file, the da_DK locale now has 6 collating elements
15723 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
15724 file.
15725
15726 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15727
15728 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
15729 downloaded from ISO, the collation order of @-. and space has changed.
15730 Therefore, this test file needed to be adapted.
15731 * localedata/fr_CA.UTF-8.in: Likewise.
15732 * localedata/fr_FR.UTF-8.in: Likewise.
15733 * localedata/uk_UA.UTF-8.in: Likewise.
15734
15735 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15736
15737 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
15738 order of ȥ in the new iso14651_t1_common file.
15739 * localedata/pl_PL.UTF-8.in: Likewise.
15740
15741 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15742
15743 * localedata/locales/iso14651_t1_common: Add sections for various
15744 scripts to the iso14651_t1_common file.
15745
15746 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15747
15748 * localedata/locales/iso14651_t1_common: Use the code point of a
15749 character in the fourth collation level instead of IGNORE for all
15750 entries which have IGNORE on all 4 levels.
15751
15752 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15753
15754 * localedata/locales/iso14651_t1_common: Add some convenient collation
15755 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
15756 rules similar to those in CLDR.
15757
15758 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15759
15760 * localedata/locales/iso14651_t1_common: The new version of this
15761 file downloaded from ISO contained several syntax errors which
15762 are fixed by this patch.
15763
15764 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15765
15766 * localedata/locales/iso14651_t1_common: replace all <U.....>
15767 with <U000.....> because glibc understands only 4 digit or 8 digit
15768
15769 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15770
15771 * localedata/locales/iso14651_t1_common: Necessary changes
15772 to make the file downloaded from ISO usable by glibc.
15773
15774 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15775
15776 [BZ #14095]
15777 * localedata/locales/iso14651_t1_common: Update file to
15778 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
15779
15780 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
15781
15782 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
15783 of <nptl/pthreadP.h>
15784 (thread_attr_compare): Move function to...
15785 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
15786 * sysdeps/nptl/timer_routines.h: ... new header.
15787 * sysdeps/mach/hurd/gai_misc.h: New file.
15788
15789 2018-02-26 Joseph Myers <joseph@codesourcery.com>
15790
15791 * string/strcoll_l.c: Include <libc-diag.h>.
15792 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
15793 declarations of seq1 and seq2.
15794
15795 [BZ #15105]
15796 * stdlib/atoi.c (atoi): Use libc_hidden_def.
15797 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
15798
15799 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
15800
15801 [BZ #22433]
15802 [BZ #22807]
15803 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
15804 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
15805 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
15806 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
15807 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
15808 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
15809
15810 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15811
15812 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
15813 macros used in __ptrace_request.
15814
15815 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
15816
15817 [BZ #22792]
15818 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
15819 to $(CC).
15820 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
15821 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
15822 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
15823 <tcb-offsets.h>.
15824
15825 2018-02-23 Joseph Myers <joseph@codesourcery.com>
15826
15827 [BZ #15105]
15828 * ctype/ctype.c (tolower): Use libc_hidden_def.
15829 (toupper): Likewise.
15830 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
15831 [!_ISOMAC] (toupper): Likewise.
15832
15833 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15834
15835 * localedata/Makefile: Remove --quiet argument when
15836 installing locales
15837
15838 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15839
15840 [BZ #17438]
15841 * localedata/locales/pt_BR (LC_TIME): use / instead of -
15842 in d_fmt.
15843 * localedata/locales/pt_PT (LC_TIME): likewise
15844
15845 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15846
15847 [BZ #22646]
15848 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
15849 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
15850 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
15851
15852 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15853
15854 * sysdeps/sparc/fpu/libm-test-ulps: Update.
15855
15856 * nptl/Makefile (routines): Remove unregister-atfork.
15857 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
15858 (fork_handler_alloc): Remove function.
15859 (fork_handlers, fork_handler_init): New variables.
15860 (__fork_lock): Rename to atfork_lock.
15861 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
15862 to use a dynamic array to add/remove atfork handlers.
15863 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
15864 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
15865 Remove declaration.
15866 (fork_handler): Remove next, refcntr, and need_signal member.
15867 (__run_fork_handler_type): New enum.
15868 (__run_fork_handlers): New prototype.
15869 * nptl/register-atfork.c: Remove file.
15870 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
15871
15872 * sysdeps/nptl/nptl-signals.h: Move to ...
15873 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
15874 comments.
15875 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
15876 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
15877 unnecessary check for SIGTIMER.
15878 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
15879 remove unnecessary removal of SIGTIMER.
15880 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
15881 include-signals.h rename.
15882 * nptl/pthreadP.h: Likewise.
15883 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
15884 __is_internal_signal instead of __nptl_is_internal_signal.
15885
15886 2018-02-22 Andrew Waterman <andrew@sifive.com>
15887
15888 [BZ # 22884]
15889 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
15890 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
15891 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
15892 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
15893
15894 2018-02-22 DJ Delorie <dj@delorie.com>
15895
15896 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
15897
15898 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
15899
15900 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
15901 do_misaligned, not misaligned8.
15902
15903 2018-02-22 Steve Ellcey <sellcey@cavium.com>
15904
15905 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
15906 Add memcpy_thunderx2.
15907 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
15908 Increment to 4.
15909 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
15910 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
15911 and IS_THUNDERX2PA checks.
15912 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
15913 Use macro to set name appropriately.
15914 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
15915 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
15916 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
15917 New macro.
15918 (IS_THUNDERX2): New macro.
15919
15920 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
15921
15922 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15923
15924 2018-02-21 Zack Weinberg <zackw@panix.com>
15925
15926 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
15927 Define here, unconditionally.
15928 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
15929 * libio/libioP.h: Remove #if 0 blocks.
15930 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
15931 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
15932 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
15933
15934 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
15935 Assume weak_alias is always defined.
15936
15937 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
15938 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
15939 Remove #if 0 and #ifdef TODO blocks.
15940 Assume text_set_element is always defined.
15941
15942 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
15943 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
15944 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
15945
15946 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
15947 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
15948 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
15949 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
15950 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
15951 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
15952 Reformat bit flags for _flags field to make occupancy clearer.
15953 Update commentary.
15954 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
15955 Keep definitions consistent with those in libio/libio.h.
15956
15957 * libio/libio.h (_IO_file_flags): Remove macro.
15958 All uses changed to _flags.
15959
15960 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
15961 (__HAVE_COLUMN, _IO_BE): Don't define.
15962 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
15963 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
15964 * libio/libioP.h (EOF): Don't define.
15965 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
15966 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
15967 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
15968 testing _IO_UNIFIED_JUMPTABLES.
15969
15970 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
15971 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
15972 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
15973 (_IO_size_t): Delete; all uses changed to size_t.
15974 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
15975 (_IO_off_t): Delete; all uses changed to off_t.
15976 (_IO_off64_t): Delete; all uses changed to off64_t.
15977 (_IO_pid_t): Delete; all uses changed to pid_t.
15978 (_IO_uid_t): Delete; all uses changed to uid_t.
15979 (_IO_wint_t): Delete; all uses changed to wint_t.
15980 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
15981 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
15982 (_IO_cookie_io_functions_t): Delete; all uses changed to
15983 cookie_io_functions_t.
15984 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
15985 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
15986 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
15987 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
15988
15989 * libio/iofopncook.c: Remove unnecessary forward declarations.
15990 * libio/iolibio.h: Correct outdated commentary.
15991 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
15992 * stdio-common/fxprintf.c (__fxprintf_nocancel):
15993 Remove unnecessary casts.
15994 * stdio-common/getline.c: Use _IO_getdelim directly.
15995 Don't redefine ssize_t.
15996 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
15997 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
15998 Remove outdated comments.
15999 * stdio-common/vfscanf.c: Don't redefine va_list.
16000
16001 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
16002 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
16003 Remove preprocessor conditionals on _LIBC and __USE_GNU,
16004 which are always true, and __cplusplus, which is always false.
16005
16006 2018-02-21 Joseph Myers <joseph@codesourcery.com>
16007
16008 [BZ #15105]
16009 [BZ #19463]
16010 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
16011 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
16012 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
16013 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
16014 libc_hidden_proto.
16015 [!_ISOMAC] (putc_unlocked): Likewise.
16016 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
16017 define inline if [__USE_EXTERN_INLINES].
16018 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
16019 putc_unlocked.
16020
16021 [BZ #15105]
16022 [BZ #19463]
16023 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
16024 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
16025 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
16026 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
16027 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
16028 getc_unlocked.
16029 * time/tzfile.c (__tzfile_read): Likewise.
16030
16031 2018-02-21 Mike FABIAN <mfabian@redhat.com>
16032
16033 [BZ #22517]
16034 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
16035
16036 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
16037
16038 * io/fcntl.h: Fix a typo in a comment.
16039
16040 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
16041
16042 [BZ #22862]
16043 * include/features.h: Add _ISOC11_SOURCE to test for whether to
16044 define _DEFAULT_SOURCE.
16045 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
16046
16047 2018-02-21 Florian Weimer <fweimer@redhat.com>
16048
16049 [BZ #20890]
16050 * elf/cache.c (save_cache): Call fsync on temporary file before
16051 renaming it.
16052 (save_aux_cache): Call fdatasync on temporary file before renaming
16053 it.
16054
16055 2018-02-21 Florian Weimer <fweimer@redhat.com>
16056
16057 [BZ #22787]
16058 * include/caller.h: Remove file.
16059 * elf/dl-caller.c: Likewise.
16060 * elf/Makefile (dl-routines): Remove dl-caller.
16061 (shared-only-routines): Do not add dl-caller.
16062 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
16063 __check_caller.
16064 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
16065 member.
16066 (dl_open_worker): Do not call __check_caller.
16067 (_dl_open): Do not set caller_dl_open member.
16068 * elf/rtld.c (_rtld_global_ro): Do not initialize
16069 _dl_check_caller member.
16070 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
16071 _dl_check_caller member.
16072 (_dl_check_caller): Remove declaration.
16073 * sysdeps/unix/sysv/linux/dl-execstack.c
16074 (_dl_make_stack_executable): Do not call __check_caller.
16075
16076 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
16077
16078 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
16079 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
16080
16081 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
16082
16083 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
16084 description.
16085
16086 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
16087
16088 [BZ #16335]
16089 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
16090 of 199606L, 200112L, and 200809L.
16091 (_XOPEN_SOURCE): Document special values of 600 and 700.
16092 (_ISOC11_SOURCE): Document macro.
16093 (_ATFILE_SOURCE): Likewise.
16094 (_FORTIFY_SOURCE): Likewise.
16095
16096 2018-02-19 Joseph Myers <joseph@codesourcery.com>
16097
16098 [BZ #15105]
16099 [BZ #19463]
16100 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
16101 and define as weak alias of __ferror_unlocked. Use
16102 libc_hidden_weak.
16103 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
16104 libc_hidden_proto.
16105 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
16106 function if [__USE_EXTERN_INLINES].
16107 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
16108 ferror_unlocked.
16109
16110 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
16111
16112 [BZ #6889]
16113 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
16114
16115 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
16116
16117 [BZ #22818]
16118 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
16119 the GLIBC_2.1 version.
16120
16121 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
16122
16123 [BZ #21508]
16124 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
16125 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
16126 intl/tst-gettext-de.po from po/de.po by removing the
16127 POT-Creation-Date line.
16128 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
16129 ../po/de.po.
16130 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
16131 ../po/de.po.
16132
16133 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
16134
16135 * mach/Makefile (headers): Add mach/param.h.
16136 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
16137 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
16138 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
16139 (__ptsname_r): Move implementation to...
16140 (__ptsname_internal): ... new function. Add filling the STP
16141 structure.
16142
16143 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
16144
16145 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
16146 idouble to 1 ULP.
16147
16148 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
16149
16150 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
16151 syntax.
16152
16153 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
16154
16155 * nptl/Makefile (tst-mutex8-ENV): Delete.
16156 * nptl/tst-mutex8.c (check_type):
16157 Add runtime check if mutex will be elided.
16158
16159 2018-02-15 Joseph Myers <joseph@codesourcery.com>
16160
16161 [BZ #20980]
16162 [BZ #21234]
16163 * manual/install.texi (Configuring and compiling): Describe
16164 passing CC and CFLAGS on configure command line, not as
16165 environment variables. Use @code markup on those variables.
16166 Specify what options go in CC and what go in CFLAGS. Note the
16167 requirement to compile with optimization.
16168 * INSTALL: Regenerated.
16169
16170 [BZ #18124]
16171 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
16172 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
16173 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
16174 __sigprocmask instead of sigprocmask.
16175 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
16176 Likewise.
16177 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
16178 __sigsetjmp and sigprocmask.
16179
16180 [BZ #15105]
16181 * include/argz.h (argz_next): Use libc_hidden_proto.
16182 (__argz_next): Likewise.
16183 * string-argz-next.c (__argz_next): Use libc_hidden_def.
16184 (argz_next): Use libc_hidden_weak.
16185
16186 [BZ #15105]
16187 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
16188 libc_hidden_proto.
16189 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
16190 libc_hidden_def.
16191
16192 [BZ #15105]
16193 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
16194 libc_hidden_proto.
16195 * libio/iofputs.c (fputs): Use libc_hidden_weak.
16196
16197 [BZ #15105]
16198 [BZ #19463]
16199 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
16200 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
16201 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
16202 (__feof_unlocked): New declaration, and inline function if
16203 [__USE_EXTERN_INLINES].
16204 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
16205 instead of feof_unlocked.
16206 * intl/localealias.c [_LIBC] (FEOF): Likewise.
16207 * nss/nsswitch.c (nss_parse_file): Likewise.
16208 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
16209 Likewise.
16210 * time/getdate.c (__getdate_r): Likewise.
16211 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
16212 Define as macro to call __feof_unlocked.
16213
16214 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
16215
16216 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
16217
16218 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
16219
16220 * math/Makefile: Remove mpexp.c and mplog.c
16221 * sysdeps/i386/fpu/mpexp.c: Delete file.
16222 * sysdeps/i386/fpu/mplog.c: Likewise.
16223 * sysdeps/ia64/fpu/mpexp.c: Likewise.
16224 * sysdeps/ia64/fpu/mplog.c: Likewise.
16225 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
16226 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
16227 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
16228 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
16229 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
16230 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
16231 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
16232 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
16233 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
16234 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
16235 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
16236 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
16237 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
16238 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
16239 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
16240 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
16241
16242 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
16243
16244 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
16245
16246 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16247
16248 * sysdeps/sh/libm-test-ulps: Update.
16249
16250 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16251
16252 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
16253 idouble to 1 ULP.
16254
16255 2018-02-12 Zack Weinberg <zackw@panix.com>
16256
16257 [BZ #19239]
16258 * posix/sys/types.h: Don't include sys/sysmacros.h.
16259 * misc/sys/sysmacros.h: Remove the conditional deprecation
16260 warnings for the macros defined by this header.
16261
16262 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
16263
16264 * manual/probes.texi: Remove slowexp probes.
16265 * math/Makefile: Remove slowexp.
16266 * sysdeps/generic/math_private.h (__slowexp): Remove.
16267 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
16268 document error bounds.
16269 * sysdeps/i386/fpu/slowexp.c: Remove.
16270 * sysdeps/ia64/fpu/slowexp.c: Remove.
16271 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
16272 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
16273 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
16274 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
16275 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
16276 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
16277 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
16278 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
16279 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
16280 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
16281 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
16282
16283 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
16284
16285 [BZ #13932]
16286 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
16287 * benchtests/pow-inputs: Update comment for slow path cases.
16288 * manual/probes.texi (slowpow_p10): Delete removed probe.
16289 (slowpow_p10): Likewise.
16290 * math/Makefile: Remove halfulp.c and slowpow.c.
16291 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
16292 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
16293 (__halfulp): Remove.
16294 (__slowpow): Remove.
16295 * sysdeps/i386/fpu/halfulp.c: Delete file.
16296 * sysdeps/i386/fpu/slowpow.c: Likewise.
16297 * sysdeps/ia64/fpu/halfulp.c: Likewise.
16298 * sysdeps/ia64/fpu/slowpow.c: Likewise.
16299 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
16300 improve comments and add error analysis.
16301 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
16302 (power1): Remove function:
16303 (log1): Remove error argument, add error analysis.
16304 (my_log2): Remove function.
16305 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
16306 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
16307 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
16308 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
16309 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
16310 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
16311 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
16312 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
16313 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
16314 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
16315 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
16316 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
16317 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
16318 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
16319
16320 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
16321
16322 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
16323 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
16324
16325 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
16326
16327 [BZ #22433]
16328 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
16329 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
16330 and PTRACE_SETHBPREGS.
16331
16332 2018-02-10 Zack Weinberg <zackw@panix.com>
16333
16334 [BZ #22830]
16335 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
16336 correctly.
16337 * malloc/tst-malloc-stats-cancellation.c: New test case.
16338 * malloc/Makefile: Add new test case.
16339
16340 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
16341
16342 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
16343
16344 2018-02-10 Joseph Myers <joseph@codesourcery.com>
16345
16346 * math/Makefile (libm-narrow-fns): Add add.
16347 (libm-test-funcs-narrow): Likewise.
16348 * math/Versions (GLIBC_2.28): Add narrowing add functions.
16349 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
16350 * math/gen-auto-libm-tests.c (test_functions): Add add.
16351 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
16352 (NARROW_ADD_ROUND_TO_ODD): Likewise.
16353 (NARROW_ADD_TRIVIAL): Likewise.
16354 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
16355 macro.
16356 (__daddl): Likewise.
16357 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
16358 dadd.
16359 (CFLAGS-nldbl-dadd.c): New variable.
16360 (CFLAGS-nldbl-fadd.c): Likewise.
16361 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
16362 __nldbl_daddl.
16363 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
16364 prototype.
16365 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
16366 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
16367 * math/auto-libm-test-in: Add tests of add.
16368 * math/auto-libm-test-out-narrow-add: New generated file.
16369 * math/libm-test-narrow-add.inc: New file.
16370 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
16371 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
16372 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
16373 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
16374 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
16375 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
16376 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
16377 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
16378 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
16379 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
16380 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
16381 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
16382 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
16383 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
16384 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
16385 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
16386 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
16387 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
16388 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16389 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
16390 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
16391 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
16392 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
16393 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
16394 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
16395 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
16396 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
16397 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
16398 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
16399 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
16400 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
16401 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
16402 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
16403 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
16404 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
16405 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
16406 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16407 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
16408 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
16409 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
16410 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
16411 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
16412 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
16413 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
16414 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
16415 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
16416
16417 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
16418 (f128-pairs): New variable.
16419 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
16420 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
16421 to CFLAGS.
16422 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
16423 Also make tests add $(f128-loader-link) to gnulib-tests.
16424
16425 2018-02-09 DJ Delorie <dj@redhat.com>
16426
16427 [BZ #22827]
16428 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
16429 64-bit ELF type for 64-bit ELF objects.
16430
16431 2018-02-09 Joseph Myers <joseph@codesourcery.com>
16432
16433 * math/libm-test-driver.c (snan_tests_arg): New variable.
16434 * math/libm-test-support.h (snan_tests_arg): New declaration.
16435 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
16436
16437 * math/Makefile (test-type-pairs): New variable.
16438 (test-type-pairs-f64xf128-yes): Likewise.
16439 (tests): Add test-narrow-macros.
16440 (libm-test-funcs-narrow): New variable.
16441 (libm-test-c-narrow): Likewise.
16442 (generated): Add $(libm-test-c-narrow).
16443 (libm-tests-base-narrow): New variable.
16444 (libm-tests-narrow): Likewise.
16445 (libm-tests): Add $(libm-tests-narrow).
16446 (libm-tests-for-type): Handle $(libm-tests-narrow).
16447 (libm-test-c-narrow-obj): New variable.
16448 ($(libm-test-c-narrow-obj)): New rule.
16449 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
16450 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
16451 $(o-iterator) to set dependencies and CFLAGS.
16452 * math/gen-auto-libm-tests.c: Document use for narrowing
16453 functions.
16454 (output_for_one_input_case): Take argument NARROW.
16455 (generate_output): Likewise. Update call to
16456 output_for_one_input_case.
16457 (main): Take --narrow option. Update call to generate_output.
16458 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
16459 (apply_lit): Update call to _apply_lit.
16460 (apply_arglit): New function.
16461 (parse_args): Handle "a" arguments.
16462 (parse_auto_input): Handle format names using ":".
16463 * math/README.libm-test: Document "a" parameter type.
16464 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
16465 (ARG_TYPE_TRUE_MIN): Likewise.
16466 (ARG_TYPE_MAX): Likwise.
16467 (ARG_MIN_EXP): Likewise.
16468 (ARG_MAX_EXP): Likewise.
16469 (ARG_MANT_DIG): Likewise.
16470 (TEST_COND_arg_ibm128): Likewise.
16471 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
16472 (TEST_COND_arg_fmt): New macro.
16473 (init_max_error): Update prototype.
16474 * math/libm-test-support.c (test_ibm128): New variable.
16475 (init_max_error): Take argument testing_ibm128 and set test_ibm128
16476 instead of using [TEST_COND_ibm128] conditional.
16477 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
16478 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
16479 [TEST_NARROW] (TEST_MSG): New definition.
16480 (arg_plus_zero): New macro.
16481 (arg_minus_zero): Likewise.
16482 (arg_plus_infty): Likewise.
16483 (arg_minus_infty): Likewise.
16484 (arg_qnan_value_pl): Likewise.
16485 (arg_qnan_value): Likewise.
16486 (arg_snan_value_pl): Likewise.
16487 (arg_snan_value): Likewise.
16488 (arg_max_value): Likewise.
16489 (arg_min_value): Likewise.
16490 (arg_min_subnorm_value): Likewise.
16491 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
16492 (RUN_TEST_LOOP_aa_f): New macro.
16493 (TEST_SUFF): New macro.
16494 (TEST_SUFF_STR): Likewise.
16495 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
16496 (TEST_COND_any_ibm128): New macro.
16497 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
16498 this_func. Update call to init_max_error.
16499 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
16500 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
16501 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
16502 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
16503 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
16504 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
16505 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
16506 * math/test-math-scalar.h (TEST_NARROW): Likewise.
16507 * math/test-math-vector.h (TEST_NARROW): Likewise.
16508 * math/test-arg-double.h: New file.
16509 * math/test-arg-float128.h: Likewise.
16510 * math/test-arg-float32x.h: Likewise.
16511 * math/test-arg-float64.h: Likewise.
16512 * math/test-arg-float64x.h: Likewise.
16513 * math/test-arg-ldouble.h: Likewise.
16514 * math/test-math-narrow.h: Likewise.
16515 * math/test-narrow-macros.c: Likewise.
16516 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
16517 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
16518 test-narrow-macros-ldbl-64.
16519 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
16520
16521 * math/bits/mathcalls-narrow.h: New file.
16522 * include/bits/mathcalls-narrow.h: Likewise.
16523 * math/math-narrow.h: Likewise.
16524 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
16525 (__MATHCALL_NARROW_ARGS_2): Likewise.
16526 (__MATHCALL_NARROW_ARGS_3): Likewise.
16527 (__MATHCALL_NARROW_NORMAL): Likewise.
16528 (__MATHCALL_NARROW_REDIR): Likewise.
16529 (__MATHCALL_NARROW): Likewise.
16530 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
16531 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
16532 defined.
16533 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
16534 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
16535 (libm-narrow-fns): New variable.
16536 (libm-narrow-types-basic): Likewise.
16537 (libm-narrow-types-ldouble-yes): Likewise.
16538 (libm-narrow-types-float128-yes): Likewise.
16539 (libm-narrow-types-float128-alias-yes): Likewise.
16540 (libm-narrow-types): Likewise.
16541 (libm-routines): Add narrowing functions.
16542 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
16543 (libc_feholdexcept_setroundf128): New macro.
16544 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
16545 * sysdeps/ieee754/float128/float128_private.h: Include
16546 <math/math-narrow.h>.
16547 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
16548 Undefine and redefine.
16549 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
16550 (libm_alias_float_ldouble): Undefine and redefine.
16551 (libm_alias_double_ldouble): Likewise.
16552
16553 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
16554
16555 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
16556
16557 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
16558 FPCR/FPSR.
16559
16560 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
16561
16562 * manual/creature.texi: Convert references to gcc.info to gcc.
16563 * manual/stdio.texi: Likewise.
16564 * manual/string.texi: Likewise.
16565
16566 2018-02-07 Joseph Myers <joseph@codesourcery.com>
16567
16568 [BZ #17979]
16569 * posix/bits/types.h (__int_least8_t): New typedef.
16570 (__uint_least8_t): Likewise.
16571 (__int_least16_t): Likewise.
16572 (__uint_least16_t): Likewise.
16573 (__int_least32_t): Likewise.
16574 (__uint_least32_t): Likewise.
16575 (__int_least64_t): Likewise.
16576 (__uint_least64_t): Likewise.
16577 * sysdeps/generic/stdint.h (int_least8_t): Define using
16578 __int_least8_t.
16579 (int_least16_t): Define using __int_least16_t.
16580 (int_least32_t): Define using __int_least32_t.
16581 (int_least64_t): Define using __int_least64_t.
16582 (uint_least8_t): Define using __uint_least8_t.
16583 (uint_least16_t): Define using __uint_least16_t.
16584 (uint_least32_t): Define using __uint_least32_t.
16585 (uint_least64_t): Define using __uint_least64_t.
16586 * wcsmbs/uchar.h: Include <bits/types.h>.
16587 (char16_t): Define using __uint_least16_t conditional only on
16588 [!__USE_ISOCXX11].
16589 (char32_t): Define using __uint_least32_t conditional only on
16590 [!__USE_ISOCXX11].
16591 * wcsmbs/test-char-types.c: New file.
16592 * wcsmbs/Makefile (tests): Add test-char-types.
16593
16594 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
16595 version to 4.0.1.
16596
16597 2018-02-07 Zack Weinberg <zackw@panix.com>
16598
16599 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
16600 Delete all contents except for definitions of _G_HAVE_MMAP and
16601 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
16602 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
16603 sysdeps/unix/sysv/linux/_G_config.h. Make same content
16604 change as above.
16605
16606 * libio/libio.h: Don't include bits/_G_config.h here.
16607 Include stddef.h with __need_wchar_t defined. Include
16608 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
16609 Define _IO_iconv_t here, directly.
16610 Don't define _IO_HAVE_ST_BLKSIZE.
16611 * libio/libioP.h: Include _G_config.h here. Move include of
16612 shlib-compat.h up with rest of includes. Simplify conditionals
16613 controlling definition of _IO_JUMPS_OFFSET.
16614
16615 * csu/init.c: Remove always-true #if around entire file.
16616 Don't include stdio.h. Set _IO_stdin_used to hardwired
16617 constant 0x20001, and update commentary.
16618 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
16619 Replace all uses of _G_va_list with __gnuc_va_list.
16620 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
16621 instead of #if _IO_HAVE_ST_BLKSIZE.
16622 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
16623 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
16624 not #ifdef.
16625
16626 * libio/bits/libio.h: Move back to libio/libio.h and adjust
16627 multiple-include guard to match.
16628 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
16629 into this file.
16630 Remove preprocessor conditionals that are always true and/or
16631 redundant to other preprocessor conditionals in the same nest.
16632 Include shlib-compat.h unconditionally.
16633 Error out if _LIBC is not defined, or if _ISOMAC is defined,
16634 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
16635 defined after including stdio.h.
16636 Use __BEGIN_DECLS/__END_DECLS.
16637
16638 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
16639 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
16640 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
16641
16642 2018-02-07 Zack Weinberg <zackw@panix.com>
16643
16644 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
16645 New single-type headers split from _G_config.h.
16646 * libio/bits/types/cookie_io_functions_t.h
16647 * libio/bits/types/struct_FILE.h
16648 New single-type headers split from libio.h.
16649
16650 * libio/Makefile: Install the above new headers. Don't install
16651 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
16652 bits/libio-ldbl.h.
16653 * libio/_G_config.h, libio/libio.h: Delete file.
16654
16655 * libio/bits/libio.h: Remove improper-inclusion guard.
16656 Include stdio.h and don't repeat anything that it does.
16657 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
16658 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
16659 __io_read_fn as cookie_read_function_t,
16660 __io_write_fn as cookie_write_function_t,
16661 __io_seek_fn as cookie_seek_function_t,
16662 __io_close_fn as cookie_close_function_t,
16663 and _IO_cookie_io_functions_t as cookie_io_functions_t.
16664 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
16665 here, in the "compatibility defines" section. Remove an #if 0
16666 block. Use the "body" macros from bits/types/struct_FILE.h to
16667 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
16668 and _IO_ferror_unlocked.
16669 Move prototypes of __uflow and __overflow...
16670
16671 * libio/stdio.h: ...here. Don't include bits/libio.h.
16672 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
16673 directly from stdarg.h. Include bits/types/__fpos_t.h,
16674 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
16675 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
16676 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
16677 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
16678 cookie_io_functions_t, not _IO_cookie_io_functions_t;
16679 __ssize_t, not _IO_ssize_t. Unconditionally define
16680 BUFSIZ as 8192 and EOF as (-1).
16681
16682 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
16683 macros from bits/types/struct_FILE.h instead of _IO_* macros
16684 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
16685 instead of _IO_ssize_t.
16686 * libio/bits/stdio2.h: Similarly.
16687
16688 * libio/iolibio.h: Add multiple-include guard.
16689 Include bits/libio.h after stdio.h.
16690 * libio/libioP.h: Add multiple-include guard.
16691 Include stdio.h and bits/libio.h before iolibio.h.
16692
16693 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
16694 * include/bits/types/cookie_io_functions_t.h
16695 * include/bits/types/struct_FILE.h: New wrappers.
16696
16697 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
16698 Get definitions of _G_fpos_t and _G_fpos64_t from
16699 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
16700 respectively. Remove improper-inclusion guards.
16701
16702 * conform/data/stdio.h-data: Update expectations of va_list.
16703 * scripts/check-installed-headers.sh: Remove special case for
16704 libio.h and _G_config.h.
16705
16706 2018-02-07 Joseph Myers <joseph@codesourcery.com>
16707
16708 [BZ #15105]
16709 [BZ #19463]
16710 * include/sys/sysmacros.h [!_ISOMAC]
16711 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
16712 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
16713 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
16714 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
16715 libc_hidden_proto.
16716 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
16717 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
16718 Likewise.
16719 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
16720 Undefine and redefine to add use __gnu_dev_ prefix.
16721 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
16722 Likewise.
16723 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
16724 and define as hidden inline function.
16725 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
16726 Likewise.
16727 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
16728 Likewise.
16729 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
16730 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
16731 (gnu_dev_minor): Likewise.
16732 (gnu_dev_makedev): Likewise.
16733 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
16734 makedev.
16735 * posix/wordexp.c (exec_comm_child): Likewise.
16736 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
16737 instead of minor and __gnu_dev_major instead of major.
16738 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
16739 __gnu_dev_major instead of major.
16740 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
16741 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
16742 instead of gnu_dev_minor.
16743 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
16744 (SLAVE_P): Likewise.
16745 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
16746 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
16747 instead of major.
16748
16749 [BZ #21313]
16750 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
16751 in another place.
16752 * locale/weightwc.h (findidx): Likewise.
16753
16754 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
16755
16756 * manual/probes.texi (slowlog): Delete documentation of removed probe.
16757 (slowlog_inexact): Likewise
16758 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
16759 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
16760
16761 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
16762
16763 [BZ #22797]
16764 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
16765 missing second underscore to parameter name.
16766
16767 2018-02-06 Joseph Myers <joseph@codesourcery.com>
16768
16769 [BZ #14508]
16770 [BZ #15512]
16771 [BZ #17082]
16772 [BZ #20530]
16773 * bits/byteswap.h: Update file comment. Do not include
16774 <bits/byteswap-16.h>.
16775 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
16776 constant.
16777 (__bswap_16): Define as inline function.
16778 (__bswap_constant_32): Reformat definition.
16779 (__bswap_32): Always define as inline function, not macro, using
16780 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
16781 otherwise __bswap_constant_32.
16782 (__bswap_constant_64): Reformat definition. Do not use
16783 __extension__ here.
16784 (__bswap_64): Always define as inline function, not macro. Use
16785 __extension__ on function definition. Use __builtin_bswap64 if
16786 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
16787 * string/test-endian-file-scope.c: New file.
16788 * string/test-endian-sign-conversion.c: Likewise.
16789 * string/Makefile (headers): Remove bits/byteswap-16.h.
16790 (tests): Add test-endian-file-scope and
16791 test-endian-sign-conversion.
16792 (CFLAGS-test-endian-sign-conversion.c): New variable.
16793 * bits/byteswap-16.h: Remove file.
16794 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
16795 * sysdeps/ia64/bits/byteswap.h: Likewise.
16796 * sysdeps/m68k/bits/byteswap.h: Likewise.
16797 * sysdeps/s390/bits/byteswap-16.h: Likewise.
16798 * sysdeps/s390/bits/byteswap.h: Likewise.
16799 * sysdeps/tile/bits/byteswap.h: Likewise.
16800 * sysdeps/x86/bits/byteswap-16.h: Likewise.
16801 * sysdeps/x86/bits/byteswap.h: Likewise.
16802
16803 [BZ #17721]
16804 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
16805 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
16806 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
16807 199901L] (__restrict): Define to restrict.
16808
16809 [BZ #19667]
16810 * string/testcopy.c: Include <support/support.h>. Do not include
16811 <malloc.h>. Use <support/test-driver.c>.
16812 (main): Rename to do_test. Make static. Use xmalloc instead of
16813 malloc.
16814
16815 [BZ #13575]
16816 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
16817 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
16818 (SSIZE_MAX): Define to INT_MAX.
16819 * posix/test-ssize-max.c: New file.
16820 * posix/Makefile (tests): Add test-ssize-max.
16821
16822 [BZ #19668]
16823 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
16824 <support/support.h>. Do not include <malloc.h>.
16825 (query_auxv): Use xmalloc instead of malloc.
16826
16827 [BZ #14553]
16828 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
16829 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
16830 instead of loff_t.
16831
16832 2018-02-06 Florian Weimer <fweimer@redhat.com>
16833
16834 [BZ #18023]
16835 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
16836 Use scratch_buffer instead of extend_alloca.
16837
16838 2018-02-06 Zack Weinberg <zackw@panix.com>
16839
16840 * libio/stdio.h: Don't define getc or putc as macros.
16841 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
16842 not _IO_getc and _IO_putc.
16843
16844 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
16845 * stdio-common/tstgetln.c: Don't redefine ssize_t.
16846
16847 2018-02-06 Joseph Myers <joseph@codesourcery.com>
16848
16849 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
16850 (TCP_FASTOPEN_NO_COOKIE): Likewise.
16851
16852 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
16853
16854 [BZ #14890]
16855 * elf/elf.h (NT_PRFPREG): New macro.
16856 (NT_S390_VXRS_LOW): Likewise.
16857 (NT_S390_VXRS_HIGH): Likewise.
16858 (NT_S390_GS_CB): Likewise.
16859 (NT_S390_GS_BC): Likewise.
16860 (NT_S390_RI_CB): Likewise.
16861
16862 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
16863 (MAP_SYNC): New macro.
16864 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
16865 Likewise.
16866 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
16867 (MAP_SYNC): Likewise.
16868 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
16869 (MAP_SYNC): Likewise.
16870 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
16871 (MAP_SYNC): Likewise.
16872 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
16873 (MAP_SYNC): Likewise.
16874 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
16875 (MAP_SYNC): Likewise.
16876 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
16877 (MAP_SYNC): Likewise.
16878 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
16879 Likewise.
16880 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
16881 Likewise.
16882
16883 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
16884 (MAP_SHARED_VALIDATE): New macro.
16885 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16886 (MAP_SHARED_VALIDATE): Likewise.
16887
16888 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16889
16890 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
16891 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
16892 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
16893
16894 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16895
16896 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
16897 (DT_NUM): Updated to 35.
16898
16899 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16900
16901 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
16902 __builtin_expect with __glibc_likely and __glibc_unlikely.
16903 (elf_machine_rela): Likewise.
16904 (elf_machine_lazy_rel): Likewise.
16905
16906 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16907
16908 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
16909 __builtin_expect with __glibc_likely and __glibc_unlikely.
16910 (elf_machine_lazy_rel): Likewise.
16911
16912 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16913
16914 [BZ #22638]
16915 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
16916 SHARED.
16917 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
16918
16919 2018-02-05 Andreas Schwab <schwab@suse.de>
16920
16921 [BZ #22761]
16922 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
16923 string.
16924
16925 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
16926
16927 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
16928 not check against PTHREAD_STACK_MIN.
16929
16930 2018-02-02 Sean McKean <smckean83@gmail.com>
16931
16932 [BZ #22735]
16933 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
16934
16935 2018-02-02 Florian Weimer <fweimer@redhat.com>
16936
16937 [BZ #22753]
16938 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
16939 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
16940 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
16941 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
16942 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
16943 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
16944 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
16945 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
16946 * manual/llio.texi (Scatter-Gather): Mention offset -1.
16947 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
16948 * misc/tst-preadvwritev2.c (do_test): Call it.
16949 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
16950
16951 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
16952
16953 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
16954
16955 * benchtests/bench-memcmp.c: Print json instead of plain text.
16956
16957 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
16958 every test run.
16959
16960 2018-02-01 Joseph Myers <joseph@codesourcery.com>
16961
16962 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
16963 version to 4.15.
16964 (s390_sthyi): New syscall.
16965
16966 * sysdeps/generic/ldbl-classify-compat.h: New file.
16967 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
16968 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
16969 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
16970 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
16971 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
16972 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
16973 * sysdeps/ieee754/dbl-64/s_finite.c: Include
16974 <ldbl-classify-compat.h>.
16975 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16976 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
16977 <ldbl-classify-compat.h>.
16978 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16979 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
16980 <ldbl-classify-compat.h>.
16981 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16982 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
16983 <ldbl-classify-compat.h>.
16984 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16985 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
16986 <ldbl-classify-compat.h>.
16987 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16988 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
16989 <ldbl-classify-compat.h>.
16990 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16991 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
16992 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
16993 * sysdeps/m68k/coldfire/math_private.h: Remove file.
16994 * sysdeps/microblaze/math_private.h: Likewise.
16995 * sysdeps/nios2/math_private.h: Likewise.
16996 * sysdeps/sh/math_private.h: Likewise.
16997
16998 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
16999 * sysdeps/m68k/coldfire/math_private.h: ... here.
17000 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
17001 * sysdeps/tile/math_private.h: Likewise.
17002 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
17003 Remove macro.
17004 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
17005 Likewise.
17006
17007 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
17008 Remove macro.
17009 (libc_fetestexcept): Likewise.
17010 (libc_feupdateenv_test): Likewise.
17011 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
17012 (libc_fetestexcept): Likewise.
17013 (libc_feupdateenv_test): Likewise.
17014 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
17015 (libc_fetestexcept): Likewise.
17016 (libc_feupdateenv_test): Likewise.
17017 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
17018 (libc_fetestexcept): Likewise.
17019 (libc_feupdateenv_test): Likewise.
17020
17021 * sysdeps/generic/math_private.h
17022 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
17023 New inline function.
17024 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
17025 Likewise.
17026
17027 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
17028 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
17029 * sysdeps/generic/math_private.h
17030 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
17031 inline function.
17032 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
17033 Likewise.
17034 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
17035 Likewise.
17036 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
17037 Likewise.
17038 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
17039 Likewise.
17040 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
17041 Likewise.
17042 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
17043 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
17044 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
17045 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
17046 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
17047 (__fegetenv): Likewise.
17048 (fesetenv): Likewise.
17049 (__fesetenv): Likewise.
17050 (feupdateenv): Likewise.
17051 (__feupdateenv): Likewise.
17052 (fegetround): Likewise.
17053 (__fegetround): Likewise.
17054 (fesetround): Likewise.
17055 (__fesetround): Likewise.
17056
17057 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
17058 (feraiseexcept): New macro.
17059 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
17060 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
17061 Remove macro.
17062 (__feraiseexcept): Likewise.
17063 (feclearexcept): Likewise.
17064 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
17065 (__feraiseexcept): Likewise.
17066 (feclearexcept): Likewise.
17067 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
17068 (__feraiseexcept): Likewise.
17069 (feclearexcept): Likewise.
17070 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
17071 (__feraiseexcept): Likewise.
17072 (feclearexcept): Likewise.
17073 (fetestexcept): Likewise.
17074
17075 * sysdeps/m68k/coldfire/math-tests.h: New file.
17076
17077 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
17078 * sysdeps/m68k/bits/fenv.h: ... here.
17079 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
17080 not define.
17081 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
17082 Likewise.
17083 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
17084 Likewise.
17085 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
17086 Likewise.
17087 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
17088 Likewise.
17089 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
17090 Define to 0.
17091 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
17092 (__FE_UNDEFINED): New enum constant.
17093 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
17094 Do not define.
17095 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
17096 Likewise.
17097 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
17098 Likewise.
17099 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
17100 to match generic bits/fenv.h.
17101 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
17102 Do not define.
17103
17104 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
17105 packed on bits.
17106 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
17107 * soft-fp/half.h (union _FP_UNION_H): Likewise.
17108 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
17109 * soft-fp/single.h (union _FP_UNION_S): Likewise.
17110
17111 2018-02-01 Carlos O'Donell <carlos@redhat.com>
17112 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
17113 Joseph Myers <joseph@codesourcery.com>
17114
17115 [BZ #21314]
17116 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
17117 (__log1p): Disable -Wmaybe-uninitialized for -Os around
17118 computation using c.
17119 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
17120 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
17121 computation using c.
17122
17123 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
17124
17125 * version.h (RELEASE): Set to "development".
17126 (VERSION): Set to "2.27.9000".
17127 * NEWS (2.28): New section.
17128
17129 * version.h (RELEASE): Set to "stable".
17130 (VERSION): Set to "2.27".
17131 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
17132
17133 * NEWS: Add the list of bugs fixed in 2.27.
17134
17135 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17136
17137 * stdlib/test-atexit-race-common.c (do_test): Check stack size
17138 against PTHREAD_STACK_MIN.
17139
17140 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
17141
17142 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
17143 New entries.
17144 (Rafal Luzynski, Andreas Schwab): Update.
17145
17146 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
17147
17148 [BZ #10871]
17149 * NEWS: List the languages which actually use the alternative
17150 months feature in this release. Also explain that "alt_mon" and
17151 "ab_alt_mon" are optional.
17152
17153 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
17154
17155 [BZ #22765]
17156 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
17157
17158 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
17159
17160 * manual/install.texi (Tools for Compilation): Update the newest
17161 versions of gcc, binutils, texinfo, gawk, bison, and sed.
17162 * INSTALL: Regenerated.
17163
17164 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
17165
17166 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
17167 instead of __builtin_expect.
17168
17169 2018-01-30 Florian Weimer <fweimer@redhat.com>
17170
17171 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
17172 data.
17173 * nss/tst-nss-getpwent.c (do_test): Likewise.
17174
17175 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
17176
17177 [BZ #10871]
17178 * localedata/locales/hr_HR (mon): Rename to...
17179 (alt_mon): This.
17180 (mon): Import from CLDR (genitive case).
17181 (d_t_fmt): Update the comment.
17182
17183 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
17184
17185 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
17186 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
17187 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
17188
17189 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
17190
17191 * mach/Versions: Fix version when __mach_host_self_ was added.
17192 * hurd/Versions: Fix version when _hurd_exec_paths was added.
17193 * sysdeps/mach/hurd/i386/ld.abilist: New file.
17194 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
17195 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
17196 * sysdeps/mach/hurd/i386/libc.abilist: New file.
17197 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
17198 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
17199 * sysdeps/mach/hurd/i386/libm.abilist: New file.
17200 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
17201 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
17202 * sysdeps/mach/hurd/i386/librt.abilist: New file.
17203 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
17204 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
17205 || to respect codestyle.
17206 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
17207 (do_test_bz20181): Rename accordingly.
17208 * malloc/malloc.c: Include <assert.h>.
17209 (assert): Do not define.
17210 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
17211 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
17212 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
17213 * sysdeps/mach/hurd/hp-timing.h: New file.
17214 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
17215
17216 2018-01-29 Darius Rad <darius@bluespec.com>
17217
17218 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
17219
17220 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
17221
17222 * sysdeps/init_array/crti.S (.section .init_array): Add
17223 PREINIT_FUNCTION when defined.
17224 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
17225 * config.h.in: Regenerate.
17226 * manual/platform.texi: Add RISC-V documenation for
17227 __riscv_flush_icache.
17228 * sysdeps/riscv/__longjmp.S: New file.
17229 * sysdeps/riscv/backtrace.c: Likewise.
17230 * sysdeps/riscv/bits/endian.h: Likewise.
17231 * sysdeps/riscv/bits/setjmp.h: Likewise.
17232 * sysdeps/riscv/bits/wordsize.h: Likewise.
17233 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
17234 * sysdeps/riscv/bsd-setjmp.c: Likewise.
17235 * sysdeps/riscv/dl-trampoline.S: Likewise.
17236 * sysdeps/riscv/gccframe.h: Likewise.
17237 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
17238 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
17239 * sysdeps/riscv/machine-gmon.h: Likewise.
17240 * sysdeps/riscv/memusage.h: Likewise.
17241 * sysdeps/riscv/setjmp.S: Likewise.
17242 * sysdeps/riscv/sys/asm.h: Likewise.
17243 * sysdeps/riscv/tls-macros.h: Likewise.
17244 * sysdeps/riscv/dl-tls.h: New file.
17245 * sysdeps/riscv/libc-tls.c: Likewise.
17246 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
17247 * sysdeps/riscv/nptl/tls.h: Likewise.
17248 * sysdeps/riscv/stackinfo.h: Likewise.
17249 * sysdeps/riscv/bits/fenv.h: New file.
17250 * sysdeps/riscv/e_sqrtl.c: Likewise.
17251 * sysdeps/riscv/fpu_control.h: Likewise.
17252 * sysdeps/riscv/math-tests.h: Likewise.
17253 * sysdeps/riscv/nofpu/Implies: Likewise.
17254 * sysdeps/riscv/sfp-machine.h: Likewise.
17255 * sysdeps/riscv/tininess.h: Likewise.
17256 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
17257 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
17258 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
17259 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
17260 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
17261 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
17262 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
17263 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
17264 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
17265 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
17266 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
17267 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
17268 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
17269 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
17270 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
17271 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
17272 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
17273 * sysdeps/riscv/rvd/s_finite.c: Likewise.
17274 * sysdeps/riscv/rvd/s_fma.c: Likewise.
17275 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
17276 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
17277 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
17278 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
17279 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
17280 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
17281 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
17282 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
17283 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
17284 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
17285 * sysdeps/riscv/rvf/fegetround.c: Likewise.
17286 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
17287 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
17288 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
17289 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
17290 * sysdeps/riscv/rvf/fesetround.c: Likewise.
17291 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
17292 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
17293 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
17294 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
17295 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
17296 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
17297 * sysdeps/riscv/rvf/math_private.h: Likewise.
17298 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
17299 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
17300 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
17301 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
17302 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
17303 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
17304 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
17305 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
17306 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
17307 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
17308 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
17309 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
17310 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
17311 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
17312 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
17313 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
17314 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
17315 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
17316 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
17317 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
17318 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
17319 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
17320 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
17321 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
17322 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
17323 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
17324 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
17325 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
17326 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
17327 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
17328 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
17329 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
17330 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
17331 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
17332 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
17333 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
17334 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
17335 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
17336 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
17337 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
17338 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
17339 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
17340 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
17341 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
17342 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
17343 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
17344 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
17345 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
17346 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
17347 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
17348 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
17349 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
17350 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
17351 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
17352 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
17353 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
17354 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
17355 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
17356 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
17357 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
17358 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
17359 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
17360 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
17361 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
17362 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17363 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
17364 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
17365 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
17366 * sysdeps/riscv/Implies: New file.
17367 * sysdeps/riscv/Makefile: Likewise.
17368 * sysdeps/riscv/configure: Likewise.
17369 * sysdeps/riscv/configure.ac: Likewise.
17370 * sysdeps/riscv/nptl/Makefile: Likewise.
17371 * sysdeps/riscv/preconfigure: Likewise.
17372 * sysdeps/riscv/rv64/Implies-after: Likewise.
17373 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
17374 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
17375 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
17376 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
17377 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
17378 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
17379 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
17380 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
17381 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
17382 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
17383 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
17384 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
17385 (Config): Likewise.
17386
17387 2018-01-29 Florian Weimer <fweimer@redhat.com>
17388
17389 [BZ #22701]
17390 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
17391 libnsl_hidden_proto.
17392 * include/rpcsvc/yp.h (yp_xdrall): Declare with
17393 libnsl_hidden_proto.
17394 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
17395 * nis/Makefile (libnsl-routines): Add nss-default only for
17396 build-obsolete-nsl.
17397 * nis/nis_defaults.c (__nis_default_ttl): Add
17398 libnsl_hidden_nolink_def.
17399 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
17400 declaration.
17401 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
17402 * nis/ypclnt.c (yp_maplist): Likewise.
17403
17404 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
17405
17406 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
17407 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
17408
17409 2018-01-29 Joseph Myers <joseph@codesourcery.com>
17410
17411 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
17412 clean -dxfq for git updates when replacing sources.
17413
17414 * scripts/build-many-glibcs.py (Config.build_gcc): Use
17415 --disable-libcilkrts unconditionally, not just for the final GCC
17416 build for Hurd.
17417
17418 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
17419 version to 4.15.
17420
17421 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17422
17423 [BZ #10871]
17424 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
17425 case).
17426
17427 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17428
17429 [BZ #10871]
17430 * localedata/locales/be_BY (mon): Rename to...
17431 (alt_mon): This, then synchronize with CLDR (nominative case).
17432 (abmon): Rename to...
17433 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
17434 (mon): Import from CLDR (genitive case).
17435 (abmon): Likewise.
17436 * localedata/locales/be_BY@latin (mon): Rename to...
17437 (alt_mon): This.
17438 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
17439
17440 * localedata/locales/be_BY@latin (lang_name): Reworded to
17441 "biełaruskaja mova".
17442
17443 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17444
17445 [BZ #10871]
17446 * localedata/locales/el_CY (mon): Renamed to...
17447 (alt_mon): This.
17448 (mon): Import from CLDR (genitive case).
17449 * localedata/locales/el_GR: Likewise.
17450
17451 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17452
17453 [BZ #10871]
17454 * localedata/locales/ru_RU (mon): Rename to...
17455 (alt_mon): This.
17456 (abmon): Rename to...
17457 (ab_alt_mon): This.
17458 (mon): Import from CLDR (genitive case).
17459 (abmon): Copy from the old content except the 5th month which is
17460 now in the genitive case, even when abbreviated.
17461 * localedata/locales/ru_UA: Likewise.
17462 * time/tst-strptime.c (day_tests): Add an actual example of
17463 a difference between %b and %Ob in Russian.
17464
17465 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
17466
17467 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
17468 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
17469 a `c' variable.
17470 * resolv/res-close.c: Include <stdlib.h>.
17471 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
17472 <sys/wait.h>, <time.h>, <sys/uio.h>.
17473 (NOT_CANCEL_H): Add inclusion guard.
17474 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
17475 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
17476 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
17477 return 0.
17478 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
17479 vm_address_t * to ElfW(Addr) * for dl_main parameter.
17480 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
17481 instead of void *.
17482 * sysdeps/pthread/timer_create.c (timer_create): Do not use
17483 timer_ptr2id to cast struct timer_node * to void *.
17484 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
17485 --disable-libcilkrts to gcc configure.
17486 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
17487 and make them the default for now.
17488 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
17489 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
17490 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
17491 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
17492 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
17493 MACH_IPC_COMPAT.
17494 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
17495 __task_terminate would ever return successfully.
17496 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
17497 to global scope.
17498 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
17499 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
17500 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
17501 critical section to make code simpler and avoid warning.
17502 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
17503 critical section to make code simpler and avoid warning.
17504 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
17505 const char * instead of char *.
17506 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
17507 __hurd_file_name_split, hurd_file_name_split,
17508 __hurd_directory_name_split, hurd_directory_name_split,
17509 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
17510 hurd_file_name_path_lookup): Make lookup function parameter take a
17511 const char *name instead of char *name.
17512 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
17513 __hurd_directory_name_split): Likewise.
17514 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
17515 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
17516 * sysdeps/mach/hurd/check_native.c: New file.
17517 * sysdeps/mach/hurd/check_pf.c: New file.
17518 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
17519 (__freeifaddrs): Define macro to freeifaddrs.
17520 * sysdeps/mach/hurd/libhurduser.abilist: New file.
17521 * sysdeps/mach/libmachuser.abilist: New file.
17522 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
17523 (do_test_bz20181): Rename accordingly.
17524 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
17525 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
17526 <sys/mount.h>.
17527 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
17528 version only if __USE_EXTERN_INLINES is defined.
17529 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
17530 __hurd_sockfail): Likewise.
17531 (_hurd_fd_get): Always declare functions, and provide inline versions
17532 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
17533 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
17534 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
17535 _hurd_port_set): Always declare functions, and provide inline versions
17536 only if __USE_EXTERN_INLINES and _LIBC are defined and
17537 IS_IN(libc).
17538 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
17539 _hurd_critical_section_unlock): Likewise.
17540 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
17541 * __hurd_threadvar_location): Likewise.
17542 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
17543 _hurd_userlink_clear): Likewise.
17544 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
17545 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
17546 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
17547 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
17548 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
17549 __spin_lock_locked): Likewise.
17550 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
17551 __spin_lock_locked): Likewise.
17552 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
17553 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
17554 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
17555 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
17556 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
17557 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
17558 _POSIX_NO_TRUNC): Define to 0.
17559 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
17560 check size against PTHREAD_STACK_MIN.
17561 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
17562 IS_IN(libpthread)]: Include <sigsetops.h>.
17563 * mach/Makefile (user-interfaces): Add mach/gnumach.
17564 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
17565 * sysdeps/mach/configure (mach_interface_list): Regenerate.
17566 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
17567 instead of invalid -1.
17568 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
17569 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
17570 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
17571 <net/ppp_defs.h>.
17572
17573 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
17574
17575 * hurd/fcntl-internal.h: New file.
17576
17577 2018-01-27 James Clarke <jrtc27@jrtc27.com>
17578
17579 * sysdeps/hppa/fpu/libm-test-ulps: Update.
17580
17581 * sysdeps/alpha/fpu/libm-test-ulps: Update.
17582
17583 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
17584
17585 [BZ #22701]
17586 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
17587 Build only shared objects.
17588
17589 2018-01-26 Carlos O'Donell <carlos@redhat.com>
17590
17591 * README: Update for hppa.
17592
17593 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17594
17595 * sysdeps/sparc/fpu/libm-test-ulps: Update
17596 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
17597
17598 2018-01-26 Carlos O'Donell <carlos@redhat.com>
17599
17600 Revert:
17601
17602 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17603
17604 [BZ #22563]
17605 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17606 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
17607 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17608 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
17609 to feature_1.
17610
17611 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17612
17613 [BZ #22563]
17614 * bits/types/__cancel_jmp_buf_tag.h: New file.
17615 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
17616 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
17617 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
17618 * nptl/Makefile (headers): Add
17619 bits/types/__cancel_jmp_buf_tag.h.
17620 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
17621 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
17622 * sysdeps/nptl/pthread.h: Include
17623 <bits/types/__cancel_jmp_buf_tag.h>.
17624 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
17625 __cancel_jmp_buf.
17626 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
17627
17628 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
17629
17630 [BZ #10871]
17631 * localedata/locales/uk_UA (mon): Renamed to...
17632 (alt_mon): This.
17633 (alt_digits): "0" removed and then renamed to...
17634 (mon): This.
17635 (date_fmt): Definition changed not to use the alternative
17636 digits hack.
17637
17638 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
17639
17640 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
17641 FLAG_RISCV_FLOAT_ABI_DOUBLE.
17642 * elf/elf.h (EF_RISCV_RVC): New define.
17643 (EF_RISCV_FLOAT_ABI): Likewise.
17644 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
17645 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
17646 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
17647 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
17648 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
17649 define.
17650 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
17651
17652 2018-01-25 Andreas Schwab <schwab@suse.de>
17653
17654 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
17655 single quotes.
17656 * sysdeps/gnu/configure: Regenerate.
17657 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
17658 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
17659 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
17660 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
17661 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
17662 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
17663 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
17664 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
17665
17666 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
17667
17668 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
17669 URL, and run autoconf, make it the default for now.
17670
17671 2018-01-24 Joseph Myers <joseph@codesourcery.com>
17672
17673 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17674 soft-float ColdFire configuration.
17675
17676 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
17677 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
17678 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
17679
17680 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
17681 MicroBlaze file.
17682
17683 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
17684 ....
17685 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
17686 ... here.
17687 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
17688 New file.
17689
17690 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
17691 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
17692 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
17693 file.
17694
17695 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
17696
17697 [BZ #22742]
17698 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
17699 Rename to __reserved and add comment.
17700 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
17701 Rename to __reserved.
17702
17703 2018-01-24 Joseph Myers <joseph@codesourcery.com>
17704
17705 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17706 i686-gnu configurations.
17707 (Context.run_builds): Include mig, gnumach and hurd in components
17708 considered.
17709 (Context.checkout): Add mig, gnumach and hurd to components.
17710 (Context.checkout_tar): Add URL mappings for mig, gnumach and
17711 hurd.
17712 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
17713 (Config.build): Install gnumach headers, build mig and install
17714 hurd headers for 'gnu' OS.
17715 (Config.install_gnumach_headers): New function.
17716 (Config.install_hurd_headers): Likewise.
17717 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
17718 when building for 'gnu' OS.
17719
17720 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
17721
17722 * manual/tunables.texi (Hardware Capability Tunables): Fix
17723 spelling.
17724
17725 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
17726
17727 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
17728 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
17729 (ALTMON_11, ALTMON_12): Improve documentation.
17730 * manual/time.texi (strftime): Likewise.
17731
17732 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17733
17734 [BZ #10871]
17735 * localedata/locales/pl_PL: Alternative month names added,
17736 primary month names are genitive now.
17737 * time/tst-strptime.c (day_tests): Actually use a genitive case
17738 of a month name in Polish language.
17739
17740 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17741
17742 [BZ #10871]
17743 * manual/locale.texi: Document ALTMON_1..12 constants for
17744 nl_langinfo. Specify when to use ALTMON instead of MON.
17745 * manual/time.texi (strftime, strptime): Document GNU extension
17746 permitting O modifier with %B and %b. Specify when to use
17747 %OB instead of %B.
17748
17749 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17750
17751 [BZ #10871]
17752 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
17753 names, define them as the same as abbreviated month names explicitly.
17754 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
17755 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
17756 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
17757 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
17758 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
17759 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
17760 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
17761 _NL_WABALTMON_12): New enum constants.
17762 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
17763 wab_alt_mon, and ab_alt_mon_defined members.
17764 (time_output): Output ab_alt_mon and wab_alt_mon members.
17765 (time_read): Read them, initialize them as copies of abmon and wabmon
17766 respectively if they are missing, initialize ab_alt_mon_defined.
17767 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
17768 * locale/programs/locfile-kw.h: Regenerate.
17769 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
17770 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
17771 and ru_RU.UTF-8.
17772 * time/strftime_l.c (a_altmonth, aam_len): New macros.
17773 [!COMPILE_WIDE] (ABALTMON_1): New macro.
17774 (__strftime_internal): Handle %Ob and %Oh formats.
17775 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
17776 (__strptime_internal): Handle %Ob and %Oh formats.
17777 * time/tst-strptime.c (day_tests): Add more tests to parse different
17778 forms of month names including the new %Ob format specifier.
17779
17780 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17781
17782 [BZ #10871]
17783 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
17784 define them as the same as primary full month names explicitly.
17785 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
17786 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
17787 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
17788 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
17789 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
17790 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
17791 _NL_WALTMON_12): New enum constants.
17792 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
17793 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
17794 macros.
17795 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
17796 walt_mon, and alt_mon_defined members.
17797 (time_output): Output alt_mon and walt_mon members.
17798 (time_read): Read them, initialize them as copies of mon and wmon
17799 respectively if they are missing, initialize alt_mon_defined.
17800 * locale/programs/locfile-kw.gperf (alt_mon): Define.
17801 * locale/programs/locfile-kw.h: Regenerate.
17802 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
17803 * localedata/tst-langinfo.c (map): Add tests for the new constants
17804 ALTMON_1 .. ALTMON_12.
17805 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
17806 and pl_PL.UTF-8.
17807 * time/strftime_l.c (f_altmonth): New macro.
17808 (__strftime_internal): Handle %OB format.
17809 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
17810 (__strptime_internal): Handle %OB format.
17811 * time/tst-strptime.c (day_tests): Add tests to parse different forms
17812 of month names including the new %OB format specifier.
17813
17814 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17815
17816 [BZ #22685]
17817 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
17818 from ABORT_TRANSACTION.
17819 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
17820 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
17821 ABORT_TRANSACTION_IMPL): Likewise.
17822 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
17823 Linux code, but remove the code that aborts transactions.
17824
17825 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
17826
17827 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
17828
17829 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
17830
17831 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
17832 in date: "2004-14-09" should be "2004-09-14".
17833 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
17834 "2003-15-09" should be "2003-09-15".
17835
17836 2018-01-18 Arjun Shankar <arjun@redhat.com>
17837
17838 [BZ #22343]
17839 [BZ #22774]
17840 CVE-2018-6485
17841 CVE-2018-6551
17842 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
17843 after padding.
17844 (_int_memalign): check for integer overflow before calling
17845 _int_malloc.
17846 * malloc/tst-malloc-too-large.c: New test.
17847 * malloc/Makefile: Add tst-malloc-too-large.
17848
17849 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
17850
17851 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
17852 in date: "2017-24-07" should be "2017-07-24".
17853 * localedata/locales/mai_IN: Likewise.
17854 * localedata/locales/mai_NP: Likewise.
17855
17856 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
17857
17858 * po/ru.po: Update translations.
17859
17860 2018-01-17 Joseph Myers <joseph@codesourcery.com>
17861
17862 [BZ #22719]
17863 * sysdeps/hppa/backtrace.c: New file.
17864
17865 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
17866
17867 [BZ #22715]
17868 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
17869 align La_x86_64_retval to VEC_SIZE.
17870
17871 2018-01-16 Joseph Myers <joseph@codesourcery.com>
17872
17873 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
17874 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
17875
17876 2018-01-16 Florian Weimer <fweimer@redhat.com>
17877
17878 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
17879 Move tst-thread-exit-clobber ...
17880 [$(CXX)] (tests-unsupported): ... to here.
17881
17882 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
17883
17884 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
17885 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
17886 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17887 (_dl_aarch64_cap_flags): Update.
17888 (_DL_HWCAP_COUNT): Update.
17889
17890 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
17891
17892 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
17893 (_DL_HWCAP_LAST): Remove.
17894 (_DL_HWCAP_COUNT): Move to ...
17895 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17896 (_DL_HWCAP_COUNT): ... here.
17897
17898 2018-01-16 Florian Weimer <fweimer@redhat.com>
17899
17900 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
17901 mode with GNU extensions.
17902
17903 2018-01-15 Alan Hayward <alan.hayward@arm.com>
17904
17905 * elf/elf.h (NT_ARM_SVE): Define.
17906
17907 2018-01-15 Florian Weimer <fweimer@redhat.com>
17908
17909 [BZ #22636]
17910 * nptl/tst-minstack-throw.cc: New file.
17911 * nptl/Makefile (tests): Add tst-minstack-throw.
17912 (LDLIBS-tst-minstack-throw): Link with libstdc++.
17913 [!CXX] (tests-unsupported): Add tst-minstack-throw.
17914
17915 2018-01-15 Joseph Myers <joseph@codesourcery.com>
17916
17917 * scripts/build-many-glibcs.py (Context.checkout): Default
17918 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
17919 version to 1.1.0.
17920
17921 2018-01-13 Carlos O'Donell <carlos@redhat.com>
17922
17923 [BZ #22707]
17924 * elf/elf.h (DF_1_STUB): Define.
17925 (DF_1_PIE): Define.
17926
17927 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17928
17929 [BZ #22697]
17930 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
17931 Do not add 0.5 to integer or out-of-range arguments.
17932
17933 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
17934
17935 * po/bg.po: Update translations.
17936 * po/cs.po: Likewise.
17937 * po/de.po: Likewise.
17938 * po/ko.po: Likewise.
17939 * po/pl.po: Likewise.
17940 * po/sv.po: Likewise.
17941 * po/uk.po: Likewise.
17942 * po/vi.po: Likewise.
17943
17944 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
17945
17946 * aarch64/start.S (_start): Use __wrap_main.
17947 (__wrap_main): New local symbol.
17948
17949 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
17950
17951 [BZ #22679]
17952 CVE-2018-1000001
17953 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
17954 generic_getcwd if the path returned by getcwd syscall is not absolute.
17955 * io/tst-getcwd-abspath.c: New test.
17956 * io/Makefile (tests): Add tst-getcwd-abspath.
17957
17958 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
17959
17960 * malloc/malloc.c (malloc_consolidate): Add size check.
17961
17962 2018-01-12 Florian Weimer <fweimer@redhat.com>
17963
17964 * support/write_message.c (write_message): Preserve errno.
17965 * support/check.c (print_failure): Likewise.
17966 * support/support_test_verify_impl.c (support_test_verify_impl):
17967 Likewise.
17968 * support/support_test_compare_failure.c
17969 (support_test_compare_failure): Likewise.
17970
17971 2018-01-12 Florian Weimer <fweimer@redhat.com>
17972
17973 [BZ #22701]
17974 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
17975 Prevent installation of libnsl.so.
17976 (libnsl-inhibit-o): Do not build (or install) static libraries.
17977
17978 2018-01-12 Egmont Koblinger <egmont@gmail.com>
17979
17980 [BZ #22657]
17981 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
17982 before the day number which may produce a double space.
17983 (date_fmt): Likewise.
17984
17985 2018-01-12 Joseph Myers <joseph@codesourcery.com>
17986
17987 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
17988 instead of fegetenv.
17989
17990 2018-01-11 Joseph Myers <joseph@codesourcery.com>
17991
17992 [BZ #22702]
17993 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
17994 comment to say exceptions are discarded.
17995 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
17996 __fegetenv.
17997 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
17998 be enabled.
17999
18000 2018-01-11 Florian Weimer <fweimer@redhat.com>
18001
18002 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
18003 and error message.
18004
18005 2018-01-11 Florian Weimer <fweimer@redhat.com>
18006
18007 [BZ #22636]
18008 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
18009 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
18010
18011 2018-01-10 Joseph Myers <joseph@codesourcery.com>
18012
18013 [BZ #22693]
18014 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
18015 negative arguments in test for NaN or infinity argument.
18016
18017 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
18018
18019 * po/libc.pot: Regenerate.
18020
18021 2018-01-10 Florian Weimer <fweimer@redhat.com>
18022
18023 [BZ #22636]
18024 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
18025 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
18026
18027 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
18028
18029 * hurd/hurd/fd.h: Include <fcntl.h>
18030 (__hurd_at_flags): New function.
18031 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
18032 with call to __hurd_at_flags.
18033 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
18034 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
18035 __faccessat
18036 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
18037 (__access_noerrno): Use __faccessat_common instead of access_common.
18038 (__access): Likewise.
18039 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
18040 with a call to __faccessat.
18041 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
18042 (__faccessat_common): ... this. Move implementation of __access into it when
18043 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
18044 reauthenticate_cwdir_at helper to implement AT mechanism.
18045 (__faccessat_noerrno): New function, just calls __faccessat_common.
18046 (__faccessat): New function, just calls __faccessat_common.
18047 (faccessat): Define weak alias.
18048
18049 2018-01-10 Joseph Myers <joseph@codesourcery.com>
18050
18051 [BZ #22691]
18052 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
18053 (CFLAGS-s_fmaxmagl.c): New variable.
18054 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
18055
18056 [BZ #22690]
18057 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
18058 long int for arguments of possibly overflowing addition or
18059 subtraction.
18060 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
18061
18062 2018-01-09 Joseph Myers <joseph@codesourcery.com>
18063
18064 [BZ #22688]
18065 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
18066 (CFLAGS-e_remainderl.c): New variable.
18067
18068 [BZ #22687]
18069 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
18070 variable.
18071 (CFLAGS-s_cacoshl.c): Likewise.
18072 (CFLAGS-s_casinhl.c): Likewise.
18073 (CFLAGS-s_catanl.c): Likewise.
18074 (CFLAGS-s_catanhl.c): Likewise.
18075 (CFLAGS-s_cexpl.c): Likewise.
18076 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
18077 (CFLAGS-s_csinhl.c): Likewise.
18078 (CFLAGS-s_clogl.c): Likewise.
18079 (CFLAGS-s_clog10l.c): Likewise.
18080 (CFLAGS-s_csinl.c): Likewise.
18081 (CFLAGS-s_csqrtl.c): Likewise.
18082
18083 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
18084 2017-01-09 Svante Signell <svante.signell@gmail.com>
18085
18086 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
18087 (_hurd_exec_paths): New function.
18088 * hurd/hurd.h (_hurd_exec): Deprecate function.
18089 (_hurd_exec_paths): Declare function.
18090 * hurd/Versions: Export _hurd_exec_paths.
18091 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
18092 (__execve): Use __getcwd to build absolute path, and use
18093 _hurd_exec_paths instead of _hurd_exec.
18094 * sysdeps/mach/hurd/spawni.c: Likewise.
18095 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
18096 _hurd_exec.
18097
18098 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
18099
18100 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
18101 test instead of failing in case of ENOENT returned by posix_openpt.
18102
18103 2018-01-08 Florian Weimer <fweimer@redhat.com>
18104
18105 resolv: Support binary labels in test framework.
18106 * support/resolv_test.c (struct to_be_freed): Remove.
18107 (struct compressed_name): New.
18108 (allocate_compressed_name, ascii_tolower)
18109 (compare_compressed_name): New functions.
18110 (struct resolv_response_builder): Update type of
18111 compression_offsets for use with tsearch. Rempve to_be_freed.
18112 (response_push_pointer_to_free): Remove function.
18113 (resolv_response_add_name): Rewrite using struct compressed_name
18114 and tsearch instead of hsearch_r.
18115 (response_builder_allocate): Remove initialization of
18116 compression_offsets.
18117 (response_builder_free): Update for removal of to_be_freed. Use
18118 tdestroy instead of hdestroy_r.
18119 * resolv/Makefile (tests): Add tst-resolv-binary.
18120 (tst-resolv-binary): Link with -lresolv -lpthread.
18121
18122 2018-01-08 Florian Weimer <fweimer@redhat.com>
18123
18124 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
18125 time. Pass positive flag instead of negative flag to
18126 support_test_compare_failure.
18127 (support_test_compare_failure): Change negative parameter to
18128 positive.
18129 * support/support_test_compare_failure.c (report)
18130 (support_test_compare_failure): Likewise.
18131 * support/tst-test_compare.c (return_ssize_t, return_int): New.
18132 (do_test): Check int/size_t, ssize_t/size_t comparisons.
18133
18134 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
18135
18136 [BZ #22637]
18137 * nptl/descr.h (stackblock, stackblock_size): Update comments.
18138 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
18139 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
18140 stacksize.
18141 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
18142
18143 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
18144
18145 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18146 Add s_sincosf-sse2 and s_sincosf-fma.
18147 (CFLAGS-s_sincosf-fma.c): New.
18148 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
18149 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
18150 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
18151 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
18152 __sincosf is defined.
18153
18154 2018-01-08 Florian Weimer <fweimer@redhat.com>
18155
18156 * nptl/tst-thread-exit-clobber.cc: New file.
18157 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
18158 C++11 mode.
18159 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
18160 (tests): Add tst-thread-exit-clobber.
18161 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
18162
18163 2018-01-08 Florian Weimer <fweimer@redhat.com>
18164
18165 * support/check.h (support_static_assert): Define.
18166 (TEST_COMPARE): Use it.
18167
18168 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
18169
18170 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
18171 [!__RLIM_T_MATCHES_RLIM64_T]
18172 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
18173 __getrlimit64. Add libc_hidden_weak.
18174
18175 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
18176
18177 * elf/elf.h (R_RISCV_NONE): New define.
18178 (R_RISCV_32): Likewise.
18179 (R_RISCV_64): Likewise.
18180 (R_RISCV_RELATIVE): Likewise.
18181 (R_RISCV_COPY): Likewise.
18182 (R_RISCV_JUMP_SLOT): Likewise.
18183 (R_RISCV_TLS_DTPMOD32): Likewise.
18184 (R_RISCV_TLS_DTPMOD64): Likewise.
18185 (R_RISCV_TLS_DTPREL32): Likewise.
18186 (R_RISCV_TLS_DTPREL64): Likewise.
18187 (R_RISCV_TLS_TPREL32): Likewise.
18188 (R_RISCV_TLS_TPREL64): Likewise.
18189 * Makerules (make-link-multidir): Make directories before linking into
18190 them.
18191 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
18192 define.
18193 (VDSO_HASH_LINUX_4_15): Likewise.
18194 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
18195 in subdirectories of lib.
18196 * nptl/Makefile (/librt.so): Always depend on
18197 "$(shared-thread-library)".
18198
18199 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
18200
18201 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
18202 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
18203 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
18204 (___tls_get_addr).
18205 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
18206 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
18207 "-O2 -march=i686".
18208 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
18209 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
18210 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
18211 * sysdeps/gnu/glob-lstat-compat.c: New file.
18212 * sysdeps/gnu/glob64-lstat-compat.c: New file.
18213 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
18214
18215 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
18216
18217 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
18218 Reserve 16 chars to reloc_addr before calling _itoa_word.
18219
18220 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
18221
18222 [BZ #22678]
18223 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
18224 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
18225
18226 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
18227 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
18228
18229 * resource/tst-getrlimit.c: Add copyright header.
18230
18231 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
18232 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18233
18234 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
18235 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
18236 Define __GI_getrlimit64 as weak alias of __getrlimit64.
18237 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
18238 instead.
18239 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
18240 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
18241 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
18242 RLIM64_INFINITY): Fix values to match the kernel ones.
18243 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
18244 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
18245 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
18246 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
18247 getrlimit64@@GLIBC_2_27.
18248 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
18249 and setrlimit64.
18250 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
18251 getrlimit, setrlimit, getrlimit64 and setrlimit64.
18252 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
18253 setrlimit, getrlimit64 and setrlimit64.
18254
18255 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
18256
18257 [BZ #22648]
18258 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
18259 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
18260
18261 2018-01-04 Joseph Myers <joseph@codesourcery.com>
18262
18263 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
18264 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
18265 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
18266
18267 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18268
18269 [BZ #15479]
18270 [BZ #22666]
18271 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
18272 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
18273
18274 [BZ #15479]
18275 [BZ #22665]
18276 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
18277 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
18278 * sysdeps/alpha/fpu/s_floor.c: Likewise.
18279 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
18280
18281 2018-01-04 Florian Weimer <fweimer@redhat.com>
18282
18283 [BZ #22667]
18284 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
18285 Align the stack before calling exit.
18286 * stdlib/tst-makecontext-align.c: New file.
18287 * stdlib/Makefile (tests): Add tst-makecontext-align.
18288
18289 2018-01-04 Florian Weimer <fweimer@redhat.com>
18290
18291 Add support for calling dlvsym from libc.so.
18292 * include/dlfcn.h (__libc_dlvsym): Declare.
18293 * elf/Makefile (tests-static-internal): Add
18294 tst-libc_dlvsym-static.
18295 (tests-internal): Add tst-libc_dlvsym.
18296 (modules-names): Add tst-libc_dlvsym-dso.
18297 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
18298 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
18299 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
18300 object tst-libc_dlvsym-dso.so needs to be built before running
18301 these tests.
18302 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
18303 * elf/Versions: Export __libc_dlvsym.
18304 * elf/dl-libc.c (struct do_dlvsym_args): New.
18305 (do_dlvsym, __libc_dlvsym): New functions.
18306 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
18307 (_dl_open_hook2): New variable.
18308 (__libc_register_dl_open_hook): Set it.
18309 * elf/tst-libc_dlvsym-dso.c: New file.
18310 * elf/tst-libc_dlvsym-static.c: Likewise.
18311 * elf/tst-libc_dlvsym.c: Likewise.
18312 * elf/tst-libc_dlvsym.h: Likewise.
18313
18314 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
18315
18316 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
18317 include <sys/mount.h>.
18318
18319 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
18320
18321 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
18322 Add __NO_MATH_ERRNO__ check.
18323
18324 2018-01-02 Joseph Myers <joseph@codesourcery.com>
18325
18326 * sysdeps/mips/mips32/libm-test-ulps: Update.
18327 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
18328
18329 2018-01-02 Florian Weimer <fweimer@redhat.com>
18330
18331 * misc/tst-pselect.c: Add copyright header.
18332
18333 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
18334
18335 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
18336 comment.
18337 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
18338 comment.
18339 (settrlimit): Rename into setrlimit.
18340 (__sttrlimit): Rename into __setrlimit.
18341
18342 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
18343 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
18344 never defined in that case.
18345
18346 2018-01-02 Joseph Myers <joseph@codesourcery.com>
18347
18348 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
18349
18350 * sysdeps/arm/libm-test-ulps: Update.
18351
18352 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
18353 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
18354
18355 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18356
18357 * NEWS: Add cosf and sincosf to list of optimized functions.
18358
18359 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
18360
18361 [BZ #22660]
18362 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
18363 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
18364 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
18365 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
18366
18367 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
18368
18369 [BZ #22433]
18370 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
18371
18372 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
18373 making a copy of it.
18374
18375 2018-01-01 Joseph Myers <joseph@codesourcery.com>
18376
18377 * manual/texinfo.tex: Update to version 2017-12-26.21 with
18378 trailing whitespace removed.
18379 * scripts/config.guess: Update to version 2018-01-01.
18380 * scripts/config.sub: Update to version 2018-01-01.
18381 * scripts/move-if-change: Update from gnulib.
18382
18383 * NEWS: Update copyright dates.
18384 * catgets/gencat.c (print_version): Likewise.
18385 * csu/version.c (banner): Likewise.
18386 * debug/catchsegv.sh: Likewise.
18387 * debug/pcprofiledump.c (print_version): Likewise.
18388 * debug/xtrace.sh (do_version): Likewise.
18389 * elf/ldconfig.c (print_version): Likewise.
18390 * elf/ldd.bash.in: Likewise.
18391 * elf/pldd.c (print_version): Likewise.
18392 * elf/sotruss.sh: Likewise.
18393 * elf/sprof.c (print_version): Likewise.
18394 * iconv/iconv_prog.c (print_version): Likewise.
18395 * iconv/iconvconfig.c (print_version): Likewise.
18396 * locale/programs/locale.c (print_version): Likewise.
18397 * locale/programs/localedef.c (print_version): Likewise.
18398 * login/programs/pt_chown.c (print_version): Likewise.
18399 * malloc/memusage.sh (do_version): Likewise.
18400 * malloc/memusagestat.c (print_version): Likewise.
18401 * malloc/mtrace.pl: Likewise.
18402 * manual/libc.texinfo: Likewise.
18403 * nptl/version.c (banner): Likewise.
18404 * nscd/nscd.c (print_version): Likewise.
18405 * nss/getent.c (print_version): Likewise.
18406 * nss/makedb.c (print_version): Likewise.
18407 * posix/getconf.c (main): Likewise.
18408 * scripts/test-installation.pl: Likewise.
18409 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
18410
18411 * All files with FSF copyright notices: Update copyright dates
18412 using scripts/update-copyrights.
18413 * locale/programs/charmap-kw.h: Regenerated.
18414 * locale/programs/locfile-kw.h: Likewise.
18415
18416 2017-12-31 Zack Weinberg <zackw@panix.com>
18417
18418 * libio/bits/libio-ldbl.h: Correct check for improper
18419 inclusion. Add own multiple include guard.
18420
18421 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
18422 Dmitry V. Levin <ldv@altlinux.org>
18423
18424 [BZ #22625]
18425 CVE-2017-16997
18426 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
18427 string token expansion. Check for NULL pointer or empty string possibly
18428 returned by expand_dynamic_string_token.
18429 (decompose_rpath): Check for empty path after dynamic string
18430 token expansion.
18431
18432 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
18433
18434 [BZ #22433]
18435 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
18436
18437 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
18438 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
18439 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
18440 and PTRACE_SYSCALL.
18441 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
18442 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18443 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18444 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18445 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18446 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
18447
18448 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
18449 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
18450 __ptrace_peeksiginfo_flags, ptrace): Move to ...
18451 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
18452 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18453 bits/ptrace-shared.h.
18454 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
18455 <bits/ptrace-shared.h>.
18456 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
18457 __ptrace_peeksiginfo_flags, ptrace): Remove.
18458 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18459 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18460 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18461 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18462 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
18463
18464 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
18465
18466 [BZ #17804]
18467 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
18468 end of the loop. Improve comments.
18469
18470 2017-12-29 Zack Weinberg <zackw@panix.com>
18471
18472 [BZ #22615]
18473 * manual/errno.texi (Checking for Errors): Explicitly say that errno
18474 might be set on success.
18475
18476 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
18477
18478 [BZ #22611]
18479 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
18480 is unchanged on success.
18481
18482 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
18483
18484 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
18485 updated.
18486 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
18487 expand_dynamic_string_token): Likewise.
18488 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
18489 is_path argument.
18490
18491 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
18492 contains ':'.
18493
18494 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
18495 is set and name contains ':', and all code depending on these checks.
18496
18497 2017-12-24 Zack Weinberg <zackw@panix.com>
18498
18499 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
18500 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
18501 respectively.
18502 * libio/libio.h: Rename the original version of this file to
18503 libio/bits/libio.h. Error out if not included by stdio.h or the
18504 stub libio.h.
18505 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
18506 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
18507 if not included by bits/libio.h or the stub _G_config.h.
18508 * sysdeps/unix/sysv/linux/_G_config.h: Move to
18509 sysdeps/unix/sysv/linux/bits. Error out if not included by
18510 bits/libio.h or the stub _G_config.h.
18511 * libio/stdio.h: Include bits/libio.h, not libio.h.
18512 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
18513 well as libio.h and _G_config.h.
18514
18515 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
18516 * libio/strfile.h, stdio-common/vfscanf.c
18517 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
18518 Include stdio.h, not _G_config.h nor libio.h.
18519 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
18520 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
18521
18522 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
18523
18524 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
18525
18526 [BZ #22347]
18527 * stdlib/getrandom.c (getrandom): Fix comment.
18528 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
18529
18530 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
18531
18532 [BZ #21161]
18533 * manual/arith.texi (strtoul): Fix a typo.
18534
18535 [BZ #22596]
18536 * manual/arith.texi (finite): Fix the description of the return
18537 value.
18538
18539 2017-12-22 Eric Blake <ebb9@byu.net>
18540
18541 Avoid gcc warnings on cygwin
18542 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
18543 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
18544 Avoid unused variable.
18545
18546 2017-12-22 Florian Weimer <fweimer@redhat.com>
18547
18548 * io/Makefile (routines): Add copy_file_range.
18549 (tests): Add tst-copy_file_range.
18550 (tests-static, tests-internal): Add tst-copy_file_range-compat.
18551 * io/Versions (GLIBC_2.27): Export copy_file_range.
18552 * io/copy_file_range-compat.c: New file.
18553 * io/copy_file_range.c: Likewise.
18554 * io/tst-copy_file_range-compat.c: Likewise.
18555 * io/tst-copy_file_range.c: Likewise.
18556 * manual/llio.texi (Copying File Data): New section.
18557 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
18558 * support/Makefile (libsupport-routines): Add support-xfstat,
18559 xftruncate, xlseek.
18560 * support/support-xfstat.c: New file.
18561 * support/xftruncate.c: Likewise.
18562 * support/xlseek.c: Likewise.
18563 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
18564 * sysdeps/unix/sysv/linux/**.abilist: Update.
18565 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
18566
18567 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
18568
18569 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18570 disable-multi-arch variant to aarch64-linux-gnu.
18571
18572 2017-12-20 Joseph Myers <joseph@codesourcery.com>
18573
18574 * manual/texinfo.tex: Update to version 2017-12-18.20 with
18575 trailing whitespace removed.
18576 * scripts/config.guess: Update to version 2017-12-17.
18577 * scripts/config.sub: Update to version 2017-11-23.
18578 * scripts/install-sh: Update to version 2017-09-23.17.
18579 * scripts/move-if-change: Update to version 2017-09-13 06:45.
18580
18581 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18582
18583 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
18584 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
18585 * sysdeps/tile/_mcount.S (__mcount): Likewise.
18586 * sysdeps/tile/crti.S (_init, _fini): Likewise.
18587 * sysdeps/tile/crtn.S: Likewise.
18588 * sysdeps/tile/dl-start.S (_start): Likewise.
18589 * sysdeps/tile/dl-trampoline.S: Likewise.
18590 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
18591 * sysdeps/tile/start.S (_start): Likewise.
18592 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
18593 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
18594 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
18595 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
18596 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
18597 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
18598 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
18599
18600 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
18601 comment.
18602 * sysdeps/tile/preconfigure: Remove tilegx folder.
18603 * sysdeps/tile/tilegx/Implies: Move definitions to ...
18604 * sysdeps/tile/Implies: ... here.
18605 * sysdeps/tile/tilegx/Makefile: Move rules to ...
18606 * sysdeps/tile/Makefile: ... here.
18607 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
18608 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
18609 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
18610 * sysdeps/tile/bits/wordsize.h: ... here.
18611 * sysdeps/tile/tilegx/*: Move to ...
18612 * sysdeps/tile/*: ... here.
18613 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
18614 * sysdeps/tile/tilegx32/Implies: ... here.
18615 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
18616 * sysdeps/tile/tilegx64/Implies: ... here.
18617 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
18618 to ...
18619 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
18620 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
18621 * sysdeps/unix/sysv/linux/tile/*: ... here.
18622 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
18623 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
18624 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
18625 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
18626
18627 * README: Remove tilepro-*-linux-gnu from supported architecture.
18628 * scripts/build-many-glibcs.py: Likewise.
18629 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
18630 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
18631 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
18632 elf_machine_matches_host, elf_machine_dynamic,
18633 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
18634 howto, elf_machine_rela): Likewise.
18635 * sysdeps/tile/dl-start.S (_start): Likewise.
18636 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
18637 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
18638 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
18639 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
18640 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
18641 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
18642 Likewise.
18643 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
18644 * sysdeps/tile/preconfigure: Likewise.
18645 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
18646 POINTER_CHK_GUARD): Likewise.
18647 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
18648 * sysdeps/tile/start.S (_start): Likewise.
18649 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
18650 Likewise.
18651 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
18652 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
18653 CMOVNEZ): Remove.
18654 * sysdeps/unix/sysv/linux/tile/bits/environments.h
18655 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
18656 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
18657 Likewise.
18658 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
18659 * sysdeps/tile/tilepro/Implies: Remove file.
18660 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
18661 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
18662 * sysdeps/tile/tilepro/memchr.c: Likewise.
18663 * sysdeps/tile/tilepro/memcpy.S: Likewise.
18664 * sysdeps/tile/tilepro/memset.c: Likewise.
18665 * sysdeps/tile/tilepro/memusage.h: Likewise.
18666 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
18667 * sysdeps/tile/tilepro/strchr.c: Likewise.
18668 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
18669 * sysdeps/tile/tilepro/strlen.c: Likewise.
18670 * sysdeps/tile/tilepro/strrchr.c: Likewise.
18671 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
18672 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
18673 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
18674 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
18675 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
18676 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
18677 Likewise.
18678 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
18679 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18680 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
18681 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
18682 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18683 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
18684 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
18685 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
18686 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
18687 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
18688 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
18689 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
18690 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
18691 tilepro mention in comment.
18692
18693 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
18694 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
18695 * nptl/pthread_join_common.c: New file: common function used on
18696 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
18697 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
18698 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
18699 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
18700 (cleanup): Move definition to pthread_join_common.c.
18701 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
18702 Remove superflous checks.
18703 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
18704 Likewise.
18705
18706 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
18707
18708 * sysdeps/aarch64/libm-test-ulps: Update.
18709
18710 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18711
18712 * sysdeps/aarch64/memset.S (MEMSET): Define.
18713
18714 2017-12-20 Florian Weimer <fweimer@redhat.com>
18715
18716 [BZ #22635]
18717 nptl: Provide full implementation of pthread_self in libc.so.
18718 * nptl/Makefile (routines): Add pthread_self.
18719 (libpthread-routines): Replace pthread_self with
18720 compat-pthread_self.
18721 * nptl/forward.c (pthread_self): Remove.
18722 * nptl/nptl-init.c (pthread_functions): Do not initialize
18723 ptr_pthread_self.
18724 * nptl/pthread_self.c (pthread_self): Remove weak alias.
18725 * nptl/compat-pthread_self.c: New file.
18726 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
18727 Remove ptr_pthread_self.
18728
18729 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
18730
18731 * posix/regcomp.c: Fix spelling in comments.
18732 * posix/regex.h: Likewise.
18733 * posix/regex_internal.c: Likewise.
18734 * posix/regexec.c: Likewise.
18735
18736 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
18737
18738 [BZ #22377]
18739 * math/Makefile [C++] (tests): Add test for iseqsig.
18740 * math/math.h [C++] (iseqsig): New implementation, which does
18741 not rely on __MATH_TG/__builtin_types_compatible_p.
18742 * math/test-math-iseqsig.cc: New file.
18743 * sysdeps/powerpc/powerpc64le/Makefile
18744 (CFLAGS-test-math-iseqsig.cc): New variable.
18745
18746 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
18747
18748 * elf/dl-load.c (is_trusted_path): Remove.
18749 (fillin_rpath): Remove check_trusted argument and its use,
18750 all callers changed.
18751
18752 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18753
18754 [BZ #22630]
18755 * Makeconfig (link-pie-before-libc): Replace -pie with
18756 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
18757 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
18758 (tst-dlopen-aout-no-pie): New.
18759 (LDFLAGS-tst-prelink): Removed.
18760 (tst-prelink-no-pie): New.
18761 (LDFLAGS-tst-main1): Removed.
18762 (tst-main1-no-pie): New.
18763 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
18764 (tst-gmon-no-pie): New.
18765
18766 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18767
18768 * manual/install.texi: Document that --enable-static-pie
18769 implies PIE.
18770 * INSTALL: Regenerated.
18771
18772 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
18773
18774 [BZ #21309]
18775 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
18776 unsigned.
18777
18778 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18779
18780 Revert:
18781
18782 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18783
18784 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18785
18786 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18787
18788 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18789 <errno.h>. Include "eexp.tbl".
18790 (half): New constant.
18791 (one): Likewise.
18792 (__ieee754_exp): Rewrite.
18793 (__slowexp): Remove prototype.
18794 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18795 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18796 * sysdeps/i386/fpu/slowexp.c: Likewise.
18797 * sysdeps/ia64/fpu/slowexp.c: Likewise.
18798 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18799 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18800 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18801 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18802 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18803 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18804 comment.
18805 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18806 (CPPFLAGS-slowexp.c): Remove variable.
18807 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18808 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18809 (CFLAGS-slowexp-fma.c): Remove variable.
18810 (CFLAGS-slowexp-fma4.c): Likewise.
18811 (CFLAGS-slowexp-avx.c): Likewise.
18812 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18813 define as macro.
18814 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18815 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18816 * math/Makefile (type-double-routines): Remove slowexp.
18817 * manual/probes.texi (slowexp_p6): Remove.
18818 (slowexp_p32): Likewise.
18819
18820 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18821
18822 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
18823 arithmetic.
18824
18825 * lib/glob.c (glob): Do not pass NULL to mempcpy.
18826
18827 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18828
18829 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18830
18831 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18832
18833 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18834 <errno.h>. Include "eexp.tbl".
18835 (half): New constant.
18836 (one): Likewise.
18837 (__ieee754_exp): Rewrite.
18838 (__slowexp): Remove prototype.
18839 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18840 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18841 * sysdeps/i386/fpu/slowexp.c: Likewise.
18842 * sysdeps/ia64/fpu/slowexp.c: Likewise.
18843 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18844 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18845 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18846 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18847 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18848 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18849 comment.
18850 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18851 (CPPFLAGS-slowexp.c): Remove variable.
18852 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18853 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18854 (CFLAGS-slowexp-fma.c): Remove variable.
18855 (CFLAGS-slowexp-fma4.c): Likewise.
18856 (CFLAGS-slowexp-avx.c): Likewise.
18857 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18858 define as macro.
18859 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18860 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18861 * math/Makefile (type-double-routines): Remove slowexp.
18862 * manual/probes.texi (slowexp_p6): Remove.
18863 (slowexp_p32): Likewise.
18864
18865 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18866 James Clarke <jrtc27@jrtc27.com>
18867
18868 [BZ #22603]
18869 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
18870 addition.
18871
18872 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18873
18874 [BZ #22605]
18875 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
18876 code.
18877
18878 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18879
18880 [BZ #22563]
18881 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18882 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
18883 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18884 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
18885 to feature_1.
18886
18887 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18888
18889 [BZ #22563]
18890 * bits/types/__cancel_jmp_buf_tag.h: New file.
18891 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
18892 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
18893 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
18894 * nptl/Makefile (headers): Add
18895 bits/types/__cancel_jmp_buf_tag.h.
18896 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
18897 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
18898 * sysdeps/nptl/pthread.h: Include
18899 <bits/types/__cancel_jmp_buf_tag.h>.
18900 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
18901 __cancel_jmp_buf.
18902 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
18903
18904 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
18905
18906 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18907 --enable-static-pie variants to x86_64, x32 and i686.
18908
18909 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18910
18911 [BZ #22631]
18912 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
18913 argument for attrubutes. All callers changed.
18914 (__inline_mathop1): Likewise. All callers changed.
18915 (__inline_mathop): Likewise. All callers changed.
18916 [__USE_MISC] (scalbn): Use __inline_forward instead of
18917 __inline_forward_c.
18918 [__USE_ISOC99] (scalbln): Likewise.
18919 [__USE_ISOC99] (nearbyint): Likewise.
18920 [__USE_ISOC99] (lrint): Likewise.
18921 [__USE_MISC] (scalbnf): Likewise.
18922 [__USE_ISOC99] (scalblnf): Likewise.
18923 [__USE_ISOC99] (nearbyintf): Likewise.
18924 [__USE_ISOC99] (lrintf): Likewise.
18925 [__USE_MISC] (scalbnl): Likewise.
18926 [__USE_ISOC99] (scalblnl): Likewise.
18927 [__USE_ISOC99] (nearbyintl): Likewise.
18928 [__USE_ISOC99] (lrintl): Likewise.
18929 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
18930 __inline_mathop and __m81_defun changed.
18931
18932 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
18933 CPU or FPU for ARM hard-float configurations.
18934
18935 2017-12-18 Joseph Myers <joseph@codesourcery.com>
18936
18937 * nptl/tst-attr3.c: Include <libc-diag.h>.
18938 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
18939
18940 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
18941
18942 * string/tester.c (test_strncat): Also disable -Warray-bounds
18943 warnings for two tests.
18944
18945 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
18946
18947 [BZ #22614]
18948 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
18949 $(cc-pie-default) == yes.
18950 * config.make.in (cc-pie-default): New.
18951 * configure.ac (libc_cv_pie_default): Renamed to ...
18952 (libc_cv_cc_pie_default): This.
18953 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
18954 * configure: Regenerated.
18955
18956 2017-12-18 Florian Weimer <fweimer@redhat.com>
18957
18958 [BZ #20204]
18959 ld.so: Harden dl-libc/libdl hooks.
18960 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
18961 (rtld_active): New function.
18962 * dlfcn/dladdr.c (__dladdr): Call it.
18963 * dlfcn/dladdr1.c (__dladdr1): Likewise.
18964 * dlfcn/dlclose.c (__dlcose): Likewise.
18965 * dlfcn/dlerror.c (__dlerror): Likewise.
18966 * dlfcn/dlinfo.c (__dlinfo): Likewise.
18967 * dlfcn/dlmopen.c (__dlmopen): Likewise.
18968 * dlfcn/dlopen.c (__dlopen): Likewise.
18969 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
18970 * dlfcn/dlsym.c (__dlsym): Likewise.
18971 * dlfcn/dlvsym.c (__dlvsym): Likewise.
18972 * libio/vtables.c (_IO_vtable_check): Likewise.
18973 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
18974 (__libc_dlclose): Likewise.
18975 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
18976 assignment.
18977
18978 2017-12-18 Joseph Myers <joseph@codesourcery.com>
18979
18980 [BZ #22446]
18981 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
18982 buffers for readlink input and output.
18983
18984 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
18985
18986 [BZ #22624]
18987 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
18988 inhibit_stack_protector.
18989
18990 [BZ #22624]
18991 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
18992 inhibit_stack_protector.
18993
18994 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
18995
18996 [BZ #22627]
18997 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
18998 code and invocation.
18999
19000 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
19001
19002 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
19003
19004 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
19005
19006 [BZ #22505]
19007 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
19008
19009 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19010
19011 * sysdeps/s390/fpu/libm-test-ulps: Update.
19012
19013 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19014
19015 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19016
19017 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19018
19019 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
19020 constants to s_sincosf.h file.
19021 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
19022 * sysdeps/ieee754/flt-32/s_sincosf.c: New
19023 implementation.
19024 * sysdeps/ieee754/flt-32/s_sincosf.h:
19025 New file.
19026
19027 2017-12-12 Carlos O'Donell <carlos@redhat.com>
19028
19029 [BZ #14681]
19030 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
19031 before mtrace.
19032
19033 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
19034
19035 [BZ #19574]
19036 * INSTALL: Regenerated.
19037 * Makeconfig (real-static-start-installed-name): New.
19038 (pic-default): Updated for --enable-static-pie.
19039 (pie-default): New for --enable-static-pie.
19040 (default-pie-ldflag): Likewise.
19041 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
19042 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
19043 Replace $(static-start-installed-name) with
19044 $(real-static-start-installed-name).
19045 (+prectorT): Updated for --enable-static-pie.
19046 (+postctorT): Likewise.
19047 (CFLAGS-.o): Add $(pie-default).
19048 (CFLAGS-.op): Likewise.
19049 * NEWS: Mention --enable-static-pie.
19050 * config.h.in (ENABLE_STATIC_PIE): New.
19051 * configure.ac (--enable-static-pie): New configure option.
19052 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
19053 (have-static-pie): Likewise.
19054 Enable static PIE if linker supports --no-dynamic-linker.
19055 (ENABLE_STATIC_PIE): New AC_DEFINE.
19056 (enable-static-pie): New LIBC_CONFIG_VAR.
19057 * configure: Regenerated.
19058 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
19059 gr$(start-installed-name) for --enable-static-pie.
19060 (extra-objs): Likewise.
19061 (install-lib): Likewise.
19062 (extra-objs): Add static-reloc.o and static-reloc.os
19063 ($(objpfx)$(start-installed-name)): Also depend on
19064 $(objpfx)static-reloc.o.
19065 ($(objpfx)r$(start-installed-name)): New.
19066 ($(objpfx)g$(start-installed-name)): Also depend on
19067 $(objpfx)static-reloc.os.
19068 ($(objpfx)gr$(start-installed-name)): New.
19069 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
19070 in libc.a.
19071 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
19072 initimage.
19073 * csu/static-reloc.c: New file.
19074 * elf/Makefile (routines): Add dl-reloc-static-pie.
19075 (elide-routines.os): Likewise.
19076 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
19077 (tst-tls1-static-non-pie-no-pie): New.
19078 * elf/dl-reloc-static-pie.c: New file.
19079 * elf/dl-support.c (_dl_get_dl_main_map): New function.
19080 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
19081 STATIC_PIE_BOOTSTRAP.
19082 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
19083 * gmon/Makefile (tests): Add tst-gmon-static-pie.
19084 (tests-static): Likewise.
19085 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
19086 (tst-gmon-static-no-pie): New.
19087 (CFLAGS-tst-gmon-static-pie.c): Likewise.
19088 (CRT-tst-gmon-static-pie): Likewise.
19089 (tst-gmon-static-pie-ENV): Likewise.
19090 (tests-special): Likewise.
19091 ($(objpfx)tst-gmon-static-pie.out): Likewise.
19092 (clean-tst-gmon-static-pie-data): Likewise.
19093 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
19094 * gmon/tst-gmon-static-pie.c: New file.
19095 * manual/install.texi: Document --enable-static-pie.
19096 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
19097 (_dl_get_dl_main_map): Likewise.
19098 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
19099 * sysdeps/x86_64/configure.ac: Likewise.
19100 * sysdeps/i386/configure: Regenerated.
19101 * sysdeps/x86_64/configure: Likewise.
19102 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
19103 (ASFLAGS-.op): Likewise.
19104
19105 2017-12-15 Joseph Myers <joseph@codesourcery.com>
19106
19107 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
19108 * posix/tst-mmap-offset.c (fname): Use /tmp.
19109 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
19110
19111 2017-12-15 Steve Ellcey <sellcey@cavium.com>
19112
19113 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
19114
19115 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
19116
19117 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
19118 errno.
19119
19120 2017-12-15 Joseph Myers <joseph@codesourcery.com>
19121
19122 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
19123 --with-float=hard for arm-linux-gnueabihf configurations.
19124
19125 [BZ #14121]
19126 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
19127 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
19128 ($(mo-installed)): Use $(objpfx)%.mo.
19129 (realclean): Remove rule.
19130
19131 * po/Makefile (linguas): Remove rule and dependencies.
19132 (linguas.mo): Likewise.
19133 (.PHONY): Do not depend on linguas and linguas.mo.
19134 (podir): Remove variable.
19135 (pofiles): Likewise.
19136 [$(pofiles)] (%.po): Remove rule.
19137
19138 * sysdeps/sparc/sparc32/Makefile
19139 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
19140 start-of-line whitespace in argument of echo.
19141 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
19142 with whitespace. Generate __wrap_.udiv alias.
19143 * sysdeps/sparc/sparc32/rem.S: Regenerated.
19144 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
19145 * sysdeps/sparc/sparc32/udiv.S: Likewise.
19146 * sysdeps/sparc/sparc32/urem.S: Likewise.
19147
19148 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19149
19150 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
19151 for aligned inputs.
19152
19153 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
19154
19155 * benchtests/bench-strcmp.c: Print output in JSON format.
19156
19157 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
19158
19159 2017-12-14 Florian Weimer <fweimer@redhat.com>
19160
19161 [BZ #22607]
19162 CVE-2017-1000409
19163 * elf/dl-load.c (_dl_init_paths): Compute number of components in
19164 the expanded path string.
19165
19166 2017-12-14 Florian Weimer <fweimer@redhat.com>
19167
19168 [BZ #22606]
19169 CVE-2017-1000408
19170 * elf/dl-load.c (system_dirs): Update comment.
19171 (nsystem_dirs_len): Use array_length.
19172 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
19173
19174 2017-12-14 Florian Weimer <fweimer@redhat.com>
19175
19176 Simplify compiling most of support/ outside of glibc.
19177 * support/check_addrinfo.c: Include <string.h>.
19178 * support/check_dns_packet.c: Likewise.
19179 * support/check_hostent.c: Likewise.
19180 * support/support_can_chroot.c: Include <support/xunistd.h>.
19181 * support/support_format_addrinfo.c: Include <stdlib.h>
19182 * support/support_format_dns_packet.c: Include <stdbool.h>.
19183 * support/support_format_hostent.c: Include <stdlib.h>.
19184 * support/support_format_netent.c: Likewise.
19185 * support/support_write_string.c: Include <support/xunistd.h>.
19186 * support/xdlfcn.c: Include <stddef.h>.
19187
19188 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
19189
19190 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
19191
19192 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
19193 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19194
19195 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
19196 (sysdeps_routines): Add memset-niagara7.
19197 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
19198 Likewise.
19199 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
19200 file.
19201 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
19202 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
19203 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
19204 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
19205 Add niagara7 option.
19206 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
19207 memset.
19208
19209 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
19210 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
19211 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
19212 Likewise.
19213 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
19214 New file.
19215 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
19216 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
19217 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
19218 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
19219 and __memmove_niagara7.
19220 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
19221 Add niagara7 option.
19222 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
19223 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
19224 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
19225 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
19226 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
19227
19228 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
19229
19230 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
19231 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
19232 * sysdeps/sparc/sparc64/memmove.S: Likewise.
19233 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
19234
19235 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
19236 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
19237 _dl_sparc_cap_flags array.
19238 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
19239
19240 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
19241
19242 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
19243 time whenever possible.
19244
19245 2017-12-12 Carlos O'Donell <carlos@redhat.com>
19246
19247 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
19248 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
19249
19250 2017-12-12 Joseph Myers <joseph@codesourcery.com>
19251
19252 * soft-fp/fmadf4.c: Move to ....
19253 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
19254 * soft-fp/fmasf4.c: Move to ....
19255 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
19256 * soft-fp/fmatf4.c: Move to ....
19257 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
19258 * sysdeps/ieee754/soft-fp/Makefile: New file.
19259 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
19260 * sysdeps/arm/preconfigure: Regenerated.
19261 * sysdeps/arm/nofpu/Implies: New file.
19262 * sysdeps/arm/s_fma.c: Remove file.
19263 * sysdeps/arm/s_fmaf.c: Likewise.
19264 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
19265 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
19266 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
19267 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
19268 * sysdeps/microblaze/s_fma.c: Remove file.
19269 * sysdeps/microblaze/s_fmaf.c: Likewise.
19270 * sysdeps/mips/mips32/nofpu/Implies: New file.
19271 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
19272 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
19273 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
19274 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
19275 * sysdeps/mips/ieee754/s_fma.c: Remove file.
19276 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
19277 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
19278 implementation.
19279 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
19280 * sysdeps/nios2/s_fma.c: Remove file.
19281 * sysdeps/nios2/s_fmaf.c: Likewise.
19282 * sysdeps/sh/nofpu/Implies: New file.
19283 * sysdeps/sh/s_fma.c: Remove file.
19284 * sysdeps/sh/s_fmaf.c: Likewise.
19285 * sysdeps/tile/Implies: Add ieee754/soft-fp.
19286 * sysdeps/tile/s_fma.c: Remove file.
19287 * sysdeps/tile/s_fmaf.c: Likewise.
19288
19289 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
19290
19291 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19292 Add s_cosf-sse2 and s_cosf-fma.
19293 (CFLAGS-s_cosf-fma.c): New.
19294 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
19295 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
19296 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
19297
19298 2017-12-12 Steve Ellcey <sellcey@cavium.com>
19299
19300 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
19301
19302 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19303
19304 * libio/Makefile (tests): Add tst-bz22415.
19305 (tst-bz22415-ENV): New rule.
19306 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
19307 (tests-special): Add tst-bz22415-mem.out.
19308 ($(objpfx)tst-bz22415-mem.out): New rule.
19309 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
19310 in case of a successful seek operation.
19311 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
19312 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
19313 buffer is required.
19314 * libio/tst-bz22415.c: New test.
19315
19316 * sysdeps/ia64/fpu/libm-test-ulps: Update.
19317
19318 2017-12-12 James Clarke <jrtc27@jrtc27.com>
19319
19320 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
19321 __IPC_64 to 0 to avoid IPC_64 being set.
19322
19323 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
19324
19325 [BZ #22593]
19326 * math/bits/mathcalls.h (nextafter): Remove const.
19327 (nexttoward): Likewise.
19328
19329 2017-12-12 Joseph Myers <joseph@codesourcery.com>
19330
19331 * configure.ac (--with-fp): Remove configure option.
19332 (with_fp_cond): New variable.
19333 (libc_cv_with_fp): New configure test. Use this variable instead
19334 of with_fp.
19335 * configure: Regenerated.
19336 * config.make.in (with-fp): Use @libc_cv_with_fp@.
19337 * manual/install.texi (Configuring and compiling): Remove
19338 --without-fp.
19339 * INSTALL: Regenerated.
19340 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
19341 * sysdeps/mips/preconfigure (with_fp_cond): Define.
19342 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
19343 * sysdeps/sh/preconfigure (with_fp_cond): Define.
19344 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
19345 use --without-fp to configure glibc.
19346
19347 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
19348
19349 * manual/locale.texi (nl_langinfo): Fix a typo.
19350
19351 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
19352
19353 [BZ #22588]
19354 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
19355
19356 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
19357
19358 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
19359 (CFLAGS-argp-parse.c): Likewise.
19360 (CFLAGS-argp-fmtstream.c): Likewise.
19361 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
19362 (CPPFLAGS-sha512-crypt.c): Likewise.
19363 (CPPFLAGS-md5-crypt.c): Likewise.
19364 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
19365 (CFLAGS-stack_chk_fail_local.c): Likewise.
19366 (CFLAGS-backtrace.c): Likewise.
19367 (CFLAGS-sprintf_chk.c): Likewise.
19368 (CFLAGS-snprintf_chk.c): Likewise.
19369 (CFLAGS-vsprintf_chk.c): Likewise.
19370 (CFLAGS-vsnprintf_chk.c): Likewise.
19371 (CFLAGS-asprintf_chk.c): Likewise.
19372 (CFLAGS-vasprintf_chk.c): Likewise.
19373 (CFLAGS-obprintf_chk.c): Likewise.
19374 (CFLAGS-dprintf_chk.c): Likewise.
19375 (CFLAGS-vdprintf_chk.c): Likewise.
19376 (CFLAGS-printf_chk.c): Likewise.
19377 (CFLAGS-fprintf_chk.c): Likewise.
19378 (CFLAGS-vprintf_chk.c): Likewise.
19379 (CFLAGS-vfprintf_chk.c): Likewise.
19380 (CFLAGS-gets_chk.c): Likewise.
19381 (CFLAGS-fgets_chk.c): Likewise.
19382 (CFLAGS-fgets_u_chk.c): Likewise.
19383 (CFLAGS-fread_chk.c): Likewise.
19384 (CFLAGS-fread_u_chk.c): Likewise.
19385 (CFLAGS-swprintf_chk.c): Likewise.
19386 (CFLAGS-vswprintf_chk.c): Likewise.
19387 (CFLAGS-wprintf_chk.c): Likewise.
19388 (CFLAGS-fwprintf_chk.c): Likewise.
19389 (CFLAGS-vwprintf_chk.c): Likewise.
19390 (CFLAGS-vfwprintf_chk.c): Likewise.
19391 (CFLAGS-fgetws_chk.c): Likewise.
19392 (CFLAGS-fgetws_u_chk.c): Likewise.
19393 (CFLAGS-read_chk.c): Likewise.
19394 (CFLAGS-pread_chk.c): Likewise.
19395 (CFLAGS-pread64_chk.c): Likewise.
19396 (CFLAGS-recv_chk.c): Likewise.
19397 (CFLAGS-recvfrom_chk.c): Likewise.
19398 (CFLAGS-tst-longjmp_chk.c): Likewise.
19399 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
19400 (CFLAGS-tst-longjmp_chk2.c): Likewise.
19401 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
19402 (CFLAGS-tst-longjmp_chk3.c): Likewise.
19403 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
19404 (CFLAGS-tst-chk1.c): Likewise.
19405 (CFLAGS-tst-chk2.c): Likewise.
19406 (CFLAGS-tst-chk3.c): Likewise.
19407 (CFLAGS-tst-chk4.cc): Likewise.
19408 (CFLAGS-tst-chk5.cc): Likewise.
19409 (CFLAGS-tst-chk6.cc): Likewise.
19410 (CFLAGS-tst-lfschk1.c): Likewise.
19411 (CFLAGS-tst-lfschk2.c): Likewise.
19412 (CFLAGS-tst-lfschk3.c): Likewise.
19413 (CFLAGS-tst-lfschk4.cc): Likewise.
19414 (CFLAGS-tst-lfschk5.cc): Likewise.
19415 (CFLAGS-tst-lfschk6.cc): Likewise.
19416 (CFLAGS-tst-ssp-1.c): Likewise.
19417 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
19418 (CFLAGS-scandir64.c): Likewise.
19419 (CFLAGS-scandir-tail.c): Likewise.
19420 (CFLAGS-scandir64-tail.c): Likewise.
19421 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
19422 (CFLAGS-dl-tunables.c): Likewise.
19423 (CFLAGS-dl-runtime.c): Likewise.
19424 (CFLAGS-dl-lookup.c): Likewise.
19425 (CFLAGS-dl-iterate-phdr.c): Likewise.
19426 (CFLAGS-vismain.c): Likewise.
19427 (CFLAGS-tst-linkall-static.c): Likewise.
19428 (CFLAGS-tst-linkall-static.c): Likewise.
19429 (CPPFLAGS-dl-load.c): Likewise.
19430 (CFLAGS-ldconfig.c): Likewise.
19431 (CFLAGS-dl-cache.c): Likewise.
19432 (CFLAGS-cache.c): Likewise.
19433 (CFLAGS-rtld.c): Likewise.
19434 (CFLAGS-multiload.c): Likewise.
19435 (CFLAGS-filtmod1.c): Likewise.
19436 (CFLAGS-tst-align.c): Likewise.
19437 (CFLAGS-tst-align2.c): Likewise.
19438 (CFLAGS-tst-alignmod.c): Likewise.
19439 (CFLAGS-tst-alignmod2.c): Likewise.
19440 (CPPFLAGS-tst-execstack.c): Likewise.
19441 (CFLAGS-tst-ptrguard1-static.c): Likewise.
19442 (CFLAGS-tst-latepthreadmod.c): Likewise.
19443 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
19444 (CFLAGS-getgrnam_r.c): Likewise.
19445 (CFLAGS-getgrent_r.c): Likewise.
19446 (CFLAGS-getgrent.c): Likewise.
19447 (CFLAGS-fgetgrent.c): Likewise.
19448 (CFLAGS-fgetgrent_r.c): Likewise.
19449 (CFLAGS-putgrent.c): Likewise.
19450 (CFLAGS-initgroups.c): Likewise.
19451 (CFLAGS-getgrgid.c): Likewise.
19452 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
19453 (CFLAGS-getsgent.c): Likewise.
19454 (CFLAGS-fgetsgent.c): Likewise.
19455 (CFLAGS-fgetsgent_r.c): Likewise.
19456 (CFLAGS-putsgent.c): Likewise.
19457 (CFLAGS-getsgnam.c): Likewise.
19458 (CFLAGS-getsgnam_r.c): Likewise.
19459 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
19460 (CFLAGS-iconv_charmap.c): Likewise.
19461 (CFLAGS-dummy-repertoire.c): Likewise.
19462 (CFLAGS-charmap.c): Likewise.
19463 (CFLAGS-linereader.c): Likewise.
19464 (CFLAGS-simple-hash.c): Likewise.
19465 (CFLAGS-gconv_conf.c): Likewise.
19466 (CFLAGS-iconvconfig.c): Likewise.
19467 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
19468 (CFLAGS-gethstbyad.c): Likewise.
19469 (CFLAGS-gethstbynm_r.c): Likewise.
19470 (CFLAGS-gethstbynm.c): Likewise.
19471 (CFLAGS-gethstbynm2_r.c): Likewise.
19472 (CFLAGS-gethstbynm2.c): Likewise.
19473 (CFLAGS-gethstent_r.c): Likewise.
19474 (CFLAGS-gethstent.c): Likewise.
19475 (CFLAGS-rcmd.c): Likewise.
19476 (CFLAGS-getnetbynm_r.c): Likewise.
19477 (CFLAGS-getnetbynm.c): Likewise.
19478 (CFLAGS-getnetbyad_r.c): Likewise.
19479 (CFLAGS-getnetbyad.c): Likewise.
19480 (CFLAGS-getnetent_r.c): Likewise.
19481 (CFLAGS-getnetent.c): Likewise.
19482 (CFLAGS-getaliasent_r.c): Likewise.
19483 (CFLAGS-getaliasent.c): Likewise.
19484 (CFLAGS-getrpcent_r.c): Likewise.
19485 (CFLAGS-getrpcent.c): Likewise.
19486 (CFLAGS-getservent_r.c): Likewise.
19487 (CFLAGS-getservent.c): Likewise.
19488 (CFLAGS-getprtent_r.c): Likewise.
19489 (CFLAGS-getprtent.c): Likewise.
19490 (CFLAGS-either_ntoh.c): Likewise.
19491 (CFLAGS-either_hton.c): Likewise.
19492 (CFLAGS-getnetgrent.c): Likewise.
19493 (CFLAGS-getnetgrent_r.c): Likewise.
19494 (CFLAGS-tst-checks-posix.c): Likewise.
19495 (CFLAGS-tst-sockaddr.c): Likewise.
19496 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
19497 (CFLAGS-tst-translit.c): Likewise.
19498 (CFLAGS-tst-gettext2.c): Likewise.
19499 (CFLAGS-tst-codeset.c): Likewise.
19500 (CFLAGS-tst-gettext3.c): Likewise.
19501 (CFLAGS-tst-gettext4.c): Likewise.
19502 (CFLAGS-tst-gettext5.c): Likewise.
19503 (CFLAGS-tst-gettext6.c): Likewise.
19504 * io/Makefile (CFLAGS-open.c): Likewise.
19505 (CFLAGS-open64.c): Likewise.
19506 (CFLAGS-creat.c): Likewise.
19507 (CFLAGS-creat64.c): Likewise.
19508 (CFLAGS-fcntl.c): Likewise.
19509 (CFLAGS-poll.c): Likewise.
19510 (CFLAGS-ppoll.c): Likewise.
19511 (CFLAGS-lockf.c): Likewise.
19512 (CFLAGS-statfs.c): Likewise.
19513 (CFLAGS-fstatfs.c): Likewise.
19514 (CFLAGS-statvfs.c): Likewise.
19515 (CFLAGS-fstatvfs.c): Likewise.
19516 (CFLAGS-fts.c): Likewise.
19517 (CFLAGS-fts64.c): Likewise.
19518 (CFLAGS-ftw.c): Likewise.
19519 (CFLAGS-ftw64.c): Likewise.
19520 (CFLAGS-lockf.c): Likewise.
19521 (CFLAGS-posix_fallocate.c): Likewise.
19522 (CFLAGS-posix_fallocate64.c): Likewise.
19523 (CFLAGS-fallocate.c): Likewise.
19524 (CFLAGS-fallocate64.c): Likewise.
19525 (CFLAGS-read.c): Likewise.
19526 (CFLAGS-write.c): Likewise.
19527 (CFLAGS-test-stat.c): Likewise.
19528 (CFLAGS-test-lfs.c): Likewise.
19529 * libio/Makefile (CFLAGS-fileops.c): Likewise.
19530 (CFLAGS-fputc.c): Likewise.
19531 (CFLAGS-fputwc.c): Likewise.
19532 (CFLAGS-freopen64.c): Likewise.
19533 (CFLAGS-freopen.c): Likewise.
19534 (CFLAGS-fseek.c): Likewise.
19535 (CFLAGS-fseeko64.c): Likewise.
19536 (CFLAGS-fseeko.c): Likewise.
19537 (CFLAGS-ftello64.c): Likewise.
19538 (CFLAGS-ftello.c): Likewise.
19539 (CFLAGS-fwide.c): Likewise.
19540 (CFLAGS-genops.c): Likewise.
19541 (CFLAGS-getc.c): Likewise.
19542 (CFLAGS-getchar.c): Likewise.
19543 (CFLAGS-getwc.c): Likewise.
19544 (CFLAGS-getwchar.c): Likewise.
19545 (CFLAGS-iofclose.c): Likewise.
19546 (CFLAGS-iofflush.c): Likewise.
19547 (CFLAGS-iofgetpos64.c): Likewise.
19548 (CFLAGS-iofgetpos.c): Likewise.
19549 (CFLAGS-iofgets.c): Likewise.
19550 (CFLAGS-iofgetws.c): Likewise.
19551 (CFLAGS-iofputs.c): Likewise.
19552 (CFLAGS-iofputws.c): Likewise.
19553 (CFLAGS-iofread.c): Likewise.
19554 (CFLAGS-iofsetpos64.c): Likewise.
19555 (CFLAGS-iofsetpos.c): Likewise.
19556 (CFLAGS-ioftell.c): Likewise.
19557 (CFLAGS-iofwrite.c): Likewise.
19558 (CFLAGS-iogetdelim.c): Likewise.
19559 (CFLAGS-iogetline.c): Likewise.
19560 (CFLAGS-iogets.c): Likewise.
19561 (CFLAGS-iogetwline.c): Likewise.
19562 (CFLAGS-ioputs.c): Likewise.
19563 (CFLAGS-ioseekoff.c): Likewise.
19564 (CFLAGS-ioseekpos.c): Likewise.
19565 (CFLAGS-iosetbuffer.c): Likewise.
19566 (CFLAGS-iosetvbuf.c): Likewise.
19567 (CFLAGS-ioungetc.c): Likewise.
19568 (CFLAGS-ioungetwc.c): Likewise.
19569 (CFLAGS-oldfileops.c): Likewise.
19570 (CFLAGS-oldiofclose.c): Likewise.
19571 (CFLAGS-oldiofgetpos64.c): Likewise.
19572 (CFLAGS-oldiofgetpos.c): Likewise.
19573 (CFLAGS-oldiofsetpos64.c): Likewise.
19574 (CFLAGS-oldiofsetpos.c): Likewise.
19575 (CFLAGS-peekc.c): Likewise.
19576 (CFLAGS-putc.c): Likewise.
19577 (CFLAGS-putchar.c): Likewise.
19578 (CFLAGS-putwc.c): Likewise.
19579 (CFLAGS-putwchar.c): Likewise.
19580 (CFLAGS-rewind.c): Likewise.
19581 (CFLAGS-wfileops.c): Likewise.
19582 (CFLAGS-wgenops.c): Likewise.
19583 (CFLAGS-oldiofopen.c): Likewise.
19584 (CFLAGS-iofopen.c): Likewise.
19585 (CFLAGS-iofopen64.c): Likewise.
19586 (CFLAGS-oldtmpfile.c): Likewise.
19587 (CFLAGS-tst_putwc.c): Likewise.
19588 * locale/Makefile (CFLAGS-md5.c): Likewise.
19589 (CFLAGS-charmap.c): Likewise.
19590 (CFLAGS-locfile.c): Likewise.
19591 (CFLAGS-charmap-dir.c): Likewise.
19592 * login/Makefile (CFLAGS-grantpt.c): Likewise.
19593 (CFLAGS-getpt.c): Likewise.
19594 (CFLAGS-pt_chown.c): Likewise.
19595 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
19596 (CFLAGS-obstack.c): Likewise.
19597 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
19598 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
19599 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
19600 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
19601 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
19602 (CFLAGS-test-tgmath.c): Likewise.
19603 (CFLAGS-test-tgmath2.c): Likewise.
19604 (CFLAGS-test-tgmath-ret.c): Likewise.
19605 (CFLAGS-test-powl.c): Likewise.
19606 (CFLAGS-test-snan.c): Likewise.
19607 (CFLAGS-test-signgam-finite.c): Likewise.
19608 (CFLAGS-test-signgam-finite-c99.c): Likewise.
19609 (CFLAGS-test-signgam-finite-c11.c): Likewise.
19610 (CFLAGS-test-signgam-uchar.c): Likewise.
19611 (CFLAGS-test-signgam-uchar-init.c): Likewise.
19612 (CFLAGS-test-signgam-uchar-static.c): Likewise.
19613 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
19614 (CFLAGS-test-signgam-uint.c): Likewise.
19615 (CFLAGS-test-signgam-uint-init.c): Likewise.
19616 (CFLAGS-test-signgam-uint-static.c): Likewise.
19617 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
19618 (CFLAGS-test-signgam-ullong.c): Likewise.
19619 (CFLAGS-test-signgam-ullong-init.c): Likewise.
19620 (CFLAGS-test-signgam-ullong-static.c): Likewise.
19621 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
19622 (CFLAGS-test-math-cxx11.cc): Likewise.
19623 (CFLAGS-test-math-isinff.cc): Likewise.
19624 (CFLAGS-test-math-iszero.cc): Likewise.
19625 (CFLAGS-test-math-issignaling.cc): Likewise.
19626 (CFLAGS-test-math-iscanonical.cc): Likewise.
19627 (CFLAGS-test-iszero-excess-precision.c): Likewise.
19628 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
19629 (CFLAGS-test-flt-eval-method.c): Likewise.
19630 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
19631 (CFLAGS-test-finite-macros.c): Likewise.
19632 * misc/Makefile (CFLAGS-select.c): Likewise.
19633 (CFLAGS-tsearch.c): Likewise.
19634 (CFLAGS-lsearch.c): Likewise.
19635 (CFLAGS-pselect.c): Likewise.
19636 (CFLAGS-readv.c): Likewise.
19637 (CFLAGS-writev.c): Likewise.
19638 (CFLAGS-preadv.c): Likewise.
19639 (CFLAGS-preadv64.c): Likewise.
19640 (CFLAGS-pwritev.c): Likewise.
19641 (CFLAGS-pwritev64.c): Likewise.
19642 (CFLAGS-preadv2.c): Likewise.
19643 (CFLAGS-preadv64v2.c): Likewise.
19644 (CFLAGS-pwritev2.c): Likewise.
19645 (CFLAGS-pwritev64v2.c): Likewise.
19646 (CFLAGS-usleep.c): Likewise.
19647 (CFLAGS-syslog.c): Likewise.
19648 (CFLAGS-error.c): Likewise.
19649 (CFLAGS-getpass.c): Likewise.
19650 (CFLAGS-mkstemp.c): Likewise.
19651 (CFLAGS-mkstemp64.c): Likewise.
19652 (CFLAGS-getsysstats.c): Likewise.
19653 (CFLAGS-getusershell.c): Likewise.
19654 (CFLAGS-err.c): Likewise.
19655 (CFLAGS-tst-tsearch.c): Likewise.
19656 (CFLAGS-msync.c): Likewise.
19657 (CFLAGS-fdatasync.c): Likewise.
19658 (CFLAGS-fsync.c): Likewise.
19659 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
19660 (CFLAGS-unwind.c): Likewise.
19661 (CFLAGS-unwind-forcedunwind.c): Likewise.
19662 (CFLAGS-pthread_cancel.c): Likewise.
19663 (CFLAGS-pthread_setcancelstate.c): Likewise.
19664 (CFLAGS-pthread_setcanceltype.c): Likewise.
19665 (CFLAGS-cancellation.c): Likewise.
19666 (CFLAGS-libc-cancellation.c): Likewise.
19667 (CFLAGS-pthread_exit.c): Likewise.
19668 (CFLAGS-forward.c): Likewise.
19669 (CFLAGS-pthread_testcancel.c): Likewise.
19670 (CFLAGS-pthread_join.c): Likewise.
19671 (CFLAGS-pthread_timedjoin.c): Likewise.
19672 (CFLAGS-pthread_once.c): Likewise.
19673 (CFLAGS-pthread_cond_wait.c): Likewise.
19674 (CFLAGS-sem_wait.c): Likewise.
19675 (CFLAGS-sem_timedwait.c): Likewise.
19676 (CFLAGS-fcntl.c): Likewise.
19677 (CFLAGS-lockf.c): Likewise.
19678 (CFLAGS-pread.c): Likewise.
19679 (CFLAGS-pread64.c): Likewise.
19680 (CFLAGS-pwrite.c): Likewise.
19681 (CFLAGS-pwrite64.c): Likewise.
19682 (CFLAGS-wait.c): Likewise.
19683 (CFLAGS-waitpid.c): Likewise.
19684 (CFLAGS-sigwait.c): Likewise.
19685 (CFLAGS-msgrcv.c): Likewise.
19686 (CFLAGS-msgsnd.c): Likewise.
19687 (CFLAGS-tcdrain.c): Likewise.
19688 (CFLAGS-open.c): Likewise.
19689 (CFLAGS-open64.c): Likewise.
19690 (CFLAGS-pause.c): Likewise.
19691 (CFLAGS-recv.c): Likewise.
19692 (CFLAGS-send.c): Likewise.
19693 (CFLAGS-accept.c): Likewise.
19694 (CFLAGS-sendto.c): Likewise.
19695 (CFLAGS-connect.c): Likewise.
19696 (CFLAGS-recvfrom.c): Likewise.
19697 (CFLAGS-recvmsg.c): Likewise.
19698 (CFLAGS-sendmsg.c): Likewise.
19699 (CFLAGS-close.c): Likewise.
19700 (CFLAGS-read.c): Likewise.
19701 (CFLAGS-write.c): Likewise.
19702 (CFLAGS-nanosleep.c): Likewise.
19703 (CFLAGS-sigsuspend.c): Likewise.
19704 (CFLAGS-msync.c): Likewise.
19705 (CFLAGS-fdatasync.c): Likewise.
19706 (CFLAGS-fsync.c): Likewise.
19707 (CFLAGS-pt-system.c): Likewise.
19708 (CFLAGS-tst-cleanup2.c): Likewise.
19709 (CFLAGS-tst-cleanupx2.c): Likewise.
19710 (CFLAGS-flockfile.c): Likewise.
19711 (CFLAGS-ftrylockfile.c): Likewise.
19712 (CFLAGS-funlockfile.c): Likewise.
19713 (CFLAGS-tst-initializers1.c): Likewise.
19714 (CFLAGS-tst-initializers1-c89.c): Likewise.
19715 (CFLAGS-tst-initializers1-c99.c): Likewise.
19716 (CFLAGS-tst-initializers1-c11.c): Likewise.
19717 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
19718 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
19719 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
19720 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
19721 (CFLAGS-nscd_getgr_r.c): Likewise.
19722 (CFLAGS-nscd_gethst_r.c): Likewise.
19723 (CFLAGS-nscd_getai.c): Likewise.
19724 (CFLAGS-nscd_initgroups.c): Likewise.
19725 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
19726 (CFLAGS-pause.c): Likewise.
19727 (CFLAGS-pread.c): Likewise.
19728 (CFLAGS-pread64.c): Likewise.
19729 (CFLAGS-pwrite.c): Likewise.
19730 (CFLAGS-pwrite64.c): Likewise.
19731 (CFLAGS-sleep.c): Likewise.
19732 (CFLAGS-wait.c): Likewise.
19733 (CFLAGS-waitid.c): Likewise.
19734 (CFLAGS-waitpid.c): Likewise.
19735 (CFLAGS-getopt.c): Likewise.
19736 (CFLAGS-wordexp.c): Likewise.
19737 (CFLAGS-sysconf.c): Likewise.
19738 (CFLAGS-pathconf.c): Likewise.
19739 (CFLAGS-fpathconf.c): Likewise.
19740 (CFLAGS-spawn.c): Likewise.
19741 (CFLAGS-spawnp.c): Likewise.
19742 (CFLAGS-spawni.c): Likewise.
19743 (CFLAGS-glob.c): Likewise.
19744 (CFLAGS-glob64.c): Likewise.
19745 (CFLAGS-getconf.c): Likewise.
19746 (CFLAGS-nanosleep.c): Likewise.
19747 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
19748 (CFLAGS-getpwent.c): Likewise.
19749 (CFLAGS-getpw.c): Likewise.
19750 (CFLAGS-fgetpwent_r.c): Likewise.
19751 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
19752 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
19753 (CFLAGS-mq_timedreceive.c): Likewise.
19754 (CFLAGS-mq_timedsend.c): Likewise.
19755 (CFLAGS-clock_nanosleep.c): Likewise.
19756 (CFLAGS-librt-cancellation.c): Likewise.
19757 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
19758 (CFLAGS-getspent.c): Likewise.
19759 (CFLAGS-fgetspent.c): Likewise.
19760 (CFLAGS-fgetspent_r.c): Likewise.
19761 (CFLAGS-putspent.c): Likewise.
19762 (CFLAGS-getspnam.c): Likewise.
19763 (CFLAGS-getspnam_r.c): Likewise.
19764 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
19765 (CFLAGS-sigsuspend.c): Likewise.
19766 (CFLAGS-sigtimedwait.c): Likewise.
19767 (CFLAGS-sigwait.c): Likewise.
19768 (CFLAGS-sigwaitinfo.c): Likewise.
19769 (CFLAGS-sigreturn.c): Likewise.
19770 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
19771 (CFLAGS-vfwprintf.c): Likewise.
19772 (CFLAGS-tmpfile.c): Likewise.
19773 (CFLAGS-tmpfile64.c): Likewise.
19774 (CFLAGS-tempname.c): Likewise.
19775 (CFLAGS-psignal.c): Likewise.
19776 (CFLAGS-vprintf.c): Likewise.
19777 (CFLAGS-cuserid.c): Likewise.
19778 (CFLAGS-errlist.c): Likewise.
19779 (CFLAGS-siglist.c): Likewise.
19780 (CFLAGS-scanf15.c): Likewise.
19781 (CFLAGS-scanf17.c): Likewise.
19782 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
19783 (CFLAGS-msort.c): Likewise.
19784 (CFLAGS-qsort.c): Likewise.
19785 (CFLAGS-system.c): Likewise.
19786 (CFLAGS-fmtmsg.c): Likewise.
19787 (CFLAGS-strfmon.c): Likewise.
19788 (CFLAGS-strfmon_l.c): Likewise.
19789 (CFLAGS-strfromd.c): Likewise.
19790 (CFLAGS-strfromf.c): Likewise.
19791 (CFLAGS-strfroml.c): Likewise.
19792 (CFLAGS-tst-bsearch.c): Likewise.
19793 (CFLAGS-tst-qsort.c): Likewise.
19794 (CFLAGS-tst-makecontext2.c): Likewise.
19795 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
19796 (CFLAGS-xnlm_prot.c): Likewise.
19797 (CFLAGS-xrstat.c): Likewise.
19798 (CFLAGS-xyppasswd.c): Likewise.
19799 (CFLAGS-xklm_prot.c): Likewise.
19800 (CFLAGS-xrex.c): Likewise.
19801 (CFLAGS-xsm_inter.c): Likewise.
19802 (CFLAGS-xmount.c): Likewise.
19803 (CFLAGS-xrusers.c): Likewise.
19804 (CFLAGS-xspray.c): Likewise.
19805 (CFLAGS-xnfs_prot.c): Likewise.
19806 (CFLAGS-xrquota.c): Likewise.
19807 (CFLAGS-xkey_prot.c): Likewise.
19808 (CFLAGS-auth_unix.c): Likewise.
19809 (CFLAGS-key_call.c): Likewise.
19810 (CFLAGS-pmap_rmt.c): Likewise.
19811 (CFLAGS-clnt_perr.c): Likewise.
19812 (CFLAGS-openchild.c): Likewise.
19813 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
19814 (CFLAGS-msgsnd.c): Likewise.
19815 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
19816 * time/Makefile (CFLAGS-tzfile.c): Likewise.
19817 (CFLAGS-tzset.c): Likewise.
19818 (CFLAGS-getdate.c): Likewise.
19819 (CFLAGS-test_time.c): Likewise.
19820 (CPPFLAGS-tst-tzname.c): Likewise.
19821 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
19822 (CFLAGS-zic.c): Likewise.
19823 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
19824 (CFLAGS-wcswidth.c): Likewise.
19825 (CFLAGS-wcstol.c): Likewise.
19826 (CFLAGS-wcstoul.c): Likewise.
19827 (CFLAGS-wcstoll.c): Likewise.
19828 (CFLAGS-wcstoull.c): Likewise.
19829 (CFLAGS-wcstod.c): Likewise.
19830 (CFLAGS-wcstold.c): Likewise.
19831 (CFLAGS-wcstof128.c): Likewise.
19832 (CFLAGS-wcstof.c): Likewise.
19833 (CFLAGS-wcstol_l.c): Likewise.
19834 (CFLAGS-wcstoul_l.c): Likewise.
19835 (CFLAGS-wcstoll_l.c): Likewise.
19836 (CFLAGS-wcstoull_l.c): Likewise.
19837 (CFLAGS-wcstod_l.c): Likewise.
19838 (CFLAGS-wcstold_l.c): Likewise.
19839 (CFLAGS-wcstof128_l.c): Likewise.
19840 (CFLAGS-wcstof_l.c): Likewise.
19841 (CPPFLAGS-tst-wchar-h.c): Likewise.
19842 (CPPFLAGS-wcstold_l.c): Likewise.
19843
19844 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
19845
19846 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
19847
19848 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
19849 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19850
19851 * manual/tunables.texi (Hardware Capability Tunables): Document
19852 glibc.tune.cached_memopt.
19853 * sysdeps/powerpc/cpu-features.c: New file.
19854 * sysdeps/powerpc/cpu-features.h: New file.
19855 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
19856 _dl_powerpc_cpu_features.
19857 * sysdeps/powerpc/dl-tunables.list: New file.
19858 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
19859 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
19860 (INIT_ARCH): Initialize use_aligned_memopt.
19861 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
19862 IS_IN(rtld))]: Restrict dl_platform_init availability and
19863 initialize CPU features used by tunables.
19864 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
19865 Add memcpy-power8-cached.
19866 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
19867 __memcpy_power8_cached.
19868 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
19869 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
19870 New file.
19871
19872 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
19873
19874 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
19875 (CFLAGS-noinl-tester.c): Likewise.
19876 (CFLAGS-tst-strlen.c): Likewise.
19877 (CFLAGS-stratcliff.c): Likewise.
19878 (CFLAGS-test-ffs.c): Likewise.
19879 (CFLAGS-tst-inlcall.c): Likewise.
19880 (CFLAGS-tst-xbzero-opt.c): Likewise.
19881 (CFLAGS-memcpy.c): Likewise.
19882 (CFLAGS-wordcopy.c): Likewise.
19883
19884 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
19885
19886 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
19887 Store r15 on stack and add cfi rule.
19888 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
19889 Likewise.
19890
19891 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
19892
19893 [BZ #22577]
19894 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
19895 call.
19896
19897 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
19898
19899 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19900 Add s_sinf-sse2 and s_sinf-fma.
19901 (CFLAGS-s_sinf-fma.c): New.
19902 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
19903 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
19904 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
19905
19906 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
19907
19908 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
19909
19910 2017-12-07 Joseph Myers <joseph@codesourcery.com>
19911
19912 [BZ #22568]
19913 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
19914 part of result to imaginary part of argument if it is zero and the
19915 real part of the argument is not finite.
19916 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
19917 of result to real part of argument if it is zero and the imaginary
19918 part of the argument is not finite.
19919
19920 2017-12-07 Mike FABIAN <mfabian@redhat.com>
19921
19922 [BZ #22524]
19923 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
19924 and to the list of locales to be built for testing.
19925 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
19926 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
19927 and build the collation rules upon that.
19928
19929 2017-12-07 Joseph Myers <joseph@codesourcery.com>
19930
19931 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
19932 * manual/math.texi (Mathematics): Document support for _Float32.
19933 * math/Makefile (test-types): Add float32.
19934 * math/Versions (GLIBC_2.27): Add _Float32 functions.
19935 * stdlib/Versions (GLIBC_2.27): Likewise.
19936 * wcsmbs/Versions (GLIBC_2.27): Likewise.
19937 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19938 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19939 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19940 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19941 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19942 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19943 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19944 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19945 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19946 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19947 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19948 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19949 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19950 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19951 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19952 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19953 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19954 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19955 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19956 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19957 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19958 Likewise.
19959 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19960 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19961 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19962 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19963 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19964 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19965 Likewise.
19966 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19967 Likewise.
19968 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19969 Likewise.
19970 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19971 Likewise.
19972
19973 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19974 Likewise.
19975 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19976 Likewise.
19977 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19978 Likewise.
19979 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19980 Likewise.
19981 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19982 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19983 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19984 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19985 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19986 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19987 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19988 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19989 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19990 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19991 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19992 Likewise.
19993 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19994 Likewise.
19995 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19996 Likewise.
19997 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19998 Likewise.
19999 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
20000 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
20001 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
20002 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
20003 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
20004 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
20005 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
20006 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
20007
20008 2017-12-06 Joseph Myers <joseph@codesourcery.com>
20009
20010 * stdlib/strtof.c: Include <bits/floatn.h>
20011 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
20012 and later undefine as macro. Define as weak alias if
20013 [!USE_WIDE_CHAR].
20014 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
20015 and later undefine as macro. Define as weak alias if
20016 [USE_WIDE_CHAR].
20017 * stdlib/strtof_l.c: Include <bits/floatn.h>
20018 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
20019 and later undefine as macro. Define as weak alias if
20020 [!USE_WIDE_CHAR].
20021 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
20022 and later undefine as macro. Define as weak alias if
20023 [USE_WIDE_CHAR].
20024
20025 * stdlib/strfromf.c: Include <bits/floatn.h>.
20026 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
20027 and later undefine as macro and define as weak alias.
20028
20029 * math/test-float32.h: New file.
20030
20031 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
20032 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
20033 (libm_alias_float_other_r): Create f32 alias.
20034 (libm_alias_float_r): Use semicolon before call to
20035 libm_alias_float_other_r.
20036
20037 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
20038 second argument to libm_alias_float_other.
20039 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
20040 second argument to libm_alias_float_other.
20041 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
20042 argument to libm_alias_float_other.
20043
20044 [BZ #22561]
20045 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
20046 real part of result for argument 0 + i * NaN.
20047 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
20048 results for tests of 0 + i * NaN.
20049
20050 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20051
20052 * sysdeps/alpha/fpu/libm-test-ulps: Update.
20053
20054 2017-12-06 David S. Miller <davem@davemloft.net>
20055
20056 * sysdeps/sparc/fpu/libm-test-ulps: Update
20057 exp_{downward,towardzero,upward} ulps.
20058
20059 2017-12-06 Joseph Myers <joseph@codesourcery.com>
20060
20061 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
20062 variables static.
20063
20064 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
20065 (Y0_2D): Likewise.
20066 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
20067 (Y0_2D): Likewise.
20068 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
20069 (Y0_2D): Likewise.
20070 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
20071 (Y0_2D): Likewise.
20072
20073 2017-12-06 Mike FABIAN <mfabian@redhat.com>
20074
20075 [BZ #22515]
20076 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
20077 and to the list of locales to be built for testing.
20078 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
20079 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
20080 and build the collation rules upon that.
20081
20082 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20083
20084 * NEWS: Add sinf to list of optimized functions.
20085
20086 2017-12-06 Joseph Myers <joseph@codesourcery.com>
20087
20088 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
20089 (__HAVE_FLOAT32X): Likewise.
20090 * manual/math.texi (Mathematics): Document support for _Float64
20091 and _Float32x.
20092 * math/Makefile (test-types): Add float64 and float32x.
20093 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
20094 functions.
20095 * stdlib/Versions (GLIBC_2.27): Likewise.
20096 * wcsmbs/Versions (GLIBC_2.27): Likewise.
20097 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
20098 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
20099 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
20100 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
20101 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
20102 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
20103 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
20104 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
20105 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
20106 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
20107 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
20108 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
20109 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
20110 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
20111 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
20112 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
20113 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
20114 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
20115 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
20116 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
20117 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
20118 Likewise.
20119 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
20120 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
20121 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
20122 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
20123 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
20124 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
20125 Likewise.
20126 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
20127 Likewise.
20128 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
20129 Likewise.
20130 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
20131 Likewise.
20132 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
20133 Likewise.
20134 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
20135 Likewise.
20136 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
20137 Likewise.
20138 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
20139 Likewise.
20140 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
20141 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
20142 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
20143 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
20144 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
20145 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
20146 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
20147 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
20148 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
20149 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
20150 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
20151 Likewise.
20152 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
20153 Likewise.
20154 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
20155 Likewise.
20156 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
20157 Likewise.
20158 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
20159 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
20160 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
20161 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
20162 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
20163 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
20164 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
20165 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
20166
20167 2017-12-05 Joseph Myers <joseph@codesourcery.com>
20168
20169 * bits/floatn-common.h: Include <bits/long-double.h>.
20170 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
20171 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
20172 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
20173 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
20174 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
20175 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
20176 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
20177 (__builtin_huge_valf64): Use __builtin_huge_vall.
20178 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
20179 (__builtin_inff64): Use __builtin_infl.
20180 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
20181 (__builtin_nanf64): Use __builtin_nanl.
20182 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
20183 (__builtin_nansf64): Use __builtin_nansl.
20184
20185 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
20186 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
20187 Carlos O'Donnell <carlos@redhat.com>
20188
20189 * elf/dl-tunables.list: Add elision parameters.
20190 * manual/tunables.texi: Add entries about elision tunable.
20191 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
20192 Add callback functions to dynamically enable/disable elision.
20193 Add multiple callbacks functions to set elision parameters.
20194 Deleted __libc_enable_secure check.
20195 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
20196 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
20197 * configure: Regenerated.
20198 * configure.ac: Option enable_lock_elision was deleted.
20199 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
20200 * config.make.in: Remove references to enable_lock_elision.
20201 * manual/install.texi: Elision configure option was removed.
20202 * INSTALL: Regenerated to remove enable_lock_elision.
20203 * nptl/Makefile:
20204 Disable elision so it can verify error case for destroying a mutex.
20205 * sysdeps/powerpc/nptl/elide.h:
20206 Cleanup ENABLE_LOCK_ELISION check.
20207 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
20208 * sysdeps/s390/configure: Regenerated.
20209 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
20210 * nptl/tst-mutex8.c:
20211 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
20212 * sysdeps/powerpc/powerpc32/sysdep.h:
20213 Deleted all ENABLE_LOCK_ELISION checks.
20214 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
20215 * sysdeps/powerpc/sysdep.h: Likewise.
20216 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
20217 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
20218 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
20219 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
20220 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
20221 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
20222 enable-lock-elision.
20223
20224 2017-12-05 Joseph Myers <joseph@codesourcery.com>
20225
20226 * stdlib/strtod.c: Include <bits/floatn.h>.
20227 (BUILD_DOUBLE): New macro.
20228 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
20229 (strtof64): Define and later undefine as macro. Define as weak
20230 alias if [!USE_WIDE_CHAR].
20231 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
20232 (wcstof64): Define and later undefine as macro. Define as weak
20233 alias if [USE_WIDE_CHAR].
20234 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
20235 (strtof32x): Define and later undefine as macro. Define as weak
20236 alias if [!USE_WIDE_CHAR].
20237 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
20238 (wcstof32x): Define and later undefine as macro. Define as weak
20239 alias if [USE_WIDE_CHAR].
20240 * stdlib/strtod_l.c: Include <bits/floatn.h>.
20241 (BUILD_DOUBLE): New macro.
20242 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
20243 (strtof64_l): Define and later undefine as macro. Define as weak
20244 alias if [!USE_WIDE_CHAR].
20245 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
20246 (wcstof64_l): Define and later undefine as macro. Define as weak
20247 alias if [USE_WIDE_CHAR].
20248 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
20249 (strtof32x_l): Define and later undefine as macro. Define as weak
20250 alias if [!USE_WIDE_CHAR].
20251 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
20252 (wcstof32x_l): Define and later undefine as macro. Define as weak
20253 alias if [USE_WIDE_CHAR].
20254
20255 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20256
20257 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
20258 (reduced): Use ones as double instead of integer.
20259
20260 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
20261
20262 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
20263
20264 2017-12-05 Joseph Myers <joseph@codesourcery.com>
20265
20266 * stdlib/strfromd.c: Include <bits/floatn.h>.
20267 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
20268 and later undefine as macro and define as weak alias.
20269 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
20270 Likewise.
20271
20272 * math/test-float32x.h: New file.
20273 * math/test-float64.h: Likewise.
20274
20275 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
20276 (libm_alias_double_other_r_f64): New macro.
20277 (libm_alias_double_other_r_f32x): Likewise.
20278 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
20279 libm_alias_double_other_r_f32x.
20280 (libm_alias_double_r): Use semicolon before call to
20281 libm_alias_double_other_r.
20282 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
20283 <bits/floatn.h>.
20284 (libm_alias_double_other_r_f64): New macro.
20285 (libm_alias_double_other_r_f32x): Likewise.
20286 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
20287 libm_alias_double_other_r_f32x.
20288
20289 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
20290
20291 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
20292 int.
20293 (SINF_FUNC): Likewise. Replace floor with simple casts.
20294
20295 2017-12-05 Mike FABIAN <mfabian@redhat.com>
20296
20297 [BZ #22517]
20298 * localedata/Makefile: Add et_EE.UTF-8 to test-input
20299 and to the list of locales to be built for testing.
20300 * localedata/et_EE.UTF-8.in: New file for testing the collation.
20301 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
20302 and build the collation rules upon that.
20303
20304 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
20305
20306 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
20307 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
20308 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
20309 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
20310 instead of __insn__xxx.
20311 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
20312 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
20313 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
20314 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
20315 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
20316 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
20317
20318 2017-12-05 Florian Weimer <fweimer@redhat.com>
20319
20320 Linux: Implement interfaces for memory protection keys
20321 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
20322 xsignal, xsysconf.
20323 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
20324 * support/xunistd.h (xsysconf): Declare.
20325 * support/xraise.c: New file.
20326 * support/xsigaction.c: Likewise.
20327 * support/xsignal.c: Likewise.
20328 * support/xsysconf.c: Likewise.
20329 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
20330 pkey_set, pkey_get, pkey_mprotect.
20331 [misc] (tests): Add tst-pkey.
20332 (tst-pkey): Link with -lpthread.
20333 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
20334 pkey_free, pkey_set, pkey_get, pkey_mprotect.
20335 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
20336 (PKEY_DISABLE_WRITE): Define.
20337 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
20338 Declare.
20339 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
20340 (SEGV_PKUERR): Add.
20341 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
20342 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
20343 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
20344 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
20345 Add.
20346 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
20347 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
20348 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
20349 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
20350 * sysdeps/unix/sysv/linux/**.abilist: Update.
20351
20352 2017-12-05 Florian Weimer <fweimer@redhat.com>
20353
20354 * support/tst-test_compare.c (subprocess): Use long long instead
20355 of long argument for consistent type width across 32-bit and
20356 64-bit architectures.
20357 (do_test): Adjust expected output.
20358
20359 2017-12-05 Joseph Myers <joseph@codesourcery.com>
20360
20361 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
20362 (cosf): Define using libm_alias_float.
20363 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
20364 (fabsf): Define using libm_alias_float.
20365 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
20366 (fmaf): Define using libm_alias_float.
20367 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
20368 (rintf): Define using libm_alias_float.
20369 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
20370 (sinf): Define using libm_alias_float.
20371 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
20372 <libm-alias-float.h>.
20373 (modff): Define using libm_alias_float.
20374 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
20375 <libm-alias-float.h>.
20376 (logbf): Define using libm_alias_float.
20377 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
20378 <libm-alias-float.h>.
20379 (ceilf): Define using libm_alias_float.
20380 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
20381 <libm-alias-float.h>.
20382 (copysignf): Define using libm_alias_float.
20383 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
20384 <libm-alias-float.h>.
20385 (floorf): Define using libm_alias_float.
20386 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
20387 <libm-alias-float.h>.
20388 (llrintf): Define using libm_alias_float.
20389 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
20390 <libm-alias-float.h>.
20391 (llroundf): Define using libm_alias_float.
20392 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
20393 <libm-alias-float.h>.
20394 (lrintf): Define using libm_alias_float.
20395 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
20396 <libm-alias-float.h>.
20397 (lroundf): Define using libm_alias_float.
20398 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
20399 <libm-alias-float.h>.
20400 (nearbyintf): Define using libm_alias_float.
20401 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
20402 <libm-alias-float.h>.
20403 (rintf): Define using libm_alias_float.
20404 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
20405 <libm-alias-float.h>.
20406 (roundf): Define using libm_alias_float.
20407 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
20408 <libm-alias-float.h>.
20409 (truncf): Define using libm_alias_float.
20410 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
20411 Include <libm-alias-float.h>.
20412 (ceilf): Define using libm_alias_float.
20413 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
20414 Include <libm-alias-float.h>.
20415 (copysignf): Define using libm_alias_float.
20416 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
20417 Include <libm-alias-float.h>.
20418 (floorf): Define using libm_alias_float.
20419 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
20420 Include <libm-alias-float.h>.
20421 (llrintf): Define using libm_alias_float.
20422 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
20423 Include <libm-alias-float.h>.
20424 (llroundf): Define using libm_alias_float.
20425 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
20426 Include <libm-alias-float.h>.
20427 (logbf): Define using libm_alias_float.
20428 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
20429 Include <libm-alias-float.h>.
20430 (lrintf): Define using libm_alias_float.
20431 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
20432 Include <libm-alias-float.h>.
20433 (lroundf): Define using libm_alias_float.
20434 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
20435 Include <libm-alias-float.h>.
20436 (modff): Define using libm_alias_float.
20437 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
20438 Include <libm-alias-float.h>.
20439 (roundf): Define using libm_alias_float.
20440 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
20441 Include <libm-alias-float.h>.
20442 (truncf): Define using libm_alias_float.
20443 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
20444 <libm-alias-float.h>.
20445 (llrintf): Define using libm_alias_float.
20446 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
20447 <libm-alias-float.h>.
20448 (llroundf): Define using libm_alias_float.
20449 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
20450 <libm-alias-float.h>.
20451 (ceilf): Define using libm_alias_float.
20452 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
20453 <libm-alias-float.h>.
20454 (floorf): Define using libm_alias_float.
20455 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
20456 <libm-alias-float.h>.
20457 (llroundf): Define using libm_alias_float.
20458 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
20459 <libm-alias-float.h>.
20460 (lroundf): Define using libm_alias_float.
20461 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
20462 <libm-alias-float.h>.
20463 (roundf): Define using libm_alias_float.
20464 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
20465 <libm-alias-float.h>.
20466 (truncf): Define using libm_alias_float.
20467 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
20468 <libm-alias-float.h>.
20469 (copysignf): Define using libm_alias_float.
20470 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
20471 <libm-alias-float.h>.
20472 (llrintf): Define using libm_alias_float.
20473 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
20474 <libm-alias-float.h>.
20475 (llroundf): Define using libm_alias_float.
20476 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
20477 <libm-alias-float.h>.
20478 (lrintf): Define using libm_alias_float.
20479 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
20480 <libm-alias-float.h>.
20481 (lroundf): Define using libm_alias_float.
20482 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
20483 <libm-alias-float.h>.
20484 (ceilf): Define using libm_alias_float.
20485 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
20486 <libm-alias-float.h>.
20487 (copysignf): Define using libm_alias_float.
20488 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
20489 <libm-alias-float.h>.
20490 (cosf): Define using libm_alias_float.
20491 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
20492 <libm-alias-float.h>.
20493 (floorf): Define using libm_alias_float.
20494 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
20495 <libm-alias-float.h>.
20496 (llrintf): Define using libm_alias_float.
20497 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
20498 <libm-alias-float.h>.
20499 (llroundf): Define using libm_alias_float.
20500 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
20501 <libm-alias-float.h>.
20502 (logbf): Define using libm_alias_float.
20503 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
20504 <libm-alias-float.h>.
20505 (modff): Define using libm_alias_float.
20506 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
20507 <libm-alias-float.h>.
20508 (roundf): Define using libm_alias_float.
20509 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
20510 <libm-alias-float.h>.
20511 (sinf): Define using libm_alias_float.
20512 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
20513 <libm-alias-float.h>.
20514 (truncf): Define using libm_alias_float.
20515 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
20516 <libm-alias-float.h>.
20517 (ceilf): Define using libm_alias_float.
20518 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
20519 <libm-alias-float.h>.
20520 (copysignf): Define using libm_alias_float.
20521 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
20522 <libm-alias-float.h>.
20523 (floorf): Define using libm_alias_float.
20524 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
20525 <libm-alias-float.h>.
20526 (llrintf): Define using libm_alias_float.
20527 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
20528 <libm-alias-float.h>.
20529 (llroundf): Define using libm_alias_float.
20530 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
20531 <libm-alias-float.h>.
20532 (nearbyintf): Define using libm_alias_float.
20533 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
20534 <libm-alias-float.h>.
20535 (rintf): Define using libm_alias_float.
20536 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
20537 <libm-alias-float.h>.
20538 (roundf): Define using libm_alias_float.
20539 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
20540 <libm-alias-float.h>.
20541 (truncf): Define using libm_alias_float.
20542 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
20543 <libm-alias-float.h>.
20544 (ceilf): Define using libm_alias_float.
20545 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
20546 <libm-alias-float.h>.
20547 (floorf): Define using libm_alias_float.
20548 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
20549 <libm-alias-float.h>.
20550 (llroundf): Define using libm_alias_float.
20551 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
20552 <libm-alias-float.h>.
20553 (roundf): Define using libm_alias_float.
20554 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
20555 <libm-alias-float.h>.
20556 (truncf): Define using libm_alias_float.
20557 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
20558 <libm-alias-float.h>.
20559 (copysignf): Define using libm_alias_float.
20560 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
20561 <libm-alias-float.h>.
20562 (llrintf): Define using libm_alias_float.
20563 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
20564 <libm-alias-float.h>.
20565 (llroundf): Define using libm_alias_float.
20566 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
20567 <libm-alias-float.h>.
20568 (cosf): Define using libm_alias_float.
20569 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
20570 <libm-alias-float.h>.
20571 (llrintf): Define using libm_alias_float.
20572 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
20573 <libm-alias-float.h>.
20574 (llroundf): Define using libm_alias_float.
20575 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
20576 <libm-alias-float.h>.
20577 (sinf): Define using libm_alias_float.
20578
20579 2017-12-04 Florian Weimer <fweimer@redhat.com>
20580
20581 * support/check.h (TEST_COMPARE): Define.
20582 (support_test_compare_failure): Declare.
20583 * support/Makefile (libsupport-routines): Add
20584 support_test_compare_failure.
20585 (tests): Add tst-test_compare.
20586 * support /support_test_compare_failure.c: New file.
20587 * support/tst-test_compare.c: Likewise.
20588
20589 2017-12-04 Mike FABIAN <mfabian@redhat.com>
20590
20591 [BZ #22527]
20592 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
20593 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
20594 available, this rewrite of the collation rules does reproduce
20595 the test file in the same order.
20596
20597 2017-12-04 Mike FABIAN <mfabian@redhat.com>
20598
20599 [BZ #10580]
20600 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
20601 digraphs in the month and day names. Using single code points for
20602 digraphs is deprecated. While there are dedicated Unicode
20603 codepoints, for the digraphs, these are included for backwards
20604 compatibility and modern texts use a sequence of Basic Latin
20605 characters. See: https://www.unicode.org/faq/ligature_digraph.html
20606 This makes the month and day names agree exactly with CLDR now,
20607 CLDR does not use the single code points for the digraphs either.
20608
20609 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
20610
20611 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
20612
20613 2017-12-04 Joseph Myers <joseph@codesourcery.com>
20614
20615 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
20616 of floor.
20617
20618 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
20619
20620 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
20621 Define only for libc.so.
20622
20623 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
20624
20625 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
20626 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
20627 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
20628 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
20629 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
20630
20631 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20632
20633 [BZ #5997]
20634 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
20635
20636 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
20637
20638 [BZ libc/19170]
20639 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
20640 PREINIT_FUNCTION_WEAK is nonzero.
20641 (gmon_initializer): New function. Put procedure label for it in
20642 .init_array section.
20643 (_init): Don't call PREINIT_FUNCTION.
20644 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
20645 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
20646 value when map argument is null.
20647
20648 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
20649 depi instruction from PIC pc-relative sequence.
20650 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
20651 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
20652 (elf_machine_load_address): Likewise.
20653 (elf_machine_runtime_setup): Likewise.
20654
20655 2017-12-02 Joseph Myers <joseph@codesourcery.com>
20656
20657 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
20658 <libm-alias-double.h>.
20659 (logb): Define using libm_alias_double.
20660 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
20661 <libm-alias-double.h>.
20662 (copysign): Define using libm_alias_double.
20663 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
20664 <libm-alias-double.h>.
20665 (llrint): Define using libm_alias_double.
20666 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
20667 <libm-alias-double.h>.
20668 (llround): Define using libm_alias_double.
20669 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
20670 <libm-alias-double.h>.
20671 (lrint): Define using libm_alias_double.
20672 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
20673 <libm-alias-double.h>.
20674 (lround): Define using libm_alias_double.
20675 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
20676 Include <libm-alias-double.h>.
20677 (copysign): Define using libm_alias_double.
20678 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
20679 Include <libm-alias-double.h>.
20680 (llrint): Define using libm_alias_double.
20681 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
20682 Include <libm-alias-double.h>.
20683 (llround): Define using libm_alias_double.
20684 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
20685 <libm-alias-double.h>.
20686 (logb): Define using libm_alias_double.
20687 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
20688 Include <libm-alias-double.h>.
20689 (lrint): Define using libm_alias_double.
20690 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
20691 Include <libm-alias-double.h>.
20692 (lround): Define using libm_alias_double.
20693 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
20694 <libm-alias-double.h>.
20695 (llrint): Define using libm_alias_double.
20696 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
20697 <libm-alias-double.h>.
20698 (llround): Define using libm_alias_double.
20699 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
20700 <libm-alias-double.h>.
20701 (llround): Define using libm_alias_double.
20702 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
20703 <libm-alias-double.h>.
20704 (lround): Define using libm_alias_double.
20705 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
20706 <libm-alias-double.h>.
20707 (copysign): Define using libm_alias_double.
20708 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
20709 <libm-alias-double.h>.
20710 (llrint): Define using libm_alias_double.
20711 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
20712 <libm-alias-double.h>.
20713 (llround): Define using libm_alias_double.
20714 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
20715 <libm-alias-double.h>.
20716 (lrint): Define using libm_alias_double.
20717 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
20718 <libm-alias-double.h>.
20719 (lround): Define using libm_alias_double.
20720 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
20721 <libm-alias-double.h>.
20722 (copysign): Define using libm_alias_double.
20723 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
20724 <libm-alias-double.h>.
20725 (llrint): Define using libm_alias_double.
20726 (lrint): Likewise.
20727 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
20728 <libm-alias-double.h>.
20729 (llround): Define using libm_alias_double.
20730 (lround): Likewise.
20731 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
20732 <libm-alias-double.h>.
20733 (logb): Define using libm_alias_double.
20734 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
20735 <libm-alias-double.h>.
20736 (copysign): Define using libm_alias_double.
20737 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
20738 <libm-alias-double.h>.
20739 (llrint): Define using libm_alias_double.
20740 (lrint): Likewise.
20741 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
20742 <libm-alias-double.h>.
20743 (llround): Define using libm_alias_double.
20744 (lround): Likewise.
20745 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
20746 <libm-alias-double.h>.
20747 (llround): Define using libm_alias_double.
20748 (lround): Likewise.
20749 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
20750 <libm-alias-double.h>.
20751 (copysign): Define using libm_alias_double.
20752 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
20753 <libm-alias-double.h>.
20754 (llrint): Define using libm_alias_double.
20755 (lrint): Likewise.
20756 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
20757 <libm-alias-double.h>.
20758 (llround): Define using libm_alias_double.
20759 (lround): Likewise.
20760 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
20761 <libm-alias-double.h>.
20762 (llrint): Define using libm_alias_double.
20763 (lrint): Likewise.
20764 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
20765 <libm-alias-double.h>.
20766 (llround): Define using libm_alias_double.
20767 (lround): Likewise.
20768
20769 2017-12-01 Joseph Myers <joseph@codesourcery.com>
20770
20771 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
20772 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
20773 compat symbol based on llround.
20774
20775 * sysdeps/powerpc/power7/fpu/s_logb.c
20776 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
20777 symbol based on __logb, not on logb.
20778 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
20779 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20780 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
20781 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20782
20783 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
20784 (rint): Define using libm_alias_double.
20785 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
20786 <libm-alias-double.h>.
20787 (modf): Define using libm_alias_double.
20788 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
20789 <libm-alias-double.h>.
20790 (ceil): Define using libm_alias_double.
20791 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
20792 <libm-alias-double.h>.
20793 (floor): Define using libm_alias_double.
20794 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
20795 <libm-alias-double.h>.
20796 (nearbyint): Define using libm_alias_double.
20797 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
20798 <libm-alias-double.h>.
20799 (rint): Define using libm_alias_double.
20800 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
20801 <libm-alias-double.h>.
20802 (round): Define using libm_alias_double.
20803 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
20804 <libm-alias-double.h>.
20805 (trunc): Define using libm_alias_double.
20806 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
20807 <libm-alias-double.h>.
20808 (ceil): Define using libm_alias_double.
20809 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
20810 Include <libm-alias-double.h>.
20811 (floor): Define using libm_alias_double.
20812 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
20813 <libm-alias-double.h>.
20814 (modf): Define using libm_alias_double.
20815 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
20816 Include <libm-alias-double.h>.
20817 (round): Define using libm_alias_double.
20818 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
20819 Include <libm-alias-double.h>.
20820 (trunc): Define using libm_alias_double.
20821 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
20822 <libm-alias-double.h>.
20823 (ceil): Define using libm_alias_double.
20824 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
20825 <libm-alias-double.h>.
20826 (floor): Define using libm_alias_double.
20827 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
20828 <libm-alias-double.h>.
20829 (round): Define using libm_alias_double.
20830 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
20831 <libm-alias-double.h>.
20832 (trunc): Define using libm_alias_double.
20833 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
20834 <libm-alias-double.h>.
20835 (ceil): Define using libm_alias_double.
20836 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
20837 <libm-alias-double.h>.
20838 (floor): Define using libm_alias_double.
20839 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
20840 <libm-alias-double.h>.
20841 (modf): Define using libm_alias_double.
20842 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
20843 <libm-alias-double.h>.
20844 (round): Define using libm_alias_double.
20845 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
20846 <libm-alias-double.h>.
20847 (trunc): Define using libm_alias_double.
20848 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
20849 <libm-alias-double.h>.
20850 (ceil): Define using libm_alias_double.
20851 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
20852 <libm-alias-double.h>.
20853 (floor): Define using libm_alias_double.
20854 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
20855 <libm-alias-double.h>.
20856 (nearbyint): Define using libm_alias_double.
20857 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
20858 <libm-alias-double.h>.
20859 (rint): Define using libm_alias_double.
20860 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
20861 <libm-alias-double.h>.
20862 (round): Define using libm_alias_double.
20863 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
20864 <libm-alias-double.h>.
20865 (trunc): Define using libm_alias_double.
20866 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
20867 <libm-alias-double.h>.
20868 (ceil): Define using libm_alias_double.
20869 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
20870 <libm-alias-double.h>.
20871 (floor): Define using libm_alias_double.
20872 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
20873 <libm-alias-double.h>.
20874 (round): Define using libm_alias_double.
20875 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
20876 <libm-alias-double.h>.
20877 (trunc): Define using libm_alias_double.
20878
20879 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
20880 (fabs): Define using libm_alias_double.
20881 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
20882 (fma): Define using libm_alias_double.
20883 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
20884 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
20885 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
20886 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
20887
20888 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20889
20890 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
20891
20892 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
20893 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
20894 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
20895
20896 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
20897 due redirect macro.
20898
20899 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
20900
20901 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
20902
20903 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20904
20905 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
20906 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
20907 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
20908 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
20909
20910 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20911 (libm-sysdep_routines): Add s_nearbyintf-generic and
20912 s_nearbyint-generic.
20913 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
20914 New file.
20915 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
20916 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
20917 Likewise.
20918 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
20919 Likewise.
20920 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
20921 file.
20922 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20923 Likewise.
20924
20925 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20926 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
20927 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
20928 file.
20929 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
20930 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
20931 Likewise.
20932 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
20933 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
20934 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
20935
20936 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20937 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
20938 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
20939 file.
20940 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
20941 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
20942 Likewise.
20943 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
20944 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
20945 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
20946
20947 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20948 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
20949 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
20950 file.
20951 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
20952 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
20953 Likewise.
20954 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
20955 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
20956 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
20957
20958 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20959 (sysdep_calls): New rule.
20960 (sysdep_routines): Use sysdep_calls as base.
20961 (libm-sysdep_routines): Add generic rule for symbols shared with
20962 libc. Add s_copysign-generic and s_copysign-generic objects.
20963 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
20964 New file.
20965 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
20966 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
20967 Likewise.
20968 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
20969 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
20970 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
20971
20972 2017-12-01 Mike FABIAN <mfabian@redhat.com>
20973
20974 [BZ #22519]
20975 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
20976 the list of locales to be built for testing.
20977 * localedata/is_IS.UTF-8.in: New file.
20978 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
20979 on iso14651_t1.
20980
20981 2017-12-01 Joseph Myers <joseph@codesourcery.com>
20982
20983 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
20984 <libm-alias-float.h>.
20985 (fabsf): Define using libm_alias_float.
20986
20987 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20988
20989 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
20990
20991 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20992
20993 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
20994 <libm-alias-float.h>.
20995 (fabsf): Define using libm_alias_float.
20996 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
20997 <libm-alias-float.h>.
20998 (lrintf): Define using libm_alias_float.
20999 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
21000 <libm-alias-float.h>.
21001 (rintf): Define using libm_alias_float.
21002
21003 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
21004 <libm-alias-double.h>.
21005 (fabs): Define using libm_alias_double.
21006 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
21007 <libm-alias-double.h>.
21008 (lrint): Define using libm_alias_double.
21009 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
21010 <libm-alias-double.h>.
21011 (rint): Define using libm_alias_double.
21012
21013 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
21014 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
21015 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
21016 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
21017 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
21018 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
21019 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
21020 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
21021 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
21022 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
21023 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
21024 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
21025 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
21026 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
21027 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
21028 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
21029 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
21030 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
21031 s_atan_template.c.
21032 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
21033 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
21034 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
21035 s_ceil_template.c.
21036 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
21037 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
21038 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
21039 s_cos_template.c.
21040 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
21041 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
21042 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
21043 s_expm1_template.c.
21044 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
21045 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
21046 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
21047 s_fabs_template.c.
21048 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
21049 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
21050 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
21051 s_floor_template.c.
21052 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
21053 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
21054 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
21055 s_frexp_template.c.
21056 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
21057 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
21058 s_lrint_template.c.
21059 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
21060 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
21061 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
21062 s_modf_template.c.
21063 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
21064 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
21065 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
21066 s_nearbyint_template.c.
21067 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
21068 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
21069 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
21070 s_remquo_template.c.
21071 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
21072 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
21073 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
21074 s_rint_template.c.
21075 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
21076 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
21077 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
21078 s_sin_template.c.
21079 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
21080 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
21081 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
21082 s_sincos_template.c.
21083 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
21084 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
21085 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
21086 s_tan_template.c.
21087 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
21088 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
21089 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
21090 s_tanh_template.c.
21091 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
21092 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
21093 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
21094 s_trunc_template.c.
21095 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
21096 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
21097 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
21098 s_atan.c instead of including s_atan.c.
21099 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
21100 s_atanf.c instead of including s_atanf.c.
21101 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
21102 s_atanl.c instead of including s_atanl.c.
21103 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
21104 instead of s_atan.c.
21105 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
21106 instead of s_atanf.c.
21107 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
21108 instead of s_atanl.c.
21109
21110 * scripts/update-copyrights: Do not handle intl/plural.c
21111 specially.
21112
21113 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
21114
21115 [BZ #22432]
21116 * configure.ac (BISON): Require to be present.
21117 * configure: Regenerated.
21118 * intl/Makefile (generated): Add plural.c.
21119 [$(BISON) != no]: Make code unconditional.
21120 (plural.c): Change rule to $(objpfx)plural.c.
21121 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
21122 * intl/plural.c: Remove.
21123 * manual/install.texi (Tools for Compilation): Document bison as
21124 required.
21125 * INSTALL: Regenerated.
21126
21127 2017-11-30 Joseph Myers <joseph@codesourcery.com>
21128
21129 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
21130 <libm-alias-double.h>.
21131 (llrint): Define using libm_alias_double.
21132 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
21133 <libm-alias-float.h>.
21134 (llrintf): Define using libm_alias_float.
21135 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
21136 <libm-alias-ldouble.h>.
21137 (llrintl): Define using libm_alias_ldouble.
21138
21139 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
21140 declare_mgen_alias instead of weak_alias.
21141 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
21142 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
21143 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
21144
21145 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21146
21147 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
21148 Add add_n-generic.
21149 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
21150 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
21151 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
21152
21153 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
21154 Add submul_1-generic.
21155 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
21156 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
21157 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
21158
21159 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
21160 Add addmul_1-generic.
21161 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
21162 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
21163 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
21164
21165 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
21166 Add sub_n-generic.
21167 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
21168 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
21169 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
21170
21171 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
21172 Add mul_1-generic.
21173 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
21174 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
21175 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
21176
21177 2017-11-30 Mike FABIAN <mfabian@redhat.com>
21178
21179 According to CLDR, collation rules for Serbian and Bosnian
21180 should be the same as for Croatian.
21181
21182 [BZ #22534]
21183 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
21184 and to the list of locales to be built for testing.
21185 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
21186 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
21187 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
21188 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
21189
21190 2017-11-30 Mike FABIAN <mfabian@redhat.com>
21191
21192 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
21193 to make test case pass.
21194 * localedata/hr_HR.UTF-8.in: Add more test strings.
21195
21196 2017-11-30 Mike FABIAN <mfabian@redhat.com>
21197
21198 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
21199
21200 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
21201
21202 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
21203 the list of locales to built for testing.
21204 * localedata/hr_HR.UTF-8.in: New file.
21205
21206 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
21207
21208 [BZ #10580]
21209 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
21210 iso14651_t1.
21211 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
21212 CLDR (except use ligatures for the digraphs, CLDR does not use
21213 the ligatures), add first_workday, some fixes in the date and time
21214 formats.
21215 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
21216 for Đ and đ.
21217 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
21218 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
21219 Add int_p_cs_precedes and int_n_cs_precedes.
21220 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
21221 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
21222 LC_MONETARY now).
21223 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
21224 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
21225 name_miss.
21226 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
21227 and lang_lib. Change postal_fmt.
21228
21229 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
21230
21231 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
21232 <setjmp.h>.
21233 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
21234 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
21235 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
21236 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
21237 * sysdeps/generic/setjmpP.h: New file.
21238 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
21239 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
21240 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
21241 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
21242 Add jmp_buf-ssp.sym.
21243 (tests): Add tst-saved_mask-1.
21244
21245 2017-11-30 Arjun Shankar <arjun@redhat.com>
21246
21247 [BZ #22375]
21248 CVE-2017-17426
21249 * malloc/malloc.c (__libc_malloc): Use checked_request2size
21250 instead of request2size.
21251
21252 2017-11-30 Joseph Myers <joseph@codesourcery.com>
21253
21254 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
21255 (__lllrint): Remove alias.
21256 (lllrint): Likewise.
21257 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
21258 (__lllrintf): Likewise.
21259 (lllrintf): Likewise.
21260
21261 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
21262 <libm-alias-float.h>.
21263 (copysignf): Define using libm_alias_float.
21264 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
21265 <libm-alias-float.h>.
21266 (fabsf): Define using libm_alias_float.
21267 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
21268 Include <libm-alias-float.h>.
21269 (copysignf): Define using libm_alias_float.
21270 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
21271 <libm-alias-float.h>.
21272 (fabsf): Define using libm_alias_float.
21273 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
21274 <libm-alias-float.h>.
21275 (fdimf): Define using libm_alias_float.
21276 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
21277 <libm-alias-float.h>.
21278 (fmaf): Define using libm_alias_float.
21279 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
21280 <libm-alias-float.h>.
21281 (llrintf): Define using libm_alias_float.
21282 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
21283 Include <libm-alias-float.h>.
21284 (nearbyintf): Define using libm_alias_float.
21285 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
21286 <libm-alias-float.h>.
21287 (rintf): Define using libm_alias_float.
21288 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
21289 <libm-alias-float.h>.
21290 (llrintf): Define using libm_alias_float.
21291 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
21292 <libm-alias-float.h>.
21293 (lrintf): Define using libm_alias_float.
21294 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
21295 <libm-alias-float.h>.
21296 (nearbyintf): Define using libm_alias_float.
21297 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
21298 <libm-alias-float.h>.
21299 (rintf): Define using libm_alias_float.
21300 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
21301 <libm-alias-float.h>.
21302 (ceilf): Define using libm_alias_float.
21303 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
21304 <libm-alias-float.h>.
21305 (floorf): Define using libm_alias_float.
21306 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
21307 <libm-alias-float.h>.
21308 (fmaf): Define using libm_alias_float.
21309 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
21310 <libm-alias-float.h>.
21311 (lrintf): Define using libm_alias_float.
21312 (llrintf): Likewise.
21313 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
21314 <libm-alias-float.h>.
21315 (nearbyintf): Define using libm_alias_float.
21316 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
21317 <libm-alias-float.h>.
21318 (rintf): Define using libm_alias_float.
21319 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
21320 <libm-alias-float.h>.
21321 (truncf): Define using libm_alias_float.
21322 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
21323 <libm-alias-float.h>.
21324 (copysignf): Define using libm_alias_float.
21325 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
21326 <libm-alias-float.h>.
21327 (fabsf): Define using libm_alias_float.
21328 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
21329 <libm-alias-float.h>.
21330 (lrintf): Define using libm_alias_float.
21331 (llrintf): Likewise.
21332 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
21333 <libm-alias-float.h>.
21334 (nearbyintf): Define using libm_alias_float.
21335 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
21336 <libm-alias-float.h>.
21337 (rintf): Define using libm_alias_float.
21338
21339 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21340
21341 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
21342 <libm-alias-double.h>.
21343 (copysign): Define using libm_alias_double.
21344 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
21345 <libm-alias-double.h>.
21346 (fabs): Define using libm_alias_double.
21347 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
21348 Include <libm-alias-double.h>.
21349 (copysign): Define using libm_alias_double.
21350 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
21351 <libm-alias-double.h>.
21352 (fabs): Define using libm_alias_double.
21353 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
21354 <libm-alias-double.h>.
21355 (fdim): Define using libm_alias_double.
21356 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
21357 <libm-alias-double.h>.
21358 (fma): Define using libm_alias_double.
21359 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
21360 <libm-alias-double.h>.
21361 (llrint): Define using libm_alias_double.
21362 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
21363 Include <libm-alias-double.h>.
21364 (nearbyint): Define using libm_alias_double.
21365 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
21366 <libm-alias-double.h>.
21367 (rint): Define using libm_alias_double.
21368 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
21369 <libm-alias-double.h>.
21370 (fabs): Define using libm_alias_double.
21371 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
21372 <libm-alias-double.h>.
21373 (llrint): Define using libm_alias_double.
21374 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
21375 <libm-alias-double.h>.
21376 (nearbyint): Define using libm_alias_double.
21377 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
21378 <libm-alias-double.h>.
21379 (rint): Define using libm_alias_double.
21380 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
21381 <libm-alias-double.h>.
21382 (ceil): Define using libm_alias_double.
21383 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
21384 <libm-alias-double.h>.
21385 (floor): Define using libm_alias_double.
21386 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
21387 <libm-alias-double.h>.
21388 (fma): Define using libm_alias_double.
21389 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
21390 <libm-alias-double.h>.
21391 (lrint): Define using libm_alias_double.
21392 (llrint): Likewise.
21393 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
21394 <libm-alias-double.h>.
21395 (nearbyint): Define using libm_alias_double.
21396 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
21397 <libm-alias-double.h>.
21398 (rint): Define using libm_alias_double.
21399 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
21400 <libm-alias-double.h>.
21401 (trunc): Define using libm_alias_double.
21402 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
21403 <libm-alias-double.h>.
21404 (copysign): Define using libm_alias_double.
21405 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
21406 <libm-alias-double.h>.
21407 (fabs): Define using libm_alias_double.
21408 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
21409 <libm-alias-double.h>.
21410 (lrint): Define using libm_alias_double.
21411 (llrint): Likewise.
21412 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
21413 <libm-alias-double.h>.
21414 (nearbyint): Define using libm_alias_double.
21415 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
21416 <libm-alias-double.h>.
21417 (rint): Define using libm_alias_double.
21418
21419 [BZ #22229]
21420 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
21421 <math_ldbl_opt.h>.
21422 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
21423
21424 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
21425 SPARC --disable-multi-arch glibc variants.
21426
21427 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
21428 <libm-alias-float.h>.
21429 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21430 if [SHARED].
21431 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
21432 <libm-alias-float.h>.
21433 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21434 if [SHARED].
21435 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
21436 <libm-alias-float.h>.
21437 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21438 if [SHARED].
21439 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
21440 <libm-alias-float.h>.
21441 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21442 if [SHARED].
21443 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
21444 <libm-alias-float.h>.
21445 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21446 if [SHARED].
21447 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
21448 <libm-alias-float.h>.
21449 (ceilf): Define using libm_alias_float.
21450 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
21451 <libm-alias-float.h>.
21452 (floorf): Define using libm_alias_float.
21453 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
21454 <libm-alias-float.h>.
21455 (fmaf): Define using libm_alias_float.
21456 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
21457 <libm-alias-float.h>.
21458 (nearbyintf): Define using libm_alias_float.
21459 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
21460 <libm-alias-float.h>.
21461 (rintf): Define using libm_alias_float.
21462 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
21463 <libm-alias-float.h>.
21464 (truncf): Define using libm_alias_float.
21465 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
21466 (copysignf): Define using libm_alias_float.
21467 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
21468 (cosf): Define using libm_alias_float.
21469 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
21470 (fabsf): Define using libm_alias_float.
21471 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21472 (fmaxf): Define using libm_alias_float.
21473 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
21474 (fminf): Define using libm_alias_float.
21475 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
21476 (llrintf): Define using libm_alias_float.
21477 [!__ILP32__] (lrintf): Likewise.
21478 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
21479 (sincosf): Define using libm_alias_float.
21480 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
21481 (sinf): Define using libm_alias_float.
21482 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
21483 (lrintf): Define using libm_alias_float.
21484
21485 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
21486 <libm-alias-double.h>.
21487 (atan): Define using libm_alias_double.
21488 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
21489 <libm-alias-double.h>.
21490 (ceil): Define using libm_alias_double.
21491 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
21492 <libm-alias-double.h>.
21493 (floor): Define using libm_alias_double.
21494 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
21495 <libm-alias-double.h>.
21496 (fma): Define using libm_alias_double.
21497 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
21498 <libm-alias-double.h>.
21499 (nearbyint): Define using libm_alias_double.
21500 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
21501 <libm-alias-double.h>.
21502 (rint): Define using libm_alias_double.
21503 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
21504 <libm-alias-double.h>.
21505 (sin): Define using libm_alias_double.
21506 (cos): Likewise.
21507 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
21508 <libm-alias-double.h>.
21509 (tan): Define using libm_alias_double.
21510 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
21511 <libm-alias-double.h>.
21512 (trunc): Define using libm_alias_double.
21513 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
21514 (copysign): Define using libm_alias_double.
21515 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
21516 (fabs): Define using libm_alias_double.
21517 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
21518 (fmax): Define using libm_alias_double.
21519 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
21520 (fmin): Define using libm_alias_double.
21521 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
21522 (llrint): Define using libm_alias_double.
21523 [!__ILP32__] (lrint): Likewise.
21524 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
21525 (lrint): Define using libm_alias_double.
21526
21527 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21528
21529 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21530 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
21531 objects.
21532 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
21533 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
21534 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
21535 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
21536 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
21537 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
21538
21539 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21540 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
21541 objects.
21542 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
21543 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
21544 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
21545 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
21546 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
21547 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
21548
21549 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21550 (libm-sysdep_routines): Add s_nearbyint-generic and
21551 s_nearbyintf-generic objects.
21552 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
21553 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
21554 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
21555 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
21556 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
21557 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
21558
21559 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21560 Add s_finitef-generic and s_finite-generic objects.
21561 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
21562 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
21563 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
21564 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
21565 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
21566 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
21567
21568 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21569 Add s_isinff-generic and s_isinf-generic objects.
21570 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
21571 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
21572 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
21573 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
21574 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
21575 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
21576
21577 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21578 Add s_isnanf-generic and s_isnan-generic objects.
21579 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
21580 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
21581 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
21582 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
21583 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
21584 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
21585
21586 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
21587 macro.
21588 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
21589 rule.
21590 (sysdep_routines): Use sysdep_calls as base.
21591 (libm-sysdep_routines): Add generic rule for symbols shared with
21592 libc. Add s_signbit-generic and s_signbitf-generic objects.
21593 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
21594 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
21595 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
21596 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
21597 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
21598 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
21599
21600 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21601
21602 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
21603 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
21604 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
21605 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
21606 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
21607 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
21608 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
21609 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
21610 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
21611 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
21612 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
21613 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
21614 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
21615 libm_alias_float_r.
21616 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
21617 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
21618 (logf): Likewise.
21619 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
21620 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
21621 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
21622 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
21623 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
21624 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
21625 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
21626 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
21627 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
21628 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
21629 libm_alias_float.
21630 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
21631 (cosf): Likewise.
21632 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
21633 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
21634 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
21635 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
21636 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
21637 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
21638 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
21639 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
21640 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
21641 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
21642 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
21643 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
21644 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
21645 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
21646 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
21647 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
21648 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
21649 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
21650 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
21651 libm_alias_float.
21652 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
21653 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
21654 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
21655 * sysdeps/ia64/fpu/w_lgammaf_main.c
21656 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
21657 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
21658
21659 2017-11-28 Mike FABIAN <mfabian@redhat.com>
21660 Alexandre Oliva <aoliva@redhat.com>
21661
21662 [BZ #17750]
21663 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
21664 * localedata/fr_CA.UTF-8.in: New file with test data for backward
21665 accents sorting.
21666 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
21667 sorting.
21668 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
21669 * localedata/locales/de_DE (LC_COLLATE): Likewise.
21670 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
21671 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
21672 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
21673 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
21674 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
21675 instead of “ifdef DIACRIT_BACKWARD”.
21676
21677 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21678
21679 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
21680 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
21681 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
21682 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
21683 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
21684 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
21685 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
21686 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
21687 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
21688 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
21689 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
21690 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
21691 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
21692 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
21693 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
21694 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
21695 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
21696 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
21697 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
21698 ($(have-as-vis3) == yes): Remove conditional.
21699 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
21700 Likewise.
21701 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
21702 file.
21703 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
21704 file.
21705 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
21706 file.
21707 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
21708 file.
21709 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
21710 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
21711 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
21712 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
21713 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
21714 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
21715 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
21716 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
21717
21718 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21719
21720 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
21721 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
21722 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
21723 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
21724 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
21725 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
21726 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
21727 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
21728 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
21729 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
21730 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
21731 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
21732 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
21733 libm_alias_double_r.
21734 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
21735 (log): Likewise.
21736 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
21737 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
21738 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
21739 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
21740 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
21741 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
21742 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
21743 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
21744 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
21745 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
21746 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
21747 libm_alias_double.
21748 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
21749 (cos): Likewise.
21750 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
21751 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
21752 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
21753 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
21754 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
21755 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
21756 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
21757 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
21758 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
21759 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
21760 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
21761 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
21762 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
21763 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
21764 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
21765 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
21766 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
21767 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
21768 libm_alias_double.
21769 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
21770 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
21771 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
21772 * sysdeps/ia64/fpu/w_lgamma_main.c
21773 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
21774 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
21775
21776 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
21777
21778 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
21779 address of $global$ into %dp register earlier. Use pc-relative
21780 instruction sequence for PIC case.
21781
21782 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21783
21784 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
21785 (asinhf): Define using libm_alias_float.
21786 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
21787 (atanf): Define using libm_alias_float.
21788 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
21789 (cbrtf): Define using libm_alias_float.
21790 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
21791 (ceilf): Define using libm_alias_float.
21792 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
21793 (copysignf): Define using libm_alias_float.
21794 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
21795 (expm1f): Define using libm_alias_float.
21796 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
21797 (fabsf): Define using libm_alias_float.
21798 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
21799 (floorf): Define using libm_alias_float.
21800 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21801 (fmaxf): Define using libm_alias_float.
21802 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
21803 (fminf): Define using libm_alias_float.
21804 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
21805 (frexpf): Define using libm_alias_float.
21806 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
21807 (llrintf): Define using libm_alias_float.
21808 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
21809 (logbf): Define using libm_alias_float.
21810 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
21811 (lrintf): Define using libm_alias_float.
21812 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
21813 (nearbyintf): Define using libm_alias_float.
21814 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
21815 (remquof): Define using libm_alias_float.
21816 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
21817 (rintf): Define using libm_alias_float.
21818 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
21819 (truncf): Define using libm_alias_float.
21820 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
21821 <libm-alias-float.h>.
21822 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21823 if [SHARED].
21824 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
21825 <libm-alias-float.h>.
21826 (expf): Define using libm_alias_float, or libm_alias_float_other
21827 if [SHARED].
21828 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
21829 <libm-alias-float.h>.
21830 (log2f): Define using libm_alias_float, or libm_alias_float_other
21831 if [SHARED].
21832 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
21833 <libm-alias-float.h>.
21834 (logf): Define using libm_alias_float, or libm_alias_float_other
21835 if [SHARED].
21836 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
21837 <libm-alias-float.h>.
21838 (powf): Define using libm_alias_float, or libm_alias_float_other
21839 if [SHARED].
21840 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
21841 <libm-alias-float.h>.
21842 (cosf): Define using libm_alias_float.
21843 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
21844 <libm-alias-float.h>.
21845 (sincosf): Define using libm_alias_float.
21846 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
21847 <libm-alias-float.h>.
21848 (sinf): Define using libm_alias_float.
21849 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21850 (fmaxf): Define using libm_alias_float.
21851 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
21852 (fminf): Define using libm_alias_float.
21853 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
21854 <libm-alias-float.h>.
21855 (fmaf): Define using libm_alias_float.
21856
21857 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
21858 (asinh): Define using libm_alias_double.
21859 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
21860 (atan): Define using libm_alias_double.
21861 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
21862 (cbrt): Define using libm_alias_double.
21863 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
21864 (ceil): Define using libm_alias_double.
21865 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
21866 (copysign): Define using libm_alias_double.
21867 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
21868 (expm1): Define using libm_alias_double.
21869 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
21870 (fabs): Define using libm_alias_double.
21871 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
21872 (fdim): Define using libm_alias_double.
21873 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
21874 (floor): Define using libm_alias_double.
21875 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
21876 (fmax): Define using libm_alias_double.
21877 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
21878 (fmin): Define using libm_alias_double.
21879 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
21880 (frexp): Define using libm_alias_double.
21881 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
21882 (llrint): Define using libm_alias_double.
21883 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
21884 (logb): Define using libm_alias_double.
21885 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
21886 (lrint): Define using libm_alias_double.
21887 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
21888 (nearbyint): Define using libm_alias_double.
21889 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
21890 (remquo): Define using libm_alias_double.
21891 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
21892 (rint): Define using libm_alias_double.
21893 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
21894 (trunc): Define using libm_alias_double.
21895 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
21896 (fmax): Define using libm_alias_double.
21897 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
21898 (fmin): Define using libm_alias_double.
21899 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
21900 (fma): Define using libm_alias_double.
21901
21902 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
21903
21904 [BZ #22370]
21905 * elf/dl-hwcaps.c (ROUND): Removed.
21906 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
21907 and ELF_NOTE_NEXT_OFFSET.
21908 * elf/dl-load.c (ROUND): Removed.
21909 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21910 * elf/readelflib.c (ROUND): Removed.
21911 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21912 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
21913 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
21914 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
21915
21916 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21917
21918 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
21919 [!__fmaf] (fmaf): Define using libm_alias_float.
21920
21921 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
21922 [!__fma] (fma): Define using libm_alias_double.
21923 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
21924
21925 2017-11-28 Mike FABIAN <mfabian@redhat.com>
21926
21927 [BZ #22336]
21928 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
21929 and implement the collation rules for cs from CLDR on top of that.
21930 * Makefile: Add cs_CZ.UTF-8 to test-input.
21931 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
21932
21933 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
21934
21935 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
21936
21937 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
21938 Icarus Sparry <icarus.w.sparry@intel.com>
21939
21940 * benchtests/Makefile:Add BENCHSET to allow subsets of
21941 benchmarks to be run.
21942 * benchtests/README: Add documentation for: Running subsets of
21943 benchmarks.
21944
21945 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
21946
21947 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
21948 range of tests names.
21949
21950 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
21951 result from property and remove "max", min" and "mean" from
21952 required properties based on benchtests/bench-skeleton.c.
21953
21954 2017-11-28 Florian Weimer <fweimer@redhat.com>
21955
21956 [BZ #20826]
21957 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
21958 due to Internet requirement.
21959 * posix/Makefile (tests): Remove tst-getaddrinfo4,
21960 tst-getaddrinfo5.
21961 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
21962
21963 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21964
21965 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21966 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
21967 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21968 (sysdep_routines): Add memset-ultra1.
21969 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
21970 file.
21971 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
21972 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
21973 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
21974 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
21975 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
21976 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
21977 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
21978 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
21979
21980 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
21981 file.
21982 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
21983 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
21984 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
21985 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
21986 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
21987 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
21988 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
21989 macro.
21990 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21991 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
21992 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21993 (sysdep_routines): Add memcpy-ultra1.
21994 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
21995 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
21996
21997 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21998
21999 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
22000 (cfloat_versions): Take function argument without trailing 'f'.
22001 Call libm_alias_float_other.
22002 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
22003 * sysdeps/alpha/fpu/cargf.c: Likewise.
22004 * sysdeps/alpha/fpu/cimagf.c: Likewise.
22005 * sysdeps/alpha/fpu/conjf.c: Likewise.
22006 * sysdeps/alpha/fpu/crealf.c: Likewise.
22007 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
22008 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
22009 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
22010 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
22011 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
22012 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
22013 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
22014 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
22015 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
22016 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
22017 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
22018 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
22019 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
22020 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
22021 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
22022 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
22023 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
22024 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
22025 (clog10f): Use libm_alias_float_other.
22026 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
22027 (ceilf): Define using libm_alias_float.
22028 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
22029 (copysignf): Define using libm_alias_float.
22030 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
22031 (fabsf): Define using libm_alias_float.
22032 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
22033 (floorf): Define using libm_alias_float.
22034 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
22035 (fmaxf): Define using libm_alias_float.
22036 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
22037 (fminf): Define using libm_alias_float.
22038 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
22039 (lrintf): Define using libm_alias_float.
22040 (llrintf): Likewise.
22041 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
22042 (lroundf): Define using libm_alias_float.
22043 (llroundf): Likewise.
22044 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
22045 (rintf): Define using libm_alias_float.
22046 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
22047 (truncf): Define using libm_alias_float.
22048
22049 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
22050 (ceilf): Define using libm_alias_float.
22051 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
22052 (floorf): Define using libm_alias_float.
22053 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
22054 (fmaf): Define using libm_alias_float.
22055 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
22056 (fmaxf): Define using libm_alias_float.
22057 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
22058 (fminf): Define using libm_alias_float.
22059 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
22060 (llrintf): Define using libm_alias_float.
22061 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
22062 (llroundf): Define using libm_alias_float.
22063 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
22064 (lrintf): Define using libm_alias_float.
22065 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
22066 (lroundf): Define using libm_alias_float.
22067 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
22068 <libm-alias-float.h>.
22069 (nearbyintf): Define using libm_alias_float.
22070 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
22071 (rintf): Define using libm_alias_float.
22072 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
22073 (roundf): Define using libm_alias_float.
22074 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
22075 (truncf): Define using libm_alias_float.
22076
22077 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
22078 (ceil): Define using libm_alias_double.
22079 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
22080 (copysign): Define using libm_alias_double.
22081 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
22082 (fabs): Define using libm_alias_double.
22083 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
22084 (floor): Define using libm_alias_double.
22085 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
22086 (fmax): Define using libm_alias_double.
22087 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
22088 (fmin): Define using libm_alias_double.
22089 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
22090 (lrint): Define using libm_alias_double.
22091 (llrint): Likewise.
22092 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
22093 (lround): Define using libm_alias_double.
22094 (llround): Likewise.
22095 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
22096 (rint): Define using libm_alias_double.
22097 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
22098 (trunc): Define using libm_alias_double.
22099
22100 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
22101 (libm_alias_double_r): Add semicolon after weak_alias call.
22102
22103 2017-11-27 Joseph Myers <joseph@codesourcery.com>
22104
22105 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
22106 (ceil): Define using libm_alias_double.
22107 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
22108 (floor): Define using libm_alias_double.
22109 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
22110 (fma): Define using libm_alias_double.
22111 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
22112 (fmax): Define using libm_alias_double.
22113 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
22114 (fmin): Define using libm_alias_double.
22115 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
22116 (llrint): Define using libm_alias_double.
22117 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
22118 (llround): Define using libm_alias_double.
22119 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
22120 (lrint): Define using libm_alias_double.
22121 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
22122 (lround): Define using libm_alias_double.
22123 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
22124 (nearbyint): Define using libm_alias_double.
22125 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
22126 (rint): Define using libm_alias_double.
22127 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
22128 (round): Define using libm_alias_double.
22129 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
22130 (trunc): Define using libm_alias_double.
22131
22132 2017-11-27 Florian Weimer <fweimer@redhat.com>
22133
22134 * sysdeps/unix/sysv/linux/mlock2.c: New file.
22135 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
22136 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
22137 (tests): Add tst-mlock2.
22138 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
22139 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
22140 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
22141 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
22142 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
22143 for mlock. Document mlock2.
22144
22145 2017-11-27 Joseph Myers <joseph@codesourcery.com>
22146
22147 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
22148 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
22149 Likewise.
22150 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
22151 Likewise.
22152 * sysdeps/x86/Makeconfig: New file.
22153 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
22154 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22155 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
22156 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22157 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
22158 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22159 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
22160 Likewise.
22161 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22162 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
22163 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22164 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
22165 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22166 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
22167 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22168 * manual/math.texi (Mathematics): Document support for _Float64x.
22169 * math/Versions (GLIBC_2.27): Add _Float64x functions.
22170 * stdlib/Versions (GLIBC_2.27): Likewise.
22171 * wcsmbs/Versions (GLIBC_2.27): Likewise.
22172 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
22173 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
22174 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
22175 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
22176 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
22177 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
22178 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
22179 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
22180 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
22181 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
22182 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
22183 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
22184 Likewise.
22185 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
22186 Likewise.
22187 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
22188 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
22189 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
22190 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
22191 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
22192 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
22193 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
22194 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
22195 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
22196 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
22197 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
22198 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
22199 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
22200 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
22201
22202 2017-11-27 Andreas Schwab <schwab@suse.de>
22203
22204 * elf/Makefile (dl-routines): Add dl-sort-maps.
22205 * elf/dl-sort-maps.c: New file.
22206 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
22207 (_dl_sort_maps): Declare.
22208 * elf/dl-fini.c (_dl_sort_fini): Remove.
22209 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
22210 * elf/dl-close.c (_dl_close_worker): Likewise.
22211 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
22212 open-coding it.
22213 * elf/dl-open.c (dl_open_worker): Likewise.
22214
22215 2017-11-24 Joseph Myers <joseph@codesourcery.com>
22216
22217 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
22218 using libm_alias_float128.
22219 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
22220 Likewise.
22221 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
22222 Likewise.
22223 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
22224 (setpayloadsigf128): Likewise.
22225 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
22226 Likewise.
22227 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
22228 Likewise.
22229
22230 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
22231 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
22232 -mfloat128 to CFLAGS.
22233 ($(foreach
22234 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
22235 Likewise.
22236 (CFLAGS-libm-test-support-float64x.c): New variable.
22237 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
22238 $(f128-loader-link) to gnulib-tests.
22239
22240 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
22241 (libm_alias_float128_other_r): If
22242 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
22243 alias.
22244 (libm_alias_float128_r): Add semicolon after weak_alias call.
22245 * sysdeps/generic/libm-alias-ldouble.h
22246 (libm_alias_ldouble_other_r_f128): New macro.
22247 (libm_alias_ldouble_other_r_f64x): Likewise.
22248 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
22249 and libm_alias_ldouble_other_r_f64x.
22250 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
22251 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
22252 (libm_alias_ldouble_other_r_f128): New macro.
22253 (libm_alias_ldouble_other_r_f64x): Likewise.
22254 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
22255 and libm_alias_ldouble_other_r_f64x.
22256
22257 * stdlib/strfroml.c: Always include <stdlib.h>.
22258 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
22259 undefine as macro and define as weak alias.
22260 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
22261 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
22262 <stdlib.h>.
22263 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
22264 Define and later undefine as macro and define as weak alias.
22265
22266 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
22267 Define and later undefine as macro. Define as weak alias if
22268 [!USE_WIDE_CHAR].
22269 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
22270 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
22271 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
22272 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
22273 Define and later undefine as macro. Define as weak alias if
22274 [!USE_WIDE_CHAR].
22275 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
22276 Define and later undefine as macro. Define as weak alias if
22277 [USE_WIDE_CHAR].
22278 * sysdeps/ieee754/float128/strtof128_l.c
22279 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
22280 Define and later undefine as macro. Define as weak alias if
22281 [!USE_WIDE_CHAR].
22282 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
22283 Define and later undefine as macro. Define as weak alias if
22284 [USE_WIDE_CHAR].
22285 * sysdeps/ieee754/ldbl-128/strtold_l.c
22286 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
22287 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
22288 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
22289 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
22290 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
22291 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
22292 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
22293 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
22294 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
22295 * sysdeps/ieee754/ldbl-96/strtold_l.c
22296 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
22297 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
22298 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
22299 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
22300
22301 * math/test-float64x.h: New file.
22302 * math/Makefile (type-float64x-yes): New variable.
22303 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
22304
22305 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
22306 function-like macro.
22307 (min_of_type_): Likewise.
22308 (min_of_type_l): Likewise.
22309 (min_of_type_f128): Likewise.
22310 (min_of_type): Pass () as last argument of __MATH_TG.
22311
22312 * stdlib/tst-strtod-round-skeleton.c
22313 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
22314 headers.
22315
22316 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
22317 for combinations of long double with _Float64 and _Float64x.
22318
22319 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
22320 (__DECL_SIMD_cosf32): Likewise.
22321 (__DECL_SIMD_cosf64): Likewise.
22322 (__DECL_SIMD_cosf32x): Likewise.
22323 (__DECL_SIMD_cosf64x): Likewise.
22324 (__DECL_SIMD_cosf128x): Likewise.
22325 (__DECL_SIMD_sinf16): Likewise.
22326 (__DECL_SIMD_sinf32): Likewise.
22327 (__DECL_SIMD_sinf64): Likewise.
22328 (__DECL_SIMD_sinf32x): Likewise.
22329 (__DECL_SIMD_sinf64x): Likewise.
22330 (__DECL_SIMD_sinf128x): Likewise.
22331 (__DECL_SIMD_sincosf16): Likewise.
22332 (__DECL_SIMD_sincosf32): Likewise.
22333 (__DECL_SIMD_sincosf64): Likewise.
22334 (__DECL_SIMD_sincosf32x): Likewise.
22335 (__DECL_SIMD_sincosf64x): Likewise.
22336 (__DECL_SIMD_sincosf128x): Likewise.
22337 (__DECL_SIMD_logf16): Likewise.
22338 (__DECL_SIMD_logf32): Likewise.
22339 (__DECL_SIMD_logf64): Likewise.
22340 (__DECL_SIMD_logf32x): Likewise.
22341 (__DECL_SIMD_logf64x): Likewise.
22342 (__DECL_SIMD_logf128x): Likewise.
22343 (__DECL_SIMD_expf16): Likewise.
22344 (__DECL_SIMD_expf32): Likewise.
22345 (__DECL_SIMD_expf64): Likewise.
22346 (__DECL_SIMD_expf32x): Likewise.
22347 (__DECL_SIMD_expf64x): Likewise.
22348 (__DECL_SIMD_expf128x): Likewise.
22349 (__DECL_SIMD_powf16): Likewise.
22350 (__DECL_SIMD_powf32): Likewise.
22351 (__DECL_SIMD_powf64): Likewise.
22352 (__DECL_SIMD_powf32x): Likewise.
22353 (__DECL_SIMD_powf64x): Likewise.
22354 (__DECL_SIMD_powf128x): Likewise.
22355
22356 * stdlib/Versions (libc): Move entries for wcstof128 and
22357 wcstof128_l to ....
22358 * wcsmbs/Versions (libc): ... here.
22359 Include <float128-abi.h>.
22360
22361 2017-11-24 Florian Weimer <fweimer@redhat.com>
22362
22363 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
22364 bits/mman-shared.h.
22365 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
22366 <bits/mman-shared.h>.
22367 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
22368 to ...
22369 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
22370 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
22371 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
22372 <bits/mman-shared.h>.
22373
22374 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22375
22376 [BZ #22457]
22377 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
22378 posix_memalign/free.
22379 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
22380
22381 2017-11-22 Mike FABIAN <mfabian@redhat.com>
22382
22383 [BZ #22469]
22384 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
22385 and implement the collation rules for pl from CLDR on top of that.
22386 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
22387 of locales to be built for testing.
22388 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
22389
22390 2017-11-23 Joseph Myers <joseph@codesourcery.com>
22391
22392 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
22393 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
22394 libm_alias_ldouble_other.
22395 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
22396 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
22397 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
22398 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
22399 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
22400 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
22401 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
22402 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
22403 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
22404 libm_alias_ldouble_r.
22405 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
22406 libm_alias_ldouble_other.
22407 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
22408 (log10l): Likewise.
22409 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
22410 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
22411 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
22412 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
22413 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
22414 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
22415 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
22416 (atan2l): Likewise.
22417 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
22418 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
22419 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
22420 libm_alias_ldouble.
22421 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
22422 (cosl): Likewise.
22423 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
22424 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
22425 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
22426 (expl): Likewise.
22427 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
22428 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
22429 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
22430 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
22431 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
22432 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
22433 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
22434 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
22435 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
22436 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
22437 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
22438 libm_alias_ldouble.
22439 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
22440 libm_alias_ldouble_other.
22441 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
22442 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
22443 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
22444 libm_alias_ldouble.
22445 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
22446 libm_alias_ldouble_other.
22447 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
22448 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
22449 * sysdeps/ia64/fpu/w_lgammal_main.c
22450 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
22451 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
22452
22453 2017-11-23 Florian Weimer <fweimer@redhat.com>
22454
22455 * malloc/malloc.c (tcache_thread_shutdown): Rename from
22456 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
22457 alike. Remove freeres marker.
22458 * malloc/arena.c (arena_thread_freeres): Call
22459 tcache_thread_shutdown.
22460
22461 2017-11-23 Florian Weimer <fweimer@redhat.com>
22462
22463 [BZ #22459]
22464 Export nscd hash function as __nss_hash.
22465 * include/nss.h (__nss_hash): Declare.
22466 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
22467 symbol.
22468 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
22469 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
22470 of __nscd_hash.
22471 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
22472 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
22473 * nss/Makefiles (routines): Add nss_hash.
22474 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
22475 * nss/nss_hash.c: Rename from nis/nis_hash.c.
22476 (__nss_hash): Rename from __nis_hash. Define hidden alias.
22477 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
22478
22479 2017-11-23 Florian Weimer <fweimer@redhat.com>
22480
22481 [BZ #22478]
22482 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
22483 Return error code, not -1.
22484 * signal/tst-sigwait-eintr.c: New file.
22485 * signal/Makefile (tests): Add tst-sigwait-eintr.
22486
22487 2017-11-23 Florian Weimer <fweimer@redhat.com>
22488
22489 Linux: Add memfd_create system call wrapper
22490 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
22491 tst-memfd_create.
22492 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
22493 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
22494 [__USE_GNU] (memfd_create): Declare.
22495 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
22496 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
22497 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
22498 * sysdeps/unix/sysv/linux/**.abilist: Update.
22499 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
22500
22501 2017-11-22 Joseph Myers <joseph@codesourcery.com>
22502
22503 * localedata/gen-locale.sh: Fix typo in variable name.
22504
22505 * resolv/res_debug.c (p_secstodate): Condition definition on
22506 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
22507 directly as __p_secstodate, and as a compat symbol. Do not use
22508 libresolv_hidden_def.
22509 * resolv/resolv.h (p_secstodate): Remove macro and function
22510 declaration.
22511 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
22512 using p_secstodate.
22513 * include/resolv.h (__p_secstodate): Do not use
22514 libresolv_hidden_proto.
22515 * resolv/Makefile (tests): Move tst-p_secstodate to ....
22516 (tests-internal): ... here.
22517 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
22518 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
22519 and declare and use __p_secstodate and use compat_symbol_reference
22520 in that case.
22521 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
22522 implementation returning 77.
22523
22524 [BZ #22463]
22525 * resolv/res_debug.c: Include <libc-diag.h>.
22526 (p_secstodate): Assert time_t at least as wide as u_long. On
22527 overflow, use integer seconds since the epoch as output, or use
22528 "<overflow>" as output and set errno to EOVERFLOW if integer
22529 seconds since the epoch would be 14 or more characters.
22530 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
22531 for sprintf call.
22532 * resolv/tst-p_secstodate.c: New file.
22533 * resolv/Makefile (tests): Add tst-p_secstodate.
22534 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
22535
22536 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
22537 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
22538 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
22539
22540 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
22541
22542 * posix/regcomp.c (init_word_char): Add comments.
22543
22544 2017-11-22 Joseph Myers <joseph@codesourcery.com>
22545
22546 [BZ #22447]
22547 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
22548 strlen to compute length of ut_user and set trailing NUL byte of
22549 result explicitly.
22550
22551 2017-11-21 Mike FABIAN <mfabian@redhat.com>
22552
22553 [BZ #15537]
22554 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
22555 using “copy "iso14651_t1"” and then implementing the
22556 collation rules for lv from CLDR on top of that.
22557 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
22558 of locales to be built for testing.
22559 * lv_LV.UTF-8.in: New file with test data to test the Latvian
22560 sorting.
22561
22562 2017-11-21 Joseph Myers <joseph@codesourcery.com>
22563
22564 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
22565 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
22566 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
22567 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
22568 [__USE_MISC] (MADV_HWPOISON): New macro.
22569 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
22570
22571 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22572
22573 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
22574 -Wmissing-braces on GCC 4.9.
22575
22576 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
22577
22578 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
22579 * sysdeps/s390/s390-32/start.S (_start): Likewise
22580 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
22581 (thread_start): Likewise.
22582 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
22583 (thread_start): Likewise.
22584 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
22585 (__makecontext_ret): Likewise.
22586 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
22587 (__makecontext_ret): Likewise.
22588
22589 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
22590
22591 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
22592 __wcschrnul): Remove attribute_hidden.
22593
22594 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
22595
22596 regex: don't assume uint64_t or uint32_t
22597 This avoids -Werror=overflow errors for 32-bit systems in
22598 the 64-bit case. Problem reported by Joseph Myers in:
22599 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
22600 Also, when this code is used in Gnulib it ports to platforms
22601 that lack uint64_t and uint32_t. The C standard doesn't guarantee
22602 them, and on some 32-bit compilers there is no uint64_t.
22603 Problem reported by Gianluigi Tiesi in:
22604 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
22605 * posix/regcomp.c (init_word_char): Don't assume that the types
22606 uint64_t and uint32_t exist. Adapted from Gnulib patch
22607 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
22608 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
22609
22610 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
22611
22612 * sysdeps/aarch64/memset-reg.h: New file.
22613 * sysdeps/aarch64/memset.S: Use it.
22614 (__memset): Rename to MEMSET macro.
22615 [ZVA_MACRO]: Use zva_macro.
22616 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
22617 Add memset_generic and memset_falkor.
22618 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
22619 (__libc_ifunc_impl_list): Add memset ifuncs.
22620 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
22621 local variable zva_size.
22622 * sysdeps/aarch64/multiarch/memset.c: New file.
22623 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
22624 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
22625 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
22626 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
22627 (DCZID_DZP_MASK): New macro.
22628 (DCZID_BS_MASK): Likewise.
22629 (init_cpu_features): Read and set zva_size.
22630 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
22631 (struct cpu_features): New member zva_size.
22632
22633 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
22634 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
22635 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
22636
22637 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
22638 backwards. Fix timing computation.
22639 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
22640 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
22641 on memset by N at a time. Fix timing computation.
22642
22643 2017-11-20 Florian Weimer <fweimer@redhat.com>
22644
22645 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
22646 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
22647
22648 2017-11-19 Florian Weimer <fweimer@redhat.com>
22649
22650 manual: Document mprotect
22651 * manual/memory.texi (Memory Protection): New section.
22652 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
22653 documentation of PROT_* flags and reference the Memory Protection
22654 section instead.
22655
22656 2017-11-19 Florian Weimer <fweimer@redhat.com>
22657
22658 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
22659 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
22660 (Scatter-Gather): ... to here. Remove misleading comment.
22661
22662 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
22663
22664 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
22665 style.
22666
22667 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
22668 when /proc/<pid>/setgroups does not exist.
22669
22670 2017-11-18 Florian Weimer <fweimer@redhat.com>
22671
22672 * sysdeps/unix/sysv/linux/tst-ttyname.c
22673 (become_root_in_mount_ns): Remove.
22674 (do_in_chroot_1): Call support_enter_mount_namespace.
22675 (do_in_chroot_2): Likewise.
22676 (do_test): Call support_become_root early.
22677
22678 2017-11-18 Florian Weimer <fweimer@redhat.com>
22679
22680 * support/namespace.h (support_enter_mount_namespace): Declare.
22681 * support/support_enter_mount_namespace.c: New file.
22682 * support/Makefile (libsupport-routines): Add
22683 support_enter_mount_namespace.
22684
22685 2017-11-18 Florian Weimer <fweimer@redhat.com>
22686
22687 * support/temp_file.c (support_create_temp_directory): Use
22688 test_dir and do not rely on the presence of the XXXXXX suffix.
22689 * support/temp_file.h (support_create_temp_directory): Update
22690 comment.
22691 * support/tst-xreadlink.c (do_test): Adjust.
22692 * support/support_chroot.c (support_chroot_create): Likewise.
22693
22694 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22695
22696 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
22697 macro.
22698 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
22699 htm-no-suspend.
22700
22701 2017-11-17 Joseph Myers <joseph@codesourcery.com>
22702
22703 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
22704 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
22705 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
22706 (ceill): Define using libm_alias_ldouble.
22707 * sysdeps/x86_64/fpu/s_copysignl.S: Include
22708 <libm-alias-ldouble.h>.
22709 (copysignl): Define using libm_alias_ldouble.
22710 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
22711 (fabsl): Define using libm_alias_ldouble.
22712 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
22713 (floorl): Define using libm_alias_ldouble.
22714 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22715 (fmaxl): Define using libm_alias_ldouble.
22716 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22717 (fminl): Define using libm_alias_ldouble.
22718 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
22719 (llrintl): Define using libm_alias_ldouble.
22720 (lrintl): Likewise.
22721 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
22722 <libm-alias-ldouble.h>.
22723 (nearbyintl): Define using libm_alias_ldouble.
22724 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
22725 (truncl): Define using libm_alias_ldouble.
22726 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
22727 <libm-alias-ldouble.h>.
22728 (lrintl): Define using libm_alias_ldouble.
22729
22730 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
22731 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
22732 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
22733 (asinhl): Define using libm_alias_ldouble.
22734 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
22735 (atanl): Define using libm_alias_ldouble.
22736 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
22737 (cbrtl): Define using libm_alias_ldouble.
22738 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
22739 (ceill): Define using libm_alias_ldouble.
22740 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
22741 (copysignl): Define using libm_alias_ldouble.
22742 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
22743 (fabsl): Define using libm_alias_ldouble.
22744 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
22745 (floorl): Define using libm_alias_ldouble.
22746 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22747 (fmaxl): Define using libm_alias_ldouble.
22748 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22749 (fminl): Define using libm_alias_ldouble.
22750 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
22751 (frexpl): Define using libm_alias_ldouble.
22752 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
22753 (llrintl): Define using libm_alias_ldouble.
22754 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
22755 (logbl): Define using libm_alias_ldouble.
22756 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
22757 (lrintl): Define using libm_alias_ldouble.
22758 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
22759 (nearbyintl): Define using libm_alias_ldouble.
22760 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
22761 (nextafterl): Define using libm_alias_ldouble.
22762 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
22763 (remquol): Define using libm_alias_ldouble.
22764 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
22765 (rintl): Define using libm_alias_ldouble.
22766 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
22767 (truncl): Define using libm_alias_ldouble.
22768 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22769 (fmaxl): Define using libm_alias_ldouble.
22770 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22771 (fminl): Define using libm_alias_ldouble.
22772
22773 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
22774 to C syntax instead of availability and properties of types.
22775 * bits/floatn.h [!__ASSEMBLER]: Likewise.
22776 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
22777 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
22778 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
22779 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
22780 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
22781
22782 2017-11-17 Florian Weimer <fweimer@redhat.com>
22783
22784 support_become_root: Enable file creation in namespaces.
22785 * support/support_become_root.c (setup_mapping): New function.
22786 (support_become_root): Call it.
22787
22788 2017-11-17 Joseph Myers <joseph@codesourcery.com>
22789
22790 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
22791 macro.
22792
22793 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22794
22795 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
22796 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
22797
22798 2017-11-16 Joseph Myers <joseph@codesourcery.com>
22799
22800 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
22801
22802 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
22803 version to 4.14.
22804
22805 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
22806
22807 * INSTALL: Fix botched up regeneration.
22808
22809 * NEWS: Update sourceare link to https.
22810 * configure.ac: Likewise.
22811 * crypt/md5test-giant.c: Likewise.
22812 * dlfcn/bug-atexit1.c: Likewise.
22813 * dlfcn/bug-atexit2.c: Likewise.
22814 * localedata/README: Likewise.
22815 * malloc/tst-mallocfork.c: Likewise.
22816 * manual/install.texi: Likewise.
22817 * nptl/tst-pthread-getattr.c: Likewise.
22818 * stdio-common/tst-fgets.c: Likewise.
22819 * stdio-common/tst-fwrite.c: Likewise.
22820 * sunrpc/Makefile: Likewise.
22821 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
22822 * wcsmbs/tst-mbrtowc2.c: Likewise.
22823 * configure: Regenerate.
22824 * INSTALL: Regenerate.
22825
22826 2017-11-15 Martin Sebor <msebor@redhat.com>
22827
22828 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
22829 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
22830 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
22831
22832 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
22833
22834 [BZ #22145]
22835 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
22836 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
22837
22838 [BZ #22145]
22839 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
22840 Defer is_pty check until end of the function.
22841 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
22842
22843 [BZ #22145]
22844 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
22845 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
22846 (ttyname): Likewise.
22847 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
22848 (__ttyname_r): Likewise.
22849
22850 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
22851 int to bool.
22852
22853 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
22854
22855 * manual/terminal.texi (Is It a Terminal):
22856 Mention ENODEV for ttyname and ttyname_r.
22857
22858 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22859
22860 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
22861 constant and macro.
22862
22863 * sysdeps/unix/sysv/linux/bits/mman-linux.h
22864 [__USE_MISC] (MADV_WIPEONFORK): New macro.
22865 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22866 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
22867 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
22868 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22869
22870 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22871
22872 * signal/sigrelse.c (sigrelse): Optimize implementation.
22873
22874 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
22875 (__sigpause): Rely on __sigsuspend to implement single thread
22876 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
22877
22878 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22879
22880 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
22881 kernel version to 4.14.
22882
22883 2017-11-15 Steve Ellcey <sellcey@cavium.com>
22884
22885 [BZ #22442]
22886 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
22887 Check if ifname is too long.
22888
22889 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
22890
22891 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
22892
22893 2017-11-15 Mike FABIAN <mfabian@redhat.com>
22894
22895 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
22896 was accidentally lost.
22897
22898 2017-11-15 Mike FABIAN <mfabian@redhat.com>
22899
22900 * localedata/locales/az_IR: Add standard copyright header.
22901
22902 2017-11-15 Florian Weimer <fweimer@redhat.com>
22903
22904 [BZ #22439]
22905 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
22906 not just the top one. Output a new "subheaps" statistic.
22907
22908 2017-11-15 Florian Weimer <fweimer@redhat.com>
22909
22910 [BZ #22408]
22911 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
22912 under the per-arena lock.
22913 * malloc/Makefile (tests): Add tst-malloc_info.
22914 (tst-malloc_info): Link with libpthread.
22915 * malloc/tst-malloc_info.c: New file.
22916
22917 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22918
22919 [BZ #21660]
22920 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
22921 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
22922 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
22923 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
22924 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
22925 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
22926 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
22927 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
22928 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
22929 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
22930 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
22931 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
22932 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
22933 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
22934 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
22935 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
22936 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
22937 (__floating_type): Likewise.
22938 (__real_integer_type): Likewise.
22939 (__complex_integer_type): Likewise.
22940 (__expr_is_real): Likewise.
22941 (__tgmath_real_type_sub): Likewise.
22942 (__tgmath_real_type): Likewise.
22943 (__tgmath_complex_type_sub): Likewise.
22944 (__tgmath_complex_type): Likewise.
22945 (__TGMATH_F128): Likewise.
22946 (__TGMATH_CF128): Likewise.
22947 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
22948 new macros.
22949 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
22950 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
22951 Likewise.
22952 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
22953 Likewise.
22954 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
22955 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
22956 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
22957 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
22958 Likewise.
22959 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
22960 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
22961 Likewise.
22962 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
22963 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
22964 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
22965 Likewise.
22966 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
22967 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
22968 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
22969 (cimag): Likewise.
22970 (creal): Likewise.
22971
22972 2017-11-14 Joseph Myers <joseph@codesourcery.com>
22973
22974 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
22975 for stpncpy calls for GCC 8.
22976 (test_strncat): Disable -Wstringop-truncation warning for strncat
22977 calls for GCC 8. Disable -Wstringop-overflow= warning for one
22978 strncat call for GCC 7.
22979 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
22980 calls for GCC 8.
22981 (test_memcmp): Use memcpy instead of strncpy for calls not copying
22982 trailing NUL.
22983
22984 * string/bug-strncat1.c: Include <libc-diag.h>.
22985 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
22986
22987 2017-11-13 Claude Paroz <claude@2xlibre.net>
22988
22989 [BZ #22387]
22990 * localedata/locales/aa_DJ: Improved readibility by replacing
22991 <Uxxxx> sequences in the ASCII printable range by their ASCII
22992 character equivalents.
22993 * localedata/locales/aa_ER: Likewise.
22994 * localedata/locales/aa_ER@saaho: Likewise.
22995 * localedata/locales/aa_ET: Likewise.
22996 * localedata/locales/af_ZA: Likewise.
22997 * localedata/locales/agr_PE: Likewise.
22998 * localedata/locales/ak_GH: Likewise.
22999 * localedata/locales/am_ET: Likewise.
23000 * localedata/locales/anp_IN: Likewise.
23001 * localedata/locales/ar_AE: Likewise.
23002 * localedata/locales/ar_BH: Likewise.
23003 * localedata/locales/ar_DZ: Likewise.
23004 * localedata/locales/ar_EG: Likewise.
23005 * localedata/locales/ar_IN: Likewise.
23006 * localedata/locales/ar_IQ: Likewise.
23007 * localedata/locales/ar_JO: Likewise.
23008 * localedata/locales/ar_KW: Likewise.
23009 * localedata/locales/ar_LB: Likewise.
23010 * localedata/locales/ar_LY: Likewise.
23011 * localedata/locales/ar_MA: Likewise.
23012 * localedata/locales/ar_OM: Likewise.
23013 * localedata/locales/ar_QA: Likewise.
23014 * localedata/locales/ar_SA: Likewise.
23015 * localedata/locales/ar_SD: Likewise.
23016 * localedata/locales/ar_SS: Likewise.
23017 * localedata/locales/ar_SY: Likewise.
23018 * localedata/locales/ar_TN: Likewise.
23019 * localedata/locales/ar_YE: Likewise.
23020 * localedata/locales/as_IN: Likewise.
23021 * localedata/locales/ast_ES: Likewise.
23022 * localedata/locales/ayc_PE: Likewise.
23023 * localedata/locales/az_AZ: Likewise.
23024 * localedata/locales/az_IR: Likewise.
23025 * localedata/locales/be_BY: Likewise.
23026 * localedata/locales/be_BY@latin: Likewise.
23027 * localedata/locales/bem_ZM: Likewise.
23028 * localedata/locales/ber_DZ: Likewise.
23029 * localedata/locales/ber_MA: Likewise.
23030 * localedata/locales/bg_BG: Likewise.
23031 * localedata/locales/bhb_IN: Likewise.
23032 * localedata/locales/bho_IN: Likewise.
23033 * localedata/locales/bi_VU: Likewise.
23034 * localedata/locales/bn_BD: Likewise.
23035 * localedata/locales/bn_IN: Likewise.
23036 * localedata/locales/bo_CN: Likewise.
23037 * localedata/locales/bo_IN: Likewise.
23038 * localedata/locales/br_FR: Likewise.
23039 * localedata/locales/brx_IN: Likewise.
23040 * localedata/locales/bs_BA: Likewise.
23041 * localedata/locales/byn_ER: Likewise.
23042 * localedata/locales/ca_AD: Likewise.
23043 * localedata/locales/ca_ES: Likewise.
23044 * localedata/locales/ca_FR: Likewise.
23045 * localedata/locales/ca_IT: Likewise.
23046 * localedata/locales/ce_RU: Likewise.
23047 * localedata/locales/chr_US: Likewise.
23048 * localedata/locales/cmn_TW: Likewise.
23049 * localedata/locales/crh_UA: Likewise.
23050 * localedata/locales/cs_CZ: Likewise.
23051 * localedata/locales/csb_PL: Likewise.
23052 * localedata/locales/cv_RU: Likewise.
23053 * localedata/locales/cy_GB: Likewise.
23054 * localedata/locales/da_DK: Likewise.
23055 * localedata/locales/de_AT: Likewise.
23056 * localedata/locales/de_BE: Likewise.
23057 * localedata/locales/de_CH: Likewise.
23058 * localedata/locales/de_DE: Likewise.
23059 * localedata/locales/de_IT: Likewise.
23060 * localedata/locales/de_LI: Likewise.
23061 * localedata/locales/de_LU: Likewise.
23062 * localedata/locales/doi_IN: Likewise.
23063 * localedata/locales/dv_MV: Likewise.
23064 * localedata/locales/dz_BT: Likewise.
23065 * localedata/locales/el_CY: Likewise.
23066 * localedata/locales/el_GR: Likewise.
23067 * localedata/locales/en_AG: Likewise.
23068 * localedata/locales/en_AU: Likewise.
23069 * localedata/locales/en_BW: Likewise.
23070 * localedata/locales/en_CA: Likewise.
23071 * localedata/locales/en_DK: Likewise.
23072 * localedata/locales/en_GB: Likewise.
23073 * localedata/locales/en_HK: Likewise.
23074 * localedata/locales/en_IE: Likewise.
23075 * localedata/locales/en_IL: Likewise.
23076 * localedata/locales/en_IN: Likewise.
23077 * localedata/locales/en_NG: Likewise.
23078 * localedata/locales/en_NZ: Likewise.
23079 * localedata/locales/en_PH: Likewise.
23080 * localedata/locales/en_SG: Likewise.
23081 * localedata/locales/en_US: Likewise.
23082 * localedata/locales/en_ZA: Likewise.
23083 * localedata/locales/en_ZM: Likewise.
23084 * localedata/locales/en_ZW: Likewise.
23085 * localedata/locales/eo: Likewise.
23086 * localedata/locales/es_AR: Likewise.
23087 * localedata/locales/es_BO: Likewise.
23088 * localedata/locales/es_CL: Likewise.
23089 * localedata/locales/es_CO: Likewise.
23090 * localedata/locales/es_CR: Likewise.
23091 * localedata/locales/es_CU: Likewise.
23092 * localedata/locales/es_DO: Likewise.
23093 * localedata/locales/es_EC: Likewise.
23094 * localedata/locales/es_ES: Likewise.
23095 * localedata/locales/es_GT: Likewise.
23096 * localedata/locales/es_HN: Likewise.
23097 * localedata/locales/es_MX: Likewise.
23098 * localedata/locales/es_NI: Likewise.
23099 * localedata/locales/es_PA: Likewise.
23100 * localedata/locales/es_PE: Likewise.
23101 * localedata/locales/es_PR: Likewise.
23102 * localedata/locales/es_PY: Likewise.
23103 * localedata/locales/es_SV: Likewise.
23104 * localedata/locales/es_US: Likewise.
23105 * localedata/locales/es_UY: Likewise.
23106 * localedata/locales/es_VE: Likewise.
23107 * localedata/locales/et_EE: Likewise.
23108 * localedata/locales/eu_ES: Likewise.
23109 * localedata/locales/eu_ES@euro: Likewise.
23110 * localedata/locales/fa_IR: Likewise.
23111 * localedata/locales/ff_SN: Likewise.
23112 * localedata/locales/fi_FI: Likewise.
23113 * localedata/locales/fil_PH: Likewise.
23114 * localedata/locales/fo_FO: Likewise.
23115 * localedata/locales/fr_BE: Likewise.
23116 * localedata/locales/fr_CA: Likewise.
23117 * localedata/locales/fr_CH: Likewise.
23118 * localedata/locales/fr_FR: Likewise.
23119 * localedata/locales/fr_LU: Likewise.
23120 * localedata/locales/fur_IT: Likewise.
23121 * localedata/locales/fy_DE: Likewise.
23122 * localedata/locales/fy_NL: Likewise.
23123 * localedata/locales/ga_IE: Likewise.
23124 * localedata/locales/gd_GB: Likewise.
23125 * localedata/locales/gez_ER: Likewise.
23126 * localedata/locales/gez_ET: Likewise.
23127 * localedata/locales/gl_ES: Likewise.
23128 * localedata/locales/gu_IN: Likewise.
23129 * localedata/locales/gv_GB: Likewise.
23130 * localedata/locales/ha_NG: Likewise.
23131 * localedata/locales/hak_TW: Likewise.
23132 * localedata/locales/he_IL: Likewise.
23133 * localedata/locales/hi_IN: Likewise.
23134 * localedata/locales/hif_FJ: Likewise.
23135 * localedata/locales/hne_IN: Likewise.
23136 * localedata/locales/hr_HR: Likewise.
23137 * localedata/locales/hsb_DE: Likewise.
23138 * localedata/locales/ht_HT: Likewise.
23139 * localedata/locales/hu_HU: Likewise.
23140 * localedata/locales/hy_AM: Likewise.
23141 * localedata/locales/i18n: Likewise.
23142 * localedata/locales/ia_FR: Likewise.
23143 * localedata/locales/id_ID: Likewise.
23144 * localedata/locales/ig_NG: Likewise.
23145 * localedata/locales/ik_CA: Likewise.
23146 * localedata/locales/is_IS: Likewise.
23147 * localedata/locales/it_CH: Likewise.
23148 * localedata/locales/it_IT: Likewise.
23149 * localedata/locales/iu_CA: Likewise.
23150 * localedata/locales/ja_JP: Likewise.
23151 * localedata/locales/ka_GE: Likewise.
23152 * localedata/locales/kk_KZ: Likewise.
23153 * localedata/locales/kl_GL: Likewise.
23154 * localedata/locales/kn_IN: Likewise.
23155 * localedata/locales/ko_KR: Likewise.
23156 * localedata/locales/kok_IN: Likewise.
23157 * localedata/locales/ks_IN: Likewise.
23158 * localedata/locales/ks_IN@devanagari: Likewise.
23159 * localedata/locales/ku_TR: Likewise.
23160 * localedata/locales/kw_GB: Likewise.
23161 * localedata/locales/ky_KG: Likewise.
23162 * localedata/locales/lb_LU: Likewise.
23163 * localedata/locales/lg_UG: Likewise.
23164 * localedata/locales/li_BE: Likewise.
23165 * localedata/locales/li_NL: Likewise.
23166 * localedata/locales/lij_IT: Likewise.
23167 * localedata/locales/ln_CD: Likewise.
23168 * localedata/locales/lo_LA: Likewise.
23169 * localedata/locales/lt_LT: Likewise.
23170 * localedata/locales/lv_LV: Likewise.
23171 * localedata/locales/lzh_TW: Likewise.
23172 * localedata/locales/mag_IN: Likewise.
23173 * localedata/locales/mai_IN: Likewise.
23174 * localedata/locales/mg_MG: Likewise.
23175 * localedata/locales/mhr_RU: Likewise.
23176 * localedata/locales/mi_NZ: Likewise.
23177 * localedata/locales/mk_MK: Likewise.
23178 * localedata/locales/ml_IN: Likewise.
23179 * localedata/locales/mn_MN: Likewise.
23180 * localedata/locales/mni_IN: Likewise.
23181 * localedata/locales/mr_IN: Likewise.
23182 * localedata/locales/ms_MY: Likewise.
23183 * localedata/locales/mt_MT: Likewise.
23184 * localedata/locales/my_MM: Likewise.
23185 * localedata/locales/nan_TW: Likewise.
23186 * localedata/locales/nan_TW@latin: Likewise.
23187 * localedata/locales/nb_NO: Likewise.
23188 * localedata/locales/nds_DE: Likewise.
23189 * localedata/locales/nds_NL: Likewise.
23190 * localedata/locales/ne_NP: Likewise.
23191 * localedata/locales/nhn_MX: Likewise.
23192 * localedata/locales/niu_NU: Likewise.
23193 * localedata/locales/niu_NZ: Likewise.
23194 * localedata/locales/nl_AW: Likewise.
23195 * localedata/locales/nl_BE: Likewise.
23196 * localedata/locales/nl_NL: Likewise.
23197 * localedata/locales/nn_NO: Likewise.
23198 * localedata/locales/nr_ZA: Likewise.
23199 * localedata/locales/nso_ZA: Likewise.
23200 * localedata/locales/oc_FR: Likewise.
23201 * localedata/locales/om_ET: Likewise.
23202 * localedata/locales/om_KE: Likewise.
23203 * localedata/locales/or_IN: Likewise.
23204 * localedata/locales/os_RU: Likewise.
23205 * localedata/locales/pa_IN: Likewise.
23206 * localedata/locales/pa_PK: Likewise.
23207 * localedata/locales/pap_AW: Likewise.
23208 * localedata/locales/pap_CW: Likewise.
23209 * localedata/locales/pl_PL: Likewise.
23210 * localedata/locales/ps_AF: Likewise.
23211 * localedata/locales/pt_BR: Likewise.
23212 * localedata/locales/pt_PT: Likewise.
23213 * localedata/locales/quz_PE: Likewise.
23214 * localedata/locales/raj_IN: Likewise.
23215 * localedata/locales/ro_RO: Likewise.
23216 * localedata/locales/ru_RU: Likewise.
23217 * localedata/locales/ru_UA: Likewise.
23218 * localedata/locales/rw_RW: Likewise.
23219 * localedata/locales/sa_IN: Likewise.
23220 * localedata/locales/sat_IN: Likewise.
23221 * localedata/locales/sc_IT: Likewise.
23222 * localedata/locales/sd_IN: Likewise.
23223 * localedata/locales/sd_IN@devanagari: Likewise.
23224 * localedata/locales/se_NO: Likewise.
23225 * localedata/locales/sgs_LT: Likewise.
23226 * localedata/locales/shs_CA: Likewise.
23227 * localedata/locales/si_LK: Likewise.
23228 * localedata/locales/sid_ET: Likewise.
23229 * localedata/locales/sk_SK: Likewise.
23230 * localedata/locales/sl_SI: Likewise.
23231 * localedata/locales/sm_WS: Likewise.
23232 * localedata/locales/so_DJ: Likewise.
23233 * localedata/locales/so_ET: Likewise.
23234 * localedata/locales/so_KE: Likewise.
23235 * localedata/locales/so_SO: Likewise.
23236 * localedata/locales/sq_AL: Likewise.
23237 * localedata/locales/sq_MK: Likewise.
23238 * localedata/locales/sr_ME: Likewise.
23239 * localedata/locales/sr_RS: Likewise.
23240 * localedata/locales/sr_RS@latin: Likewise.
23241 * localedata/locales/ss_ZA: Likewise.
23242 * localedata/locales/st_ZA: Likewise.
23243 * localedata/locales/sv_FI: Likewise.
23244 * localedata/locales/sv_SE: Likewise.
23245 * localedata/locales/sw_KE: Likewise.
23246 * localedata/locales/sw_TZ: Likewise.
23247 * localedata/locales/szl_PL: Likewise.
23248 * localedata/locales/ta_IN: Likewise.
23249 * localedata/locales/ta_LK: Likewise.
23250 * localedata/locales/tcy_IN: Likewise.
23251 * localedata/locales/te_IN: Likewise.
23252 * localedata/locales/tg_TJ: Likewise.
23253 * localedata/locales/th_TH: Likewise.
23254 * localedata/locales/the_NP: Likewise.
23255 * localedata/locales/ti_ER: Likewise.
23256 * localedata/locales/ti_ET: Likewise.
23257 * localedata/locales/tig_ER: Likewise.
23258 * localedata/locales/tk_TM: Likewise.
23259 * localedata/locales/tl_PH: Likewise.
23260 * localedata/locales/tn_ZA: Likewise.
23261 * localedata/locales/to_TO: Likewise.
23262 * localedata/locales/tpi_PG: Likewise.
23263 * localedata/locales/tr_CY: Likewise.
23264 * localedata/locales/tr_TR: Likewise.
23265 * localedata/locales/ts_ZA: Likewise.
23266 * localedata/locales/tt_RU: Likewise.
23267 * localedata/locales/tt_RU@iqtelif: Likewise.
23268 * localedata/locales/ug_CN: Likewise.
23269 * localedata/locales/uk_UA: Likewise.
23270 * localedata/locales/unm_US: Likewise.
23271 * localedata/locales/ur_IN: Likewise.
23272 * localedata/locales/ur_PK: Likewise.
23273 * localedata/locales/uz_UZ: Likewise.
23274 * localedata/locales/uz_UZ@cyrillic: Likewise.
23275 * localedata/locales/ve_ZA: Likewise.
23276 * localedata/locales/vi_VN: Likewise.
23277 * localedata/locales/wa_BE: Likewise.
23278 * localedata/locales/wae_CH: Likewise.
23279 * localedata/locales/wal_ET: Likewise.
23280 * localedata/locales/wo_SN: Likewise.
23281 * localedata/locales/xh_ZA: Likewise.
23282 * localedata/locales/yi_US: Likewise.
23283 * localedata/locales/yo_NG: Likewise.
23284 * localedata/locales/yue_HK: Likewise.
23285 * localedata/locales/yuw_PG: Likewise.
23286 * localedata/locales/zh_CN: Likewise.
23287 * localedata/locales/zh_HK: Likewise.
23288 * localedata/locales/zh_SG: Likewise.
23289 * localedata/locales/zh_TW: Likewise.
23290 * localedata/locales/zu_ZA: Likewise.
23291
23292 2017-11-13 Florian Weimer <fweimer@redhat.com>
23293
23294 * support/next_to_fault.h, support/next_to_fault.c: New files.
23295 * support/Makefile (libsupport-routines): Add next_to_fault.
23296 * resolv/tst-inet_pton.c (struct next_to_fault)
23297 (next_to_fault_allocate, next_to_fault_free): Remove.
23298 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
23299
23300 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
23301
23302 * elf/dl-support.c: Include <dl-procruntime.c>.
23303 * include/link.h: Include <link_map.h>.
23304 * sysdeps/generic/dl-procruntime.c: New file.
23305 * sysdeps/generic/link_map.h: Likewise.
23306 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
23307 the writable ld.so namespace.
23308
23309 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
23310
23311 timezone: pacify GCC -Wstringop-truncation
23312 Problem reported by Martin Sebor in:
23313 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
23314 * timezone/zic.c (writezone): Use memcpy, not strncpy.
23315
23316 2017-11-12 Florian Weimer <fweimer@redhat.com>
23317
23318 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
23319 tst-xreadlink.
23320 (tests): Add tst-xreadlink.
23321 * support/support.h (xstrndup): Declare.
23322 * support/xunistd.h (xunlink, xreadlink): Declare.
23323 * support/temp_file.h (support_create_temp_directory): Declare.
23324 * support/temp_file.c (support_create_temp_directory): New function.
23325 * support/support_chroot.c (support_chroot_create): Use it.
23326 * support/xreadlink.c: New file.
23327 * support/xstrndup.c: Likewise.
23328 * support/xunlink.c: Likewise.
23329 * support/tst-xreadlink.c: Likewise.
23330
23331 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
23332
23333 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
23334
23335 2017-11-11 Florian Weimer <fweimer@redhat.com>
23336
23337 [BZ #22409]
23338 [BZ #22412]
23339 * resolv/res_comp.c (printable_string, binary_hnok)
23340 (binary_leading_dash): New functions.
23341 (res_hnok): Reimplement using these functions and ns_name_pton.
23342 (res_ownok): Likewise.
23343 (res_mailok): Reimplement using printable_string, ns_name_pton and
23344 binary_hnok.
23345 (res_dnok): Reimplement using printable_string and ns_name_pton.
23346 * resolv/tst-res_hnok.c (tests): Add additional tests.
23347 (LETTERDIGITS, PRINTABLE): Define.
23348 (do_test): Adjust one_char results.
23349
23350 2017-11-11 Florian Weimer <fweimer@redhat.com>
23351
23352 [BZ #22413]
23353 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
23354 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
23355
23356 2017-11-11 Florian Weimer <fweimer@redhat.com>
23357
23358 * resolv/tst-ns_name_pton.c: New file.
23359 * resolv/Makefile (tests): Add tst-ns_name_pton.
23360 (tst-ns_name_pton): Link against libresolv.
23361
23362 2017-11-11 Florian Weimer <fweimer@redhat.com>
23363
23364 * resolv/tst-res_hnok.c: New file.
23365 * resolv/Makefile (tests): Add tst-res_hnok.
23366 (tst-res_hnok): Link against libresolv.
23367
23368 2017-11-11 Florian Weimer <fweimer@redhat.com>
23369
23370 * resolv/tst-resolv-network.c: Use test framework instead explicit
23371 main function.
23372
23373 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
23374
23375 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
23376 <jmp_buf-macros.h>.
23377 [!_ISOMAC] (STR_HELPER): New.
23378 [!_ISOMAC] (STR): Likewise.
23379 [!_ISOMAC] (TEST_SIZE): Likewise.
23380 [!_ISOMAC] (TEST_ALIGN): Likewise.
23381 [!_ISOMAC] (TEST_OFFSET): Likewise.
23382 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
23383 field offsets of jmp_buf as well as sigjmp_buf.
23384 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
23385 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
23386 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
23387 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
23388 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
23389 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
23390 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
23391 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
23392 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
23393 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
23394 Likewise.
23395 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
23396 Likewise.
23397 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
23398 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
23399 Likewise.
23400 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
23401 Likewise.
23402 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
23403 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
23404 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
23405 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
23406 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
23407 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
23408 Likewise.
23409 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
23410 Likewise.
23411 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
23412 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
23413 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
23414
23415 2017-11-07 Joseph Myers <joseph@codesourcery.com>
23416
23417 * include/float.h
23418 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23419 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
23420 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23421 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
23422 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23423 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
23424 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23425 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
23426 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23427 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
23428 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23429 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
23430 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23431 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
23432 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23433 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
23434 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23435 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
23436 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23437 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
23438 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23439 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
23440 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23441 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
23442 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23443 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
23444 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23445 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
23446 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23447 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
23448 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23449 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
23450 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23451 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
23452 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23453 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
23454 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23455 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
23456 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23457 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
23458 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23459 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
23460 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23461 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
23462 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23463 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
23464 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23465 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
23466 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23467 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
23468 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23469 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
23470 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23471 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
23472 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23473 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
23474 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23475 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
23476 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23477 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
23478 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23479 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
23480 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23481 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
23482 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23483 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
23484 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23485 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
23486 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23487 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
23488 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23489 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
23490 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23491 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
23492 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23493 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
23494 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23495 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
23496 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23497 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
23498 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23499 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
23500 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23501 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
23502 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23503 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
23504 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23505 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
23506
23507 * stdlib/tst-strtod.h (F16): New macro.
23508 (F32): Likewise.
23509 (F64): Likewise.
23510 (F32X): Likewise.
23511 (F64X): Likewise.
23512 (F128X): Likewise.
23513 (IF_FLOAT16): Likewise.
23514 (IF_FLOAT32): Likewise.
23515 (IF_FLOAT64): Likewise.
23516 (IF_FLOAT32X): Likewise.
23517 (IF_FLOAT64X): Likewise.
23518 (IF_FLOAT128X): Likewise.
23519 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
23520 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
23521 (STRTOD_TEST_FOREACH): Likewise.
23522 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
23523 (CHOOSE_f64): Likewise.
23524 (CHOOSE_f32x): Likewise.
23525 (CHOOSE_f64x): Likewise.
23526
23527 2017-11-07 Andreas Schwab <schwab@suse.de>
23528
23529 * nptl/Makefile (tests-internal): Remove tst-typesizes.
23530
23531 2017-11-07 Mike FABIAN <mfabian@redhat.com>
23532
23533 [BZ #22403]
23534 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
23535 to be escaped.
23536 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
23537 to be escaped.
23538
23539 2017-11-07 Claude Paroz <claude@2xlibre.net>
23540
23541 [BZ #22403]
23542 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
23543 to be escaped.
23544 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
23545 to be escaped.
23546 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
23547 to be escaped.
23548
23549 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23550
23551 [BZ #22298]
23552 * nptl/allocatestack.c (allocate_stack): Check if
23553 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
23554 __PTHREAD_MUTEX_HAVE_PREV is defined.
23555 * nptl/descr.h (pthread): Likewise.
23556 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
23557 Likewise.
23558 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
23559 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
23560 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
23561 * sysdeps/nptl/bits/thread-shared-types.h
23562 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
23563 defines.
23564 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
23565 of __WORDSIZE for internal layout.
23566 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
23567 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
23568 instead of __WORDSIZE whether to use an union for __spins and __list
23569 fields.
23570 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
23571 case.
23572 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
23573 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
23574 defines.
23575 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
23576 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23577 Likewise.
23578 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
23579 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23580 Likewise.
23581 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
23582 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23583 Likewise.
23584 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
23585 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23586 Likewise.
23587 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
23588 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23589 Likewise.
23590 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
23591 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23592 Likewise.
23593 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
23594 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23595 Likewise.
23596 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
23597 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23598 Likewise.
23599 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
23600 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23601 Likewise.
23602 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
23603 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23604 Likewise.
23605 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
23606 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23607 Likewise.
23608 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
23609 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23610 Likewise.
23611 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
23612 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23613 Likewise.
23614 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
23615 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23616 Likewise.
23617
23618 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
23619 New macros.
23620 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
23621 checks for expected input type size.
23622 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
23623 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
23624 Likewise.
23625 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
23626 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
23627 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
23628 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
23629 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
23630 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
23631 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
23632 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
23633 superflous runtime assert check.
23634 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
23635 Likewise.
23636 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
23637 Likewise.
23638 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
23639 Likewise.
23640 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
23641 Likewise.
23642 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
23643 Likewise.
23644 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
23645 Likewise.
23646 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
23647 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
23648 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
23649 Likewise.
23650 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
23651 Likewise.
23652 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
23653 Likewise.
23654 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
23655 Likewise.
23656 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
23657 Likewise.
23658 * nptl/pthread_attr_setinheritsched.c
23659 (__pthread_attr_setinheritsched): Likewise.
23660 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
23661 Likewise.
23662 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
23663 Likewise.
23664 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
23665 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
23666 __old_pthread_attr_setstack): Likewise.
23667 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
23668 Likewise.
23669 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
23670 Likewise.
23671 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
23672 Likewise.
23673 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
23674 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
23675 Likewise.
23676 * nptl/tst-typesizes.c: Remove file.
23677
23678 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
23679 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
23680 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
23681 checks for internal pthread_mutex_t offsets.
23682 * sysdeps/aarch64/nptl/pthread-offsets.h
23683 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
23684 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
23685 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
23686 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
23687 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
23688 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
23689 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
23690 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
23691 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
23692 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
23693 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
23694 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
23695 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
23696 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
23697 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
23698 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
23699 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
23700 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
23701
23702 2017-11-07 Florian Weimer <fweimer@redhat.com>
23703
23704 * bits/mman-linux.h: Move ...
23705 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
23706 comment.
23707 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
23708 outdated comment.
23709
23710 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23711
23712 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
23713 Redefine STRNLEN as __strnlen_power8.
23714
23715 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23716
23717 * signal/sighold.c (sighold): Optimize implementation.
23718
23719 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
23720 __NR_rt_sigqueueinfo.
23721
23722 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
23723 __sigtimedwait.
23724 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
23725 assume __NR_rt_sigtimedwait.
23726 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
23727 and add LIBC_CANCEL_HANDLED for cancellation marking.
23728 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
23729
23730 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
23731 (sysdeps_routines): Add memchr_noneon.
23732 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
23733 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
23734 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
23735 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
23736 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
23737 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
23738 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
23739
23740 * sysdeps/arm/arm-ifunc.h: New file.
23741 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
23742 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
23743 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
23744 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
23745 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
23746 (__memcpy_neon): Avoid create hidden alias.
23747 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
23748 (__memcpy_vfp): Likewise.
23749 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
23750 (sysdep_routines): Add memcpy_arm.
23751 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
23752
23753 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
23754
23755 [BZ #22362]
23756 * Makerules (make-link-multidir): New.
23757 * config.make.in (multidir): New.
23758 * configure.ac (libc_cv_multidir): New. AC_SUBST.
23759 * configure: Regenerated.
23760 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
23761 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
23762 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
23763 New target.
23764
23765 2017-11-06 Joseph Myers <joseph@codesourcery.com>
23766
23767 [BZ #22402]
23768 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
23769 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
23770
23771 2017-11-04 Mike FABIAN <mfabian@redhat.com>
23772
23773 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
23774 to be escaped.
23775
23776 2017-11-04 Florian Weimer <fweimer@redhat.com>
23777
23778 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
23779
23780 2017-11-03 Joseph Myers <joseph@codesourcery.com>
23781
23782 * math/math.h [__HAVE_DISTINCT_FLOAT16
23783 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23784 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23785 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23786 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
23787 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
23788 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
23789 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23790 (__MATH_TG_F32): New macro.
23791 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23792 (__MATH_TG_F64X): Likewise.
23793 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23794 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
23795
23796 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
23797
23798 * po/de.po: Update translations.
23799 * po/ru.po: Likewise.
23800
23801 2017-11-03 Florian Weimer <fweimer@redhat.com>
23802
23803 * manual/filesys.texi (Hard Links): Document linkat.
23804
23805 2017-11-03 Joseph Myers <joseph@codesourcery.com>
23806
23807 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
23808 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23809 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23810 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23811 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23812 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23813 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
23814 the same as _Float128.
23815 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23816 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23817 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
23818
23819 * stdlib/stdlib.h
23820 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
23821 Declare.
23822 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
23823 Likewise.
23824 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
23825 Likewise.
23826 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23827 (strtof32x): Likewise.
23828 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23829 (strtof64x): Likewise.
23830 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23831 (strtof128x): Likewise.
23832 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23833 (strfromf16): Likewise.
23834 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23835 (strfromf32): Likewise.
23836 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23837 (strfromf64): Likewise.
23838 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23839 (strfromf32x): Likewise.
23840 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23841 (strfromf64x): Likewise.
23842 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23843 (strfromf128x): Likewise.
23844 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
23845 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
23846 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
23847 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
23848 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
23849 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
23850
23851 2017-11-03 Richard Henderson <rth@twiddle.net>
23852
23853 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
23854
23855 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23856
23857 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
23858
23859 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23860
23861 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
23862 DT_TLSDESC_GOT initialization.
23863 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
23864 (_dl_tlsdesc_resolve_hold): Likewise.
23865 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
23866 (_dl_tlsdesc_resolve_hold): Likewise.
23867 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
23868 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23869
23870 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23871
23872 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
23873
23874 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23875
23876 [BZ #18572]
23877 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
23878 non-lazily for R_ARM_TLS_DESC.
23879
23880 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23881
23882 [BZ #17078]
23883 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
23884 R_ARM_TLS_DESC case.
23885 (elf_machine_lazy_rel): Remove the prelink check.
23886
23887 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23888
23889 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
23890 DT_TLSDESC_GOT initialization.
23891 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
23892 (_dl_tlsdesc_resolve_rela): Likewise.
23893 (_dl_tlsdesc_resolve_hold): Likewise.
23894 (_dl_tlsdesc_undefweak): Remove ldar.
23895 (_dl_tlsdesc_dynamic): Likewise.
23896 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
23897 (_dl_tlsdesc_resolve_rela): Likewise.
23898 (_dl_tlsdesc_resolve_hold): Likewise.
23899 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
23900 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23901 (_dl_tlsdesc_resolve_rela): Likewise.
23902 (_dl_tlsdesc_resolve_hold): Likewise.
23903
23904 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23905
23906 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
23907 binding and initialization non-lazily for R_AARCH64_TLSDESC.
23908
23909 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23910
23911 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
23912 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
23913
23914 2017-11-02 Joseph Myers <joseph@codesourcery.com>
23915
23916 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
23917 Declare.
23918 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
23919 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
23920 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
23921 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
23922 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
23923 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
23924 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
23925 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
23926 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
23927 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
23928 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
23929
23930 2017-11-02 Mike FABIAN <mfabian@redhat.com>
23931
23932 [BZ #22382]
23933 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
23934 * localedata/locales/tpi_PG: Add standard header.
23935
23936 2017-11-02 Florian Weimer <fweimer@redhat.com>
23937
23938 test-errno-linux: quotactl can fail with EPERM in containers.
23939 * sysdeps/unix/sysv/linux/test-errno-linux.c
23940 (LIST, LIST_FORWARD): New macros.
23941 (check_error_in_list): New function.
23942 (test_wrp_rv): Accept list of permitted error codes.
23943 (test_wrp_rv2): Remove.
23944 (test_wrp): Call test_wrp_rv with list of error codes.
23945 (test_wrp2): Accept list of error codes.
23946 (do_test): Adjust. Allow EPERM for quotactl.
23947
23948 2017-11-02 Florian Weimer <fweimer@redhat.com>
23949
23950 * stdio-common/bug16.c (do_test): Use array_length.
23951 * stdio-common/errlist.c (_sys_nerr): Likewise.
23952 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
23953 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
23954 * stdio-common/psiginfo.c (psiginfo): Use array_length.
23955 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
23956 (do_test): Use array_length.
23957 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
23958 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
23959 * stdio-common/tst-printf-round.c (do_test): Likewise.
23960 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
23961 (CHECK): Use array_length.
23962 * stdio-common/tstdiomisc.c (t3, F): Likewise.
23963 * stdio-common/tstscanf.c (main): Likewise.
23964 * stdio-common/vfprintf.c (process_string_arg): Likewise.
23965
23966 2017-11-02 Florian Weimer <fweimer@redhat.com>
23967
23968 Add array_length and array_end macros.
23969 * include/array_length.h: New file.
23970
23971 2017-11-02 Florian Weimer <fweimer@redhat.com>
23972
23973 [BZ #22332]
23974 * posix/tst-glob-tilde.c (do_noescape): New variable.
23975 (one_test): Process it.
23976 (do_test): Set do_noescape. Add unescaping test case.
23977
23978 2017-11-01 Joseph Myers <joseph@codesourcery.com>
23979
23980 * math/complex.h
23981 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
23982 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
23983 with appropriate macros defined and undefined.
23984 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
23985 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23986 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
23987 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23988 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
23989 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23990 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
23991 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23992 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
23993 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23994
23995 * math/complex.h
23996 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
23997 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
23998 that for long double. Do not condition define and undefine of
23999 _Mdouble_complex_ on [__CFLOAT128].
24000
24001 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
24002
24003 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
24004 of <sysdeps/generic/sysdep.h>.
24005 (ALIGNARG): Removed.
24006 (ASM_SIZE_DIRECTIVE): Likewise.
24007 (ENTRY): Likewise.
24008 (END): Likewise.
24009 (ENTRY_CHK): Likewise.
24010 (END_CHK): Likewise.
24011 (syscall_error): Likewise.
24012 (mcount): Likewise.
24013 (PSEUDO_END): Likewise.
24014 (L): Likewise.
24015 (atom_text_section): Likewise.
24016 * sysdeps/x86/sysdep.h: New file.
24017 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
24018 of <sysdeps/generic/sysdep.h>.
24019 (ALIGNARG): Removed.
24020 (ASM_SIZE_DIRECTIVE): Likewise.
24021 (ENTRY): Likewise.
24022 (END): Likewise.
24023 (ENTRY_CHK): Likewise.
24024 (END_CHK): Likewise.
24025 (syscall_error): Likewise.
24026 (mcount): Likewise.
24027 (PSEUDO_END): Likewise.
24028 (L): Likewise.
24029 (atom_text_section): Likewise.
24030
24031 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
24032
24033 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
24034 category of LC_CTYPE set to "i18n:2012".
24035 * localedata/locales/i18n_ctype: Regenerate.
24036
24037 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
24038
24039 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
24040 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
24041 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
24042 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
24043
24044 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
24045 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
24046 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
24047 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
24048
24049 2017-10-31 Joseph Myers <joseph@codesourcery.com>
24050
24051 * math/complex.h
24052 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
24053 New macro.
24054 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
24055 Likewise.
24056 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
24057 Likewise.
24058 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24059 (CMPLXF32X): Likewise.
24060 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24061 (CMPLXF64X): Likewise.
24062 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24063 (CMPLXF128X): Likewise.
24064
24065 * math/math.h
24066 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
24067 (__MATH_EVAL_FMT2): Define to add 0.0f.
24068
24069 2017-10-31 Alan Modra <amodra@gmail.com>
24070
24071 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
24072 include sysdep.h.
24073 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
24074 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
24075 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
24076 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
24077 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
24078 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
24079 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
24080 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
24081 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
24082 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
24083 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
24084 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
24085 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
24086 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
24087 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
24088 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
24089 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
24090 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
24091 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
24092 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
24093 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
24094 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
24095 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
24096 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
24097 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
24098 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
24099 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
24100 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
24101 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
24102 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
24103 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
24104 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
24105 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
24106 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
24107 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
24108 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
24109 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
24110 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
24111 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
24112 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
24113 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
24114 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
24115 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
24116 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
24117 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
24118 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
24119 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
24120 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
24121 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
24122 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
24123 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
24124 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
24125 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
24126 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
24127 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
24128 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
24129 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
24130 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
24131 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
24132 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
24133 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
24134 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
24135 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
24136 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
24137 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
24138 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
24139 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
24140 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
24141 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
24142
24143 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
24144 include sysdep.h and math_ldbl_opt.h.
24145
24146 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
24147 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
24148 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
24149 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
24150 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
24151 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
24152 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
24153 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
24154 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
24155 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
24156 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
24157 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
24158 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
24159 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
24160 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
24161 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
24162 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
24163 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
24164 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
24165 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
24166 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
24167 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
24168 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
24169 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
24170 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
24171 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
24172
24173 2017-10-31 Alan Modra <amodra@gmail.com>
24174
24175 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
24176 string/strncase_l.c, not string/strncase.c.
24177 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
24178 (libc_hidden_def): Redefine.
24179
24180 2017-10-31 Alan Modra <amodra@gmail.com>
24181
24182 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
24183 (__STRCMP, STRCMP, __strcasecmp_l): Define.
24184 (__strcasecmp): Don't define.
24185
24186 2017-10-31 Alan Modra <amodra@gmail.com>
24187
24188 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
24189 IS_IN (libc).
24190 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
24191 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
24192 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
24193
24194 2017-10-31 Alan Modra <amodra@gmail.com>
24195
24196 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
24197 USE_AS_STPNCPY.
24198
24199 2017-10-31 Alan Modra <amodra@gmail.com>
24200
24201 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
24202 Redefine only when SHARED.
24203
24204 2017-10-30 Joseph Myers <joseph@codesourcery.com>
24205
24206 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
24207 Include <bits/math-finite.h> with appropriate macros defined and
24208 undefined.
24209 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
24210 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
24211 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
24212 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
24213 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
24214
24215 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
24216 [!_Mlong_double_] (_Mlong_double_): Likewise.
24217 [!_Mfloat16_] (_Mfloat16_): Likewise.
24218 [!_Mfloat32_] (_Mfloat32_): Likewise.
24219 [!_Mfloat64_] (_Mfloat64_): Likewise.
24220 [!_Mfloat128_] (_Mfloat128_): Likewise.
24221 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
24222 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
24223 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
24224 (_Mdouble_): Define without indirection through those macros.
24225 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
24226 [!_Mfloat128_] (_Mfloat128_): Likewise.
24227 [_Mlong_double_] (_Mlong_double_): Likewise.
24228 (_Mdouble_): Define without indirection through those macros.
24229 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
24230 not add -D_Mlong_double_=double.
24231 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
24232 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
24233
24234 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
24235
24236 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
24237
24238 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
24239
24240 * sysdeps/x86/libc-start.c: Reformat.
24241
24242 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
24243
24244 [BZ #22353]
24245 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
24246 (1): Renamed to ...
24247 (L(Src0)): This.
24248 (L(Src1)): New.
24249 (L(Src2)): Likewise.
24250 (L(1)): Renamed to ...
24251 (L(Src3)): This.
24252
24253 2017-10-30 Joseph Myers <joseph@codesourcery.com>
24254
24255 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
24256 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
24257 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
24258 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
24259 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
24260 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
24261 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
24262 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
24263 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
24264 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
24265 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
24266 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
24267 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
24268 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
24269 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
24270 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
24271 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
24272 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
24273 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
24274 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
24275 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
24276 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
24277 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
24278 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
24279 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
24280 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
24281 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
24282 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
24283 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
24284 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
24285 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
24286 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
24287 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
24288 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
24289 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
24290 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
24291 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
24292 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
24293 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
24294 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
24295 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
24296 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
24297 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
24298 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
24299 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
24300 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
24301 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
24302 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
24303 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
24304 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
24305 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
24306 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
24307 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
24308 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
24309 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
24310 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
24311 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
24312 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
24313 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
24314 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
24315 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
24316 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
24317 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
24318 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
24319 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
24320 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
24321
24322 2017-10-30 Florian Weimer <fweimer@redhat.com>
24323
24324 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
24325 always defined.
24326 * io/tst-mkdirat.c (do_test): Likewise.
24327 * io/tst-mkfifoat.c (do_test): Likewise.
24328 * io/tst-mknodat.c (do_test): Likewise.
24329 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
24330 * locale/programs/locale.c (select_dirs): Likewise.
24331 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
24332 * posix/bug-glob2.c (my_readdir): Likewise.
24333 * posix/tst-dir.c (main): Likewise.
24334 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
24335 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
24336
24337 2017-10-30 Florian Weimer <fweimer@redhat.com>
24338
24339 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
24340 just __USE_GNU.
24341
24342 2017-10-30 Florian Weimer <fweimer@redhat.com>
24343
24344 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
24345 Convert to support/test-driver.c.
24346 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
24347 New macro parameters.
24348 (PRINTF): Remove macro. Use test_verbose conditionals instead.
24349 * posix/tst-gnuglob.c: New file.
24350 * posix/tst-gnuglob64.c: Likewise.
24351 * posix/Makefile (tests): Add tst-gnuglob64.
24352
24353 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
24354
24355 [BZ #19485]
24356 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
24357 and use a better translation for March in “mon”.
24358 * localedata/locales/csb_PL: Use more ASCII to improve the
24359 readability of the source.
24360
24361 2017-10-30 Mike FABIAN <mfabian@redhat.com>
24362
24363 [BZ #13953]
24364 * localedata/locales/km_KH: Use ASCII as much
24365 as possible for better readability of the source and
24366 remove useless comments.
24367 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
24368 was commented out and apparently wrong anyway because it was
24369 using Lao characters. If Buddhist era should be used
24370 for km_KH, a native speaker should write the correct formaat
24371 for Khmer.
24372 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
24373 (According to CLDR, the first weekday for Cambodia is Sunday).
24374 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
24375 (These were using Lao characters which must be wrong. If we get
24376 the correct data from a native speaker, we could add it back, until
24377 then it is better not to have name_mr and name_mrs at all than
24378 having it wrong).
24379
24380 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
24381
24382 * locale/loadlocale.c: Correct size of
24383 _nl_value_type_LC_<category> arrays.
24384
24385 2017-10-27 Joseph Myers <joseph@codesourcery.com>
24386
24387 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
24388 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
24389 with appropriate macros defined and undefined.
24390 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
24391 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
24392 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
24393 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
24394 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
24395
24396 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
24397
24398 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
24399 "-O2 -march=i586".
24400
24401 2017-10-27 Mike FABIAN <mfabian@redhat.com>
24402
24403 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
24404 with lowercase letters to make it agree with CLDR.
24405
24406 2017-10-27 Mike FABIAN <mfabian@redhat.com>
24407
24408 [BZ #15260]
24409 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
24410 first letters of yesstr and nostr in yesexpr and noexpr,
24411 not for the full words.
24412 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
24413 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
24414 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
24415 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
24416 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
24417 first letters of yesstr and nostr in yesexpr and noexpr,
24418 until now only English was matched in yesexpr and noexpr.
24419 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
24420 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
24421 fil but not for tl. As tl and fil are very similar, using fil
24422 is probably better than using English.
24423
24424 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
24425
24426 [BZ #21706]
24427 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
24428 in yesstr and nostr.
24429
24430 2017-10-26 Joseph Myers <joseph@codesourcery.com>
24431
24432 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
24433 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
24434 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
24435 Likewise.
24436 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
24437 Likewise.
24438 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
24439 Likewise.
24440 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
24441 Likewise.
24442 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24443 (SNANF128X): Likewise.
24444
24445 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
24446 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
24447 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24448 (HUGE_VAL_F32): Likewise.
24449 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24450 (HUGE_VAL_F64): Likewise.
24451 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24452 (HUGE_VAL_F32X): Likewise.
24453 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24454 (HUGE_VAL_F64X): Likewise.
24455 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24456 (HUGE_VAL_F128X): Likewise.
24457
24458 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
24459
24460 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
24461 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
24462 for the br_FR locale.
24463
24464 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
24465
24466 [BZ #21706]
24467 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
24468
24469 2017-10-25 Carlos O'Donell <carlos@redhat.com>
24470
24471 * locale/programs/record-status.h: Define globals, and function
24472 prototypes. Move function bodies...
24473 * locale/programs/record-status.c: ... to here. New file.
24474 * iconv/Makefile (iconv_prog-modules): Add record-status.
24475 * locale/Makefile (lib-modules): Likewise.
24476 * iconv/iconv_prog.c: Remove verbose.
24477 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
24478 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
24479 record a warning about ASCII compatibility.
24480 * locale/programs/ld-monetary.c (monetary_finish): If
24481 warn_int_curr_symbol is true then record a warning about the symbol
24482 not being in our ISO 4217 list.
24483 * locale/programs/locale.c: Include record-status.h. Remove verbose.
24484 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
24485 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
24486 (OPT_NO_WARN): Define.
24487 (OPT_WARN): Define.
24488 (options): Add entry for --no-warnings, and --warnings.
24489 (set_warnings): New function to enable/disable warnings.
24490 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
24491 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
24492 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
24493 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
24494 Pass flags to generate_locale.
24495 (generate_locale): Accept new flag argument and pass it to localedef
24496 invocation.
24497 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
24498 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
24499
24500 * localedata/Makefile (test-input-data): Use full file name.
24501 * localedata/da_DK.in: Rename to...
24502 * localedata/da_DK.ISO-8859-1.in: ...this.
24503 * localedata/de_DE.in: Rename to...
24504 * localedata/de_DE.ISO-8859-1.in: ...this.
24505 * localedata/en_US.in: Rename to...
24506 * localedata/en_US.ISO-8859-1.in: ...this.
24507 * localedata/fr_FR.in: Rename to...
24508 * localedata/fr_FR.UTF-8.in: ... this.
24509 * localedata/hr_HR.in: Rename to...
24510 * localedata/hr_HR.ISO-8859-2.in: ...this.
24511 * localedata/hu_HU.in: Rename to...
24512 * localedata/hu_HU.UTF-8.in: ...this.
24513 * localedata/si_LK.in: Rename to...
24514 * localedata/si_LK.UTF-8.in: ...this.
24515 * localedata/sv_SE.in: Rename to...
24516 * localedata/sv_SE.ISO-8859-1.in: ...this.
24517 * localedata/tr_TR.in: Rename to...
24518 * localedata/tr_TR.UTF-8.in: ...this.
24519 * localedata/uk_UA.in: Rename to...
24520 * localedata/uk_UA.UTF-8.in: ...this.
24521 * localedata/sort-test.sh: Test file is locale name with the
24522 suffix.
24523
24524 * localedata/unicode-gen/Makefile (check_i18n): Rename to
24525 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
24526 file.
24527 * localedata/locales/i18n_ctype: Regenerate.
24528 * localedata/locales/tr_TR: Likewise.
24529 * localedata/locales/translit_circle: Likewise.
24530 * localedata/locales/translit_cjk_compat: Likewise.
24531 * localedata/locales/translit_combining: Likewise.
24532 * localedata/locales/translit_compat: Likewise.
24533 * localedata/locales/translit_font: Likewise.
24534 * localedata/locales/translit_fraction: Likewise.
24535
24536 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24537
24538 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
24539 lxvd2x/stxvd2x with lvx/stvx.
24540 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
24541
24542 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
24543
24544 * include/alloc_buffer.h: Replace "if if " with "if " in
24545 comments.
24546 * sysdeps/mips/memcpy.S: Likkewise.
24547 * sysdeps/mips/memset.S: Likewise.
24548 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
24549 Likewise.
24550 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
24551 Likewise.
24552 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
24553 Likewise.
24554
24555 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24556
24557 [BZ #15261]
24558 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
24559 yesexpr and noexpr.
24560 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
24561 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
24562 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
24563 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
24564 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
24565 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
24566 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
24567
24568 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24569
24570 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
24571 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
24572 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
24573 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
24574 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
24575 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
24576 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
24577 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
24578 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
24579 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
24580 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
24581 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
24582
24583 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24584
24585 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
24586 as possible for better readability of the source.
24587 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
24588 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
24589 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
24590 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
24591 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
24592 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
24593 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
24594 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
24595 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
24596 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
24597 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
24598 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
24599 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
24600 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
24601 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
24602 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
24603 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
24604 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
24605 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
24606 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
24607 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
24608 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
24609 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
24610 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
24611 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
24612 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
24613 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
24614 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
24615 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
24616 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
24617 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
24618 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
24619 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
24620 * localedata/locales/en_US (LC_MESSAGES): Likewise.
24621 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
24622 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
24623 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
24624 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
24625 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
24626 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
24627 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
24628 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
24629 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
24630 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
24631 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
24632 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
24633 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
24634 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
24635 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
24636 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
24637 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
24638 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
24639 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
24640 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
24641 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
24642 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
24643 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
24644 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
24645 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
24646 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
24647 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
24648 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
24649 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
24650 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
24651 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
24652 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
24653 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
24654 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
24655 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
24656 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
24657 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
24658 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
24659 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
24660 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
24661 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
24662 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
24663 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
24664 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
24665 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
24666 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
24667 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
24668 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
24669 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
24670 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
24671 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
24672 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
24673 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
24674 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
24675 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
24676 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
24677 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
24678 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
24679 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
24680 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
24681 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
24682 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
24683 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
24684 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
24685 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
24686 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
24687 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
24688 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
24689 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
24690 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
24691 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
24692 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
24693 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
24694 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
24695 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
24696 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
24697 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
24698 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
24699 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
24700 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
24701 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
24702 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
24703 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
24704 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
24705 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
24706 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
24707 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
24708 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
24709 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
24710 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
24711 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
24712 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
24713 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
24714 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
24715 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
24716 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
24717 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
24718 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
24719 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
24720 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
24721 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
24722 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
24723 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
24724 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
24725 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
24726 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
24727 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
24728 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
24729 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
24730 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
24731 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
24732 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
24733 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
24734 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
24735 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
24736 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
24737 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
24738 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
24739 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
24740 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
24741 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
24742 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
24743 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
24744 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
24745 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
24746 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
24747 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
24748 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
24749 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
24750 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
24751 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
24752 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
24753 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
24754 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
24755 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
24756 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
24757 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
24758 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
24759 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
24760 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
24761
24762 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24763
24764 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
24765 (Use first letters of yesstr and nostr correctly instead of using
24766 full words).
24767
24768 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24769
24770 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
24771 (Use first letters of yesstr and nostr correctly).
24772
24773 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24774
24775 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
24776 also check for the first characters of yesstr and nostr.
24777 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
24778 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
24779
24780 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24781
24782 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
24783 also check for Chinese characters.
24784
24785 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24786
24787 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
24788 match also for the contents of yesstr and nostr. As the first letter
24789 of yesstr and nostr is equal, checking only for the first letter
24790 is not enough.
24791
24792 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24793
24794 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
24795 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
24796
24797 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24798
24799 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
24800 of main contributor.
24801
24802 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24803
24804 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
24805 instead of using English.
24806
24807 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24808
24809 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
24810 by including the first letters of nostr and yesexpr in the regexp.
24811 Also make it more readable by using ASCII where possible.
24812
24813 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24814
24815 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
24816 the first letter of nostr in the regexp. It agrees with CLDR now.
24817 Also make it more readable by using ASCII where possible.
24818
24819 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24820
24821 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
24822 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
24823 these strings contain a U+17D6 (which somewhat looks like a colon)
24824 instead of a real colon to separate the full words for “yes”
24825 and “no” from the single letter responses.
24826
24827 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24828
24829 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
24830 it agree with CLDR (include the first letter of yesstr).
24831 Also make it more readable by using ASCII where possible.
24832
24833 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24834
24835 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
24836 and improve yesexpr and noexpr. The yesstr and nostr apparently
24837 came from CLDR. And CLDR has a bug there: these strings contain
24838 a U+0903 (which looks like a colon) instead of a real colon
24839 to separate the full words for “yes” and “no” from the single
24840 letter responses.
24841
24842 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24843
24844 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
24845 letters of the full yesstr and nostr in yesexpr and noexpr.
24846
24847 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24848
24849 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
24850 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
24851 * localedata/locales/an_ES: Make source more readable by using ASCII
24852 where possible.
24853
24854 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24855
24856 [BZ #20952]
24857 * localedata/locales/yuw_PG: New file.
24858 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
24859 * locale/iso-639.def: Add Yau (Uruwa).
24860
24861 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
24862
24863 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
24864
24865 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
24866
24867 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
24868 (__libc_realloc): Likewise.
24869 (_mid_memalign): Likewise.
24870 (__libc_calloc): Likewise.
24871
24872 2017-10-23 Mike FABIAN <mfabian@redhat.com>
24873
24874 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
24875 by adding the generic +1 and -0 as in all other locales.
24876 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
24877 day names and make it more readable by using ASCII where possible.
24878
24879 2017-10-24 Joseph Myers <joseph@codesourcery.com>
24880
24881 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
24882 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
24883
24884 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24885
24886 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
24887 WNOHANG in waitpid call.
24888
24889 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
24890
24891 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
24892 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
24893
24894 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
24895 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
24896 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
24897 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
24898 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
24899 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
24900 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
24901 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
24902 variables.
24903
24904 2017-10-23 Michael Collison <michael.collison@arm.com>
24905
24906 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
24907 with __builtin_sqrt.
24908 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
24909 with __builtin_sqrtf.
24910 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
24911 with __builtin_ceil.
24912 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
24913 with __builtin_ceilf.
24914 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
24915 with __builtin_floor.
24916 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
24917 with __builtin_floorf.
24918 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
24919 with __builtin_fma.
24920 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
24921 with __builtin_fmaf.
24922 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
24923 with __builtin_fmax.
24924 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
24925 with __builtin_fmaxf.
24926 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
24927 with __builtin_fmin.
24928 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
24929 with __builtin_fminf.
24930 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
24931 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
24932 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
24933 with builtin_rint and conversion to int.
24934 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
24935 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
24936 with builtin_llround.
24937 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
24938 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
24939 with builtin_rint and conversion to long int.
24940 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
24941 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
24942 with builtin_lround.
24943 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
24944 with builtin_lroundf.
24945 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
24946 statements with __builtin_nearbyint.
24947 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
24948 statements with __builtin_nearbyintf.
24949 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
24950 with __builtin_rint.
24951 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
24952 with __builtin_rintf.
24953 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
24954 with __builtin_round.
24955 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
24956 with __builtin_roundf.
24957 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
24958 with __builtin_trunc.
24959 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
24960 with __builtin_truncf.
24961 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
24962 and s_l[l]round[f].c too.
24963
24964 2017-10-23 Alan Modra <amodra@gmail.com>
24965
24966 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
24967 Adjust stack after restoring regs. Add missing LR cfi_restore.
24968
24969 2017-10-23 Alan Modra <amodra@gmail.com>
24970
24971 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
24972 Move LR save and frame setup/teardown and LR restore to
24973 immediately around memset call. Provide cfi.
24974
24975 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24976
24977 * sysdeps/i386/fpu/e_powf.S: Removed.
24978 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
24979 * sysdeps/i386/fpu/w_powf.c: Likewise.
24980 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
24981 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24982 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24983 Add e_powf-sse2.
24984 (CFLAGS-e_powf-sse2.c): New.
24985 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
24986 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
24987
24988 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24989
24990 * sysdeps/i386/fpu/e_log2f.S: Removed.
24991 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
24992 * sysdeps/i386/fpu/w_log2f.c: Likewise.
24993 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
24994 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24995 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24996 Add e_log2f-sse2.
24997 (CFLAGS-e_log2f-sse2.c): New.
24998 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
24999 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
25000
25001 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
25002
25003 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
25004 Add e_powf-fma.
25005 (CFLAGS-e_powf-fma.c): New.
25006 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
25007 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
25008
25009 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
25010
25011 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
25012 Add e_log2f-fma.
25013 (CFLAGS-e_log2f-fma.c): New.
25014 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
25015 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
25016
25017 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
25018
25019 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
25020 Add e_logf-fma.
25021 (CFLAGS-e_logf-fma.c): New.
25022 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
25023 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
25024
25025 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
25026
25027 * sysdeps/i386/fpu/e_logf.S: Removed.
25028 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
25029 * sysdeps/i386/fpu/w_logf.c: Likewise.
25030 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
25031 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
25032 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25033 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
25034 Add e_logf-sse2.
25035 (CFLAGS-e_logf-sse2.c): New.
25036 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
25037 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
25038
25039 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
25040
25041 * sysdeps/i386/fpu/e_exp2f.S: Removed.
25042 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
25043 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
25044 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25045 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
25046 Add e_exp2f-sse2.
25047 (CFLAGS-e_exp2f-sse2.c): New.
25048 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
25049 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
25050
25051 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
25052
25053 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
25054 Add e_exp2f-fma.
25055 (CFLAGS-e_exp2f-fma.c): New.
25056 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
25057 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
25058
25059 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
25060
25061 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
25062 * sysdeps/i386/fpu/e_expf.S: Likewise.
25063 * sysdeps/i386/fpu/math_errf.c: Likewise.
25064 * sysdeps/i386/fpu/w_expf.c: Likewise.
25065 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
25066 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
25067 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
25068 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
25069 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25070 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
25071 Remove e_expf-ia32.
25072 (CFLAGS-e_expf-sse2.c): New.
25073 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
25074 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
25075
25076 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
25077
25078 * sysdeps/x86_64/fpu/e_expf.S: Removed.
25079 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
25080 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
25081 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
25082 e_expf.c.
25083 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
25084 New.
25085 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
25086 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
25087 Renamed to ...
25088 (__redirect_expf): This.
25089 (SYMBOL_NAME): Changed to expf.
25090 (__ieee754_expf): Renamed to ...
25091 (__expf): This.
25092 (__GI___expf): This.
25093 (__ieee754_expf): Add strong_alias.
25094 (__expf_finite): Likewise.
25095 (__expf): New.
25096 Include <sysdeps/ieee754/flt-32/e_expf.c>.
25097
25098 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
25099
25100 [BZ #22332]
25101 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
25102 unescaping.
25103
25104 2017-10-21 Florian Weimer <fweimer@redhat.com>
25105
25106 * posix/Makefile (tests): Add tst-glob-tilde.
25107 (tests-special): Add tst-glob-tilde-mem.out
25108 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
25109 (tst-glob-tilde-mem.out): Add mtrace check.
25110 * posix/tst-glob-tilde.c: New file.
25111
25112 2017-10-20 Joseph Myers <joseph@codesourcery.com>
25113
25114 * bits/floatn-common.h: New file.
25115 * math/Makefile (headers): Add bits/floatn-common.h.
25116 * bits/floatn.h: Include <bits/floatn-common.h>.
25117 * sysdeps/ia64/bits/floatn.h: Likewise.
25118 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
25119 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
25120 * sysdeps/powerpc/bits/floatn.h: Likewise.
25121 * sysdeps/x86/bits/floatn.h: Likewise.
25122
25123 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25124
25125 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
25126 indicates whether compiler emits an warning for alias for
25127 functions with incompatible types.
25128
25129 [BZ #22273]
25130 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
25131 the auxiliary process is terminated by a signal before calling _exit
25132 or execve.
25133
25134 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
25135
25136 [BZ #21265]
25137 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
25138 New.
25139 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
25140 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
25141 and bit_arch_XSAVEC_Usable if needed.
25142 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
25143 and bit_arch_Use_dl_runtime_resolve_opt.
25144 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
25145 Removed.
25146 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
25147 (bit_arch_Prefer_No_AVX512): Updated.
25148 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
25149 (bit_arch_XSAVEC_Usable): New.
25150 (STATE_SAVE_OFFSET): Likewise.
25151 (STATE_SAVE_MASK): Likewise.
25152 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
25153 (cpu_features): Add xsave_state_size and xsave_state_full_size.
25154 (index_arch_Use_dl_runtime_resolve_opt): Removed.
25155 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
25156 (index_arch_XSAVEC_Usable): New.
25157 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
25158 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
25159 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
25160 is enabled.
25161 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
25162 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
25163 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
25164 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
25165 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
25166 _dl_runtime_resolve_xsavec.
25167 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
25168 Removed.
25169 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
25170 instead of VEC_SIZE.
25171 (REGISTER_SAVE_BND0): Removed.
25172 (REGISTER_SAVE_BND1): Likewise.
25173 (REGISTER_SAVE_BND3): Likewise.
25174 (REGISTER_SAVE_RAX): Always defined to 0.
25175 (VMOV): Removed.
25176 (_dl_runtime_resolve_avx): Likewise.
25177 (_dl_runtime_resolve_avx_slow): Likewise.
25178 (_dl_runtime_resolve_avx_opt): Likewise.
25179 (_dl_runtime_resolve_avx512): Likewise.
25180 (_dl_runtime_resolve_avx512_opt): Likewise.
25181 (_dl_runtime_resolve_sse): Likewise.
25182 (_dl_runtime_resolve_sse_vex): Likewise.
25183 (USE_FXSAVE): New.
25184 (_dl_runtime_resolve_fxsave): Likewise.
25185 (USE_XSAVE): Likewise.
25186 (_dl_runtime_resolve_xsave): Likewise.
25187 (USE_XSAVEC): Likewise.
25188 (_dl_runtime_resolve_xsavec): Likewise.
25189 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
25190 Removed.
25191 (_dl_runtime_resolve_avx512_opt): Likewise.
25192 (_dl_runtime_resolve_avx): Likewise.
25193 (_dl_runtime_resolve_avx_opt): Likewise.
25194 (_dl_runtime_resolve_sse): Likewise.
25195 (_dl_runtime_resolve_sse_vex): Likewise.
25196 (_dl_runtime_resolve_fxsave): New.
25197 (_dl_runtime_resolve_xsave): Likewise.
25198 (_dl_runtime_resolve_xsavec): Likewise.
25199
25200 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
25201
25202 [BZ #22320]
25203 CVE-2017-15670
25204 * posix/glob.c (__glob): Fix one-byte overflow.
25205
25206 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
25207
25208 * malloc/malloc.c (sysdep-cancel.h): Add include.
25209
25210 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
25211
25212 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
25213
25214 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
25215
25216 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
25217 (tests): Remove $(objpfx)ga_test depdendency.
25218 * resolv/ga_test.c: Remove file.
25219
25220 2017-10-20 Mike FABIAN <mfabian@redhat.com>
25221
25222 [BZ #18812]
25223 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
25224 * localedata/locales/kab_DZ: New file.
25225
25226 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
25227
25228 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
25229 _dl_relocate_static_pie instead of _dl_start to compute load
25230 address in static PIE.
25231
25232 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
25233
25234 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
25235
25236 2017-10-20 Mike FABIAN <mfabian@redhat.com>
25237
25238 [BZ #13605]
25239 * localedata/SUPPORTED: Add shn_MM/UTF-8.
25240 * localedata/locales/shn_MM: New file.
25241
25242 2017-10-20 Florian Weimer <fweimer@redhat.com>
25243
25244 [BZ #22321]
25245 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
25246 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
25247 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
25248 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
25249 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
25250 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
25251
25252 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
25253
25254 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
25255
25256 2017-10-19 Joseph Myers <joseph@codesourcery.com>
25257
25258 * sysdeps/mips/ieee754/bits/floatn.h: New file.
25259
25260 [BZ #22322]
25261 * sysdeps/mips/bits/long-double.h: Move to ....
25262 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
25263
25264 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
25265
25266 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
25267
25268 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
25269 H.J. Lu <hongjiu.lu@intel.com>
25270
25271 [BZ #22299]
25272 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
25273 GLRO(dl_platform) to NULL.
25274 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
25275 (modules-names): Add tst-platformmod-1 and
25276 x86_64/tst-platformmod-2.
25277 (CFLAGS-tst-platform-1.c): New.
25278 (CFLAGS-tst-platformmod-1.c): Likewise.
25279 (CFLAGS-tst-platformmod-2.c): Likewise.
25280 (LDFLAGS-tst-platformmod-2.so): Likewise.
25281 ($(objpfx)tst-platform-1): Likewise.
25282 ($(objpfx)tst-platform-1.out): Likewise.
25283 (tst-platform-1-ENV): Likewise.
25284 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
25285 * sysdeps/x86_64/tst-platform-1.c: New file.
25286 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
25287 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
25288
25289 2017-10-19 Mike FABIAN <mfabian@redhat.com>
25290
25291 [BZ #13994]
25292 * locale/iso-639.def: Add Karbi.
25293 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
25294 * localedata/locales/mjw_IN: New file.
25295
25296 2017-10-18 Joseph Myers <joseph@codesourcery.com>
25297
25298 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
25299 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
25300 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
25301 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
25302 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
25303 (libm_alias_ldouble_other_r): Also create _Float128 alias.
25304 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
25305 <bits/floatn.h>.
25306 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
25307 (libm_alias_ldouble_other_r): Also create _Float128 alias.
25308 * manual/math.texi (Mathematics): Document additional architecture
25309 support for _Float128.
25310 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
25311 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
25312 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
25313 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25314 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25315 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
25316 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
25317 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
25318 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25319 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
25320 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25321 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
25322 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25323 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
25324 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25325
25326 2017-10-18 Renlin Li <renlin.li@arm.com>
25327
25328 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
25329 _DYNAMIC symbol to calculate load address.
25330
25331 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
25332
25333 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
25334 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
25335 summary bits.
25336 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
25337 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
25338
25339 2017-10-18 Mike FABIAN <mfabian@redhat.com>
25340
25341 [BZ #16777]
25342 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
25343 and improve readability by using more ASCII.
25344 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
25345 and improve readability by using more ASCII.
25346
25347 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
25348
25349 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
25350 not all targets support atomics on bool.
25351
25352 2017-10-17 Joseph Myers <joseph@codesourcery.com>
25353
25354 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
25355 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
25356 __f128.
25357 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
25358 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
25359 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
25360 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
25361 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
25362 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
25363
25364 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25365
25366 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
25367 defines.
25368
25369 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
25370
25371 [BZ #22159]
25372 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
25373 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
25374 (do_check_remalloced_chunk): Fix build bug.
25375 (do_check_malloc_state): Add assert that checks arena->top.
25376 (malloc_consolidate): Remove initialization.
25377 (int_mallinfo): Remove call to malloc_consolidate.
25378 (__libc_mallopt): Clarify why malloc_consolidate is needed.
25379
25380 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
25381
25382 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
25383 (have_fastchunks): Remove.
25384 (clear_fastchunks): Remove.
25385 (set_fastchunks): Remove.
25386 (malloc_state): Add have_fastchunks.
25387 (malloc_init_state): Use have_fastchunks.
25388 (do_check_malloc_state): Remove incorrect invariant checks.
25389 (_int_malloc): Use have_fastchunks.
25390 (_int_free): Likewise.
25391 (malloc_consolidate): Likewise.
25392
25393 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
25394
25395 * malloc/malloc.c (tcache_put): Inline.
25396 (tcache_get): Inline.
25397
25398 2017-10-17 Jordi Mallach <jordi@gnu.org>
25399
25400 Aurelien Jarno <aurelien@aurel32.net>
25401 [BZ #2522]
25402 * localedata/locales/ca_ES@valencia: New file.
25403 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
25404
25405 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
25406
25407 [BZ #22296]
25408 * math/math.h: Let signbit use the builtin in C++ mode with gcc
25409 < 6.x
25410
25411 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25412
25413 * scripts/build-many-glibcs.py (Context.add_all_configs):
25414 Add arm-linux-gnueabihf multiarch extra_glibcs.
25415
25416 * sysdeps/generic/ifunc-init.h: New file.
25417 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
25418
25419 2017-10-17 Mike FABIAN <mfabian@redhat.com>
25420
25421 [BZ #22019]
25422 * localedata/locales/el_GR: Set n_cs_precedes to 0.
25423 * localedata/locales/el_CY: copy "el_GR" because it is identical.
25424 * stdlib/tst-strfmon_l.c: adapt test case.
25425
25426 2017-10-16 Joseph Myers <joseph@codesourcery.com>
25427
25428 * sysdeps/generic/float128-abi.h: New file.
25429 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
25430 non-__prefixed symbols to ....
25431 * math/Versions: ... here. Include <float128-abi.h>.
25432 * stdlib/Versions ... and here. Include <float128-abi.h>
25433
25434 2017-10-16 Florian Weimer <fweimer@redhat.com>
25435
25436 * version.h (VERSION): Switch to ".9000" as the development
25437 version suffix.
25438
25439 2017-10-16 Florian Weimer <fweimer@redhat.com>
25440
25441 [BZ #22050]
25442 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
25443 compat_symbol_reference to access non-default version.
25444
25445 2017-10-16 Florian Weimer <fweimer@redhat.com>
25446
25447 * malloc/Makefile (others-extras): Set to mcheck-init.o.
25448
25449 2017-10-16 Carlos O'Donell <carlos@redhat.com>
25450
25451 * include/shlib-compat.h (compat_symbol_reference): Update
25452 comment.
25453
25454 2017-10-16 Joseph Myers <joseph@codesourcery.com>
25455
25456 * math/Makefile (test-types): Add
25457 $(type-float128-$(float128-alias-fcts)).
25458 * math/test-float128.h (TYPE_STR): Define conditional on
25459 [FLT128_MANT_DIG == LDBL_MANT_DIG].
25460 (ULP_IDX): Likewise.
25461 (ULP_I_IDX): Likewise.
25462
25463 * stdlib/strtold.c: Include <bits/floatn.h>
25464 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
25465 and later undefine as macro. Define as weak alias if
25466 [!USE_WIDE_CHAR].
25467 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
25468 and later undefine as macro. Define as weak alias if
25469 [USE_WIDE_CHAR].
25470 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
25471 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
25472 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
25473 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
25474 Define and later undefine as macro. Define as weak alias if
25475 [USE_WIDE_CHAR].
25476 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
25477 <bits/floatn.h>.
25478 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
25479 Define and later undefine as macro. Define as weak alias if
25480 [!USE_WIDE_CHAR].
25481 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
25482 Define and later undefine as macro. Define as weak alias if
25483 [USE_WIDE_CHAR].
25484
25485 2017-10-15 Carlos O'Donell <carlos@redhat.com>
25486
25487 * localedata/collate-test.c (allocate_arrays): Don't use \n in
25488 record_verbose messages.
25489
25490 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
25491
25492 [BZ #22052]
25493 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
25494 to silence -O3 -Wall warning with GCC 7.
25495
25496 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
25497
25498 * Makeconfig (+link-static-before-libc): Use the first of
25499 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
25500 * gmon/Makefile (tests): Add tst-gmon-static.
25501 (tests-static): Likewise.
25502 (CFLAGS-tst-gmon-static.c): New.
25503 (CRT-tst-gmon-static): Likewise.
25504 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
25505 (tst-gmon-static-ENV): Likewise.
25506 (tests-special): Likewise.
25507 ($(objpfx)tst-gmon-static.out): Likewise.
25508 (clean-tst-gmon-static-data): Likewise.
25509 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
25510 * gmon/tst-gmon-static-gprof.sh: New file.
25511 * gmon/tst-gmon-static.c: Likewise.
25512
25513 2017-10-13 Carlos O'Donell <carlos@redhat.com>
25514
25515 [BZ #22295]
25516 * locale/programs/linereader.c (get_string): Don't warn on
25517 non-symbolic character.
25518
25519 [BZ #22294]
25520 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
25521 int_curr_symbol.
25522
25523 [BZ #22292]
25524 * locale/programs/record-status.h: New file
25525 * locale/programs/locale.c: Add comment.
25526 * locale/programs/charmap-dir.c: Don't include error.h.
25527 (charmap_opendir): Use record_error.
25528 * locale/programs/charmap.c: Don't include error.h.
25529 (charmap_read): Use record_error, and record_warning.
25530 (parse_charmap): Likewise.
25531 * locale/programs/ld-address.c: Don't include error.h.
25532 (address_finish): Use record_error, and record_warning.
25533 * locale/programs/ld-collate.c: Don't include error.h.
25534 (collate_finish): Use record_error, and record_error_at_line.
25535 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
25536 (ctype_class_new): Likewise.
25537 (ctype_map_new): Likewise.
25538 (set_one_default): Likewise.
25539 (set_class_defaults): Likewise.
25540 (translit_flatten): Likewise.
25541 (allocate_arrays): Use record_error, and record_verbose.
25542 * locale/programs/ld-identification.c: Don't include error.h.
25543 (indentation_finish): Use record_error and record_warning.
25544 * locale/programs/ld-measurement.c: Don't include error.h.
25545 (measurement_finish): Use record_error.
25546 * locale/programs/ld-messages.c
25547 (message_finish): Likewise.
25548 * locale/programs/ld-monetary.c
25549 (monetary_finish): Likewise.
25550 * locale/programs/ld-name.c (name_finish): Use record_error
25551 and record_warning.
25552 * locale/programs/ld-numeric.c
25553 (numeric_finish): Use record_error.
25554 * locale/programs/ld-paper.c: Don't include error.h.
25555 (paper_finish): Use record_error.
25556 * locale/programs/ld-telephone.c: Don't include error.h.
25557 (telephone_finish): Use record_error.
25558 * locale/programs/ld-time.c (time_finish): Likewise.
25559 * locale/programs/linereader.h (lr_error): Make inline func.
25560 * locale/programs/localedef.c: Define recorded_warning_count,
25561 and recorded_error_count.
25562 (main): Use record_error. Use recorded_error_count and
25563 recorded_warning_count to issue correct error returns.
25564 (add_to_readlist): Use record_error.
25565 (find_locale): Likewise.
25566 (load_locale): Likewise.
25567 * locale/programs/localedef.h: Remove be_quiet
25568 and WITH_CUR_LOCALE.
25569 * locale/programs/locarchive.c (compare_from_file): Use
25570 record_error.
25571 * locale/programs/locfile.c (write_locale_data): Use
25572 record_error.
25573 * locale/programs/repertoire.c: Dont include error.h.
25574 (repertoire_complain): Use record_error.
25575 * localedata/tst-fmon.sh: Expect failures from localedef.
25576 * localedata/tst-locale.sh: Likewise.
25577 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
25578
25579 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
25580 (REPORTS): Likewise.
25581 (check): Likewise.
25582 (i18n): Rename to...
25583 (i18n_ctype): ...this.
25584 (i18n-report): Rename to...
25585 (i18n_ctype-report): ...this.
25586 * localedata/locales/i18n_ctype: Regenerate.
25587 * localedata/locales/i18n: copy i18n_ctype.
25588
25589 2017-10-13 Joseph Myers <joseph@codesourcery.com>
25590
25591 * stdlib/strfroml.c: Include <bits/floatn.h>.
25592 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
25593 Define before include of <stdlib.h> and undefine afterwards, then
25594 define as weak alias.
25595
25596 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
25597 Undefine and restore default definition. Use
25598 libm_alias_ldouble_other.
25599
25600 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
25601
25602 [BZ #22153]
25603 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
25604 in coredumps.
25605
25606 2017-10-13 James Clarke <jrtc27@jrtc27.com>
25607
25608 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
25609 Assign sym_map to be map for local symbols, as TLS relocations
25610 use sym_map to determine whether the symbol is defined and to
25611 extract the TLS information.
25612 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
25613 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
25614
25615 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
25616
25617 [BZ #22189]
25618 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
25619 (math_force_eval): Add powerpc version.
25620
25621 [BZ #22142]
25622 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
25623 -DBL_MAX.
25624 (do_test): Likewise.
25625 * stdio-common/tst-printf.sh: Likewise.
25626 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
25627 ifdef clause in order to set the carry bit right. Replace r0 by
25628 0 without changing the behavior.
25629
25630 2017-10-13 Joseph Myers <joseph@codesourcery.com>
25631
25632 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
25633 <libm-alias-ldouble.h>.
25634 (fabsl): Define using libm_alias_ldouble.
25635 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
25636 <libm-alias-ldouble.h>.
25637 (fabsl): Define using libm_alias_ldouble.
25638
25639 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
25640 Remove conditional code.
25641
25642 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
25643 Rename to __clog10_internal_l.
25644 (__clog10_internal_l): Define aliases using
25645 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
25646 with __clog10.
25647
25648 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25649
25650 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
25651 * benchtests/sincosf-inputs: New file.
25652 * benchtests/cosf-inputs: New file.
25653 * benchtests/sinf-inputs: New file.
25654
25655 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
25656
25657 * posix/tst-spawn.c (do_test): Wait for both children.
25658
25659 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
25660
25661 [BZ #22284]
25662 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
25663 tests-pie): Add tst-gmon-pie.
25664 (CFLAGS-tst-gmon-pie.c): New.
25665 (CRT-tst-gmon-pie): Likewise.
25666 (tst-gmon-pie-ENV): Likewise.
25667 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
25668 ($(objpfx)tst-gmon-pie.out): Likewise.
25669 (clean-tst-gmon-pie-data): Likewise.
25670 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
25671 * gmon/gmon.c [PIC]: Include <link.h>.
25672 [PIC] (callback): New function.
25673 (write_hist): Add an argument for load address. Subtract load
25674 address from PCs.
25675 (write_call_graph): Likewise.
25676 (write_gmon): Call __dl_iterate_phdr to get load address, pass
25677 it to write_hist and write_call_graph.
25678 * gmon/tst-gmon-pie.c: New file.
25679
25680 2017-10-11 Joseph Myers <joseph@codesourcery.com>
25681
25682 * math/Makefile (test-types-basic): New variable.
25683 (test-types): Likewise.
25684 (libm-test-support): Use $(test-types) instead of $(types).
25685 (libm-tests-base-normal): Likewise.
25686 (libm-tests-base-finite): Likewise.
25687 (libm-tests-base-inline): Likewise.
25688 (generated): Likewise.
25689 ($(objpfx)libm-test-support-$(t).c): Likewise.
25690 (libm-tests-for-type iterator): Likewise.
25691 (libm-test-support iterator): Likewise.
25692 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
25693 (ulp_idx): Use ULP_IDX.
25694 * math/test-ldouble.h: Include <float.h>.
25695 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
25696 (ULP_IDX): New macro.
25697 (ULP_I_IDX): Likewise.
25698 * math/test-double.h (ULP_IDX): Likewise.
25699 (ULP_I_IDX): Likewise.
25700 * math/test-float.h (ULP_IDX): Likewise.
25701 (ULP_I_IDX): Likewise.
25702 * math/test-float128.h (ULP_IDX): Likewise.
25703 (ULP_I_IDX): Likewise.
25704
25705 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25706
25707 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
25708 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
25709 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
25710 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
25711 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
25712 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
25713 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
25714 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
25715 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
25716 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
25717 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
25718 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
25719 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
25720 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
25721 (SINGLE_THREAD_BY_GLOBAL): Define.
25722 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25723 Likewise.
25724 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25725 Likewise.
25726 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25727 Likewise.
25728 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25729 Likewise.
25730 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
25731 (SINGLE_THREAD_BY_GLOBAL): Likewise.
25732 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25733 Likewise.
25734
25735 2017-10-11 Andreas Schwab <schwab@suse.de>
25736
25737 * nis/Makefile (aux): Remove.
25738 * nscd/Makefile (aux): Add nscd_hash.
25739 (nscd-modules): Likewise.
25740 ($(objpfx)nscd): Don't depend on libnsl.
25741 * nscd/nscd_hash.c: New file.
25742 * nscd/nscd_hash.h: Likewise.
25743 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
25744 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
25745 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
25746 instead of <nis/rpcsvc/nis.h>.
25747 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
25748
25749 2017-10-11 Florian Weimer <fweimer@redhat.com>
25750
25751 [BZ #22078]
25752 Avoid large NSS buffers with many addresses, aliases.
25753 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
25754 using dynarrays and struct alloc_buffer.
25755 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
25756 (tst-nss-files-hosts-multi): Link with -ldl.
25757 * nss/tst-nss-files-hosts-multi.c: New file.
25758
25759 2017-10-11 Florian Weimer <fweimer@redhat.com>
25760
25761 [BZ #18023]
25762 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
25763 scratch_buffer. Eliminate gotos.
25764
25765 2017-10-11 Joseph Myers <joseph@codesourcery.com>
25766
25767 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
25768 libm_alias_ldouble_other.
25769 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
25770 undefine and redefine.
25771 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
25772 (exp10l): Do not define here.
25773 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
25774 (weak_alias): Undefine and redefine.
25775 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
25776 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
25777 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
25778 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
25779
25780 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
25781 [!__fma] (fma): Define using libm_alias_double.
25782 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
25783 [!__fmaf] (fmaf): Define using libm_alias_float.
25784 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
25785 (fmal): Define using libm_alias_ldouble.
25786
25787 2017-10-10 Joseph Myers <joseph@codesourcery.com>
25788
25789 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
25790 New macro.
25791 (libm_alias_double_other): Likewise.
25792 (libm_alias_double_r): Use libm_alias_double_other_r.
25793 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
25794 New macro.
25795 (libm_alias_float_other): Likewise.
25796 (libm_alias_float_r): Use libm_alias_float_other_r.
25797 * sysdeps/generic/libm-alias-float128.h
25798 (libm_alias_float128_other_r): New macro.
25799 (libm_alias_float128_other): Likewise.
25800 (libm_alias_float128_r): Use libm_alias_float128_other_r.
25801 * sysdeps/generic/libm-alias-ldouble.h
25802 (libm_alias_ldouble_other_r): New macro.
25803 (libm_alias_ldouble_other): Likewise.
25804 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25805 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
25806 (libm_alias_double_other_r): New macro.
25807 (libm_alias_double_other): Likewise.
25808 (libm_alias_double_r): Use libm_alias_double_other_r.
25809 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
25810 (libm_alias_ldouble_other_r): New macro.
25811 (libm_alias_ldouble_other): Likewise.
25812 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25813 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
25814 [!USE_AS_COMPAT]: Use libm_alias_double_other.
25815 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
25816 [!USE_AS_COMPAT]: Use libm_alias_float_other.
25817 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
25818 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
25819 * math/w_exp2f.c: Use libm_alias_float_other.
25820 * math/w_expf.c: Likewise.
25821 * math/w_log2f.c: Likewise.
25822 * math/w_logf.c: Likewise.
25823 * math/w_powf.c: Likewise.
25824 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
25825 [!__exp2f]: Use libm_alias_float_other.
25826 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
25827 [!__expf]: Use libm_alias_float_other.
25828 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
25829 [!__log2f]: Use libm_alias_float_other.
25830 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
25831 [!__logf]: Use libm_alias_float_other.
25832 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
25833 [!__powf]: Use libm_alias_float_other.
25834
25835 2017-10-10 Florian Weimer <fweimer@redhat.com>
25836
25837 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
25838 function.
25839 (_nss_files_gethostbyname3_r): Call it.
25840
25841 2017-10-09 Joseph Myers <joseph@codesourcery.com>
25842
25843 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
25844 error. Remove default definition of declare_mgen_alias.
25845 [!declare_mgen_alias_r]: Likewise.
25846 * sysdeps/generic/math-type-macros-double.h
25847 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
25848 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
25849 (declare_mgen_alias_r): Likewise.
25850 * sysdeps/generic/math-type-macros-float128.h
25851 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25852 * sysdeps/generic/math-type-macros-ldouble.h
25853 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25854 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
25855 macro.
25856 (declare_mgen_alias_r_s): Likewise.
25857 (declare_mgen_alias_r): Likewise.
25858 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
25859 (lgamma_r): Define using libm_alias_double_r.
25860 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
25861 (lgammaf_r): Define using libm_alias_float_r.
25862 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
25863 (lgammal_r): Define using libm_alias_ldouble_r.
25864 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
25865 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
25866
25867 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25868
25869 * lib/glob.c (__glob_pattern_type): Remove now-spurious
25870 extern declaration.
25871
25872 2017-10-09 Joseph Myers <joseph@codesourcery.com>
25873
25874 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
25875
25876 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
25877
25878 [BZ #21326]
25879 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
25880 [__cplusplus >= 201103] (__USE_ISOC99): Define.
25881 * math/Makefile (test-math-cxx11): New test.
25882 * math/test-math-cxx11.cc: New file.
25883
25884 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
25885
25886 * login/openpty.c (openpty): Close slave pty file descriptor on error.
25887
25888 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
25889 call to allocate the slave pty file descriptor.
25890
25891 2017-10-06 Joseph Myers <joseph@codesourcery.com>
25892
25893 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
25894 [!__fma] (fma): Define using libm_alias_double.
25895 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
25896 [!__fma] (fma): Define using libm_alias_double.
25897
25898 * sysdeps/ieee754/float128/float128_private.h: Include
25899 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
25900 (libm_alias_ldouble_r): Undefine and redefine.
25901 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
25902 <libm-alias-ldouble.h>.
25903 (asinhl): Define using libm_alias_ldouble.
25904 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
25905 <libm-alias-ldouble.h>.
25906 (atanl): Define using libm_alias_ldouble.
25907 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
25908 <libm-alias-ldouble.h>.
25909 (cbrtl): Define using libm_alias_ldouble.
25910 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
25911 <libm-alias-ldouble.h>.
25912 (ceill): Define using libm_alias_ldouble.
25913 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
25914 <libm-alias-ldouble.h>.
25915 (copysignl): Define using libm_alias_ldouble.
25916 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
25917 <libm-alias-ldouble.h>.
25918 (cosl): Define using libm_alias_ldouble.
25919 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
25920 <libm-alias-ldouble.h>.
25921 (erfl): Define using libm_alias_ldouble.
25922 (erfcl): Likewise.
25923 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
25924 <libm-alias-ldouble.h>.
25925 (expm1l): Define using libm_alias_ldouble.
25926 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
25927 <libm-alias-ldouble.h>.
25928 (fabsl): Define using libm_alias_ldouble.
25929 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
25930 <libm-alias-ldouble.h>.
25931 (floorl): Define using libm_alias_ldouble.
25932 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
25933 <libm-alias-ldouble.h>.
25934 (fmal): Define using libm_alias_ldouble.
25935 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
25936 <libm-alias-ldouble.h>.
25937 (frexpl): Define using libm_alias_ldouble.
25938 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
25939 libm_alias_ldouble.
25940 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
25941 <libm-alias-ldouble.h>.
25942 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
25943 libm_alias_ldouble.
25944 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
25945 <libm-alias-ldouble.h>.
25946 (getpayloadl): Define using libm_alias_ldouble.
25947 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
25948 <libm-alias-ldouble.h>.
25949 (llrintl): Define using libm_alias_ldouble.
25950 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
25951 <libm-alias-ldouble.h>.
25952 (llroundl): Define using libm_alias_ldouble.
25953 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
25954 <libm-alias-ldouble.h>.
25955 (logbl): Define using libm_alias_ldouble.
25956 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
25957 <libm-alias-ldouble.h>.
25958 (lrintl): Define using libm_alias_ldouble.
25959 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
25960 <libm-alias-ldouble.h>.
25961 (lroundl): Define using libm_alias_ldouble.
25962 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
25963 <libm-alias-ldouble.h>.
25964 (modfl): Define using libm_alias_ldouble.
25965 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
25966 <libm-alias-ldouble.h>.
25967 (nearbyintl): Define using libm_alias_ldouble.
25968 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
25969 <libm-alias-ldouble.h>.
25970 (nextafterl): Define using libm_alias_ldouble.
25971 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
25972 <libm-alias-ldouble.h>.
25973 (nextupl): Define using libm_alias_ldouble.
25974 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
25975 <libm-alias-ldouble.h>.
25976 (remquol): Define using libm_alias_ldouble.
25977 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
25978 <libm-alias-ldouble.h>.
25979 (rintl): Define using libm_alias_ldouble.
25980 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
25981 <libm-alias-ldouble.h>.
25982 (roundevenl): Define using libm_alias_ldouble.
25983 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
25984 <libm-alias-ldouble.h>.
25985 (roundl): Define using libm_alias_ldouble.
25986 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
25987 using libm_alias_ldouble.
25988 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
25989 <libm-alias-ldouble.h>.
25990 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
25991 Define using libm_alias_ldouble.
25992 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
25993 <libm-alias-ldouble.h>.
25994 (sincosl): Define using libm_alias_ldouble.
25995 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
25996 <libm-alias-ldouble.h>.
25997 (sinl): Define using libm_alias_ldouble.
25998 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
25999 <libm-alias-ldouble.h>.
26000 (tanhl): Define using libm_alias_ldouble.
26001 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
26002 <libm-alias-ldouble.h>.
26003 (tanl): Define using libm_alias_ldouble.
26004 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
26005 <libm-alias-ldouble.h>.
26006 (totalorderl): Define using libm_alias_ldouble.
26007 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
26008 <libm-alias-ldouble.h>.
26009 (totalordermagl): Define using libm_alias_ldouble.
26010 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
26011 <libm-alias-ldouble.h>.
26012 (truncl): Define using libm_alias_ldouble.
26013 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
26014 libm_alias_ldouble.
26015 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
26016 libm_alias_ldouble.
26017 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
26018 <libm-alias-ldouble.h>.
26019 (weak_alias): Do not undefine and redefine.
26020 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
26021 (copysignl): Define with long_double_symbol only if [IS_IN
26022 (libc)].
26023 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
26024 <libm-alias-ldouble.h>.
26025 (weak_alias): Do not undefine and redefine.
26026 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
26027 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
26028 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
26029 <libm-alias-ldouble.h>.
26030 (weak_alias): Do not undefine and redefine.
26031 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
26032 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
26033 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
26034 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
26035 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
26036 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
26037 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
26038 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
26039 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
26040 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
26041 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
26042 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
26043 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
26044 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
26045 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
26046 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
26047 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
26048 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
26049 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
26050 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
26051 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
26052 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
26053 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
26054 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
26055 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
26056 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
26057
26058 2017-10-06 Carlos O'Donell <carlos@redhat.com>
26059
26060 [BZ #22111]
26061 * malloc/malloc.c (tcache_shutting_down): Use bool type.
26062 (tcache_thread_freeres): Set tcache_shutting_down before
26063 freeing the tcache.
26064 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
26065 * malloc/tst-malloc-tcache-leak.c: New file.
26066
26067 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26068
26069 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
26070 back to powerpc32 file.
26071 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
26072 (memrchr): Add __memrchr_power8 to ifunc list.
26073 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
26074 extra bytes for unaligned inputs.
26075
26076 2017-10-06 Joseph Myers <joseph@codesourcery.com>
26077
26078 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
26079 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
26080 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
26081 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
26082 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
26083
26084 2017-10-05 Joseph Myers <joseph@codesourcery.com>
26085
26086 * sysdeps/arm/libm-test-ulps: Update.
26087
26088 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
26089 <libm-alias-ldouble.h>.
26090 (asinhl): Define using libm_alias_ldouble.
26091 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
26092 <libm-alias-ldouble.h>.
26093 (cbrtl): Define using libm_alias_ldouble.
26094 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
26095 <libm-alias-ldouble.h>.
26096 (copysignl): Define using libm_alias_ldouble.
26097 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
26098 <libm-alias-ldouble.h>.
26099 (cosl): Define using libm_alias_ldouble.
26100 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
26101 <libm-alias-ldouble.h>.
26102 (erfl): Define using libm_alias_ldouble.
26103 (erfcl): Likewise.
26104 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
26105 <libm-alias-ldouble.h>.
26106 (fmal): Define using libm_alias_ldouble.
26107 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
26108 <libm-alias-ldouble.h>.
26109 (frexpl): Define using libm_alias_ldouble.
26110 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
26111 libm_alias_ldouble.
26112 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
26113 <libm-alias-ldouble.h>.
26114 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
26115 libm_alias_ldouble.
26116 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
26117 <libm-alias-ldouble.h>.
26118 (getpayloadl): Define using libm_alias_ldouble.
26119 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
26120 <libm-alias-ldouble.h>.
26121 (llrintl): Define using libm_alias_ldouble.
26122 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
26123 <libm-alias-ldouble.h>.
26124 (llroundl): Define using libm_alias_ldouble.
26125 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
26126 <libm-alias-ldouble.h>.
26127 (lrintl): Define using libm_alias_ldouble.
26128 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
26129 <libm-alias-ldouble.h>.
26130 (lroundl): Define using libm_alias_ldouble.
26131 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
26132 <libm-alias-ldouble.h>.
26133 (modfl): Define using libm_alias_ldouble.
26134 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
26135 <libm-alias-ldouble.h>.
26136 (nextupl): Define using libm_alias_ldouble.
26137 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
26138 <libm-alias-ldouble.h>.
26139 (remquol): Define using libm_alias_ldouble.
26140 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
26141 <libm-alias-ldouble.h>.
26142 (roundevenl): Define using libm_alias_ldouble.
26143 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
26144 <libm-alias-ldouble.h>.
26145 (roundl): Define using libm_alias_ldouble.
26146 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
26147 using libm_alias_ldouble.
26148 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
26149 <libm-alias-ldouble.h>.
26150 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
26151 <libm-alias-ldouble.h>.
26152 (setpayloadsigl): Define using libm_alias_ldouble.
26153 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
26154 <libm-alias-ldouble.h>.
26155 (sincosl): Define using libm_alias_ldouble.
26156 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
26157 <libm-alias-ldouble.h>.
26158 (sinl): Define using libm_alias_ldouble.
26159 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
26160 <libm-alias-ldouble.h>.
26161 (tanhl): Define using libm_alias_ldouble.
26162 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
26163 <libm-alias-ldouble.h>.
26164 (tanl): Define using libm_alias_ldouble.
26165 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
26166 <libm-alias-ldouble.h>.
26167 (totalorderl): Define using libm_alias_ldouble.
26168 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
26169 <libm-alias-ldouble.h>.
26170 (totalordermagl): Define using libm_alias_ldouble.
26171 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
26172 libm_alias_ldouble.
26173 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
26174 libm_alias_ldouble.
26175
26176 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
26177
26178 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
26179 memmove_falkor.
26180 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
26181 (__libc_ifunc_impl_list): Likewise.
26182 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
26183 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
26184
26185 * benchtests/bench-memmove-walk.c: New file.
26186 * benchtests/Makefile (string-benchset): Add it.
26187
26188 * benchtests/bench-memset-walk.c: New file.
26189 * benchtests/Makefile (string-benchset): Add it.
26190
26191 * benchtests/bench-memcpy-walk.c: New file.
26192 * benchtests/Makefile (string-benchset): Add it.
26193
26194 2017-10-05 Florian Weimer <fweimer@redhat.com>
26195
26196 nscd: Eliminate compilation time dependency in the build output.
26197 * nscd/nscd_stat.c (STATDATA_VERSION)
26198 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
26199 (STATDATA_VERSION_FULL): New macro definitions.
26200 (compilation): Remove.
26201 (struct statdata): Adjust version member.
26202 (send_stats): Set version from STATDATA_VERSION_FULL.
26203 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
26204
26205 2017-10-05 Joseph Myers <joseph@codesourcery.com>
26206
26207 * configure.ac (--enable-add-ons): Remove option.
26208 (machine): Do not mention add-ons in comment.
26209 (LIBC_PRECONFIGURE): Likewise.
26210 (add_ons): Remove variable and sanity checks and logic to locate
26211 add-ons.
26212 (add_ons_automatic): Remove variable.
26213 (configured_add_ons): Likewise.
26214 (add_ons_sfx): Likewise.
26215 (add_ons_pfx): Likewise.
26216 (add_on_subdirs): Likewise.
26217 (sysnames_add_ons): Likewise. Remove loop over add-ons and
26218 consideration of add-ons in Implies handling.
26219 (sysdeps_add_ons): Likewise.
26220 * configure: Regenerated.
26221 * libidn/configure.ac: Remove.
26222 * libidn/configure: Likewise.
26223 * sysdeps/unix/inet/configure.ac: New file.
26224 * sysdeps/unix/inet/configure: New generated file.
26225 * sysdeps/unix/inet/Subdirs: Add libidn.
26226 * Makeconfig (sysdeps-srcdirs): Remove variable.
26227 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
26228 ($(common-objpfx)config.status): Do not depend on add-on files.
26229 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
26230 comment.
26231 (all-subdirs): Do not include $(add-on-subdirs).
26232 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
26233 * config.make.in (add-ons): Remove variable.
26234 (add-on-subdirs): Likewise.
26235 (sysdeps-add-ons): Likewise.
26236 * manual/Makefile (add-chapters): Remove.
26237 ($(objpfx)texis): Do not depend on $(add-chapters).
26238 (nonexamples): Do not handle $(add-chapters).
26239 (examples): Do not handle $(add-ons).
26240 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
26241 libc-texinfo.sh.
26242 * manual/install.texi (Installation): Do not mention add-ons.
26243 (--enable-add-ons): Do not document configure option.
26244 * INSTALL: Regenerated.
26245 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
26246 * manual/maint.texi (Hierarchy Conventions): Do not mention
26247 add-ons.
26248 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
26249 --enable-add-ons.
26250 * scripts/gen-sorted.awk: Do not handle Subdirs files from
26251 add-ons.
26252 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
26253 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
26254
26255 2017-10-05 Andreas Schwab <schwab@suse.de>
26256
26257 [BZ #15142]
26258 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
26259 (_IO_flush_all_lockp): Always lock list_all_lock.
26260 (_IO_flush_all_linebuffered): Likewise.
26261 (_IO_unbuffer_all): Likewise.
26262
26263 2017-10-05 Florian Weimer <fweimer@redhat.com>
26264
26265 [BZ #15436]
26266 Do not flush stdio streams on abort.
26267 * stdlib/abort.c (fflush): Remove macro definition.
26268 (abort): Remove stages related to stdio flushing.
26269
26270 2017-10-05 Florian Weimer <fweimer@redhat.com>
26271
26272 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
26273
26274 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
26275
26276 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
26277
26278 2017-10-05 Florian Weimer <fweimer@redhat.com>
26279
26280 * support/support_format_hostent.c (support_format_hostent): Add
26281 more error information for NETDB_INTERNAL.
26282
26283 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
26284
26285 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
26286 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
26287 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
26288 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
26289 AC_DEFINE if multi-arch is enabled.
26290 * sysdeps/i386/configure: Regenerated.
26291
26292 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
26293
26294 * Makeconfig (+link-static-before-libc): Use
26295 $(DEFAULT-LDFLAGS-$(@F)).
26296 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
26297 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
26298 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
26299
26300 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
26301
26302 * elf/Makefile (tests): Add tst-main1.
26303 (modules-names): Add tst-main1mod.
26304 ($(objpfx)tst-main1): New.
26305 (CRT-tst-main1): Likewise.
26306 (LDFLAGS-tst-main1): Likewise.
26307 (LDLIBS-tst-main1): Likewise.
26308 (tst-main1mod.so-no-z-defs): Likewise.
26309 * elf/tst-main1.c: New file.
26310 * elf/tst-main1mod.c: Likewise.
26311
26312 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
26313
26314 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
26315
26316 2017-10-04 Joseph Myers <joseph@codesourcery.com>
26317
26318 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
26319 (fma): Define using libm_alias_double.
26320 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
26321 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
26322 <math_ldbl_opt.h>.
26323 (fmal): Do not define as compat symbol here.
26324 * sysdeps/alpha/fpu/s_fma.c: New file.
26325
26326 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
26327
26328 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
26329
26330 2017-10-04 Joseph Myers <joseph@codesourcery.com>
26331
26332 [BZ #22229]
26333 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
26334 <math_ldbl_opt.h>
26335 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
26336 and libc.
26337 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
26338 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
26339 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
26340 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
26341 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
26342 Include <math_ldbl_opt.h>
26343 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
26344 and libc.
26345 (compat_symbol): Undefine and redefine.
26346 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
26347 <math_ldbl_opt.h>
26348 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
26349 (compat_symbol): Undefine and redefine.
26350 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
26351 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
26352 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
26353 GLIBC_2_1 for libm.
26354 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
26355 GLIBC_2.0 copysignl symbol.
26356 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
26357 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
26358
26359 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
26360
26361 2017-10-04 Florian Weimer <fweimer@redhat.com>
26362
26363 * scripts/check-local-headers.sh: Ignore nspr4 header file
26364 directory in addition to nspr.
26365
26366 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
26367
26368 [BZ #17956]
26369 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
26370 * configure: Regenerate.
26371 * crypt/Makefile (nss-cpp-flags): New variable.
26372 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
26373 (CPPFLAGS-md5-crypt.c): Use it.
26374 * scripts/check-local-headers.sh: Ignore nspr header file
26375 directory.
26376
26377 2017-10-04 Andreas Schwab <schwab@suse.de>
26378
26379 * nis/Makefile (services): Remove compat.
26380 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
26381 ($(objpfx)libnss_compat.so): Remove rule.
26382 * nis/Versions (libnss_compat): Remove.
26383 * nss/Makefile (services): Add compat.
26384 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
26385 * nss/Versions (libnss_compat): Define.
26386 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
26387 Don't include <rpc/types.h>. Replace bool_t by bool.
26388 * nss/nss_compat/compat-initgroups.c: Likewise.
26389 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
26390 instead of <rpcsrv/ypclnt.h>.
26391 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
26392 yp_get_default_domain.
26393 * nss/nss_compat/compat-pwd.c: Likewise.
26394 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
26395 yp_get_default_domain.
26396 * nss/nss_compat/nisdomain.c: New file.
26397 * nss/nss_compat/nisdomain.h: Likewise.
26398
26399 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
26400
26401 [BZ #22244]
26402 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
26403 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
26404
26405 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
26406
26407 [BZ #22243]
26408 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
26409 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
26410
26411 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26412
26413 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
26414 "movl main@GOTOFF(%ebx), %eax".
26415
26416 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26417
26418 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
26419 allow undefined _DYNAMIC in PIE libc.a.
26420 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
26421 Likewse.
26422
26423 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26424
26425 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
26426 check _DYNAMIC.
26427
26428 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26429
26430 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
26431 check _DYNAMIC.
26432
26433 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26434
26435 * math/test-math-iscanonical.cc (error): Replace bool with int.
26436
26437 2017-10-03 Joseph Myers <joseph@codesourcery.com>
26438
26439 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
26440 (modf): Define using libm_alias_double, only if [!__modf].
26441 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
26442 <libm-alias-double.h>.
26443 (modf): Define using libm_alias_double, only if [!__modf].
26444 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
26445 compat symbol here.
26446 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
26447 (weak_alias): Do not undefine and redefine.
26448 (strong_alias): Likewise.
26449 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
26450 (weak_alias): Likewise.
26451 (strong_alias): Likewise.
26452
26453 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
26454 (logb): Define using libm_alias_double, only if [!__logb].
26455 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
26456 <libm-alias-double.h>.
26457 (logb): Define using libm_alias_double, only if [!__logb].
26458 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
26459 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
26460 (weak_alias): Do not undefine and redefine.
26461 (strong_alias): Likewise.
26462 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
26463 (weak_alias): Likewise.
26464 (strong_alias): Likewise.
26465
26466 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26467
26468 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
26469 Check SHARED instead PIC.
26470
26471 2017-10-03 Joseph Myers <joseph@codesourcery.com>
26472
26473 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
26474 [!__fmaf] (fmaf): Define using libm_alias_float.
26475
26476 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
26477 (frexp): Define using libm_alias_double.
26478 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
26479 <libm-alias-double.h>.
26480 (frexp): Define using libm_alias_double.
26481 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
26482 compat symbol here.
26483
26484 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26485
26486 [BZ #22235]
26487 * math/math.h: Trivial fix for unbalanced parentheses in comment.
26488 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
26489 (CFLAGS-test-math-iscanonical.cc): New variable.
26490 * math/test-math-iscanonical.cc: New file.
26491 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
26492 Provide a C++ implementation based on function overloading,
26493 rather than using __MATH_TG, which uses C-only builtins.
26494 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
26495 Likewise.
26496 * sysdeps/powerpc/powerpc64le/Makefile
26497 (CFLAGS-test-math-iscanonical.cc): New variable.
26498
26499 2017-10-03 Joseph Myers <joseph@codesourcery.com>
26500
26501 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
26502 (ceil): Define using libm_alias_double.
26503 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
26504 (floor): Define using libm_alias_double.
26505 * sysdeps/ieee754/dbl-64/s_llround.c: Include
26506 <libm-alias-double.h>.
26507 (llround): Define using libm_alias_double.
26508 * sysdeps/ieee754/dbl-64/s_lround.c: Include
26509 <libm-alias-double.h>.
26510 (lround): Define using libm_alias_double.
26511 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
26512 <libm-alias-double.h>.
26513 (nearbyint): Define using libm_alias_double.
26514 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
26515 <libm-alias-double.h>.
26516 (remquo): Define using libm_alias_double.
26517 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
26518 (rint): Define using libm_alias_double.
26519 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
26520 (round): Define using libm_alias_double.
26521 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
26522 (trunc): Define using libm_alias_double.
26523 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
26524 <libm-alias-double.h>.
26525 (ceil): Define using libm_alias_double.
26526 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
26527 <libm-alias-double.h>.
26528 (floor): Define using libm_alias_double.
26529 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
26530 <libm-alias-double.h>.
26531 (llround): Define using libm_alias_double.
26532 [_LP64] (lround): Likewise.
26533 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
26534 <libm-alias-double.h>.
26535 [!_LP64] (lround): Define using libm_alias_double.
26536 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
26537 <libm-alias-double.h>.
26538 (nearbyint): Define using libm_alias_double.
26539 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
26540 <libm-alias-double.h>.
26541 (remquo): Define using libm_alias_double.
26542 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
26543 <libm-alias-double.h>.
26544 (rint): Define using libm_alias_double.
26545 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
26546 <libm-alias-double.h>.
26547 (round): Define using libm_alias_double.
26548 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
26549 <libm-alias-double.h>.
26550 (trunc): Define using libm_alias_double.
26551 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
26552 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
26553 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
26554 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
26555 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
26556 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
26557 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
26558 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
26559 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
26560
26561 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
26562
26563 * math/w_remainder.c: New file.
26564 * math/w_remainderf.c: New file.
26565 * math/w_remainderl.c: New file.
26566
26567 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26568
26569 * elf/rtld.c (BOOTSTRAP_MAP): New.
26570 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
26571 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26572 Likewise.
26573 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26574 Likewise.
26575 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26576 Likewise.
26577
26578 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
26579
26580 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
26581 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
26582 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
26583 rtld_hidden_data_ver): Define to empty.
26584 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
26585 __assert_perror_fail): Likewise.
26586 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26587 (__rewinddir): Likewise.
26588 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26589 (__profile_frequency): Likewise.
26590 * include/setjmp.h (__sigsetjmp): Likewise.
26591 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
26592 __libc_sigaction): Likewise.
26593 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
26594 not set hidden attribute.
26595 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
26596 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
26597 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
26598 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
26599 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
26600 __fxstatat64): Likewise.
26601 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26602 (__uname): Likewise.
26603 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26604 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
26605 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
26606 (NO_RTLD_HIDDEN): Set.
26607 * sysdeps/mach/hurd/configure: Refresh.
26608 * config.h.in: Refresh.
26609
26610 2017-10-02 Joseph Myers <joseph@codesourcery.com>
26611
26612 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
26613 (atan): Define using libm_alias_double.
26614 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
26615 (tan): Define using libm_alias_double.
26616 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
26617 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
26618
26619 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
26620 define as weak alias of __atan. Do not define any aliases if
26621 [__atan].
26622 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
26623 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
26624 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
26625 as weak alias of __tan. Do not define any aliases if [__tan].
26626 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
26627 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
26628 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
26629 __atan.
26630 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
26631 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
26632 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
26633 and define as weak alias of __atan.
26634 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
26635 __atan.
26636 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
26637 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
26638 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
26639 define as weak alias of __tan.
26640
26641 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26642
26643 * math/w_lgamma.c: New file.
26644 * math/w_lgammaf.c: New file.
26645 * math/w_lgammal.c: New file.
26646
26647 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26648
26649 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
26650 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
26651 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
26652 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
26653 * sysdeps/ieee754/flt-32/w_logf.c: New file.
26654 * sysdeps/ieee754/flt-32/w_powf.c: New file.
26655 * sysdeps/i386/fpu/w_log2f.c: New file.
26656 * sysdeps/i386/fpu/w_logf.c: New file.
26657 * sysdeps/i386/fpu/w_powf.c: New file.
26658 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
26659 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
26660 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
26661
26662 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26663 H.J. Lu <hongjiu.lu@intel.com>
26664
26665 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
26666 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
26667 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
26668 * sysdeps/ieee754/flt-32/w_expf.c: New file.
26669 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
26670 the new expf code.
26671 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
26672 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
26673 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
26674 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
26675 * sysdeps/i386/fpu/w_exp2f.c: New file.
26676 * sysdeps/i386/fpu/w_expf.c: New file.
26677 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
26678 * sysdeps/x86_64/fpu/w_expf.c: New file.
26679
26680 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26681
26682 * math/Versions (logf): New libm symbol at GLIBC_2.27.
26683 (log2f): Likewise.
26684 (powf): Likewise.
26685 * math/w_log2f.c: New file.
26686 * math/w_logf.c: New file.
26687 * math/w_powf.c: New file.
26688 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
26689 * math/w_logf_compat.c (__logf_compat): Likewise.
26690 * math/w_powf_compat.c (__powf_compat): Likewise.
26691 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
26692 * sysdeps/ia64/fpu/e_logf.S: Likewise.
26693 * sysdeps/ia64/fpu/e_powf.S: Likewise.
26694 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
26695 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26696 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
26697 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
26698 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
26699 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
26700 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
26701 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
26702 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
26703 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
26704 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26705 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
26706 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
26707 Likewise.
26708 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
26709 Likewise.
26710 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
26711 Likewise.
26712 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
26713 Likewise.
26714 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26715 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26716 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
26717 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26718 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26719 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
26720 Likewise.
26721 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
26722 Likewise.
26723 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
26724 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
26725 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
26726
26727 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26728
26729 * sysdeps/powerpc/powerpc64/multiarch/Makefile
26730 (sysdep_routines): Add memrchr_power8.
26731 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
26732 (memrchr): Add __memrchr_power8 to list of memrchr functions.
26733 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
26734 New file.
26735 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
26736 (memrchr): Add __memrchr_power8 to ifunc list.
26737 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
26738
26739 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26740
26741 [BZ #18822]
26742 * sysdeps/unix/sysv/linux/posix_fadvise64.c
26743 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
26744 libc_hidden_def.
26745 * sysdeps/unix/sysv/linux/posix_fallocate64.c
26746 (__posix_fallocate64_l64): Likewise.
26747
26748 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26749
26750 [BZ #18822]
26751 * sysdeps/unix/sysv/linux/sched_setaffinity.c
26752 (__sched_setaffinity_new): Add libc_hidden_proto and
26753 libc_hidden_def.
26754
26755 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26756
26757 [BZ #18822]
26758 * include/glob.h (__glob64): Add libc_hidden_proto.
26759 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
26760 libc_hidden_def.
26761
26762 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26763
26764 [BZ #18822]
26765 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
26766 attribute_hidden.
26767
26768 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26769
26770 [BZ #18822]
26771 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
26772
26773 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26774
26775 [BZ #18822]
26776 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
26777 libc_hidden_def.
26778
26779 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26780
26781 [BZ #18822]
26782 * csu/version.c (__libc_print_version): Add attribute_hidden.
26783
26784 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26785
26786 [BZ #18822]
26787 * include/libc-internal.h (__init_misc): Add attribute_hidden.
26788
26789 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26790
26791 [BZ #18822]
26792 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
26793
26794 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26795
26796 [BZ #18822]
26797 * nscd/nscd_helper.c (__nis_hash): New prototype.
26798
26799 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26800
26801 [BZ #18822]
26802 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
26803 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
26804 libc_hidden_def.
26805 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
26806 * termios/tcgetattr.c (__tcgetattr): Likewise.
26807
26808 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26809
26810 [BZ #18822]
26811 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
26812 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
26813 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
26814 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
26815 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
26816
26817 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26818
26819 [BZ #18822]
26820 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
26821
26822 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26823
26824 [BZ #18822]
26825 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
26826 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
26827
26828 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26829
26830 [BZ #18822]
26831 * intl/hash-string.h (__hash_string): Add attribute_hidden.
26832
26833 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26834
26835 [BZ #18822]
26836 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
26837 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
26838
26839 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26840
26841 [BZ #18822]
26842 * include/ifreq.h: New file.
26843 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
26844 (__ifreq): Likewise.
26845 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
26846 (__ifreq): Likewise.
26847
26848 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26849
26850 [BZ #18822]
26851 * include/idna.h: New file.
26852 * inet/getnameinfo.c: Include <idna.h> instead of
26853 <libidn/idna.h>.
26854 (__idna_to_unicode_lzlz): Removed.
26855 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
26856 <libidn/idna.h>.
26857 (__idna_to_ascii_lz): Removed.
26858 (__idna_to_unicode_lzlz): Likewise.
26859
26860 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26861
26862 [BZ #18822]
26863 * include/plural-exp.h: New file.
26864 * intl/plural-exp.c: Include <plural-exp.h> instead of
26865 "plural-exp.h".
26866
26867 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26868
26869 [BZ #18822]
26870 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
26871 "getsourcefilter.h".
26872 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
26873 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
26874 "getsourcefilter.h".
26875 (__get_sol): Removed.
26876
26877 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26878
26879 [BZ #18822]
26880 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
26881 to ...
26882 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
26883
26884 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26885
26886 [BZ #18822]
26887 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
26888 attribute_hidden.
26889
26890 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26891
26892 [BZ #18822]
26893 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
26894
26895 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26896
26897 [BZ #18822]
26898 * include/search.h (__tdestroy): Add libc_hidden_proto.
26899 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
26900
26901 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26902
26903 [BZ #18822]
26904 * include/assert.h (__assert_fail_base): Add attribute_hidden.
26905
26906 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26907
26908 [BZ #18822]
26909 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
26910 attribute_hidden.
26911
26912 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26913
26914 [BZ #18822]
26915 * include/signal.h (__kill): Add libc_hidden_proto.
26916 (__sigblock): Likewise.
26917 (__sigprocmask): Likewise.
26918 (__sigaltstack): Likewise.
26919 * signal/kill.c (__kill): Add libc_hidden_def.
26920 * signal/sigblock.c (__sigblock): Likewise.
26921 * signal/sigprocmask.c (__sigprocmask): Likewise.
26922 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
26923 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
26924 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
26925 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
26926 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
26927 Likewise.
26928 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
26929 Likewise.
26930 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
26931 (__sigprocmask): Likewise.
26932 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
26933 Likewise.
26934 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
26935 (__sigprocmask): Likewise.
26936 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
26937 Likewise.
26938
26939 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26940
26941 [BZ #18822]
26942 * include/string.h (__strsep): Add libc_hidden_proto.
26943 * string/strsep.c (__strsep): Add libc_hidden_def.
26944
26945 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26946
26947 [BZ #18822]
26948 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
26949 attribute_hidden.
26950 (__spawni): Likewise.
26951
26952 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26953
26954 [BZ #18822]
26955 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
26956 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
26957 libc_hidden_def.
26958
26959 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26960
26961 [BZ #18822]
26962 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
26963
26964 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26965
26966 [BZ #18822]
26967 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
26968 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
26969 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
26970 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
26971 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
26972 Likewise.
26973 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
26974 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
26975
26976 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26977
26978 [BZ #18822]
26979 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
26980 (__dcigettext): Likewise.
26981
26982 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26983
26984 [BZ #18822]
26985 * include/sys/sysinfo.h (__get_nprocs_conf): Add
26986 libc_hidden_proto.
26987 (__get_nprocs): Likewise.
26988 (__get_phys_pages): Likewise.
26989 (__get_avphys_pages): Likewise.
26990 (__get_child_max): Add attribute_hidden.
26991 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
26992 (__get_nprocs): Likewise.
26993 (__get_phys_pages): Likewise.
26994 (__get_avphys_pages): Likewise.
26995 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
26996 libc_hidden_def.
26997 (__get_nprocs): Likewise.
26998 (__get_phys_pages): Likewise.
26999 (__get_avphys_pages): Likewise.
27000 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
27001 libc_hidden_def.
27002 (__get_nprocs_conf): Likewise.
27003 (__get_phys_pages): Likewise.
27004 (__get_avphys_pages): Likewise.
27005
27006 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27007
27008 [BZ #18822]
27009 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
27010 attribute_hidden.
27011 (__netlink_close): Likewise.
27012 (__netlink_free_handle): Likewise.
27013 (__netlink_request): Likewise.
27014
27015 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27016
27017 [BZ #18822]
27018 * include/rpc/rpc.h (__rpc_thread_variables): Add
27019 attribute_hidden.
27020 (__rpc_thread_svc_cleanup): Likewise.
27021 (__rpc_thread_clnt_cleanup): Likewise.
27022 (__rpc_thread_key_cleanup): Likewise.
27023
27024 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27025
27026 [BZ #18822]
27027 * include/sys/uio.h (__readv): Add libc_hidden_proto.
27028 (__writev): Likewise.
27029 * misc/readv.c (__readv): Add libc_hidden_def.
27030 * misc/writev.c (__writev): Likewise.
27031 * sysdeps/posix/readv.c (__readv): Likewise.
27032 * sysdeps/posix/writev.c (__writev): Likewise.
27033 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
27034 (__readv): Likewise.
27035 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
27036 (__writev): Likewise.
27037
27038 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27039
27040 [BZ #18822]
27041 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
27042 (__regcomp): Add libc_hidden_proto.
27043 (__regexec): Likewise.
27044 (__regfree): Likewise.
27045 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
27046 (__regfree): Likewise.
27047 * posix/regexec.c (__regexec): Likewise.
27048
27049 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27050
27051 [BZ #18822]
27052 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
27053 (__getutent): Likewise.
27054 (__getutid): Likewise.
27055 (__getutline): Likewise.
27056 (__pututline): Likewise.
27057 (__getutent_r): Likewise.
27058 (__getutid_r): Likewise.
27059 (__getutline_r): Likewise.
27060 (__utmpname): Add attribute_hidden.
27061 (__setutent): Likewise.
27062 (__endutent): Likewise.
27063 * login/getutent.c (__getutent): Add libc_hidden_def.
27064 * login/getutent_r.c (__getutent_r): Likewise.
27065 (__pututline): Likewise.
27066 * login/getutid.c (__getutid): Likewise.
27067 * login/getutid_r.c (__getutid_r): Likewise.
27068 * login/getutline.c (__getutline): Likewise.
27069 * login/getutline_r.c (__getutline_r): Likewise.
27070 * login/updwtmp.c (__updwtmp): Likewise.
27071
27072 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27073
27074 [BZ #18822]
27075 * include/dirent.h (__opendir): Always add attribute_hidden.
27076 (__fdopendir): Likewise.
27077 (__closedir): Likewise.
27078 (__readdir): Likewise.
27079 (__readdir64): Add libc_hidden_proto.
27080 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
27081 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
27082 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
27083 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
27084 New alias.
27085
27086 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27087
27088 [BZ #18822]
27089 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
27090 * include/netdb.h (__gethostbyaddr_r): Likewise.
27091 (__gethostbyname_r): Likewise.
27092 (__gethostbyname2_r): Likewise.
27093 (__getnetbyaddr_r): Likewise.
27094 (__getnetbyname_r): Likewise.
27095 (__getservbyname_r): Likewise.
27096 (__getservbyport_r): Likewise.
27097 (__getprotobyname_r): Likewise.
27098 (__getprotobynumber_r): Likewise.
27099 (__getnetgrent_r): Likewise.
27100 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
27101 (__getrpcbynumber_r): Likewise.
27102 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
27103
27104 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27105
27106 [BZ #18822]
27107 * include/stdio.h (__fcloseall): Add attribute_hidden.
27108 (__getline): Likewise.
27109 (__path_search): Likewise.
27110 (__gen_tempname): Likewise.
27111 (__libc_message): Likewise.
27112 (__flockfile): Likewise.
27113 (__funlockfile): Likewise.
27114 (__fxprintf): Likewise.
27115 (__fxprintf_nocancel): Likewise.
27116
27117 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27118
27119 [BZ #18822]
27120 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
27121 (__sgetsgent_r): Likewise.
27122
27123 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27124
27125 [BZ #18822]
27126 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
27127 (__statfs64): Likewise.
27128 (__fstatfs64): Likewise.
27129 * include/sys/statvfs.h (__statvfs64): Likewise.
27130 (__fstatvfs64): Likewise.
27131 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
27132 (__statfs_filesize_max): Likewise.
27133 (__statfs_symlinks): Likewise.
27134 (__statfs_chown_restricted): Likewise.
27135
27136 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27137
27138 [BZ #18822]
27139 * include/time.h (__tzstring): Add attribute_hidden.
27140 (__tzfile_read): Likewise.
27141 (__tzfile_compute): Likewise.
27142 (__tzfile_default): Likewise.
27143 (__tzset_parse_tz): Likewise.
27144 (__offtime): Likewise.
27145 (__asctime_r): Likewise.
27146 (__tzset): Likewise.
27147 (__tz_convert): Likewise.
27148 (__getdate_r): Likewise.
27149 (__getclktck): Likewise.
27150
27151 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27152
27153 [BZ #18822]
27154 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
27155 (__nscd_unmap): Likewise.
27156 (__nscd_cache_search): Likewise.
27157 (__nscd_get_nl_timestamp): Likewise.
27158 (__nscd_getpwnam_r): Likewise.
27159 (__nscd_getpwuid_r): Likewise.
27160 (__nscd_getgrnam_r): Likewise.
27161 (__nscd_getgrgid_r): Likewise.
27162 (__nscd_gethostbyname_r): Likewise.
27163 (__nscd_gethostbyname2_r): Likewise.
27164 (__nscd_gethostbyaddr_r): Likewise.
27165 (__nscd_getai): Likewise.
27166 (__nscd_getgrouplist): Likewise.
27167 (__nscd_getservbyname_r): Likewise.
27168 (__nscd_getservbyport_r): Likewise.
27169 (__nscd_innetgr): Likewise.
27170 (__nscd_setnetgrent): Likewise.
27171
27172 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27173
27174 [BZ #18822]
27175 * include/gmp.h: Declare internal functions only if _ISOMAC is
27176 undefined.
27177 (__mpn_extract_double): Add attribute_hidden.
27178 (__mpn_extract_long_double): Likewise.
27179 (__mpn_extract_float128): Likewise.
27180 (__mpn_construct_float): Likewise.
27181 (__mpn_construct_double): Likewise.
27182 (__mpn_construct_long_double): Likewise.
27183 (__mpn_construct_float128): Likewise.
27184 (mpn_add_1): Likewise.
27185 (mpn_addmul_1): Likewise.
27186 (mpn_add_n): Likewise.
27187 (mpn_cmp): Likewise.
27188 (mpn_divrem): Likewise.
27189 (mpn_lshift): Likewise.
27190 (mpn_mul): Likewise.
27191 (mpn_mul_1): Likewise.
27192 (mpn_rshift): Likewise.
27193 (mpn_sub_1): Likewise.
27194 (mpn_submul_1): Likewise.
27195 (mpn_sub_n): Likewise.
27196
27197 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27198
27199 [BZ #18822]
27200 * include/wchar.h (__wcsnlen): Add attribute_hidden.
27201 (__wcscat): Likewise.
27202 (__btowc): Likewise.
27203 (__wcrtomb): Likewise.
27204 (__mbsrtowcs): Likewise.
27205 (__wcsrtombs): Likewise.
27206 (__mbsnrtowcs): Likewise.
27207 (__wcsnrtombs): Likewise.
27208 (__wcsncpy): Likewise.
27209 (__wcpncpy): Likewise.
27210 (__wmemcpy): Likewise.
27211 (__wmempcpy): Likewise.
27212 (__wmemmove): Likewise.
27213 (__wcschrnul): Likewise.
27214 (__vfwscanf): Likewise.
27215 (__vswprintf): Likewise.
27216 (__fwprintf): Likewise.
27217 (__vfwprintf): Likewise.
27218
27219 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27220
27221 [BZ #18822]
27222 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
27223 (__getgrgid_r): Likewise.
27224 (__getgrnam_r): Likewise.
27225 * include/pwd.h (__getpwuid_r): Likewise.
27226 (__getpwnam_r): Likewise.
27227 (__fgetpwent_r): Likewise.
27228 * include/shadow.h (__getspnam_r): Likewise.
27229 (__sgetspent_r): Likewise.
27230 (__fgetspent_r): Likewise.
27231
27232 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27233
27234 [BZ #18822]
27235 * include/unistd.h (__access): Add attribute_hidden.
27236 (__lseek64): Likewise.
27237 (__libc_pread64): Likewise.
27238 (__pipe2): Likewise.
27239 (__sleep): Likewise.
27240 (__chdir): Likewise.
27241 (__fchdir): Likewise.
27242 (__getcwd): Likewise.
27243 (__rmdir): Likewise.
27244 (__execvpe): Likewise.
27245 (__execve): Likewise.
27246 (__setsid): Likewise.
27247 (__getuid): Likewise.
27248 (__geteuid): Likewise.
27249 (__getgid): Likewise.
27250 (__getegid): Likewise.
27251 (__getgroups): Likewise.
27252 (__group_member): Likewise.
27253 (__ttyname_r): Likewise.
27254 (__isatty): Likewise.
27255 (__readlink): Likewise.
27256 (__unlink): Likewise.
27257 (__gethostname): Likewise.
27258 (__profil): Likewise.
27259 (__getdtablesize): Likewise.
27260 (__brk): Likewise.
27261 (__ftruncate): Likewise.
27262 (__ftruncate64): Likewise.
27263
27264 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27265
27266 [BZ #18822]
27267 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
27268 * argp/argp-fs-xinl.c: Likewise.
27269 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
27270 * argp/argp-parse.c: Include <argp.h>.
27271 * argp/argp-xinl.c: Likewise.
27272 * include/argp-fmtstream.h: New file.
27273 * include/argp.h (__argp_error): Add attribute_hidden.
27274 (__argp_failure): Likewise.
27275 (__argp_input): Likewise.
27276 (__argp_state_help): Likewise.
27277
27278 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27279
27280 [BZ #18822]
27281 * include/wchar.h (____wcstof_l_internal): New prototype.
27282 (____wcstod_l_internal): Likewise.
27283 (____wcstold_l_internal): Likewise.
27284 (____wcstol_l_internal): Likewise.
27285 (____wcstoul_l_internal): Likewise.
27286 (____wcstoll_l_internal): Likewise.
27287 (____wcstoull_l_internal): Likewise.
27288 (____wcstof128_l_internal): Likewise.
27289 * sysdeps/ieee754/float128/wcstof128.c
27290 (____wcstof128_l_internal): Removed.
27291 * sysdeps/ieee754/float128/wcstof128_l.c
27292 (____wcstof128_l_internal): Likewise.
27293 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
27294 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
27295 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
27296 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
27297 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
27298 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
27299 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
27300 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
27301 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
27302 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
27303
27304 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27305
27306 [BZ #18822]
27307 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
27308 instead of <sys/statvfs.h>.
27309 (__internal_statvfs): Removed.
27310 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
27311 instead of <sys/statvfs.h>.
27312 (__internal_statvfs64): Removed.
27313 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
27314 "internal_statvfs.h" instead of <sys/statvfs.h>.
27315 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
27316 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
27317 instead of <sys/statvfs.h>.
27318 (__internal_statvfs): Removed.
27319 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
27320 instead of <sys/statvfs.h>.
27321 (__internal_statvfs64): Removed.
27322
27323 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27324
27325 [BZ #18822]
27326 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
27327 (__gconv_close): Likewise.
27328 (__gconv): Likewise.
27329 (__gconv_find_transform): Likewise.
27330 (__gconv_lookup_cache): Likewise.
27331 (__gconv_compare_alias_cache): Likewise.
27332 (__gconv_load_cache): Likewise.
27333 (__gconv_get_path): Likewise.
27334 (__gconv_close_transform): Likewise.
27335 (__gconv_release_cache): Likewise.
27336 (__gconv_find_shlib): Likewise.
27337 (__gconv_release_shlib): Likewise.
27338 (__gconv_get_builtin_trans): Likewise.
27339 (__gconv_compare_alias): Likewise.
27340 * include/dlfcn.h (_dlerror_run): Likewise.
27341 * include/stdio.h (__fortify_fail_abort): Likewise.
27342 * include/time.h (__tz_compute): Likewise.
27343 (__strptime_internal): Likewise.
27344 * intl/gettextP.h (_nl_find_domain): Likewise.
27345 (_nl_load_domain): Likewise.
27346 (_nl_find_msg): Likewise.
27347 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
27348 (EXTRACT_PLURAL_EXPRESSION): Likewise.
27349 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
27350 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
27351 (__gai_find_request): Likewise.
27352 (__gai_remove_request): Likewise.
27353 (__gai_notify): Likewise.
27354 (__gai_notify_only): Likewise.
27355 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
27356 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
27357 (_dl_non_dynamic_init): Likewise.
27358 (_dl_aux_init): Likewise.
27359 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
27360 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
27361 Likewise.
27362 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
27363 (__wcsmbs_clone_conv): Likewise.
27364 (__wcsmbs_named_conv): Likewise.
27365
27366 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27367
27368 [BZ #18822]
27369 * include/stdlib.h (__random): Add attribute_hidden.
27370 (__random_r): Likewise.
27371 (__srandom_r): Likewise.
27372 (__initstate_r): Likewise.
27373 (__setstate_r): Likewise.
27374 (__erand48_r): Likewise.
27375 (__nrand48_r): Likewise.
27376 (__jrand48_r): Likewise.
27377 (__srand48_r): Likewise.
27378 (__seed48_r): Likewise.
27379 (__lcong48_r): Likewise.
27380 (__drand48_iterate): Likewise.
27381 (__setenv): Likewise.
27382 (__unsetenv): Likewise.
27383 (__clearenv): Likewise.
27384 (__ptsname_r): Likewise.
27385 (__posix_openpt): Likewise.
27386 (__add_to_environ): Likewise.
27387 (__realpath): Add libc_hidden_proto.
27388 (__ecvt_r): Likewise.
27389 (__fcvt_r): Likewise.
27390 (__qecvt_r): Likewise.
27391 (__qfcvt_r): Likewise.
27392 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
27393 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
27394
27395 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27396
27397 [BZ #18822]
27398 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
27399 * include/time.h (__mktime_internal): Likewise.
27400 * libio/iolibio.h (__fopen_internal): Likewise.
27401
27402 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
27403
27404 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
27405 pointer in frame.
27406 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
27407 Correct offset used to restore PIC register.
27408
27409 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
27410
27411 [BZ libc/22165]
27412 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
27413 code to load address of __getcontext_ret when generating PIC code.
27414
27415 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
27416
27417 * elf/Makefile (tests-static-internal): Add
27418 tst-tls1-static-non-pie.
27419 (LDFLAGS-tst-tls1-static-non-pie): New.
27420 * elf/tst-tls1-static-non-pie.c: New file.
27421
27422 2017-09-29 Joseph Myers <joseph@codesourcery.com>
27423
27424 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
27425 (asinh): Define using libm_alias_double.
27426 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
27427 (cbrt): Define using libm_alias_double.
27428 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
27429 <libm-alias-double.h>.
27430 (copysign): Define using libm_alias_double.
27431 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
27432 (erf): Define using libm_alias_double.
27433 (erfc): Likewise.
27434 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
27435 (expm1): Define using libm_alias_double.
27436 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
27437 (fabs): Define using libm_alias_double.
27438 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
27439 libm_alias_double.
27440 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
27441 <libm-alias-double.h>.
27442 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
27443 libm_alias_double.
27444 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
27445 <libm-alias-double.h>.
27446 (getpayload): Define using libm_alias_double.
27447 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
27448 <libm-alias-double.h>.
27449 (llrint): Define using libm_alias_double.
27450 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
27451 (lrint): Define using libm_alias_double.
27452 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
27453 <libm-alias-double.h>.
27454 (nextup): Define using libm_alias_double.
27455 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
27456 <libm-alias-double.h>.
27457 (roundeven): Define using libm_alias_double.
27458 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
27459 libm_alias_double.
27460 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
27461 <libm-alias-double.h>.
27462 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
27463 using libm_alias_double.
27464 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
27465 (cos): Define using libm_alias_double.
27466 (sin): Likewise.
27467 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
27468 <libm-alias-double.h>.
27469 (sincos): Define using libm_alias_double.
27470 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
27471 (tanh): Define using libm_alias_double.
27472 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
27473 <libm-alias-double.h>.
27474 (totalorder): Define using libm_alias_double.
27475 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
27476 <libm-alias-double.h>.
27477 (totalordermag): Define using libm_alias_double.
27478 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
27479 libm_alias_double.
27480 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
27481 libm_alias_double.
27482 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
27483 <libm-alias-double.h>.
27484 (getpayload): Define using libm_alias_double.
27485 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
27486 <libm-alias-double.h>.
27487 (roundeven): Define using libm_alias_double.
27488 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
27489 <libm-alias-double.h>.
27490 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
27491 <libm-alias-double.h>.
27492 (totalorder): Define using libm_alias_double.
27493 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
27494 <libm-alias-double.h>.
27495 (totalordermag): Define using libm_alias_double.
27496 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
27497 libc compat symbol here.
27498 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
27499 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
27500 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
27501 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
27502 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
27503 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
27504 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
27505 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
27506 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
27507 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
27508
27509 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27510
27511 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
27512 _dl_relocate_static_pie instead of _dl_start to compute load
27513 address in static PIE. Return 0 if _DYNAMIC is undefined for
27514 static executable.
27515
27516 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27517
27518 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
27519 _DYNAMIC is undefined for static executable.
27520
27521 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27522
27523 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
27524
27525 2017-09-29 Joseph Myers <joseph@codesourcery.com>
27526
27527 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27528
27529 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
27530
27531 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
27532 (__ieee754_lgamma_r): Use fabs rather than __fabs.
27533 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
27534 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
27535 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
27536 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
27537 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
27538 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
27539 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
27540 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
27541 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
27542 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
27543 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
27544 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
27545 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
27546 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
27547 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
27548
27549 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
27550
27551 * math/bits/cmathcalls.h (cimag): Remove inline.
27552 (creal): Remove inline.
27553 (conj): Remove inline.
27554
27555 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27556
27557 * math/Makefile (type-float-routines): Add e_powf_log2_data.
27558 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
27559 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
27560 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
27561 (issignalingf_inline): Likewise.
27562 (POWF_LOG2_TABLE_BITS): Likewise.
27563 (POWF_LOG2_POLY_ORDER): Likewise.
27564 (POWF_SCALE_BITS): Likewise.
27565 (POWF_SCALE): Likewise.
27566 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
27567 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
27568 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
27569
27570 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27571
27572 * math/Makefile (type-float-routines): Add e_log2f_data.
27573 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
27574 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
27575 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
27576 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
27577 * sysdeps/i386/fpu/e_log2f_data.c: New file.
27578 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
27579 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
27580
27581 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27582
27583 * math/Makefile (type-float-routines): Add e_logf_data.
27584 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
27585 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
27586 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
27587 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
27588 * sysdeps/i386/fpu/e_logf_data.c: New file.
27589 * sysdeps/ia64/fpu/e_logf_data.c: New file.
27590 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
27591
27592 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
27593
27594 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
27595 undefined _DYNAMIC in PIE libc.a.
27596 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
27597 Likewse.
27598
27599 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
27600
27601 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
27602 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
27603 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
27604 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
27605 (__signbit): Remove.
27606 (__signbitl): Remove.
27607 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
27608 (__signbit): Remove.
27609 (__signbitl): Remove.
27610 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
27611 (__signbit): Remove.
27612 (__signbitl): Remove.
27613 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
27614 (__signbit): Remove.
27615 (__signbitl): Remove.
27616 * sysdeps/tile/bits/mathinline.h: Delete file.
27617 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
27618 (__signbit): Remove.
27619 (__signbitl): Remove.
27620
27621 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
27622
27623 * math/math.h: Improve handling of C99 isgreater macros.
27624 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
27625 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
27626 * sysdeps/powerpc/bits/mathinline.h: Likewise.
27627 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
27628 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
27629
27630 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
27631
27632 * sysdeps/aarch64/libm-test-ulps: Update.
27633
27634 2017-09-28 Joseph Myers <joseph@codesourcery.com>
27635
27636 [BZ #22225]
27637 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
27638 math_opt_barrier on argument when doing arithmetic on it.
27639 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
27640 Likewise. Use math_force_eval not math_opt_barrier after
27641 arithmetic.
27642 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
27643 math_opt_barrier on argument when doing arithmetic on it.
27644 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
27645 Likewise.
27646
27647 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
27648
27649 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
27650 libc_hidden_def.
27651 (__freeifaddrs): Likewise.
27652
27653 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
27654
27655 * include/dirent.h (__dirfd): New declaration.
27656 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
27657 alias.
27658 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
27659 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
27660 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
27661 * include/unistd.h (__revoke): New declaration.
27662 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
27663 alias.
27664 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
27665 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
27666 revoke.
27667 * include/dirent.h (__seekdir): New declaration.
27668 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
27669 redefine as weak alias.
27670 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
27671 of seekdir.
27672 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
27673 and use libc_hidden_def on them.
27674 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
27675 them.
27676 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
27677 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
27678 instead of getifaddrs and freeifaddrs.
27679
27680 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
27681
27682 [BZ #18822]
27683 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
27684 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
27685 (__dso_handle): Remove declaration.
27686 * dlfcn/tstatexit.c (__dso_handle): Removed.
27687 (main): Don't check __dso_handle.
27688 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
27689 (main): Don't check __dso_handle.
27690 * include/dso_handle.h: New file.
27691 * malloc/mtrace.c: Include <dso_handle.h>.
27692 (mtrace): Pass __dso_handle directly.
27693 * nptl/pthread_atfork.c: Include <dso_handle.h>.
27694 (__dso_handle): Remove declaration.
27695 (__pthread_atfork): Pass __dso_handle directly.
27696 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
27697 (__dso_handle): Removed.
27698 * posix/wordexp-test.c: Include <dso_handle.h>.
27699 (__dso_handle): Remove declaration.
27700 (__app_register_atfork): Pass __dso_handle directly.
27701 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
27702 (__dso_handle): Remove declaration.
27703 (at_quick_exit): Pass __dso_handle directly.
27704 * stdlib/atexit.c: Include <dso_handle.h>.
27705 (__dso_handle): Remove declaration.
27706 (atexit): Pass __dso_handle directly.
27707 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
27708 (__dso_handle): Removed.
27709
27710 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27711
27712 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
27713 using VDSO.
27714
27715 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
27716
27717 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
27718 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
27719 values to correct default value for given type.
27720
27721 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
27722
27723 [BZ #22101]
27724 * elf/Makefile (tests): Add tst-debug1.
27725 ($(objpfx)tst-debug1): New.
27726 ($(objpfx)tst-debug1.out): Likewise.
27727 ($(objpfx)tst-debug1mod1.so): Likewise.
27728 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
27729 with p_filesz == 0.
27730 * elf/tst-debug1.c: New file.
27731
27732 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27733
27734 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
27735 Define using __ifunc.
27736
27737 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27738
27739 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
27740 exp2f() values.
27741
27742 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27743
27744 [BZ #22156]
27745 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
27746
27747 2017-09-26 Florian Weimer <fweimer@redhat.com>
27748
27749 * resolv/Makefile (tests-internal): Fix typo in comment.
27750
27751 2017-09-26 Florian Weimer <fweimer@redhat.com>
27752
27753 * resolv/nss_dns/dns-host.c: Fix typo in comment.
27754
27755 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27756
27757 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
27758 Use an union instead of a max_align_t array for __space,
27759 so that __space is the same size on all platforms.
27760 * malloc/scratch_buffer_grow_preserve.c
27761 (__libc_scratch_buffer_grow_preserve): Likewise.
27762
27763 [BZ #22183]
27764 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
27765 version to 2.
27766 * posix/Makefile (routines): Add glob-lstat-compat and
27767 glob64-lstat-compat.
27768 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
27769 * posix/glob-lstat-compat.c: New file.
27770 * posix/glob64-lstat-compat.c: Likewise.
27771 * posix/tst-glob_lstat_compat.c: Likewise.
27772 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
27773 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
27774 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
27775 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
27776 Likewise.
27777 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
27778 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
27779 * posix/glob.c (glob_lstat): New function.
27780 (glob): Rename to __glob and add versioned symbol to 2.27.
27781 (glob_in_dir): Use glob_lstat.
27782 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
27783 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
27784 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
27785 2.27.
27786 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
27787 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
27788 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
27789 gl_lstat on glob call.
27790 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
27791 and glob64 symbols.
27792 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27793 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
27794 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
27795 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
27796 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
27797 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
27798 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
27799 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
27800 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
27801 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27802 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27803 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
27804 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
27805 Likewise.
27806 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
27807 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
27808 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27809 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27810 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
27811 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27812 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27813 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
27814 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
27815 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
27816 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
27817 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
27818
27819 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
27820
27821 * configure.ac (AS): Require binutils 2.25 or later.
27822 * configure: Regenerated.
27823
27824 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
27825
27826 [BZ #22207]
27827 * stdlib/test-atexit-race-common.c (do_test): Minimize required
27828 VM size.
27829
27830 2017-09-25 DJ Delorie <dj@redhat.com>
27831
27832 [BZ #22161]
27833 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
27834 resetting timeout.
27835
27836 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
27837
27838 * sysdeps/ieee754/dbl-64/sincos32.h
27839 [SINCCOS32_H]: Remove define.
27840 [SINCOS32_H]: Define.
27841
27842 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27843
27844 * math/Versions (expf): New libm symbol at GLIBC_2.27.
27845 (exp2f): Likewise.
27846 * math/w_exp2f.c: New file.
27847 * math/w_expf.c: New file.
27848 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
27849 * math/w_expf_compat.c (__expf_compat): Likewise.
27850 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
27851 * sysdeps/ia64/fpu/e_expf.S: Likewise.
27852 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
27853 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27854 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
27855 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
27856 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
27857 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
27858 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
27859 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
27860 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
27861 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
27862 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27863 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
27864 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
27865 Likewise.
27866 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
27867 Likewise.
27868 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
27869 Likewise.
27870 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
27871 Likewise.
27872 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27873 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27874 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
27875 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27876 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27877 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
27878 Likewise.
27879 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
27880 Likewise.
27881 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
27882 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
27883 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
27884
27885 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27886
27887 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
27888 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
27889 (roundtoint, converttoint): Likewise.
27890 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
27891 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
27892 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
27893 * sysdeps/ieee754/flt-32/math_config.h: New file.
27894 * sysdeps/ieee754/flt-32/math_errf.c: New file.
27895 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
27896 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
27897 * sysdeps/i386/fpu/math_errf.c: New file.
27898 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
27899 * sysdeps/ia64/fpu/math_errf.c: New file.
27900 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
27901 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
27902
27903 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
27904
27905 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
27906 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
27907 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
27908 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
27909 to make sure that these symbols are defined.
27910 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
27911 of <limits.h>
27912 (__need_NULL): Do not define.
27913 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
27914 alignment.
27915 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
27916 CMGROUP_MAX, cmsgcred): Do not define.
27917 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
27918 NULL.
27919 * bits/socket.h: Likewise.
27920 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
27921 __gettimeofday instead of gettimeofday.
27922 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
27923 instead of settimeofday.
27924
27925 2017-09-22 Joseph Myers <joseph@codesourcery.com>
27926
27927 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
27928 (asinhf): Define using libm_alias_float.
27929 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
27930 (atanf): Define using libm_alias_float.
27931 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
27932 (cbrtf): Define using libm_alias_float.
27933 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
27934 (ceilf): Define using libm_alias_float.
27935 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
27936 <libm-alias-float.h>.
27937 (copysignf): Define using libm_alias_float.
27938 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
27939 (cosf): Define using libm_alias_float.
27940 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
27941 (erff): Define using libm_alias_float.
27942 (erfcf): Likewise.
27943 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
27944 (expm1f): Define using libm_alias_float.
27945 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
27946 (fabsf): Define using libm_alias_float.
27947 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
27948 (floorf): Define using libm_alias_float.
27949 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
27950 (frexpf): Define using libm_alias_float.
27951 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
27952 libm_alias_float.
27953 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
27954 <libm-alias-float.h>.
27955 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
27956 libm_alias_float.
27957 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
27958 <libm-alias-float.h>.
27959 (getpayloadf): Define using libm_alias_float.
27960 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
27961 <libm-alias-float.h>.
27962 (llrintf): Define using libm_alias_float.
27963 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
27964 <libm-alias-float.h>.
27965 (llroundf): Define using libm_alias_float.
27966 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
27967 (logbf): Define using libm_alias_float.
27968 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
27969 (lrintf): Define using libm_alias_float.
27970 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
27971 (lroundf): Define using libm_alias_float.
27972 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
27973 (modff): Define using libm_alias_float.
27974 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
27975 <libm-alias-float.h>.
27976 (nearbyintf): Define using libm_alias_float.
27977 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
27978 <libm-alias-float.h>.
27979 (nextafterf): Define using libm_alias_float.
27980 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
27981 <libm-alias-float.h>.
27982 (nextupf): Define using libm_alias_float.
27983 * sysdeps/ieee754/flt-32/s_remquof.c: Include
27984 <libm-alias-float.h>.
27985 (remquof): Define using libm_alias_float.
27986 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
27987 (rintf): Define using libm_alias_float.
27988 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
27989 <libm-alias-float.h>.
27990 (roundevenf): Define using libm_alias_float.
27991 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
27992 (roundf): Define using libm_alias_float.
27993 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
27994 using libm_alias_float.
27995 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
27996 <libm-alias-float.h>.
27997 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
27998 Define using libm_alias_float.
27999 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
28000 <libm-alias-float.h>.
28001 (sincosf): Define using libm_alias_float.
28002 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
28003 (sinf): Define using libm_alias_float.
28004 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
28005 (tanf): Define using libm_alias_float.
28006 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
28007 (tanhf): Define using libm_alias_float.
28008 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
28009 <libm-alias-float.h>.
28010 (totalorderf): Define using libm_alias_float.
28011 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
28012 <libm-alias-float.h>.
28013 (totalordermagf): Define using libm_alias_float.
28014 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
28015 (truncf): Define using libm_alias_float.
28016 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
28017 libm_alias_float.
28018 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
28019 libm_alias_float.
28020
28021 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
28022
28023 [BZ #22146]
28024 math/math.h: Let fpclassify use the builtin in C++ mode, even
28025 when optimazing for size.
28026
28027 2017-09-22 Joseph Myers <joseph@codesourcery.com>
28028
28029 * csu/Makefile (generated): Do not add version-info.h.
28030 (before-compile): Likewise.
28031 (all-Banner-files): Remove variable.
28032 ($(objpfx)version-info.h): Remove rule.
28033 * csu/version.c (banner): Do not include "version-info.h".
28034 * libidn/Banner: Remove.
28035 * manual/contrib.texi (Simon Josefsson): New entry.
28036
28037 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
28038
28039 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
28040 Remove conditionals on LDBL_MANT_DIG.
28041 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
28042 (__ieee754_lgammal_r): Likewise.
28043
28044 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
28045
28046 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
28047 _Float128 and L().
28048 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
28049 _Float128 and L(). Replace _Float128 with long double and L(x)
28050 with xL, throughout the file.
28051 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
28052 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
28053 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
28054 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
28055
28056 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
28057
28058 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
28059 sysdeps/ieee754/ldbl-128ibm.
28060 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
28061 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
28062 of including it. Keep _Float128 and L() intact. These will be
28063 reviewed by a separate patch.
28064 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
28065 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
28066 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
28067 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
28068
28069 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
28070
28071 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
28072 (__finitef128): Define to __redirect___finitef128.
28073 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
28074 (__isinff128): Define to __redirect___isinff128.
28075 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
28076 (__isnanf128): Define to __redirect___isnanf128.
28077
28078 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
28079
28080 * sysdeps/powerpc/powerpc64le/Makefile
28081 (CFLAGS-tst-strtod-nan-locale.c): New variable.
28082 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
28083
28084 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
28085 Carlos O'Donell <carlos@redhat.com>
28086
28087 [BZ #22180]
28088 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
28089 * stdlib/test-dlclose-exit-race.c: New file.
28090 * stdlib/test-dlclose-exit-race-helper.c: New file.
28091 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
28092
28093 2017-09-21 Joseph Myers <joseph@codesourcery.com>
28094
28095 * crypt/Banner: Remove file.
28096 * nptl/Banner: Likewise.
28097 * resolv/Banner: Likewise.
28098 * soft-fp/Banner: Likewise.
28099 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
28100 ($(objpfx)version.d): Remove dependency on banner.h.
28101 ($(objpfx)version.os): Likewise.
28102 * nptl/version.c (banner): Do not include banner.h.
28103 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
28104 Jelinek and BIND code.
28105
28106 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
28107 Carlos O'Donell <carlos@redhat.com>
28108
28109 * support/xdlfcn.h: New file.
28110 * support/xdlfcn.c: New file.
28111 * support/Makefile (libsupport-routines): Add xdlfcn.
28112 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
28113
28114 2017-09-20 Joseph Myers <joseph@codesourcery.com>
28115
28116 [BZ #20142]
28117 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
28118 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
28119 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
28120 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
28121 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
28122 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
28123 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
28124 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
28125
28126 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
28127 Ricky Zhou <rickyz@google.com>
28128 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
28129
28130 [BZ #14333]
28131 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
28132 Remove atomics.
28133 (__new_exitfn): Fail registration when we finished at_exit processing.
28134 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
28135 * stdlib/on_exit.c (__on_exit): Likewise.
28136 * stdlib/exit.c (__exit_funcs_done): New variable.
28137 (__run_exit_handlers): Use __exit_funcs_lock.
28138 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
28139 declarations.
28140 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
28141 (test-cxa_atexit-race, test-on_exit-race): New tests.
28142 * stdlib/test-atexit-race-common.c: New file.
28143 * stdlib/test-atexit-race.c: New file.
28144 * stdlib/test-at_quick_exit-race.c: New file.
28145 * stdlib/test-cxa_atexit-race.c: New file.
28146 * stdlib/test-on_exit-race.c: New file.
28147
28148 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
28149
28150 * benchtests/Makefile: Add exp2f and log2f benchmarks.
28151 * benchtests/exp2f-inputs: Copy of expf-inputs.
28152 * benchtests/log2f-inputs: Copy of logf-inputs.
28153
28154 2017-09-19 Joseph Myers <joseph@codesourcery.com>
28155
28156 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
28157 Explicitly take address of first element of array arguments in
28158 call to INLINE_SYSCALL.
28159
28160 2017-09-19 Andreas Schwab <schwab@suse.de>
28161
28162 [BZ #22134]
28163 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
28164 execveat first.
28165 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
28166 unimplemented.
28167 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
28168 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
28169 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
28170 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
28171 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
28172 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
28173 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
28174 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
28175 * posix/Makefile (tests): Add tst-fexecve.
28176 * posix/tst-fexecve.c: New file.
28177
28178 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
28179
28180 * benchtests/Makefile: Add logf benchmark.
28181 * benchtests/logf-inputs: Add reduced trace from wrf_r.
28182
28183 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
28184
28185 * benchtests/Makefile: Add expf benchmark.
28186 * benchtests/expf-inputs: Add reduced trace from wrf_r.
28187
28188 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
28189
28190 * csu/Makefile: Add -funwind-tables to libc-start.c.
28191 * debug/Makefile: Add -funwind-tables to backtrace.c.
28192 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
28193 * sysdeps/arm/Makefile: Likewise.
28194 * sysdeps/i386/Makefile: Likewise.
28195 * sysdeps/m68k/Makefile: Likewise.
28196 * sysdeps/mips/Makefile: Likewise.
28197 * sysdeps/nios2/Makefile: Likewise.
28198 * sysdeps/sh/Makefile: Likewise.
28199 * sysdeps/sparc/Makefile: Likewise.
28200
28201 2017-09-19 Joseph Myers <joseph@codesourcery.com>
28202
28203 * benchtests/Makefile (bench-math): Add trunc and truncf.
28204 (CFLAGS-bench-trunc.c): New variable.
28205 (CFLAGS-bench-truncf.c): Likewise.
28206 * benchtests/trunc-inputs: New file.
28207 * benchtests/truncf-inputs: Likewise.
28208
28209 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
28210
28211 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
28212
28213 2017-09-18 Joseph Myers <joseph@codesourcery.com>
28214
28215 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
28216 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
28217 redefine.
28218 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
28219 (exp10l): Define as weak alias.
28220 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
28221 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
28222 and redefine.
28223 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
28224 (remainderl): Define as weak alias.
28225
28226 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
28227 (fmal): Define using libm_alias_ldouble.
28228 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
28229 (acoshl): Define using libm_alias_ldouble.
28230 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
28231 (acosl): Define using libm_alias_ldouble.
28232 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
28233 (asinl): Define using libm_alias_ldouble.
28234 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
28235 (atan2l): Define using libm_alias_ldouble.
28236 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
28237 (atanhl): Define using libm_alias_ldouble.
28238 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
28239 (coshl): Define using libm_alias_ldouble.
28240 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
28241 (exp10l): Define using libm_alias_ldouble.
28242 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
28243 (exp2l): Define using libm_alias_ldouble.
28244 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
28245 (expl): Define using libm_alias_ldouble.
28246 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
28247 (fmodl): Define using libm_alias_ldouble.
28248 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
28249 (hypotl): Define using libm_alias_ldouble.
28250 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
28251 (j0l): Define using libm_alias_ldouble.
28252 (y0l): Likewise.
28253 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
28254 (j1l): Define using libm_alias_ldouble.
28255 (y1l): Likewise.
28256 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
28257 (jnl): Define using libm_alias_ldouble.
28258 (ynl): Likewise.
28259 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
28260 (log10l): Define using libm_alias_ldouble.
28261 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
28262 (log2l): Define using libm_alias_ldouble.
28263 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
28264 (logl): Define using libm_alias_ldouble.
28265 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
28266 (powl): Define using libm_alias_ldouble.
28267 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
28268 (remainderl): Define using libm_alias_ldouble.
28269 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
28270 (sinhl): Define using libm_alias_ldouble.
28271 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
28272 (sqrtl): Define using libm_alias_ldouble.
28273 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
28274 (tgammal): Define using libm_alias_ldouble.
28275 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
28276 (exp10l): Do not use long_double_symbol here.
28277 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
28278 [LIBM_SVID_COMPAT] (remainderl): Likewise.
28279 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
28280 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
28281 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
28282 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
28283 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
28284 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
28285 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
28286 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
28287 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
28288 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
28289 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
28290 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
28291 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
28292 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
28293 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
28294 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
28295 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
28296 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
28297 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
28298 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
28299
28300 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
28301
28302 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
28303 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
28304
28305 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
28306
28307 * io/read.c (read): Add libc_hidden_weak.
28308 * sysdeps/mach/hurd/read.c (read): Likewise.
28309 * io/write.c (write): Likewise.
28310 * sysdeps/mach/hurd/write.c (write): Likewise.
28311 * io/pread64.c (__pread64): Likewise.
28312 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
28313 * posix/pread64.c (__pread64): Add libc_hidden_def.
28314
28315 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
28316
28317 * benchtests/scripts/compare_strings.py: New option -g.
28318 (draw_graph): Print a message that a graph is being generated.
28319 (process_results): Generate graph only if -g is passed.
28320 (main): Process option -g.
28321
28322 * benchtests/scripts/compare_strings.py (process_results):
28323 Better spacing for output.
28324
28325 * benchtests/scripts/compare_strings.py: Use argparse.
28326 * benchtests/README: Document existence of compare_strings.py.
28327
28328 2017-09-15 Joseph Myers <joseph@codesourcery.com>
28329
28330 * math/s_fma.c: Include <libm-alias-double.h>.
28331 (fma): Define using libm_alias_double.
28332 * math/s_nextafter.c: Include <libm-alias-double.h>.
28333 (nextafter): Define using libm_alias_double.
28334 * math/w_acos_compat.c: Include <libm-alias-double.h>.
28335 (acos): Define using libm_alias_double.
28336 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
28337 (aocsh): Define using libm_alias_double.
28338 * math/w_asin_compat.c: Include <libm-alias-double.h>.
28339 (asin): Define using libm_alias_double.
28340 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
28341 (atan2): Define using libm_alias_double.
28342 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
28343 (atanh): Define using libm_alias_double.
28344 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
28345 (cosh): Define using libm_alias_double.
28346 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
28347 (exp10): Define using libm_alias_double.
28348 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
28349 (exp2): Define using libm_alias_double.
28350 * math/w_exp_compat.c: Include <libm-alias-double.h>.
28351 (exp): Define using libm_alias_double.
28352 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
28353 (fmod): Define using libm_alias_double.
28354 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
28355 (hypot): Define using libm_alias_double.
28356 * math/w_j0_compat.c: Include <libm-alias-double.h>.
28357 (j0): Define using libm_alias_double.
28358 (y0): Likewise.
28359 * math/w_j1_compat.c: Include <libm-alias-double.h>.
28360 (j1): Define using libm_alias_double.
28361 (y1): Likewise.
28362 * math/w_jn_compat.c: Include <libm-alias-double.h>.
28363 (jn): Define using libm_alias_double.
28364 (yn): Likewise.
28365 * math/w_log10_compat.c: Include <libm-alias-double.h>.
28366 (log10): Define using libm_alias_double.
28367 * math/w_log2_compat.c: Include <libm-alias-double.h>.
28368 (log2): Define using libm_alias_double.
28369 * math/w_log_compat.c: Include <libm-alias-double.h>.
28370 (log): Define using libm_alias_double.
28371 * math/w_pow_compat.c: Include <libm-alias-double.h>.
28372 (pow): Define using libm_alias_double.
28373 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
28374 (remainder): Define using libm_alias_double.
28375 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
28376 (sinh): Define using libm_alias_double.
28377 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
28378 (sqrt): Define using libm_alias_double.
28379 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
28380 (tgamma): Define using libm_alias_double.
28381 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
28382 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
28383 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
28384 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
28385 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
28386 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
28387 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
28388 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
28389 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
28390 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
28391 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
28392 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
28393 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
28394 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
28395 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
28396 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
28397 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
28398 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
28399 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
28400 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
28401 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
28402 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
28403 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
28404 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
28405 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
28406
28407 * math/e_acoshl.c: Remove.
28408 * math/e_acosl.c: Likewise.
28409 * math/e_asinl.c: Likewise.
28410 * math/e_atan2l.c: Likewise.
28411 * math/e_atanhl.c: Likewise.
28412 * math/e_coshl.c: Likewise.
28413 * math/e_expl.c: Likewise.
28414 * math/e_fmodl.c: Likewise.
28415 * math/e_gammal_r.c: Likewise.
28416 * math/e_hypotl.c: Likewise.
28417 * math/e_j0l.c: Likewise.
28418 * math/e_j1l.c: Likewise.
28419 * math/e_jnl.c: Likewise.
28420 * math/e_lgammal_r.c: Likewise.
28421 * math/e_log10l.c: Likewise.
28422 * math/e_log2l.c: Likewise.
28423 * math/e_logl.c: Likewise.
28424 * math/e_powl.c: Likewise.
28425 * math/e_rem_pio2l.c: Likewise.
28426 * math/e_sinhl.c: Likewise.
28427 * math/e_sqrtf128.c: Likewise.
28428 * math/e_sqrtl.c: Likewise.
28429 * math/k_cosl.c: Likewise.
28430 * math/k_sinl.c: Likewise.
28431 * math/k_tanl.c: Likewise.
28432 * math/s_asinhl.c: Likewise.
28433 * math/s_atanl.c: Likewise.
28434 * math/s_cbrtl.c: Likewise.
28435 * math/s_erfl.c: Likewise.
28436 * math/s_expm1l.c: Likewise.
28437 * math/s_log1pl.c: Likewise.
28438 * math/s_tanhl.c: Likewise.
28439
28440 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
28441
28442 [BZ #21745]
28443 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
28444 [$(subdir) = math] (sysdep_calls): New variable. Has the
28445 previous contents of sysdep_routines, but re-sorted..
28446 [$(subdir) = math] (sysdep_routines): Re-use the contents from
28447 sysdep_calls.
28448 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
28449 defined in sysdep_calls and replace by the respective m_* names.
28450 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
28451 (compat_symbol): Undefine to avoid duplicated compat symbols in
28452 libc.
28453
28454 2017-09-15 Joseph Myers <joseph@codesourcery.com>
28455
28456 * math/s_fmaf.c: Include <libm-alias-float.h>.
28457 (fmaf): Define using libm_alias_float.
28458 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
28459 (acosf): Define using libm_alias_float.
28460 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
28461 (acoshf): Define using libm_alias_float.
28462 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
28463 (asinf): Define using libm_alias_float.
28464 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
28465 (atan2f): Define using libm_alias_float.
28466 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
28467 (atanhf): Define using libm_alias_float.
28468 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
28469 (coshf): Define using libm_alias_float.
28470 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
28471 (exp10f): Define using libm_alias_float.
28472 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
28473 (fmodf): Define using libm_alias_float.
28474 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
28475 (hypotf): Define using libm_alias_float.
28476 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
28477 (j0f): Define using libm_alias_float.
28478 (y0f): Likewise.
28479 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
28480 (j1f): Define using libm_alias_float.
28481 (y1f): Likewise.
28482 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
28483 (jnf): Define using libm_alias_float.
28484 (ynf): Likewise.
28485 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
28486 (log10f): Define using libm_alias_float.
28487 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
28488 (log2f): Define using libm_alias_float.
28489 * math/w_logf_compat.c: Include <libm-alias-float.h>.
28490 (logf): Define using libm_alias_float.
28491 * math/w_powf_compat.c: Include <libm-alias-float.h>.
28492 (powf): Define using libm_alias_float.
28493 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
28494 (remainderf): Define using libm_alias_float.
28495 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
28496 (sinhf): Define using libm_alias_float.
28497 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
28498 (sqrtf): Define using libm_alias_float.
28499 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
28500 (tgammaf): Define using libm_alias_float.
28501
28502 2017-09-14 Joseph Myers <joseph@codesourcery.com>
28503
28504 * include/math.h (roundeven): Change hidden_proto call to
28505 __roundeven.
28506 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
28507 alias.
28508 [NO_LONG_DOUBLE] (__j0l): New strong alias.
28509 (y0): Rename to __y0 and define as weak alias.
28510 [NO_LONG_DOUBLE] (__y0l): New strong alias.
28511 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
28512 alias.
28513 (y0f): Rename to __y0f and define as weak alias.
28514 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
28515 alias.
28516 [NO_LONG_DOUBLE] (__j1l): New strong alias.
28517 (y1): Rename to __y1 and define as weak alias.
28518 [NO_LONG_DOUBLE] (__y1l): New strong alias.
28519 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
28520 alias.
28521 (y1f): Rename to __y1f and define as weak alias.
28522 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
28523 alias.
28524 [NO_LONG_DOUBLE] (__jnl): New strong alias.
28525 (yn): Rename to __yn and define as weak alias.
28526 [NO_LONG_DOUBLE] (__ynl): New strong alias.
28527 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
28528 alias.
28529 (ynf): Rename to __ynf and define as weak alias.
28530 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
28531 (fromfp): Define as weak alias.
28532 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
28533 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
28534 (fromfpx): Define as weak alias.
28535 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
28536 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
28537 __getpayload and define as weak alias.
28538 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
28539 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
28540 __roundeven and define as weak alias.
28541 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
28542 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
28543 __setpayload.
28544 (setpayload): Define as weak alias.
28545 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
28546 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
28547 __setpayloadsig.
28548 (setpayloadsig): Define as weak alias.
28549 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
28550 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
28551 __totalorder and define as weak alias.
28552 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
28553 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
28554 to __totalordermag and define as weak alias.
28555 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
28556 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
28557 (ufromfp): Define as weak alias.
28558 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
28559 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
28560 __ufromfpx.
28561 (ufromfpx): Define as weak alias.
28562 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
28563 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
28564 Rename to __getpayload and define as weak alias.
28565 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
28566 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
28567 Rename to __roundeven and define as weak alias.
28568 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
28569 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
28570 Rename to __totalorder and define as weak alias.
28571 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
28572 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
28573 (totalordermag): Rename to __totalordermag and define as weak
28574 alias.
28575 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
28576 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
28577 macro.
28578 (__roundevenl): Likewise.
28579 (__totalorderl): Likewise.
28580 (__totalordermagl): Likewise
28581 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
28582 __fromfpf128.
28583 (fromfpf128): Define as weak alias.
28584 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
28585 __fromfpxf128.
28586 (fromfpxf128): Define as weak alias.
28587 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
28588 __setpayloadf128.
28589 (setpayloadf128): Define as weak alias.
28590 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
28591 __setpayloadsigf128.
28592 (setpayloadsigf128): Define as weak alias.
28593 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
28594 __ufromfpf128.
28595 (ufromfpf128): Define as weak alias.
28596 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
28597 __ufromfpxf128.
28598 (ufromfpxf128): Define as weak alias.
28599 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
28600 (fromfpf): Define as weak alias.
28601 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
28602 __fromfpxf.
28603 (fromfpxf): Define as weak alias.
28604 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
28605 __getpayloadf and define as weak alias.
28606 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
28607 __roundevenf and define as weak alias.
28608 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
28609 __setpayloadf.
28610 (setpayloadf): Define as weak alias.
28611 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
28612 __setpayloadsigf.
28613 (setpayloadsigf): Define as weak alias.
28614 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
28615 __totalorderf and define as weak alias.
28616 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
28617 Rename to __totalordermagf and define as weak alias.
28618 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
28619 __ufromfpf.
28620 (ufromfpf): Define as weak alias.
28621 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
28622 __ufromfpxf.
28623 (ufromfpxf): Define as weak alias.
28624 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
28625 __fromfpl.
28626 (fromfpl): Define as weak alias.
28627 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
28628 __fromfpxl.
28629 (fromfpxl): Define as weak alias.
28630 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
28631 to __getpayloadl and define as weak alias.
28632 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
28633 __roundevenl and define as weak alias.
28634 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
28635 __setpayloadl.
28636 (setpayloadl): Define as weak alias.
28637 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
28638 __setpayloadsigl.
28639 (setpayloadsigl): Define as weak alias.
28640 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
28641 to __totalorderl and define as weak alias.
28642 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
28643 Rename to __totalordermagl and define as weak alias.
28644 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
28645 __ufromfpl.
28646 (ufromfpl): Define as weak alias.
28647 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
28648 __ufromfpxl.
28649 (ufromfpxl): Define as weak alias.
28650 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
28651 __fromfpl.
28652 (fromfpl): Define as weak alias.
28653 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
28654 __fromfpxl.
28655 (fromfpxl): Define as weak alias.
28656 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
28657 Rename to __getpayloadl and define as weak alias.
28658 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
28659 to __roundevenl and define as weak alias. Call __roundeven
28660 instead of roundeven.
28661 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
28662 __setpayloadl.
28663 (setpayloadl): Define as weak alias.
28664 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
28665 __setpayloadsigl.
28666 (setpayloadsigl): Define as weak alias.
28667 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
28668 Rename to __totalorderl and define as weak alias.
28669 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
28670 Rename to __totalordermagl and define as weak alias.
28671 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
28672 __ufromfpl.
28673 (ufromfpl): Define as weak alias.
28674 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
28675 __ufromfpxl.
28676 (ufromfpxl): Define as weak alias.
28677 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
28678 __fromfpl.
28679 (fromfpl): Define as weak alias.
28680 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
28681 __fromfpxl.
28682 (fromfpxl): Define as weak alias.
28683 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
28684 __getpayloadl and define as weak alias.
28685 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
28686 __roundevenl and define as weak alias.
28687 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
28688 __setpayloadl.
28689 (setpayloadl): Define as weak alias.
28690 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
28691 __setpayloadsigl.
28692 (setpayloadsigl): Define as weak alias.
28693 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
28694 __totalorderl and define as weak alias.
28695 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
28696 Rename to __totalordermagl and define as weak alias.
28697 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
28698 __ufromfpl.
28699 (ufromfpl): Define as weak alias.
28700 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
28701 __ufromfpxl.
28702 (ufromfpxl): Define as weak alias.
28703
28704 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
28705
28706 * benchtests/bench-string.h (realloc_bufs): New function.
28707 (test_init): Call it.
28708 * benchtests/bench-memset-large.c (do_test): Likewise.
28709 * benchtests/bench-memset.c (do_test): Likewise.
28710
28711 * benchtests/bench-memset-large.c: Print output in JSON
28712 format.
28713 * benchtests/bench-memset.c: Likewise.
28714
28715 2017-09-14 Mike FABIAN <mfabian@redhat.com>
28716
28717 [BZ #21084]
28718 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
28719 * iconvdata/Makefile: Add IBM858.
28720 * iconvdata/gconv-modules: Likewise.
28721 * iconvdata/tst-tables.sh: Likewise.
28722 * iconvdata/ibm858.c: New file.
28723 * localedata/charmaps/IBM858: Likewise.
28724
28725 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
28726
28727 [BZ #22023]
28728 * locales/niu_NZ (LC_TIME): copy "niu_NU".
28729 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
28730
28731 2017-09-14 Mike FABIAN <mfabian@redhat.com>
28732
28733 [BZ #22112]
28734 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
28735 and add tel_int_fmt.
28736
28737 2017-09-14 Joseph Myers <joseph@codesourcery.com>
28738
28739 * sysdeps/generic/libm-alias-float128.h: New file.
28740 * sysdeps/generic/math-type-macros-float128.h: Include
28741 <libm-alias-float128.h>.
28742 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28743
28744 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28745
28746 * sysdeps/generic/libm-alias-ldouble.h: New file.
28747 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
28748 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
28749 * sysdeps/generic/math-type-macros-ldouble.h: Include
28750 <libm-alias-ldouble.h>.
28751 [!declare_mgen_alias] (declare_mgen_alias): Define to use
28752 libm_alias_ldouble.
28753
28754 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
28755
28756 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
28757 * math/w_exp_compat.c: ... here.
28758 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
28759 * math/w_expf_compat.c: ... here.
28760 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
28761 * math/w_expl_compat.c: ... here.
28762 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
28763 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
28764 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
28765 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
28766
28767 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28768
28769 * math/w_scalbln_template.c (strong_alias): Do not undefine and
28770 redefine.
28771 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
28772 macro.
28773 (ldexpl): Only define as compat symbol for libc, not libm.
28774 (scalbnl): Define as compat symbol for libc here.
28775 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
28776 define for [IS_IN (libc)].
28777 (__ldexpl_2): Remove alias.
28778 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
28779 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
28780 name in long_double_symbol call.
28781 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
28782 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
28783 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
28784 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
28785 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
28786 Remove macro.
28787 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
28788 Define as compat symbol.
28789
28790 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28791
28792 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
28793 * sysdeps/unix/sysv/linux/alpha/Makefile
28794 [$(subdir) = csu] (sysdep_routines): Remove rule.
28795
28796 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28797
28798 * sysdeps/generic/libm-alias-double.h: New file.
28799 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
28800 * sysdeps/generic/math-type-macros-double.h: Include
28801 <libm-alias-double.h>.
28802 [declare_mgen_alias] (declare_mgen_alias): Define to use
28803 libm_alias_double.
28804 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
28805 (M_LIBM_NEED_COMPAT): Remove macro.
28806 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
28807 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
28808 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
28809 code.
28810 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28811 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28812 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28813 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28814 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28815 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28816 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28817 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28818 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28819 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28820 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28821 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28822 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28823 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28824 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28825 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28826 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28827 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28828 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28829 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28830 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28831 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28832 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28833 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28834 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28835 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28836 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28837 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
28838 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
28839 macro.
28840 (declare_mgen_alias): New macro.
28841 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
28842 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
28843 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
28844 (M_LIBM_NEED_COMPAT): Remove macro.
28845 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
28846 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
28847 <first-versions.h>.
28848 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
28849 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
28850
28851 2017-09-12 Joseph Myers <joseph@codesourcery.com>
28852
28853 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
28854 (declare_mgen_alias_2): Remove.
28855 * sysdeps/generic/math-type-macros-double.h
28856 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
28857 Likewise.
28858 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
28859 alias.
28860 (ldexp): Define with declare_mgen_alias.
28861 (scalbn): Likewise.
28862
28863 2017-09-12 Steve Ellcey <sellcey@cavium.com>
28864
28865 * grp/initgroups.c: Include config.h.
28866 (DEFAULT_CONFIG): New macro.
28867 (internal_getgrouplist): Use DEFAULT_CONFIG.
28868 * nscd/initgrcache.c (addinitgroupsX): Likewise.
28869 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
28870 (DEFAULT_DEFCONFIG): New macro.
28871 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
28872 * nss/grp-lookup.c: Include config.h
28873 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
28874 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
28875 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
28876 * manual/nss.texi: Update default values section.
28877
28878 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
28879
28880 [BZ #21967]
28881 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
28882 New.
28883 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
28884 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
28885 Handle MathVec_Prefer_No_AVX512.
28886 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
28887 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
28888 is set.
28889
28890 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
28891
28892 * posix/sched_primax.c (__sched_get_priority_max): Add
28893 libc_hidden_def.
28894 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
28895 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
28896 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
28897 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
28898 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
28899 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
28900 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
28901 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
28902 Add aliases.
28903
28904 2017-09-11 Joseph Myers <joseph@codesourcery.com>
28905
28906 * sysdeps/generic/libm-alias-float.h: New file.
28907 * sysdeps/generic/math-type-macros-float.h: Include
28908 <libm-alias-float.h>.
28909 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28910
28911 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
28912
28913 [BZ #22093]
28914 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
28915 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
28916 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
28917 (HWCAP_IMPORTANT): Likewise.
28918 (HWCAP_X86_64): New enum.
28919 (HWCAP_X86_AVX512_1): Updated.
28920 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
28921 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
28922 (modules-names): Add x86_64/tst-x86_64mod-1.
28923 (LDFLAGS-tst-x86_64mod-1.so): New.
28924 ($(objpfx)tst-x86_64-1): Likewise.
28925 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
28926 (tst-x86_64-1-clean): Likewise.
28927 * sysdeps/x86_64/tst-x86_64-1.c: New file.
28928 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
28929
28930 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
28931
28932 * po/sv.po: Update translations.
28933 * po/fr.po: Likewise.
28934
28935 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
28936
28937 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
28938 seconds.
28939 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
28940 seconds.
28941 * elf/rtld-Rules: Fix $(error) use.
28942
28943 2017-09-09 Mike FABIAN <mfabian@redhat.com>
28944
28945 [BZ #14925]
28946 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
28947 * locale/iso-639.def: Change “Bengali” to “Bangla”.
28948 * localedata/locales/bn_BD: “Bengali” was still used in some
28949 comments. Change it to “Bangla”.
28950
28951 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
28952
28953 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
28954
28955 2017-09-08 Steve Ellcey <sellcey@cavium.com>
28956
28957 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
28958 thunderx2t99p1 to list of cpu names.
28959 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
28960 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
28961
28962 2017-09-08 Steve Ellcey <sellcey@cavium.com>
28963
28964 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
28965 Use strcmp instead of tunable_is_name.
28966
28967 2017-09-08 Joseph Myers <joseph@codesourcery.com>
28968
28969 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28970 (F_GET_RW_HINT): New macro.
28971 [__USE_GNU] (F_SET_RW_HINT): Likewise.
28972 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
28973 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
28974 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
28975 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
28976 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
28977 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
28978 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
28979 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
28980
28981 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28982 (F_ADD_SEALS): New macro.
28983 [__USE_GNU] (F_GET_SEALS): Likewise.
28984 [__USE_GNU] (F_SEAL_SEAL): Likewise.
28985 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
28986 [__USE_GNU] (F_SEAL_GROW): Likewise.
28987 [__USE_GNU] (F_SEAL_WRITE): Likewise.
28988
28989 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28990
28991 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
28992 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
28993 * posix/glob_internal.h (__glob_pattern_type):
28994 * posix/glob.c (glob):
28995 * posix/glob_pattern_p.c (__glob_pattern_p):
28996 Use them.
28997
28998 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
28999 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
29000 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
29001 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
29002 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
29003 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
29004 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
29005 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
29006 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
29007 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
29008 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
29009 * sysdeps/wordsize-64/glob.c: Likewise.
29010 * sysdeps/wordsize-64/glob64.c: Likewise.
29011 * sysdeps/wordsize-64/globfree.c: Likewise.
29012 * sysdeps/wordsize-64/globfree64.c: Likewise.
29013 * sysdeps/unix/sysv/linux/glob.c: New file.
29014 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
29015 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
29016 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
29017 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
29018 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
29019 adds !GLOB_NO_OLD_VERSION as an extra condition.
29020 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
29021 using relative path instead of absolute one.
29022 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
29023 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
29024 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
29025 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
29026 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
29027 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
29028
29029 [BZ #1062]
29030 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
29031 (glob): Use the same scratch buffer for both getlogin_r and
29032 getpwnam_r. Don’t require preallocation of the login name. This
29033 simplifies storage allocation, and corrects the handling of
29034 long login names.
29035
29036 [BZ #1062]
29037 * posix/glob.c (glob): Port recent patches to platforms
29038 lacking getpwnam_r.
29039 (glob): Fix longstanding misuse of errno after getpwnam_r, which
29040 returns an error number rather than setting errno.
29041
29042 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
29043 instead of GCC extension.
29044 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
29045 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
29046 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
29047
29048 [BZ #866]
29049 [BZ #1062]
29050 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
29051 * posix/bug-glob1.c: Remove file.
29052 * posix/tst-glob_symlinks.c: New file.
29053 * posix/glob.c (__lstat64): New macro.
29054 (is_dir): New function.
29055 (glob, glob_in_dir): Match symlinks even if they are dangling.
29056 (link_stat, link_exists_p): Remove. All uses removed.
29057
29058 [BZ #1062]
29059 [BZ #19971]
29060 * posix/glob.c (struct readdir_result): Remove skip_entry member.
29061 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
29062 All uses removed.
29063
29064 [BZ #1062]
29065 CVE-2017-15671
29066 * posix/Makefile (routines): Add globfree, globfree64, and
29067 glob_pattern_p.
29068 * posix/flexmember.h: New file.
29069 * posix/glob_internal.h: Likewise.
29070 * posix/glob_pattern_p.c: Likewise.
29071 * posix/globfree.c: Likewise.
29072 * posix/globfree64.c: Likewise.
29073 * sysdeps/gnu/globfree64.c: Likewise.
29074 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
29075 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
29076 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
29077 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
29078 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
29079 * sysdeps/wordsize-64/globfree.c: Likewise.
29080 * sysdeps/wordsize-64/globfree64.c: Likewise.
29081 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
29082 [NDEBUG): Remove comments.
29083 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
29084 (dirent_type): New type. Use uint_fast8_t not
29085 uint8_t, as C99 does not require uint8_t.
29086 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
29087 (struct readdir_result): Use dirent_type. Do not define skip_entry
29088 unless it is needed; this saves a byte on platforms lacking d_ino.
29089 (readdir_result_type, readdir_result_skip_entry):
29090 New functions, replacing ...
29091 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
29092 these functions, which were removed. This makes the callers
29093 easier to read. All callers changed.
29094 (D_INO_TO_RESULT): Now empty if there is no d_ino.
29095 (size_add_wrapv, glob_use_alloca): New static functions.
29096 (glob, glob_in_dir): Check for size_t overflow in several places,
29097 and fix some size_t checks that were not quite right.
29098 Remove old code using SHELL since Bash no longer
29099 uses this.
29100 (glob, prefix_array): Separate MS code better.
29101 (glob_in_dir): Remove old Amiga and VMS code.
29102 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
29103 separate files.
29104 (glob_in_dir): Do not rely on undefined behavior in accessing
29105 struct members beyond their bounds. Use a flexible array member
29106 instead
29107 (link_stat): Rename from link_exists2_p and return -1/0 instead of
29108 0/1. Caller changed.
29109 (glob): Fix memory leaks.
29110 * posix/glob64 (globfree64): Move to separate file.
29111 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
29112 (globfree64): Remove hidden alias.
29113 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
29114 oldglob.
29115 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
29116 separate file.
29117 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
29118 define.
29119 Move compat code to separate file.
29120 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
29121 separate file.
29122
29123 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
29124
29125 * resolv/tst-resolv-qtypes.c (domain): Changed to
29126 "const char domain[] =".
29127
29128 2017-09-07 Joseph Myers <joseph@codesourcery.com>
29129
29130 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
29131 version to 3.1.6.
29132
29133 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
29134 (TCP_MD5SIG_EXT): Likewise.
29135 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
29136 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
29137 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
29138
29139 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
29140
29141 2017-09-07 Mike FABIAN <mfabian@redhat.com>
29142
29143 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
29144
29145 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
29146
29147 [BZ #22100]
29148 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
29149
29150 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
29151
29152 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
29153 before assuming that the file is empty. Avoid testing buffer content
29154 when nread == 0.
29155
29156 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29157
29158 [BZ #18858]
29159 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
29160 Remove define.
29161 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
29162 Likewise.
29163 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
29164 Likewise.
29165 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
29166 Likewise.
29167 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
29168 Likewise.
29169 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
29170 Likewise.
29171 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
29172 Likewise.
29173
29174 2017-09-06 Florian Weimer <fweimer@redhat.com>
29175
29176 * malloc/dynarray_emplace_enlarge.c
29177 (__libc_dynarray_emplace_enlarge): Add missing else.
29178
29179 2017-09-06 Florian Weimer <fweimer@redhat.com>
29180
29181 [BZ #22096]
29182 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
29183 case of failure to obtain the global conf object.
29184
29185 2017-09-06 Florian Weimer <fweimer@redhat.com>
29186
29187 [BZ #22095]
29188 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
29189 dynarray allocation failure.
29190
29191 2017-09-06 Florian Weimer <fweimer@redhat.com>
29192
29193 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
29194 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
29195 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
29196 New functions.
29197 (response): Call them. Add 'p', '6' flag processing.
29198 (test_reverse): New function.
29199 (test_get2_any): Call it.
29200 (test_no_inet6): Add 'p' test.
29201 (test_inet6): Likewise.
29202
29203 2017-09-06 Florian Weimer <fweimer@redhat.com>
29204
29205 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
29206 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
29207 the QNAME.
29208 (test_gai): Adjust query names. Add additional tests.
29209 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
29210 test_get2. Adjust query names. Add additional tests.
29211 (test_no_inet6): New function, extracted from threadfunc.
29212 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
29213 Add additional tests.
29214
29215 2017-09-06 Mike FABIAN <mfabian@redhat.com>
29216
29217 [BZ #22070]
29218 * localedata/unicode-gen/utf8_gen.py: Set the width for
29219 characters with Prepended_Concatenation_Mark property to 1
29220 * localedata/charmaps/UTF-8: Updated using the improved script.
29221
29222 2017-09-06 Mike FABIAN <mfabian@redhat.com>
29223
29224 [BZ #21750]
29225 * localedata/unicode-gen/utf8_gen.py: Improve the script to
29226 use the range notation for all ranges of neighbouring characters
29227 with the same width.
29228
29229 2017-09-05 Joseph Myers <joseph@codesourcery.com>
29230
29231 * sysdeps/generic/math-type-macros-double.h: Include
29232 <math-svid-compat.h>.
29233 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
29234 * sysdeps/generic/math-type-macros-float.h: Include
29235 <math-svid-compat.h>.
29236 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
29237 * sysdeps/generic/math-type-macros-ldouble.h: Include
29238 <math-svid-compat.h>.
29239 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
29240 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
29241 condition.
29242 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
29243 * math/w_acosf_compat.c: Likewise.
29244 * math/w_acosh_compat.c: Likewise.
29245 * math/w_acoshf_compat.c: Likewise.
29246 * math/w_acoshl_compat.c: Likewise.
29247 * math/w_acosl_compat.c: Likewise.
29248 * math/w_asin_compat.c: Likewise.
29249 * math/w_asinf_compat.c: Likewise.
29250 * math/w_asinl_compat.c: Likewise.
29251 * math/w_atan2_compat.c: Likewise.
29252 * math/w_atan2f_compat.c: Likewise.
29253 * math/w_atan2l_compat.c: Likewise.
29254 * math/w_atanh_compat.c: Likewise.
29255 * math/w_atanhf_compat.c: Likewise.
29256 * math/w_atanhl_compat.c: Likewise.
29257 * math/w_cosh_compat.c: Likewise.
29258 * math/w_coshf_compat.c: Likewise.
29259 * math/w_coshl_compat.c: Likewise.
29260 * math/w_exp10_compat.c: Likewise.
29261 * math/w_exp10f_compat.c: Likewise.
29262 * math/w_exp10l_compat.c: Likewise.
29263 * math/w_exp2_compat.c: Likewise.
29264 * math/w_exp2f_compat.c: Likewise.
29265 * math/w_exp2l_compat.c: Likewise.
29266 * math/w_fmod_compat.c: Likewise.
29267 * math/w_fmodf_compat.c: Likewise.
29268 * math/w_fmodl_compat.c: Likewise.
29269 * math/w_hypot_compat.c: Likewise.
29270 * math/w_hypotf_compat.c: Likewise.
29271 * math/w_hypotl_compat.c: Likewise.
29272 * math/w_j0_compat.c: Likewise.
29273 * math/w_j0f_compat.c: Likewise.
29274 * math/w_j0l_compat.c: Likewise.
29275 * math/w_j1_compat.c: Likewise.
29276 * math/w_j1f_compat.c: Likewise.
29277 * math/w_j1l_compat.c: Likewise.
29278 * math/w_jn_compat.c: Likewise.
29279 * math/w_jnf_compat.c: Likewise.
29280 * math/w_jnl_compat.c: Likewise.
29281 * math/w_lgamma_r_compat.c: Likewise.
29282 * math/w_lgammaf_r_compat.c: Likewise.
29283 * math/w_lgammal_r_compat.c: Likewise.
29284 * math/w_log10_compat.c: Likewise.
29285 * math/w_log10f_compat.c: Likewise.
29286 * math/w_log10l_compat.c: Likewise.
29287 * math/w_log2_compat.c: Likewise.
29288 * math/w_log2f_compat.c: Likewise.
29289 * math/w_log2l_compat.c: Likewise.
29290 * math/w_log_compat.c: Likewise.
29291 * math/w_logf_compat.c: Likewise.
29292 * math/w_logl_compat.c: Likewise.
29293 * math/w_pow_compat.c: Likewise.
29294 * math/w_powf_compat.c: Likewise.
29295 * math/w_powl_compat.c: Likewise.
29296 * math/w_remainder_compat.c: Likewise.
29297 * math/w_remainderf_compat.c: Likewise.
29298 * math/w_remainderl_compat.c: Likewise.
29299 * math/w_sinh_compat.c: Likewise.
29300 * math/w_sinhf_compat.c: Likewise.
29301 * math/w_sinhl_compat.c: Likewise.
29302 * math/w_sqrt_compat.c: Likewise.
29303 * math/w_sqrtf_compat.c: Likewise.
29304 * math/w_sqrtl_compat.c: Likewise.
29305 * math/w_tgamma_compat.c: Likewise.
29306 * math/w_tgammaf_compat.c: Likewise.
29307 * math/w_tgammal_compat.c: Likewise.
29308 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
29309 [LIBM_SVID_COMPAT].
29310 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
29311 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
29312 [LIBM_SVID_COMPAT].
29313 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
29314 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
29315 [LIBM_SVID_COMPAT].
29316 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
29317 * sysdeps/i386/fpu/w_sqrt.c: New file.
29318 * sysdeps/ia64/fpu/w_acos.c: Likewise.
29319 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
29320 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
29321 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
29322 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
29323 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
29324 * sysdeps/ia64/fpu/w_asin.c: Likewise.
29325 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
29326 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
29327 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
29328 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
29329 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
29330 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
29331 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
29332 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
29333 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
29334 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
29335 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
29336 * sysdeps/ia64/fpu/w_exp.c: Likewise.
29337 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
29338 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
29339 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
29340 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
29341 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
29342 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
29343 * sysdeps/ia64/fpu/w_expf.c: Likewise.
29344 * sysdeps/ia64/fpu/w_expl.c: Likewise.
29345 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
29346 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
29347 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
29348 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
29349 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
29350 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
29351 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
29352 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
29353 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
29354 * sysdeps/ia64/fpu/w_log.c: Likewise.
29355 * sysdeps/ia64/fpu/w_log10.c: Likewise.
29356 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
29357 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
29358 * sysdeps/ia64/fpu/w_log2.c: Likewise.
29359 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
29360 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
29361 * sysdeps/ia64/fpu/w_logf.c: Likewise.
29362 * sysdeps/ia64/fpu/w_logl.c: Likewise.
29363 * sysdeps/ia64/fpu/w_pow.c: Likewise.
29364 * sysdeps/ia64/fpu/w_powf.c: Likewise.
29365 * sysdeps/ia64/fpu/w_powl.c: Likewise.
29366 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
29367 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
29368 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
29369 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
29370 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
29371 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
29372 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
29373 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
29374 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
29375 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
29376 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
29377 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
29378 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
29379 [LIBM_SVID_COMPAT].
29380 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
29381 * sysdeps/ieee754/k_standard.c: Likewise.
29382 * sysdeps/ieee754/k_standardf.c: Likewise.
29383 * sysdeps/ieee754/k_standardl.c: Likewise.
29384 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
29385 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
29386 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
29387 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
29388 long_double_symbol call on [LIBM_SVID_COMPAT].
29389 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
29390 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
29391 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
29392 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
29393 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
29394 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
29395 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
29396 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
29397 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
29398 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
29399 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
29400 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
29401 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
29402 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
29403 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
29404 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
29405 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
29406 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
29407 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
29408 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
29409 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
29410 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
29411
29412 2017-09-05 Steve Ellcey <sellcey@cavium.com>
29413
29414 * include/shlib-compat.h (TEST_COMPAT): New Macro.
29415 * malloc/tst-mallocstate.c: Convert from test-skeleton
29416 to test-driver. Ifdef code using TEST_COMPAT macro.
29417 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
29418 * math/test-matherr.c: Likewise.
29419
29420 2017-09-05 Joseph Myers <joseph@codesourcery.com>
29421
29422 [BZ #22086]
29423 * debug/pcprofiledump.c (main): Use byte-swapped mask when
29424 comparing word with byte-swapped constant.
29425
29426 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
29427
29428 [BZ #20498]
29429 * locale/iso-639.def: add Miskito.
29430 * localedata/SUPPORTED: Add miq_NI/UTF-8.
29431 * localedata/locales/miq_NI: New file.
29432
29433 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
29434
29435 [BZ #18822]
29436 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
29437 (__mkdir): Likewise.
29438 * io/chmod.c (__chmod): Add libc_hidden_def.
29439 * io/mkdir.c (__mkdir): Likewise.
29440 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
29441 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
29442 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
29443 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
29444
29445 2017-09-04 Joseph Myers <joseph@codesourcery.com>
29446
29447 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
29448 version to 4.13.
29449
29450 [BZ #22082]
29451 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
29452 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
29453
29454 2017-09-04 Florian Weimer <fweimer@redhat.com>
29455
29456 * math/math.h: Issue warning if log is defined.
29457
29458 2017-09-04 Joseph Myers <joseph@codesourcery.com>
29459
29460 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
29461 kernel version to 4.13.
29462
29463 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
29464
29465 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
29466 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
29467 parameter.
29468 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
29469 just <bits/types.h>.
29470 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
29471 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
29472 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
29473 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
29474 * misc/preadv2.c: Include <errno.h>.
29475 * misc/preadv64v2.c: Include <errno.h>.
29476 * misc/pwritev2.c: Include <errno.h>.
29477 * misc/pwritev64v2.c: Include <errno.h>.
29478 * sysdeps/posix/preadv2.c: Include <errno.h>.
29479 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
29480 Fix <unistd.h> inclusion.
29481 * sysdeps/posix/pwritev2.c: Include <errno.h>.
29482 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
29483 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
29484 __strtoul_internal): New functions.
29485 * sysdeps/posix/pause.c: Include <sigsetops.h>.
29486 * sysdeps/posix/system.c: Include <sigsetops.h>.
29487 * sysdeps/mach/hurd/i386/Makefile
29488 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
29489 [$(subdir) = csu] (sysdep-only-routines): Likewise.
29490 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
29491 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
29492 __feraiseexcept_renamed to feraiseexcept instead of
29493 __GI_feraiseexcept.
29494 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
29495 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
29496 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
29497 RWF_NOWAIT): Define to 0 if undefined already.
29498 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
29499 boils down to 0.
29500 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
29501 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
29502
29503 2017-09-01 Joseph Myers <joseph@codesourcery.com>
29504
29505 * manual/math.texi (pow10): Do not document.
29506 (pow10f): Likewise.
29507 (pow10l): Likewise.
29508 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
29509 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
29510 * math/libm-test-exp10.inc (pow10_test): Remove.
29511 (do_test): Do not call pow10.
29512 * math/w_exp10_compat.c (pow10): Make into compat symbol.
29513 [NO_LONG_DOUBLE] (pow10l): Likewise.
29514 * math/w_exp10f_compat.c (pow10f): Likewise.
29515 * math/w_exp10l_compat.c (pow10l): Likewise.
29516 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
29517 (pow10): Make into compat symbol.
29518 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
29519 (pow10f): Make into compat symbol.
29520 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
29521 (pow10l): Make into compat symbol.
29522 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
29523 pow10.
29524 (CFLAGS-nldbl-pow10.c): Remove variable..
29525 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
29526 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
29527 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
29528 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
29529 Undefine and redefine.
29530 (pow10l): Make into compat symbol.
29531 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
29532 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
29533 * sysdeps/arm/libm-test-ulps: Likewise.
29534 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
29535 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
29536 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29537 * sysdeps/microblaze/libm-test-ulps: Likewise.
29538 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
29539 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
29540 * sysdeps/nios2/libm-test-ulps: Likewise.
29541 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
29542 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
29543 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
29544 * sysdeps/sh/libm-test-ulps: Likewise.
29545 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
29546 * sysdeps/tile/libm-test-ulps: Likewise.
29547 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29548
29549 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
29550
29551 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
29552
29553 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29554
29555 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
29556 "../ChangeLog.old/ChangeLog.8".
29557 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
29558 "../ChangeLog.old/ChangeLog.14".
29559
29560 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29561
29562 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
29563 Threads Library.
29564
29565 2017-09-01 Joseph Myers <joseph@codesourcery.com>
29566
29567 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
29568
29569 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29570
29571 * csu/version.c (banner): Remove "by Roland McGrath et al.".
29572 * nptl/Banner: Remove "by Ulrich Drepper et al.".
29573
29574 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
29575
29576 * stdlib/tst-atexit-common.c (do_test): Test support for at least
29577 32 atexit handlers.
29578
29579 2017-09-01 Zack Weinberg <zackw@panix.com>
29580
29581 * math/math.h (HUGE_VAL): Improve commentary.
29582
29583 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29584 Andreas Schwab <schwab@suse.de>
29585
29586 [BZ #21530]
29587 * include/stdio.h (__gen_tempfd): New function.
29588 * stdio-common/Makefile (routines): Add gentempfd.
29589 * stdio-common/gentempfd.c: New file.
29590 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
29591 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
29592 unnamed file first.
29593
29594 2017-09-01 Florian Weimer <fweimer@redhat.com>
29595
29596 [BZ #21915]
29597 [BZ #21922]
29598 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
29599 result to determine success or failure, not the errno value.
29600 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
29601 (tst-nss-files-hosts-erange): Link with -ldl.
29602 * nss/tst-nss-files-hosts-erange.c: New file.
29603 * nss/tst-resolv-basic.c (response): Handle nodata.example.
29604 (do_test): Add NO_DATA tests.
29605 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
29606 (do_test): Call it.
29607
29608 2017-09-01 Florian Weimer <fweimer@redhat.com>
29609
29610 [BZ #21922]
29611 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
29612 coming from gethostbyname2_r.
29613
29614 2017-09-01 Florian Weimer <fweimer@redhat.com>
29615
29616 * support/namespace.h (struct support_chroot_configuration): Add
29617 hosts, host_conf.
29618 (struct support_chroot): Add path_hosts, path_host_conf.
29619 * support/support_chroot.c (write_file): New function.
29620 (support_chroot_create): Call it to process /etc/resolv.conf,
29621 /etc/hosts, /etc/host.conf.
29622 (support_chroot_free): Update.
29623
29624 2017-09-01 Florian Weimer <fweimer@redhat.com>
29625
29626 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
29627 status indicates it is set.
29628
29629 2017-09-01 Florian Weimer <fweimer@redhat.com>
29630
29631 [BZ #20532]
29632 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
29633 function lookup failures more reliable.
29634
29635 2017-09-01 Florian Weimer <fweimer@redhat.com>
29636
29637 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
29638 (getcanonname): Likewise.
29639 (gaih_inet): Likewise.
29640
29641 2017-09-01 Florian Weimer <fweimer@redhat.com>
29642
29643 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
29644 (getcanonname): Likewise.
29645 (gaih_inet): Likewise.
29646
29647 2017-08-31 Steve Ellcey <sellcey@cavium.com>
29648 Richard Henderson <rth@twiddle.net>
29649
29650 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
29651 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
29652 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
29653 (IREG_SIZE, OREG_SIZE): New macros.
29654 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
29655 (IREG_SIZE, OREG_SIZE): New macros.
29656 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
29657 (IREG_SIZE): New macro.
29658 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
29659 (IREG_SIZE): New macro.
29660 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
29661 New includes.
29662 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
29663 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
29664 (__CONCATX): Handle exceptions correctly on large values that may
29665 set FE_INVALID.
29666 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
29667 Initialize if not already set.
29668 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
29669
29670 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29671
29672 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
29673 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
29674 Likewise.
29675 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
29676 Likewise.
29677 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
29678 Likewise.
29679 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
29680 Likewise.
29681 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
29682 Likewise.
29683 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
29684 Likewise.
29685 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
29686 Likewise.
29687 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
29688 (NO_CANCELLATION): Likewise.
29689 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
29690 Likewise.
29691 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
29692 Likewise.
29693 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
29694 Likewise.
29695 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
29696 (NO_CANCELLATION): Likewise.
29697 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
29698 (NO_CANCELLATION): Likewise.
29699 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
29700 Likewise
29701 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
29702 Likewise.
29703 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
29704 Likewise.
29705 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
29706 Likewise.
29707 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
29708 hidden prototype.
29709 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
29710 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
29711
29712 2017-08-31 Steve Ellcey <sellcey@cavium.com>
29713
29714 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
29715 in resolver call.
29716
29717 2017-08-31 Florian Weimer <fweimer@redhat.com>
29718
29719 * include/libc-symbols.h (internal_function): Remove.
29720
29721 2017-08-31 Florian Weimer <fweimer@redhat.com>
29722
29723 * stdlib/fmtmsg.c (internal_addseverity): Remove
29724 internal_function.
29725
29726 2017-08-31 Florian Weimer <fweimer@redhat.com>
29727
29728 * stdio-common/printf_fp.c (group_number): Remove
29729 internal_function.
29730 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
29731
29732 2017-08-31 Florian Weimer <fweimer@redhat.com>
29733
29734 * posix/fnmatch.c (internal_function): Remove definition.
29735 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
29736 * posix/regcomp.c (peek_token, init_word_char)
29737 (duplicate_node_closure, fetch_token, peek_token)
29738 (peek_token_bracket, build_range_exp, build_collating_symbol):
29739 Likewise.
29740 * posix/regex_internal.c (re_string_construct_common)
29741 (create_ci_newstate, create_cd_newstate, re_string_allocate)
29742 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
29743 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
29744 (re_string_translate_buffer, re_string_reconstruct)
29745 (re_string_peek_byte_case, re_string_fetch_byte_case)
29746 (re_string_destruct, re_string_context_at, re_node_set_alloc)
29747 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
29748 (re_node_set_add_intersect, re_node_set_init_union)
29749 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
29750 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
29751 (re_dfa_add_node, calc_state_hash, re_acquire_state)
29752 (re_acquire_state_context): Likewise.
29753 * posix/regex_internal.h (internal_function): Remove definition.
29754 (re_string_realloc_buffers, build_wcs_buffer)
29755 (build_wcs_upper_buffer, build_upper_buffer)
29756 (re_string_translate_buffer, re_string_context_at)
29757 (re_string_char_size_at, re_string_wchar_at)
29758 (re_string_elem_size_at): Likewise.
29759 * posix/regexec.c (match_ctx_init, match_ctx_clean)
29760 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
29761 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
29762 (re_search_internal, re_search_2_stub, re_search_stub)
29763 (re_copy_regs, prune_impossible_nodes, check_matching)
29764 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
29765 (free_fail_stack_return, sift_states_iter_mb)
29766 (sift_states_backward, build_sifted_states)
29767 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
29768 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
29769 (check_subexp_limits, sift_states_bkref, merge_state_array)
29770 (find_recover_state, transit_state, merge_state_with_log)
29771 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
29772 (transit_state_mb, transit_state_bkref, get_subexp)
29773 (get_subexp_sub, find_subexp_node, check_arrival)
29774 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
29775 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
29776 (check_node_accept_bytes, find_collation_sequence_value)
29777 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
29778 (acquire_init_state_context, check_halt_node_context)
29779 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
29780 (sub_epsilon_src_nodes): Likewise.
29781 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
29782 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
29783 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
29784 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
29785 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
29786 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
29787 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
29788 * sysdeps/posix/ttyname.c (getttyname): Likewise.
29789 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
29790 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
29791 (PREADV): Likewise.
29792 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
29793 (PREADV): Likewise.
29794 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
29795 (PWRITEV): Likewise.
29796 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
29797 (PWRITEV): Likewise.
29798 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
29799 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
29800
29801 2017-08-31 Florian Weimer <fweimer@redhat.com>
29802
29803 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
29804 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
29805 Remove internal_function.
29806 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
29807 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
29808 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
29809 (__deallocate_stack, __libc_pthread_init)
29810 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
29811 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
29812 (__libc_disable_asynccancel, __librt_disable_asynccancel):
29813 Likewise.
29814 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
29815 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
29816 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
29817 Likewise.
29818 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
29819 (__pthread_mutex_unlock_usercnt): Likewise.
29820
29821 2017-08-31 Florian Weimer <fweimer@redhat.com>
29822
29823 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
29824 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
29825 (fts_safe_changedir): Remove internal_function.
29826 * io/ftw.c (internal_function): Remove definition.
29827 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
29828
29829 2017-08-31 Florian Weimer <fweimer@redhat.com>
29830
29831 * inet/deadline.c (__deadline_current_time)
29832 (__deadline_from_timeval, __deadline_to_ms): Remove
29833 internal_function.
29834 * inet/getnameinfo.c (nrl_domainname): Likewise.
29835 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
29836 * inet/inet6_option.c (add_pad): Likewise.
29837 * inet/net-internal.h (__deadline_current_time)
29838 (__deadline_from_timeval, __deadline_to_ms): Likewise.
29839 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
29840 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
29841 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
29842
29843 2017-08-31 Joseph Myers <joseph@codesourcery.com>
29844
29845 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
29846 include <bits/nan.h>.
29847 * math/Makefile (headers): Remove bits/nan.h.
29848 * bits/nan.h: Remove.
29849 * sysdeps/ieee754/bits/nan.h: Likewise.
29850 * sysdeps/mips/bits/nan.h: Likewise.
29851
29852 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
29853 not include <bits/inf.h>.
29854 * math/Makefile (headers): Remove bits/inf.h.
29855 * bits/inf.h: Remove.
29856 * sysdeps/ieee754/bits/inf.h: Likewise.
29857
29858 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
29859 bits/huge_vall.h or bits/huge_val_flt128.h.
29860 (HUGE_VAL): Define directly here.
29861 [__USE_ISOC99] (HUGE_VALF): Likewise.
29862 [__USE_ISOC99] (HUGE_VALL): Likewise.
29863 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29864 (HUGE_VAL_F128): Likewise.
29865 * math/Makefile (headers): Remove bits/huge_val.h,
29866 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
29867 * bits/huge_val.h: Remove.
29868 * bits/huge_val_flt128.h: Likewise.
29869 * bits/huge_valf.h: Likewise.
29870 * bits/huge_vall.h: Likewise.
29871 * sysdeps/ia64/bits/huge_vall.h: Likewise.
29872 * sysdeps/ieee754/bits/huge_val.h: Likewise.
29873 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
29874 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
29875 * sysdeps/sh/bits/huge_val.h: Likewise.
29876 * sysdeps/sparc/bits/huge_vall.h: Likewise.
29877 * sysdeps/x86/bits/huge_vall.h: Likewise.
29878
29879 2017-08-31 Florian Weimer <fweimer@redhat.com>
29880
29881 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
29882 internal_function.
29883 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
29884 Likewise.
29885 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
29886 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
29887 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
29888 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
29889 * elf/dl-fini.c (_dl_sort_fini): Likewise.
29890 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
29891 * elf/dl-libc.c (dlerror_run): Likewise.
29892 * elf/dl-load.c (add_name_to_object, decompose_rpath)
29893 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
29894 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
29895 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
29896 Likewise.
29897 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
29898 (_dl_higher_prime_number, _dl_strtoul): Likewise.
29899 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
29900 * elf/dl-profile.c (_dl_start_profile): Likewise.
29901 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
29902 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
29903 Likewise.
29904 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
29905 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
29906 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
29907 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
29908 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
29909 (_dl_allocate_tls_storage): Likewise.
29910 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
29911 (_dl_check_all_versions): Likewise.
29912 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
29913 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
29914 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
29915 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29916 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
29917 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
29918 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
29919 internal_function from __dl_start.
29920 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
29921 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
29922 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
29923 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
29924 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
29925 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
29926 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
29927 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
29928 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
29929 (_dl_next_ld_env_entry, _dl_important_hwcaps)
29930 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
29931 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
29932 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
29933 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
29934 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
29935 Likewise.
29936 (struct rtld_global_ro): Remove internal_function from the
29937 _dl_lookup_symbol_x member.
29938 (_dl_symbol_value): Remove. No longer defined anywhere.
29939 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
29940 internal_function.
29941 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29942 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
29943 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
29944 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
29945 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
29946 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
29947 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
29948 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
29949 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
29950 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
29951 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29952 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
29953
29954 2017-08-31 Florian Weimer <fweimer@redhat.com>
29955
29956 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
29957 Remove internal_function.
29958 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29959 Likewise.
29960 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29961 Likewise.
29962
29963 2017-08-31 Florian Weimer <fweimer@redhat.com>
29964
29965 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
29966 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
29967 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
29968
29969 2017-08-31 Florian Weimer <fweimer@redhat.com>
29970
29971 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
29972 (__gai_enqueue_request): Remove internal_function.
29973 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
29974 (__gai_remove_request, __gai_notify, __gai_notify_only)
29975 (__gai_sigqueue): Likewise.
29976 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
29977 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
29978 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
29979 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
29980 Likewise.
29981
29982 2017-08-31 Florian Weimer <fweimer@redhat.com>
29983
29984 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
29985 * include/dirent.h (__opendirat, __getdents, __getdents64)
29986 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
29987 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
29988 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
29989 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
29990 Likewise.
29991 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
29992
29993 2017-08-31 Florian Weimer <fweimer@redhat.com>
29994
29995 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
29996 internal_function.
29997 (GETCWD_RETURN_TYPE): Likewise.
29998
29999 2017-08-31 Florian Weimer <fweimer@redhat.com>
30000
30001 * include/time.h (__tz_compute, __strptime_internal): Remove
30002 internal_function.
30003 * time/strptime_l.c (__strptime_internal): Likewise.
30004 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
30005
30006 2017-08-31 Florian Weimer <fweimer@redhat.com>
30007
30008 * iconv/gconv.c (__gconv): Remove internal_function.
30009 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
30010 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
30011 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
30012 (__gconv_release_cache): Likewise.
30013 * iconv/gconv_close.c (__gconv_close): Likewise.
30014 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
30015 (read_conf_file, __gconv_get_path): Likewise.
30016 * iconv/gconv_db.c (derivation_lookup, add_derivation)
30017 (__gconv_release_step, gen_steps, increment_counter)
30018 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
30019 (__gconv_close_transform, free_modules_db): Likewise.
30020 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
30021 Likewise.
30022 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
30023 (__gconv_find_transform, __gconv_lookup_cache)
30024 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
30025 (__gconv_close_transform, __gconv_release_cache)
30026 (__gconv_loaded_object, __gconv_release_shlib)
30027 (__gconv_compare_alias): Likewise.
30028 * iconv/gconv_open.c (__gconv_open): Likewise.
30029 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
30030 * iconv/iconvconfig.c (add_module): Likewise.
30031 * intl/dcigettext.c (plural_lookup, guess_category_value)
30032 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
30033 * intl/eval-plural.h (plural_eval): Likewise.
30034 * intl/finddomain.c (_nl_find_domain): Likewise.
30035 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
30036 (_nl_load_domain, _nl_find_msg): Likewise.
30037 (internal_function): Remove definition.
30038 * intl/loadinfo.h (internal_function): Likewise.
30039 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
30040 internal_function.
30041 * intl/localealias.c (internal_function): Remove definition.
30042 (read_alias_file): Remove internal_function.
30043 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
30044 * intl/plural-exp.h (internal_function): Remove definition.
30045 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
30046 internal_function.
30047 * intl/plural.c: Regenerate.
30048 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
30049 * locale/coll-lookup.c (__collidx_table_lookup)
30050 (__collseq_table_lookup): Likewise.
30051 * locale/coll-lookup.h (__collidx_table_lookup)
30052 (__collseq_table_lookup): Likewise.
30053 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
30054 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30055 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
30056 (_nl_unload_locale): Likewise.
30057 * locale/localeinfo.h (struct __locale_data): Remove
30058 internal_function from cleanup member.
30059 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
30060 (_nl_remove_locale, _nl_load_locale_from_archive)
30061 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
30062 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
30063 (_nl_cleanup_time): Remove internal_function.
30064 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
30065 (_nl_parse_alt_digit): Likewise.
30066 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
30067 (_nl_select_era_entry): Likewise.
30068 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
30069 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
30070 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
30071 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
30072 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
30073
30074 2017-08-31 Florian Weimer <fweimer@redhat.com>
30075
30076 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
30077 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
30078 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
30079 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
30080 Likewise.
30081 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
30082 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
30083 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
30084 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
30085 Likewise.
30086 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
30087
30088 2017-08-31 Florian Weimer <fweimer@redhat.com>
30089
30090 * misc/getttyent.c (skip, value): Remove internal_function.
30091 * misc/syslog.c (openlog_internal): Likewise.
30092 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
30093
30094 2017-08-31 Florian Weimer <fweimer@redhat.com>
30095
30096 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
30097 (__nss_rewrite_field): Remove internal_function.
30098 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
30099 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
30100 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
30101 * nss/nsswitch.c (nss_parse_file, nss_getline)
30102 (nss_parse_service_list, nss_new_service): Likewise.
30103 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
30104 * nss/valid_field.c (__nss_valid_field): Likewise.
30105 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
30106
30107 2017-08-31 Florian Weimer <fweimer@redhat.com>
30108
30109 * malloc/arena.c (__malloc_fork_lock_parent)
30110 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
30111 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
30112 internal_function from defintions.
30113 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
30114 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
30115 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
30116 internal_function from declarations.
30117 * malloc/malloc.c (internal_function): Do not define.
30118 (mem2mem_check): Remove internal_function from declaration.
30119 (munmap_chunk, mremap_chunk): Remove internal_function.
30120 * malloc/mtrace.c (tr_where): Likewise.
30121
30122 2017-08-31 Florian Weimer <fweimer@redhat.com>
30123
30124 * include/rpc/pmap_clnt.h (__get_socket): Remove
30125 internal_function.
30126 * sunrpc/auth_des.c (synchronize): Likewise.
30127 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
30128 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
30129 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
30130 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
30131 (key_call): Likewise.
30132 * sunrpc/pm_getport.c (__get_socket): Likewise.
30133 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
30134 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
30135 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
30136 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
30137 (invalidate): Likewise.
30138 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
30139 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
30140 (set_input_fragment, get_input_bytes): Likewise.
30141
30142 2017-08-31 Florian Weimer <fweimer@redhat.com>
30143
30144 * malloc/malloc.c (_int_free): Remove locked variable and related
30145 asserts.
30146
30147 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
30148
30149 [BZ #22051]
30150 * Makerules (build-module-helper-objlist): Filter out
30151 $(elf-objpfx)sofini.os.
30152 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
30153 needed.
30154
30155 2017-08-31 Florian Weimer <fweimer@redhat.com>
30156
30157 * libio/fcloseall.c: Assume weak_alias is defined.
30158 * libio/feof.c: Likewise.
30159 * libio/fileno.c: Likewise.
30160 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
30161 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
30162 definitions.
30163 (_IO_file_open): Call __open directly.
30164 (_IO_new_file_sync): Assume ESPIPE is defined.
30165 (_IO_file_seekoff_maybe_mmap): Call __read directly.
30166 (_IO_new_file_write): Call __write directly.
30167 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
30168 * libio/ftello64.c (__ftello64): Assume EIO is defined.
30169 * libio/genops.c: Assume _LIBC is defined.
30170 (save_for_backup): Remove internal_function.
30171 * libio/getc.c: Assume weak_alias is defined.
30172 * libio/getwc.c: Likewise.
30173 * libio/iofclose.c: Assume _LIBC is defined.
30174 * libio/iofdopen.c: Likewise.
30175 (_IO_fcntl): Remove macro definition.
30176 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
30177 Call __fcntl directly.
30178 * libio/iofflush.c: Assume weak_alias is defined.
30179 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
30180 defined.
30181 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
30182 * libio/iofgets.c: Likewise.
30183 * libio/iofopen.c: Assume _LIBC is defined.
30184 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
30185 * libio/iofputs.c: Assume weak_alias is defined.
30186 * libio/iofread.c: Likewise.
30187 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
30188 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
30189 * libio/ioftell.c: Assume weak_alias is defined.
30190 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
30191 * libio/iofwide.c: Assume _LIBC is defined.
30192 (_IO_fwide): Drop SHARED conditional because it is implied by
30193 SHLIB_COMPAT.
30194 * libio/iofwrite.c: Assume weak_alias is defined.
30195 * libio/iogetdelim.c: Likewise.
30196 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
30197 * libio/iogetwline.c (wmemcpy): Remove macro definition.
30198 (_IO_getwline): Call __wmemcpy directly.
30199 * libio/iopopen.c: Assume _LIBC is defined.
30200 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
30201 (_IO_close): Remove macro definitions.
30202 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
30203 _exit directly.
30204 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
30205 directly.
30206 * libio/ioputs.c: Assume weak_alias is defined.
30207 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
30208 * libio/iosetbuffer.c: Assume weak_alias is defined.
30209 * libio/iosetvbuf.c: Likewise.
30210 * libio/ioungetc.c: Likewise.
30211 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
30212 libc_hidden_def, libc_hidden_weak, NULL are defined.
30213 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
30214 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
30215 defined.
30216 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
30217 definitions.
30218 (_IO_old_file_init_internal): Drop SHARED conditional because it
30219 is implied by SHLIB_COMPAT.
30220 (_IO_old_file_fopen): Call __open directly.
30221 (_IO_old_file_sync): Assume ESPIPE is defined.
30222 (_IO_old_file_write): Call __write directly.
30223 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
30224 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
30225 Call __fcntl directly.
30226 * libio/oldiofgetpos.c: Assume weak_alias is defined.
30227 (_IO_old_fgetpos): Assume EIO is defined.
30228 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
30229 (_IO_old_fgetpos64): Assume EIO is defined.
30230 * libio/oldiofsetpos.c: Assume weak_alias is defined.
30231 (_IO_old_fsetpos): Assume EIO is defined.
30232 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
30233 (_IO_old_fsetpos64): Assume EIO is defined.
30234 * libio/oldiopopen.c: Assume _LIBC is defined.
30235 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
30236 (_IO_close): Remove macro definitions.
30237 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
30238 directly.
30239 (_IO_old_proc_close): Call __close, __waitpid directly.
30240 * libio/put.c: Assume weak_alias is defined.
30241 * libio/stdfiles.c: Assume _LIBC is defined.
30242 * libio/stdio.c: Likewise.
30243 * libio/wfileops.c: Likewise.
30244 (_IO_wfile_sync): Assume ESPIPE is defined.
30245 * libio/wgenops.c: Assume _LIBC is defined.
30246 (save_for_wbackup): Remove internal_function.
30247
30248 2017-08-31 Florian Weimer <fweimer@redhat.com>
30249
30250 * malloc/malloc.c (top_check): Change return type to void. Remove
30251 internal_function.
30252 * malloc/hooks.c (top_check): Likewise.
30253 (malloc_check, realloc_check, memalign_check): Adjust.
30254
30255 2017-08-30 Joseph Myers <joseph@codesourcery.com>
30256
30257 [BZ #21457]
30258 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
30259 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
30260 sigcontext and namespace requirements.
30261 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
30262 * sysdeps/m68k/sys/ucontext.h: Likewise.
30263 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
30264 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
30265 <bits/sigcontext.h>.
30266 (__ctx): Define earlier.
30267 (mcontext_t): Define structure contents rather than using struct
30268 sigcontext.
30269 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
30270 __glibc_reserved1 instead of __reserved.
30271 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
30272 <bits/sigcontext.h>.
30273 (__ctx): Define earlier.
30274 (mcontext_t): Define structure contents rather than using struct
30275 sigcontext.
30276 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
30277 mcontext_t instead of struct sigcontext.
30278 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
30279 <bits/sigcontext.h>.
30280 (__ctx): Define earlier.
30281 (mcontext_t): Define structure contents rather than using struct
30282 sigcontext.
30283 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
30284 <bits/sigcontext.h>.
30285 (__ctx): Define earlier.
30286 (mcontext_t): Define structure contents rather than using struct
30287 sigcontext.
30288 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
30289 mcontext_t instead of struct sigcontext.
30290 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
30291 mcontext_t instead of struct sigcontext.
30292 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
30293 <bits/sigcontext.h>.
30294 (__ctx): New macro.
30295 (struct __ia64_fpreg_mcontext): New type.
30296 (mcontext_t): Define structure contents rather than using struct
30297 sigcontext.
30298 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
30299 (uc_sigmask): Define using __ctx.
30300 (uc_stack): Likewise.
30301 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
30302 <bits/sigcontext.h>.
30303 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
30304 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
30305 <bits/sigcontext.h>.
30306 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
30307 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
30308 <bits/sigcontext.h>.
30309 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
30310 <bits/sigcontext.h>.
30311 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
30312 <bits/sigcontext.h>.
30313 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
30314 <bits/sigcontext.h>.
30315 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
30316 <bits/sigcontext.h>.
30317 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
30318 <bits/sigcontext.h>.
30319 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
30320 <bits/sigcontext.h>.
30321 (__ctx): Define earlier.
30322 (mcontext_t): Define structure contents rather than using struct
30323 sigcontext.
30324 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
30325 <bits/sigcontext.h>. Include <bits/types.h>.
30326 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
30327 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
30328 (test-xfail-XPG42/ucontext.h/conform): Likewise.
30329 (test-xfail-UNIX98/signal.h/conform): Likewise.
30330 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
30331 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
30332 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
30333 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
30334 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
30335 (test-xfail-POSIX2008/signal.h/conform): Likewise.
30336 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
30337 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
30338 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
30339
30340 2017-08-30 Florian Weimer <fweimer@redhat.com>
30341
30342 * malloc/dynarray_emplace_enlarge.c
30343 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
30344 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
30345 * malloc/tst-dynarray.c (test_long_overflow): New function.
30346 (do_test): Call it.
30347
30348 2017-08-30 Florian Weimer <fweimer@redhat.com>
30349
30350 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
30351 (set_arena_corrupt): Remove definitions.
30352 (mtrim): Do not check for corrupt arena.
30353 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
30354 Likewise.
30355
30356 2017-08-30 Florian Weimer <fweimer@redhat.com>
30357
30358 [BZ #21754]
30359 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
30360 check_action.
30361 (ptmalloc_init): Do not set or use check_action.
30362 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
30363 call to malloc_printerr. Remove return statement.
30364 (free_check): Likewise. Remove arena unlock.
30365 (top_check): Update comment. Adjust call to malloc_printerr.
30366 Remove heap repair code.
30367 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
30368 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
30369 (sysmalloc): Adjust call to malloc_printerr.
30370 (munmap_chunk, __libc_realloc): Likewise. Remove return
30371 statement.
30372 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
30373 Remove errout label and corresponding gotos.
30374 (_int_free): Likewise. Remove arena unlock.
30375 (do_set_mallopt_check): Do not set check_action.
30376 (malloc_printerr): Adjust parameter list. Do not mark arena as
30377 corrupt.
30378 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
30379 comment.
30380 * manual/probes.texi (Memory Allocation Probes): Remove
30381 memory_mallopt_check_action.
30382
30383 2017-08-30 Steve Ellcey <sellcey@cavium.com>
30384
30385 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
30386 Use pointer to uint64_t instead of long int for sp.
30387
30388 2017-08-30 Florian Weimer <fweimer@redhat.com>
30389
30390 [BZ #21754]
30391 * malloc/malloc.c (malloc_printerr): Always terminate the process,
30392 without printing a backtrace. Do not leak any information in the
30393 error message.
30394 * manual/memory.texi (Heap Consistency Checking): Update.
30395 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
30396
30397 2017-08-30 Florian Weimer <fweimer@redhat.com>
30398
30399 Do not scale NPTL tests with available number of CPUs.
30400 * nptl/tst-cond16.c (count): Set to constant value of 8.
30401 * nptl/tst-cond18.c (count): Likewise.
30402
30403 2017-08-29 Joseph Myers <joseph@codesourcery.com>
30404
30405 [BZ #22035]
30406 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
30407 Define to take a second argument that is a macro that
30408 concatentates a suffix, not the suffix itself.
30409 (__CONCAT_d): New macro.
30410 (__CONCAT_f): Likewise.
30411 (__CONCAT_l): Likewise.
30412
30413 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
30414
30415 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
30416 by child.
30417
30418 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30419 Aurelien Jarno <aurelien@aurel32.net>
30420 Maciej W. Rozycki <macro@imgtec.com>
30421
30422 [BZ #21956]
30423 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
30424 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
30425 `mips16-syscall6' and `mips16-syscall7'.
30426 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
30427 (CFLAGS-mips16-syscall7.c): Remove.
30428 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
30429 Remove `__mips16_syscall5', `__mips16_syscall6' and
30430 `__mips16_syscall7'.
30431 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
30432 (__mips16_syscall0): Rename `__mips16_syscall_return' to
30433 `__mips_syscall_return'.
30434 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
30435 (__mips16_syscall1): Likewise.
30436 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
30437 (__mips16_syscall2): Likewise.
30438 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
30439 (__mips16_syscall3): Likewise.
30440 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
30441 (__mips16_syscall4): Likewise.
30442 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
30443 Remove.
30444 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
30445 Remove.
30446 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
30447 Remove.
30448 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
30449 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
30450 `__mips16_syscall5'. Remove prototype.
30451 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
30452 `__mips16_syscall6'. Remove prototype.
30453 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
30454 `__mips16_syscall7'. Remove prototype.
30455 (__nomips16, __mips16_syscall_return): Move to...
30456 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
30457 (__nomips16, __mips_syscall_return): ... here.
30458 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
30459 `__mips16_syscall_return' to `__mips_syscall_return'.
30460 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
30461 `internal_syscall##nr'.
30462 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
30463 `internal_syscall##nr'.
30464 (FORCE_FRAME_POINTER): Remove.
30465 (__mips_syscall5): New prototype.
30466 (internal_syscall5): Rewrite to call `__mips_syscall5'.
30467 (__mips_syscall6): New prototype.
30468 (internal_syscall6): Rewrite to call `__mips_syscall6'.
30469 (__mips_syscall7): New prototype.
30470 (internal_syscall7): Rewrite to call `__mips_syscall7'.
30471 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
30472 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
30473 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
30474 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
30475 (sysdep_routines): Add libc-do-syscall.
30476 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
30477 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
30478
30479 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30480
30481 [BZ #21672]
30482 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
30483 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
30484 (advise_stack_range): New function.
30485 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
30486 stack non required to advise_stack_range at allocatestack.c
30487
30488 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
30489
30490 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
30491
30492 2017-08-29 Florian Weimer <fweimer@redhat.com>
30493
30494 [BZ #22026]
30495 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
30496 __end_fct. Mangle __end_fct after setting it to NULL.
30497 * iconv/Makefile (tests): Add tst-gconv-init-failure.
30498 (modules-names, modules-names-tests): Add
30499 tst-gconv-init-failure-mod.
30500 (gconv-modules): New target.
30501 (tst-gconv-init-failure-mod.so): Link against libsupport.
30502 (tst-gconv-init-failure): Depend on gconv-modules,
30503 tst-gconv-init-failure-mod.so.
30504 * iconv/tst-gconv-init-failure-mod.c: New file.
30505 * iconv/tst-gconv-init-failure.c: Likewise.
30506 * iconv/test-gconv-modules: Likewise.
30507
30508 2017-08-29 Florian Weimer <fweimer@redhat.com>
30509
30510 [BZ #22025]
30511 * iconv/gconv_db.c (free_derivation): Remove redundant
30512 parentheses.
30513 (gen_steps): Unconditionally mangle __btowc_fct after
30514 initialization.
30515 (increment_counter): Likewise. Do not call init_fct for internal
30516 modules.
30517
30518 2017-08-29 Joseph Myers <joseph@codesourcery.com>
30519
30520 [BZ #22028]
30521 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
30522 (_MSUF_): Remove macro.
30523 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
30524 Likewise.
30525 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
30526 (__REDIRFROM_X): New macro.
30527 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
30528 Likewise.
30529 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
30530 (__REDIRTO_X): Likewise.
30531 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
30532 arguments.
30533 (__MATH_REDIRCALL_2): Likewise.
30534 (__MATH_REDIRCALL_INTERNAL): Likewise.
30535 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
30536 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
30537 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
30538 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
30539 * math/test-finite-macros.c: New file.
30540 * math/Makefile (tests): Add test-finite-macros.
30541 (CFLAGS-test-finite-macros.c): New variable.
30542
30543 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
30544 Jeff Law <law@redhat.com>
30545
30546 [BZ #22025]
30547 Mangle NULL pointers in iconv/gconv.
30548 * iconv/gconv_cache.c (find_module): Demangle init_fct before
30549 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
30550 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
30551 is non-NULL before demangling the end_fct. Check for NULL
30552 end_fct after demangling.
30553 (__gconv_release_step): Demangle the end_fct before checking
30554 it for NULL. Remove assert on __shlibc_handle != NULL.
30555 (gen_steps): Don't check btowc_fct for NULL before mangling.
30556 Demangle init_fct before checking for NULL.
30557 (increment_counter): Likewise.
30558 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
30559 end_fct for NULL before mangling.
30560 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
30561 for NULL.
30562
30563 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
30564
30565 [BZ #21971]
30566 * locale/iso-639.def: add Morisyen.
30567
30568 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30569
30570 [BZ #21930]
30571 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
30572 (iszero): New C++ implementation that does not use
30573 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
30574 signaling nans are enabled, since __builtin_types_compatible_p
30575 is a C-only feature.
30576 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
30577 defined, include ieee754_float128.h for access to the union and
30578 member ieee854_float128.ieee.
30579 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
30580 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
30581 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
30582 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
30583 options of test-math-zero on powerpc64le.
30584
30585 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
30586
30587 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
30588 Change double to float.
30589
30590 2017-08-28 Joseph Myers <joseph@codesourcery.com>
30591
30592 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
30593 unconditional.
30594 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
30595 conditional code; define contents only for [LIBM_SVID_COMPAT].
30596
30597 2017-08-28 Florian Weimer <fweimer@redhat.com>
30598
30599 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
30600 (abi-lp64_be-options): Remove.
30601 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
30602 (abi-hard-options): Likewise.
30603 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
30604 (abi-o32_hard-options, abi-o32_soft_2008-options)
30605 (abi-o32_hard_2008-options, abi-n32_soft-options)
30606 (abi-n32_hard-options, abi-n32_soft_2008-options)
30607 (abi-n32_hard_2008-options, abi-n64_soft-options)
30608 (abi-n64_hard-options, abi-n64_soft_2008-options)
30609 (abi-n64_hard_2008-options): Likewise.
30610 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
30611 (abi-64-v1-options, abi-64-v2-options): Likewise.
30612 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
30613 (abi-64-options): Likewise.
30614 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
30615 (abi-64-options): Likewise.
30616 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
30617 (abi-64-options): Likewise.
30618 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
30619 (abi-64-options, abi-x32-options): Likewise.
30620
30621 2017-08-28 Florian Weimer <fweimer@redhat.com>
30622
30623 Store supported list of SYS_* system calls in the source tree.
30624 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
30625 (bits/syscall.h): Generate from list file.
30626 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
30627 [$(subdir) = misc] (tests): Add tst-syscall-list.
30628 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
30629 [$(subdir) = misc] (tst-syscall-list-macros.list)
30630 [$(subdir) = misc] (tst-syscall-list-nr.list)
30631 (tst-syscall-list-sys.list): Helper targets for new
30632 tst-syscall-list test.
30633 [$(subdir) = misc] (tst-syscall-list.out): Run test script
30634 tst-syscall-list.sh.
30635 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
30636 target. Do not include bits/syscall.d.
30637 [$(subdir) = misc] (generated): Do not update.
30638 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
30639 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
30640 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
30641 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
30642
30643 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
30644
30645 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
30646 (tst-cxa_atexit, tst-on_exit): Likewise.
30647 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
30648 tst-cxa_atexit, and tst-on_exit.
30649 * stdlib/tst-atexit-common.c: New file.
30650 * stdlib/tst-atexit.c: New file.
30651 * stdlib/tst-at_quick_exit.c: New file.
30652 * stdlib/tst-cxa_atexit.c: New file.
30653 * stdlib/tst-on_exit.c: New file.
30654
30655 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
30656
30657 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
30658 * mach/stack_chk_fail_local.c: New file.
30659 * hurd/stack_chk_fail_local.c: New file.
30660 * mach/Machrules ($(interface-library)-routines): Add
30661 stack_chk_fail_local.
30662 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
30663 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
30664 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
30665 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
30666 * hurd/Makefile (CFLAGS-hurdstartup.o,
30667 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
30668
30669 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
30670
30671 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
30672 (index_cpu_*, index_arch_*): Removed.
30673
30674 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
30675
30676 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
30677 Use uint64_t instead of unsigned long.
30678
30679 2017-08-25 Joseph Myers <joseph@codesourcery.com>
30680
30681 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
30682 [__HAVE_DISTINCT_FLOAT128].
30683
30684 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
30685 of <bits/math-finite.h>.
30686 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
30687 inclusion of <bits/math-finite.h>.
30688 * math/bits/math-finite.h (__REDIRTO_X): Do not define
30689 conditionally on [__MATH_DECLARING_LDOUBLE && defined
30690 __NO_LONG_DOUBLE_MATH].
30691 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
30692 (__MATH_REDIRCALL_2): Likewise.
30693 (__MATH_REDIRCALL_INTERNAL): Likewise.
30694 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
30695 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
30696 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
30697
30698 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
30699 Remove file.
30700 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
30701 Likewise.
30702 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
30703 Likewise.
30704 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
30705 Likewise.
30706 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
30707 Likewise.
30708 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
30709 Likewise.
30710 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30711 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30712 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30713 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30714 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
30715 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
30716 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
30717 w_sqrtf_compat-ppc32.
30718
30719 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30720
30721 * math/math.h [defined __cplusplus] (issignaling): In the long
30722 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
30723 is not defined. Call __issignaling, otherwise.
30724
30725 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30726
30727 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
30728 syscall definitions and replace __builtin_expect with __glibc_likely.
30729 * sysdeps/unix/syscall-template.S: Update comment about cancellable
30730 syscall.
30731 (SYSCALL_CANCELLABLE): Removedefinition
30732 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
30733 definition.
30734 (PSEUDO_END): Likewise.
30735 [IS_IN (libpthread)] (CENABLE): Likewise.
30736 [IS_IN (libpthread)] (CDISABLE): Likewise.
30737 [IS_IN (libc)] (CENABLE): Likewise.
30738 [IS_IN (libc)] (CENABLE): Likewise.
30739 [IS_IN (librt)] (CDISABLE): Likewise.
30740 [IS_IN (librt)] (CDISABLE): Likewise.
30741 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30742 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
30743 definition.
30744 (PSEUDO_END): Likewise.
30745 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
30746 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
30747 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
30748 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
30749 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
30750 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
30751 (CENABLE): Likewise.
30752 (CDISABLE): Likewise.
30753 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30754 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
30755 defintion.
30756 (PSEUDO_END): Likewise.
30757 [IS_IN (libpthread)] (CENABLE): Likewise.
30758 [IS_IN (libpthread)] (CDISABLE): Likewise.
30759 [IS_IN (libc)] (CENABLE): Likewise.
30760 [IS_IN (libc)] (CENABLE): Likewise.
30761 [IS_IN (librt)] (CDISABLE): Likewise.
30762 [IS_IN (librt)] (CDISABLE): Likewise.
30763 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30764 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
30765 definition.
30766 (PSEUDO_END): Likewise.
30767 [IS_IN (libpthread)] (CENABLE): Likewise.
30768 [IS_IN (libpthread)] (CDISABLE): Likewise.
30769 [IS_IN (libc)] (CENABLE): Likewise.
30770 [IS_IN (libc)] (CENABLE): Likewise.
30771 [IS_IN (librt)] (CDISABLE): Likewise.
30772 [IS_IN (librt)] (CDISABLE): Likewise.
30773 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30774 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
30775 definition.
30776 (PSEUDO_END): Likewise.
30777 [IS_IN (libpthread)] (CENABLE): Likewise.
30778 [IS_IN (libpthread)] (CDISABLE): Likewise.
30779 [IS_IN (libc)] (CENABLE): Likewise.
30780 [IS_IN (libc)] (CENABLE): Likewise.
30781 [IS_IN (librt)] (CDISABLE): Likewise.
30782 [IS_IN (librt)] (CDISABLE): Likewise.
30783 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30784 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
30785 definition.
30786 (PSEUDO_END): Likewise.
30787 [IS_IN (libpthread)] (CENABLE): Likewise.
30788 [IS_IN (libpthread)] (CDISABLE): Likewise.
30789 [IS_IN (libc)] (CENABLE): Likewise.
30790 [IS_IN (libc)] (CENABLE): Likewise.
30791 [IS_IN (librt)] (CDISABLE): Likewise.
30792 [IS_IN (librt)] (CDISABLE): Likewise.
30793 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30794 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
30795 definition.
30796 (PSEUDO_END): Likewise.
30797 [IS_IN (libpthread)] (CENABLE): Likewise.
30798 [IS_IN (libpthread)] (CDISABLE): Likewise.
30799 [IS_IN (libc)] (CENABLE): Likewise.
30800 [IS_IN (libc)] (CENABLE): Likewise.
30801 [IS_IN (librt)] (CDISABLE): Likewise.
30802 [IS_IN (librt)] (CDISABLE): Likewise.
30803 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30804 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
30805 definition.
30806 (PSEUDO_END): Likewise.
30807 [IS_IN (libpthread)] (CENABLE): Likewise.
30808 [IS_IN (libpthread)] (CDISABLE): Likewise.
30809 [IS_IN (libc)] (CENABLE): Likewise.
30810 [IS_IN (libc)] (CENABLE): Likewise.
30811 [IS_IN (librt)] (CDISABLE): Likewise.
30812 [IS_IN (librt)] (CDISABLE): Likewise.
30813 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30814 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
30815 Remove definition.
30816 (PSEUDO_END): Likewise.
30817 [IS_IN (libpthread)] (CENABLE): Likewise.
30818 [IS_IN (libpthread)] (CDISABLE): Likewise.
30819 [IS_IN (libc)] (CENABLE): Likewise.
30820 [IS_IN (libc)] (CENABLE): Likewise.
30821 [IS_IN (librt)] (CDISABLE): Likewise.
30822 [IS_IN (librt)] (CDISABLE): Likewise.
30823 (SINGLE_THREAD_P): Likewise.
30824 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
30825 definition.
30826 (PSEUDO_END): Likewise.
30827 [IS_IN (libpthread)] (CENABLE): Likewise.
30828 [IS_IN (libpthread)] (CDISABLE): Likewise.
30829 [IS_IN (libc)] (CENABLE): Likewise.
30830 [IS_IN (libc)] (CENABLE): Likewise.
30831 [IS_IN (librt)] (CDISABLE): Likewise.
30832 [IS_IN (librt)] (CDISABLE): Likewise.
30833 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30834 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
30835 definition.
30836 (PSEUDO_END): Likewise.
30837 [IS_IN (libpthread)] (CENABLE): Likewise.
30838 [IS_IN (libpthread)] (CDISABLE): Likewise.
30839 [IS_IN (libc)] (CENABLE): Likewise.
30840 [IS_IN (libc)] (CENABLE): Likewise.
30841 [IS_IN (librt)] (CDISABLE): Likewise.
30842 [IS_IN (librt)] (CDISABLE): Likewise.
30843 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30844 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
30845 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
30846 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
30847 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
30848 definition.
30849 (PSEUDO_END): Likewise.
30850 [IS_IN (libpthread)] (CENABLE): Likewise.
30851 [IS_IN (libpthread)] (CDISABLE): Likewise.
30852 [IS_IN (libc)] (CENABLE): Likewise.
30853 [IS_IN (libc)] (CENABLE): Likewise.
30854 [IS_IN (librt)] (CDISABLE): Likewise.
30855 [IS_IN (librt)] (CDISABLE): Likewise.
30856 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30857 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
30858 definition.
30859 (PSEUDO_END): Likewise.
30860 [IS_IN (libpthread)] (CENABLE): Likewise.
30861 [IS_IN (libpthread)] (CDISABLE): Likewise.
30862 [IS_IN (libc)] (CENABLE): Likewise.
30863 [IS_IN (libc)] (CENABLE): Likewise.
30864 [IS_IN (librt)] (CDISABLE): Likewise.
30865 [IS_IN (librt)] (CDISABLE): Likewise.
30866 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30867 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
30868 definition.
30869 (PSEUDO_END): Likewise.
30870 [IS_IN (libpthread)] (CENABLE): Likewise.
30871 [IS_IN (libpthread)] (CDISABLE): Likewise.
30872 [IS_IN (libc)] (CENABLE): Likewise.
30873 [IS_IN (libc)] (CENABLE): Likewise.
30874 [IS_IN (librt)] (CDISABLE): Likewise.
30875 [IS_IN (librt)] (CDISABLE): Likewise.
30876 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30877 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
30878 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
30879 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
30880 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
30881 definition.
30882 (PSEUDO_END): Likewise.
30883 [IS_IN (libpthread)] (CENABLE): Likewise.
30884 [IS_IN (libpthread)] (CDISABLE): Likewise.
30885 [IS_IN (libc)] (CENABLE): Likewise.
30886 [IS_IN (libc)] (CENABLE): Likewise.
30887 [IS_IN (librt)] (CDISABLE): Likewise.
30888 [IS_IN (librt)] (CDISABLE): Likewise.
30889 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30890 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
30891 definition.
30892 (PSEUDO_END): Likewise.
30893 [IS_IN (libpthread)] (CENABLE): Likewise.
30894 [IS_IN (libpthread)] (CDISABLE): Likewise.
30895 [IS_IN (libc)] (CENABLE): Likewise.
30896 [IS_IN (libc)] (CENABLE): Likewise.
30897 [IS_IN (librt)] (CDISABLE): Likewise.
30898 [IS_IN (librt)] (CDISABLE): Likewise.
30899 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30900
30901 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
30902
30903 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
30904
30905 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30906
30907 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30908
30909 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30910
30911 [BZ #21982]
30912 * string/stratcliff.c (do_test): Declare size, nchars, inner,
30913 middle and outer with size_t instead of int. Repleace %d and
30914 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
30915 "MAX (outer, nchars - 64)" to support unsigned outer and
30916 nchars. Also exit loop when outer == 0.
30917
30918 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30919
30920 * include/fcntl.h (__fcntl_nocancel): Remove definition.
30921 * include/signal.h (__sigsuspend_nocancel): Likewise.
30922 * include/time.h (__nanosleep_nocancel): Likewise.
30923 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
30924 * login/utmp_file.c: Include non cancellable syscall header.
30925 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
30926 prototype.
30927
30928 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30929
30930 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
30931 .byte sequences with AVX512F instructions.
30932 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
30933 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
30934 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
30935 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
30936 Likewise.
30937 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
30938 Likewise.
30939
30940 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
30941 Steve Ellcey <sellcey@cavium.com>
30942
30943 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
30944 Use PTR_REG macro in cmp instruction.
30945
30946 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30947
30948 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
30949 Change the return type of the ifunc resolver to match the return
30950 type of the target function.
30951
30952 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30953
30954 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
30955 (preadv64): Likewise.
30956 (pwrite64(: Likewise.
30957 (pwritev64): Likewise.
30958
30959 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
30960 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
30961 (LOAD_ARGS_0): Likewise.
30962 (LOAD_ARGS_1): Likewise.
30963 (LOAD_ARGS_2): Likewise.
30964 (LOAD_ARGS_3): Likewise.
30965 (LOAD_ARGS_4): Likewise.
30966 (LOAD_ARGS_5): Likewise.
30967 (LOAD_ARGS_6): Likewise.
30968 (LOAD_REGS_0): Likewise.
30969 (LOAD_REGS_1): Likewise.
30970 (LOAD_REGS_2): Likewise.
30971 (LOAD_REGS_3): Likewise.
30972 (LOAD_REGS_4): Likewise.
30973 (LOAD_REGS_5): Likewise.
30974 (LOAD_REGS_6): Likewise.
30975 (ASM_ARGS_0): Likewise.
30976 (ASM_ARGS_1): Likewise.
30977 (ASM_ARGS_2): Likewise.
30978 (ASM_ARGS_3): Likewise.
30979 (ASM_ARGS_4): Likewise.
30980 (ASM_ARGS_5): Likewise.
30981 (ASM_ARGS_6): Likewise.
30982 (LOAD_ARGS_TYPES_1): Likewise.
30983 (LOAD_ARGS_TYPES_2): Likewise.
30984 (LOAD_ARGS_TYPES_3): Likewise.
30985 (LOAD_ARGS_TYPES_4): Likewise.
30986 (LOAD_ARGS_TYPES_5): Likewise.
30987 (LOAD_ARGS_TYPES_6): Likewise.
30988 (LOAD_REGS_TYPES_1): Likewise.
30989 (LOAD_REGS_TYPES_2): Likewise.
30990 (LOAD_REGS_TYPES_3): Likewise.
30991 (LOAD_REGS_TYPES_4): Likewise.
30992 (LOAD_REGS_TYPES_5): Likewise.
30993 (LOAD_REGS_TYPES_6): Likewise.
30994 (TYPEFY): New define.
30995 (ARGIFY): Likewise.
30996 (internal_syscall0): Likewise.
30997 (internal_syscall1): Likewise.
30998 (internal_syscall2): Likewise.
30999 (internal_syscall3): Likewise.
31000 (internal_syscall4): Likewise.
31001 (internal_syscall5): Likewise.
31002 (internal_syscall6): Likewise.
31003 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
31004 (INTERNAL_SYSCALL_NCS): Remove define.
31005 (internal_syscall1): Add define.
31006
31007 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31008
31009 * math/w_remainder_compat.c: Remove duplicate inclusion of
31010 math-svid-compat.h.
31011 * math/w_remainderf_compat.c: Likewise.
31012 * math/w_remainderl_compat.c: Likewise.
31013
31014 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31015
31016 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31017
31018 2017-08-22 Joseph Myers <joseph@codesourcery.com>
31019
31020 [BZ #21684]
31021 * math/tgmath.h (__floating_type): Simplify definitions.
31022 (__real_integer_type): New macro.
31023 (__complex_integer_type): Likewise.
31024 (__expr_is_real): Likewise.
31025 (__tgmath_real_type_sub): Update comment to describe handling of
31026 complex types.
31027 (__tgmath_complex_type_sub): New macro.
31028 (__tgmath_complex_type): Likewise.
31029 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
31030 (__TGMATH_CF128): Use __expr_is_real.
31031 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
31032 __expr_is_real.
31033 (__TGMATH_BINARY_REAL_IMAG): Likewise.
31034 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
31035 * math/gen-tgmath-tests.py (Type.create_type): Create complex
31036 integer types.
31037
31038 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31039
31040 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
31041 macro.
31042 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
31043 alias.
31044 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
31045 Likewise.
31046
31047 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
31048 nanosleep_not_cancel with __nanosleep_nocancel.
31049 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
31050 (__nanosleep_nocancel): New macro.
31051 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
31052 function.
31053 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
31054 macro.
31055 (__nanosleep_nocancel): New prototype.
31056
31057 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
31058 pause_not_cancel with __pause_nocancel.
31059 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
31060 (__pause_nocancel): New macro.
31061 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
31062 macro.
31063 (__pause_nocancel): New prototype.
31064 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
31065
31066 2017-08-22 Martin Sebor <msebor@redhat.com>
31067
31068 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
31069 to return a pointer to the same type as the target function.
31070
31071 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
31072
31073 [BZ #18822]
31074 [BZ #21986]
31075 * include/printf.h (__printf_fphex): Add attribute_hidden.
31076 (__guess_grouping): New prototype.
31077 * stdio-common/printf_fp.c (__guess_grouping): Removed.
31078 * stdio-common/reg-printf.c (__register_printf_specifier): Add
31079 libc_hidden_proto and libc_hidden_def.
31080 * stdlib/strfmon_l.c (__guess_grouping): Removed.
31081 (__vstrfmon_l): Remove the third argument passed to
31082 __guess_grouping.
31083
31084 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31085
31086 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
31087 definition for issignaling that does not rely on __MATH_TG,
31088 since __MATH_TG uses __builtin_types_compatible_p, which is only
31089 available in C mode.
31090 (CFLAGS-test-math-issignaling.cc): New variable.
31091 * math/Makefile [CXX] (tests): Add test-math-issignaling.
31092 * math/test-math-issignaling.cc: New test for C++ implementation
31093 of type-generic issignaling.
31094 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
31095 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
31096 options of test-math-issignaling on powerpc64le.
31097
31098 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
31099
31100 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
31101 building libc.a.
31102 (hidden_proto): Likewise.
31103 (hidden_tls_proto): Likewise.
31104 (__hidden_proto): Likewise.
31105
31106 2017-08-22 Florian Weimer <fweimer@redhat.com>
31107
31108 math: Statically link tests of internal functionality.
31109 * math/Makefile (tests): Remove atest-exp, atest-sincos,
31110 atest-exp2.
31111 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
31112 (gmp-objs): Remove assignment.
31113 (atest-exp, atest-sincos, atest-exp2): Remove targets.
31114
31115 2017-08-22 Joseph Myers <joseph@codesourcery.com>
31116
31117 [BZ #21987]
31118 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
31119 and copy to ...
31120 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
31121 ... here.
31122 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
31123 ... and here.
31124
31125 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
31126 variable definitions above inclusion of ../Rules.
31127
31128 2017-08-21 Joseph Myers <joseph@codesourcery.com>
31129
31130 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
31131 case calling __builtin_unreachable.
31132
31133 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31134
31135 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
31136 __waitpid_nocancel.
31137 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
31138 (__waitpid_nocancel): New macro.
31139 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
31140 macro.
31141 (__waitpid_nocancel): Replace macro with a function.
31142 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
31143 function.
31144
31145 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
31146 __fcntl_nocancel.
31147 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
31148 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
31149
31150 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
31151 __writev_nocancel_nostatus.
31152 (write_call_graph): Likewise.
31153 (write_bb_counts): Likewise.
31154 * resolv/herror.c (herror): Likewise.
31155 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
31156 macro.
31157 (__writev_nocancel_nostatus): New macro.
31158 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
31159 Remove macro.
31160 (__writev_nocancel_nostatus): New function.
31161
31162 2017-08-21 Joseph Myers <joseph@codesourcery.com>
31163
31164 Revert:
31165 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31166
31167 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
31168 building libc.a.
31169 (hidden_proto): Likewise.
31170 (hidden_tls_proto): Likewise.
31171 (__hidden_proto): Likewise.
31172
31173 [BZ #21973]
31174 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
31175 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
31176 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
31177 Likewise.
31178 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
31179 Likewise.
31180 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
31181 Likewise.
31182 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
31183 Likewise.
31184 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
31185 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
31186 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
31187 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
31188 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
31189 GLIBC_2.0 sqrtl symbol.
31190
31191 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
31192 [__USE_MISC] (_LIB_VERSION): Likewise.
31193 [__USE_MISC] (struct exception): Likewise.
31194 [__USE_MISC] (matherr): Likewise.
31195 [__USE_MISC] (DOMAIN): Likewise.
31196 [__USE_MISC] (SING): Likewise.
31197 [__USE_MISC] (OVERFLOW): Likewise.
31198 [__USE_MISC] (UNDERFLOW): Likewise.
31199 [__USE_MISC] (TLOSS): Likewise.
31200 [__USE_MISC] (PLOSS): Likewise.
31201 [__USE_MISC] (HUGE): Likewise.
31202 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
31203 * math/math-svid-compat.h: New file.
31204 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
31205 and matherrl.
31206 * include/math.h [!_ISOMAC] (__matherr): Remove.
31207 * manual/arith.texi (FP Exceptions): Do not document matherr.
31208 * math/Makefile (tests): Change test-matherr to test-matherr-3.
31209 (tests-internal): New variable.
31210 (install-lib): Do not add libieee.a.
31211 (non-lib.a): Likewise.
31212 (extra-objs): Do not add libieee.a and ieee-math.o.
31213 (CPPFLAGS-s_lib_version.c): Remove variable.
31214 ($(objpfx)libieee.a): Remove rule.
31215 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
31216 * math/ieee-math.c: Remove.
31217 * math/libm-test-support.c (matherr): Remove.
31218 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
31219 and license notices. Include <math-svid-compat.h> and
31220 <shlib-compat.h>.
31221 (matherr): Undefine as macro. Use compat_symbol_reference.
31222 (_LIB_VERSION): Likewise.
31223 * math/test-matherr-2.c: New file.
31224 * math/test-matherr-3.c: Likewise.
31225 * sysdeps/generic/math_private.h (__kernel_standard): Remove
31226 declaration.
31227 (__kernel_standard_f): Likewise.
31228 (__kernel_standard_l): Likewise.
31229 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
31230 <math_private.h>. Include <math-svid-compat.h>.
31231 (_LIB_VERSION): Undefine as macro.
31232 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
31233 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
31234 [LIBM_SVID_COMPAT], use compat_symbol.
31235 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
31236 <math_private.h>. Include <math-svid-compat.h>.
31237 (matherr): Undefine as macro.
31238 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
31239 compat_symbol.
31240 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
31241 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
31242 compat_symbol_reference.
31243 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
31244 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
31245 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
31246 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
31247 (MATHERR_D): Remove declaration.
31248 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
31249 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
31250 [LIBM_BUILD] (pmatherrf): Likewise.
31251 [LIBM_BUILD] (pmatherr): Likewise.
31252 [LIBM_BUILD] (pmatherrl): Likewise.
31253 (DOMAIN): Likewise.
31254 (SING): Likewise.
31255 (OVERFLOW): Likewise.
31256 (UNDERFLOW): Likewise.
31257 (TLOSS): Likewise.
31258 (PLOSS): Likewise.
31259 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
31260 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
31261 compat_symbol.
31262 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
31263 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
31264 compat_symbol.
31265 * math/lgamma-compat.h: Include <math-svid-compat.h>.
31266 * math/w_acos_compat.c: Likewise.
31267 * math/w_acosf_compat.c: Likewise.
31268 * math/w_acosh_compat.c: Likewise.
31269 * math/w_acoshf_compat.c: Likewise.
31270 * math/w_acoshl_compat.c: Likewise.
31271 * math/w_acosl_compat.c: Likewise.
31272 * math/w_asin_compat.c: Likewise.
31273 * math/w_asinf_compat.c: Likewise.
31274 * math/w_asinl_compat.c: Likewise.
31275 * math/w_atan2_compat.c: Likewise.
31276 * math/w_atan2f_compat.c: Likewise.
31277 * math/w_atan2l_compat.c: Likewise.
31278 * math/w_atanh_compat.c: Likewise.
31279 * math/w_atanhf_compat.c: Likewise.
31280 * math/w_atanhl_compat.c: Likewise.
31281 * math/w_cosh_compat.c: Likewise.
31282 * math/w_coshf_compat.c: Likewise.
31283 * math/w_coshl_compat.c: Likewise.
31284 * math/w_exp10_compat.c: Likewise.
31285 * math/w_exp10f_compat.c: Likewise.
31286 * math/w_exp10l_compat.c: Likewise.
31287 * math/w_exp2_compat.c: Likewise.
31288 * math/w_exp2f_compat.c: Likewise.
31289 * math/w_exp2l_compat.c: Likewise.
31290 * math/w_fmod_compat.c: Likewise.
31291 * math/w_fmodf_compat.c: Likewise.
31292 * math/w_fmodl_compat.c: Likewise.
31293 * math/w_hypot_compat.c: Likewise.
31294 * math/w_hypotf_compat.c: Likewise.
31295 * math/w_hypotl_compat.c: Likewise.
31296 * math/w_j0_compat.c: Likewise.
31297 * math/w_j0f_compat.c: Likewise.
31298 * math/w_j0l_compat.c: Likewise.
31299 * math/w_j1_compat.c: Likewise.
31300 * math/w_j1f_compat.c: Likewise.
31301 * math/w_j1l_compat.c: Likewise.
31302 * math/w_jn_compat.c: Likewise.
31303 * math/w_jnf_compat.c: Likewise.
31304 * math/w_jnl_compat.c: Likewise.
31305 * math/w_lgamma_main.c: Likewise.
31306 * math/w_lgamma_r_compat.c: Likewise.
31307 * math/w_lgammaf_main.c: Likewise.
31308 * math/w_lgammaf_r_compat.c: Likewise.
31309 * math/w_lgammal_main.c: Likewise.
31310 * math/w_lgammal_r_compat.c: Likewise.
31311 * math/w_log10_compat.c: Likewise.
31312 * math/w_log10f_compat.c: Likewise.
31313 * math/w_log10l_compat.c: Likewise.
31314 * math/w_log2_compat.c: Likewise.
31315 * math/w_log2f_compat.c: Likewise.
31316 * math/w_log2l_compat.c: Likewise.
31317 * math/w_log_compat.c: Likewise.
31318 * math/w_logf_compat.c: Likewise.
31319 * math/w_logl_compat.c: Likewise.
31320 * math/w_pow_compat.c: Likewise.
31321 * math/w_powf_compat.c: Likewise.
31322 * math/w_powl_compat.c: Likewise.
31323 * math/w_remainder_compat.c: Likewise.
31324 * math/w_remainderf_compat.c: Likewise.
31325 * math/w_remainderl_compat.c: Likewise.
31326 * math/w_scalb_compat.c: Likewise.
31327 * math/w_scalbf_compat.c: Likewise.
31328 * math/w_scalbl_compat.c: Likewise.
31329 * math/w_sinh_compat.c: Likewise.
31330 * math/w_sinhf_compat.c: Likewise.
31331 * math/w_sinhl_compat.c: Likewise.
31332 * math/w_sqrt_compat.c: Likewise.
31333 * math/w_sqrtf_compat.c: Likewise.
31334 * math/w_sqrtl_compat.c: Likewise.
31335 * math/w_tgamma_compat.c: Likewise.
31336 * math/w_tgammaf_compat.c: Likewise.
31337 * math/w_tgammal_compat.c: Likewise.
31338 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
31339 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
31340 * sysdeps/ieee754/k_standard.c: Likewise.
31341 * sysdeps/ieee754/k_standardf.c: Likewise.
31342 * sysdeps/ieee754/k_standardl.c: Likewise.
31343 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
31344 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
31345 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
31346 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
31347 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
31348 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
31349 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
31350 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
31351 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
31352 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
31353 Likewise.
31354 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
31355 Likewise.
31356 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
31357 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
31358 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
31359 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
31360
31361 2017-08-21 Florian Weimer <fweimer@redhat.com>
31362
31363 [BZ #21864]
31364 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
31365 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
31366 Move before inclusion of ../Rules.
31367
31368 2017-08-21 Florian Weimer <fweimer@redhat.com>
31369
31370 [BZ #21972]
31371 * assert/assert.h (assert): Use static_cast (bool) for C++.
31372 Use the ternary operator in the warning branch for GNU C.
31373 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
31374 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
31375 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
31376 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
31377 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
31378
31379 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31380
31381 [BZ #18822]
31382 * sysdeps/unix/sysv/linux/x86_64/init-first.c
31383 (__syscall_clock_gettime): Add attribute_hidden.
31384 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
31385 (__start_context): Likewise.
31386
31387 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31388
31389 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
31390 building libc.a.
31391 (hidden_proto): Likewise.
31392 (hidden_tls_proto): Likewise.
31393 (__hidden_proto): Likewise.
31394
31395 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31396
31397 * include/libc-symbols.h (attribute_hidden): Enable hidden
31398 visibility in libc.a compiled with PIE.
31399
31400 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31401
31402 [BZ #18822]
31403 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
31404 Add attribute_hidden.
31405
31406 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31407
31408 [BZ #21864]
31409 * Makerules (all-nonlib): Add $(others-extras).
31410 * catgets/Makefile (others-extras): New.
31411 * elf/Makefile (others-extras): Likewise.
31412 * nss/Makefile (others-extras): Likewise.
31413
31414 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31415
31416 [BZ #18822]
31417 * csu/libc-start.c (__libc_multiple_libcs): Removed.
31418 * elf/dl-open.c: Include <libc-internal.h>.
31419 (__libc_multiple_libcs): Removed.
31420 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
31421 <hp-timing.h>.
31422 * include/libc-internal.h (__libc_multiple_libcs): New.
31423 * misc/sbrk.c: Include <libc-internal.h>.
31424 (__libc_multiple_libcs): Removed.
31425
31426 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31427
31428 [BZ #18822]
31429 * grp/initgroups.c (__nss_group_database): Removed.
31430 (__nss_initgroups_database): Likewise.
31431 * nscd/gai.c (__nss_hosts_database): Likewise.
31432 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
31433 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
31434 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
31435 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
31436 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
31437 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
31438 attribute_hidden.
31439 * nss/nsswitch.c (__nss_database_custom): Define only if
31440 USE_NSCD is defined.
31441 (__nss_configure_lookup): Use __nss_database_custom only if
31442 USE_NSCD is defined.
31443 * nss/nsswitch.h (__nss_database_custom): Declare only if
31444 USE_NSCD is defined. Add attribute_hidden.
31445 (__nss_setent): Add attribute_hidden.
31446 (__nss_endent): Likewise.
31447 (__nss_getent_r): Likewise.
31448 (__nss_getent): Likewise.
31449 (DEFINE_DATABASE): Declare __nss_##arg##_database.
31450
31451 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31452
31453 [BZ #18822]
31454 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
31455 libc_hidden_proto and libc_hidden_def.
31456
31457 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31458
31459 [BZ #18822]
31460 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
31461 Add libc_hidden_proto.
31462 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
31463 Add libc_hidden_def.
31464
31465 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31466
31467 [BZ #21974]
31468 * gmon/Makefile (routines): Remove bb_init_func and
31469 bb_exit_func.
31470 (elide-routines.os): Removed.
31471 * gmon/bb_exit_func.c: Likewise.
31472 * gmon/bb_init_func.c: Likewise.
31473 * include/sys/gmon.h (__bb): Likewise.
31474 (__bb_init_func): Likewise.
31475 (__bb_exit_func): Likewise.
31476 * sysdeps/alpha/bb_init_func.S: Likewise.
31477
31478 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31479
31480 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
31481 * include/setjmp.h (____longjmp_chk): Here. Add
31482 attribute_hidden.
31483
31484 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
31485
31486 [BZ #18822]
31487 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
31488 attribute_hidden.
31489 (__strspn_sse2): Likewise.
31490
31491 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31492
31493 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
31494 (close_not_cancel_no_status): Likewise.
31495 (__close_nocancel): New macro.
31496 (__close_nocancel_nostatus): Likewise.
31497 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
31498 macro.
31499 (close_not_cancel): Likewise.
31500 (close_not_cancel_no_status): Likewise.
31501 (__close_nocancel): New prototype.
31502 (__close_nocancel_nostatus): New function.
31503 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
31504 * catgets/open_catalog.c (__open_catalog): Replace
31505 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
31506 * gmon/gmon.c (write_gmon): Likewise.
31507 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
31508 * intl/loadmsgcat.c (close): Likewise.
31509 * io/ftw.c (open_dir_stream): Likewise.
31510 (ftw_startup): Likewise.
31511 * libio/fileops.c (_IO_file_open): Likewise.
31512 (_IO_file_close_mmap): Likewise.
31513 (_IO_file_close): Likewise.
31514 * libio/iopopen.c (_IO_dup2): Likewise.
31515 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31516 * locale/loadlocale.c (_nl_load_locale): Likewise.
31517 * login/utmp_file.c (pututline_file): Likewise.
31518 (endutent_file): Likewise.
31519 * misc/daemon.c (daemon): Likewise.
31520 * nscd/nscd_getai.c (__nscd_getai): Likewise.
31521 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
31522 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
31523 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
31524 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
31525 * nscd/nscd_helper.c (open_socket): Likewise.
31526 (__nscd_open_socket): Likewise.
31527 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
31528 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
31529 (__nscd_innetgr): Likewise.
31530 * nss/nss_db/db-open.c (internal_setent): Likewise.
31531 * resolv/res-close.c (__res_iclose): Likewise.
31532 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
31533 * sysdeps/posix/closedir.c (__closedir): Likewise.
31534 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
31535 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31536 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
31537 (opendir_tail): Likewise.
31538 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31539 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
31540 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
31541 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
31542 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31543 (gethostid): Likewise.
31544 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31545 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31546 Likewise.
31547 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
31548 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
31549 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31550 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31551 Likewise.
31552 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
31553 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
31554 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31555 Likewise.
31556 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
31557 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31558 Likewise.
31559 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31560 Likewise.
31561 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
31562 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31563 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31564 __close_nocancel.
31565
31566 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
31567 (openat_not_cancel_3): Likewise.
31568 (openat64_not_cancel_3): Likewise).
31569 (openat_not_cancel_3): Likewise).
31570 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
31571 macro.
31572 (openat_not_cancel_3): Likewise.
31573 (openat64_not_cancel): Likewise.
31574 (openat64_not_cancel_3): Likewise.
31575 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
31576 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
31577 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
31578 __open{64}_nocancel.
31579 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31580 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31581 * sysdeps/posix/opendir.c (__opendirat): Likewise.
31582
31583 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31584
31585 [BZ #18822]
31586 * include/argz.h (__argz_create_sep): New function prototype.
31587 (__argz_append): Likewise.
31588 (__argz_add): Likewise.
31589 (__argz_add_sep): Likewise.
31590 (__argz_delete): Likewise.
31591 (__argz_insert): Likewise.
31592 (__argz_replace): Likewise.
31593 * string/argz.h (__argz_create_sep): Removed.
31594 (__argz_append): Likewise.
31595 (__argz_add): Likewise.
31596 (__argz_add_sep): Likewise.
31597 (__argz_delete): Likewise.
31598 (__argz_insert): Likewise.
31599 (__argz_replace): Likewise.
31600
31601 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31602
31603 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
31604 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
31605 (GNU_PROPERTY_STACK_SIZE): Likewie.
31606 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
31607 (GNU_PROPERTY_LOPROC): Likewise.
31608 (GNU_PROPERTY_HIPROC): Likewise.
31609 (GNU_PROPERTY_LOUSER): Likewise.
31610 (GNU_PROPERTY_HIUSER): Likewise.
31611 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
31612 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
31613 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
31614 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
31615 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
31616 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
31617 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
31618 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
31619 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
31620 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
31621 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
31622 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
31623 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
31624 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
31625 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
31626 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
31627 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
31628 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
31629 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
31630 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
31631 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
31632 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
31633 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
31634
31635 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31636
31637 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
31638 in C++ mode.
31639
31640 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31641
31642 [BZ #21930]
31643 * math/math.h (isinf): Check if in C or C++ mode before using
31644 __builtin_types_compatible_p, since this is a C mode feature.
31645
31646 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31647
31648 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
31649 (__write_nocancel): New macro.
31650 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
31651 Rewrite as a function prototype.
31652 (write_not_cancel): Remove macro.
31653 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
31654 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
31655 (write_gmon): Likewise.
31656 * libio/fileops.c (_IO_new_file_write): Likewise.
31657 * login/utmp_file.c (pututline_file): Likewise.
31658 (updwtmp_file): Likewise.
31659 * stdio-common/psiginfo.c (psiginfo): Likewise.
31660 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31661 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31662 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31663 Likewise.
31664 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31665 Likewise.
31666
31667 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
31668 (__read_nocancel): New macro.
31669 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31670 __read_nocancel.
31671 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
31672 macro.
31673 (__read_nocancel): New prototype.
31674 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
31675 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
31676 with __read_nocancel.
31677 * intl/loadmsgcat.c (read): Likewise.
31678 * libio/fileops.c (_IO_file_read): Likewise.
31679 * locale/loadlocale.c (_nl_load_locale): Likewise.
31680 * login/utmp_file.c (getutent_r_file): Likewise.
31681 (internal_getut_r): Likewise.
31682 (getutline_r_file): Likewise.
31683 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
31684 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
31685 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31686 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31687 Likewise.
31688 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
31689 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31690 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31691 Likewise.
31692 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31693 Likewise.
31694 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31695 Likewise.
31696 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31697 Likewise.
31698 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31699
31700 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31701
31702 [BZ #21966]
31703 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
31704 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
31705 usable.
31706
31707 2017-08-17 DJ Delorie <dj@redhat.com>
31708
31709 * bug17079.c: Update to new test harness.
31710 * test-digits-dots.c: Likewise.
31711 * test-netdb.c: Likewise.
31712 * tst-field.c: Likewise.
31713 * tst-nss-getpwent.c: Likewise.
31714 * tst-nss-static.c: Likewise.
31715 * tst-nss-test1.c: Likewise.
31716 * tst-nss-test2.c: Likewise.
31717 * tst-nss-test3.c: Likewise.
31718 * tst-nss-test4.c: Likewise.
31719 * tst-nss-test5.c: Likewise.
31720
31721 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31722
31723 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
31724 (open_not_cancel_2): Likewise.
31725 (open_nocancel): New macro.
31726 (open64_nocancel): Likewise.
31727 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
31728 (open_not_cancel_2): Likewise.
31729 (__open_nocancel): New prototype.
31730 (__open64_nocancel): Likewise.
31731 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31732 __open_nocancel.
31733 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
31734 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
31735 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
31736 with __open_nocancel.
31737 * csu/check_fds.c (check_one_fd): Likewise.
31738 * gmon/gmon.c (write_gmon): Likewise.
31739 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
31740 * intl/loadmsgcat.c (open): Likewise.
31741 * libio/fileops.c (_IO_file_open): Likewise.
31742 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31743 * locale/loadlocale.c (_nl_load_locale): Likewise.
31744 * login/utmp_file.c (setutent_file): Likewise.
31745 * misc/daemon.c (daemon): Likewise.
31746 * nss/nss_db/db-open.c (internal_setent): Likewise.
31747 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31748 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
31749 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
31750 (__opendir): Likewise.
31751 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31752 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
31753 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31754 (gethostid): Likewise.
31755 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31756 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31757 Likewise.
31758 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
31759 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
31760 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31761 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31762 Likewise.
31763 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31764 Likewise.
31765 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31766 Likewise.
31767 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
31768 Likewise.
31769 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31770 Likewise.
31771 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31772 Likewise.
31773 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
31774 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31775
31776 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
31777
31778 * benchtests/bench-skeleton.c (main): Add support for
31779 latency benchmarking.
31780 * benchtests/scripts/bench.py: Add support for latency benchmarking.
31781
31782 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
31783
31784 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
31785 the startup object.
31786
31787 2017-08-17 Florian Weimer <fweimer@redhat.com>
31788
31789 * include/sys/socket.h (__opensock): Remove internal_function.
31790 * socket/opensock.c (__opensock): Likewise.
31791 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
31792
31793 2017-08-16 Joseph Myers <joseph@codesourcery.com>
31794
31795 [BZ #21944]
31796 * signal/bits/types/__sigval_t.h: New file.
31797 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
31798 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
31799 and define sigval_t using __sigval_t.
31800 * include/bits/types/__sigval_t.h: New file.
31801 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
31802 instead of <bits/types/__sigval_t.h>.
31803 (struct sigevent): Use __sigval_t instead of sigval_t.
31804 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
31805 instead of <bits/types/__sigval_t.h>.
31806 (siginfo_t): Use __sigval_t instead of sigval_t.
31807 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
31808 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31809 (struct sigevent): Use __sigval_t instead of sigval_t.
31810 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
31811 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31812 (siginfo_t): Use __sigval_t instead of sigval_t.
31813 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
31814
31815 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31816
31817 * NEWS: Remove "[Add new features here]" for 2.27.
31818
31819 2017-08-16 Joseph Myers <joseph@codesourcery.com>
31820
31821 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
31822 libc.so.
31823
31824 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31825
31826 * NEWS: Mention x86-64 FMA optimization.
31827
31828 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31829
31830 [BZ #21912]
31831 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31832 Add e_expf-fma.
31833 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
31834 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
31835 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
31836
31837 2017-08-16 Andreas Schwab <schwab@suse.de>
31838
31839 [BZ #16750]
31840 CVE-2009-5064
31841 * elf/ldd.bash.in: Never run file directly.
31842
31843 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
31844
31845 [BZ #21955]
31846 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
31847 (L(SP_INF_0)): Likewise.
31848
31849 2017-08-15 Florian Weimer <fweimer@redhat.com>
31850
31851 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
31852 run-built-tests.
31853
31854 2017-08-15 Florian Weimer <fweimer@redhat.com>
31855
31856 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
31857 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
31858 BROKEN_THREAD_SIGNALS code.
31859 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
31860 request_list): Remove caller_pid member used for
31861 BROKEN_THREAD_SIGNALS.
31862 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
31863 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
31864 Remove BROKEN_THREAD_SIGNALS support.
31865 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
31866 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
31867
31868 2017-08-15 Florian Weimer <fweimer@redhat.com>
31869
31870 * gmon/Makefile (tests): Add tst-gmon.
31871 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
31872 Set.
31873 (tests-special): Add tst-gmon-prof.out.
31874 (tst-gmon.out): Depend on clean-tst-gmon-data.
31875 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
31876 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
31877 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
31878 startup object.
31879 * aclocal.m4 (GPROF): Set and substitute.
31880 * config.amke.in (GPROF): Set.
31881 * configure: Regenerate.
31882
31883 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
31884
31885 * elf/elf.h A (NT_PPC_TAR): New macro.
31886 (NT_PPC_PPR): Likewise.
31887 (NT_PPC_DSCR): Likewise.
31888 (NT_PPC_EBB): Likewise.
31889 (NT_PPC_PMU): Likewise.
31890 (NT_PPC_TM_CGPR): Likewise.
31891 (NT_PPC_TM_CFPR): Likewise.
31892 (NT_PPC_TM_CVMX): Likewise.
31893 (NT_PPC_TM_CVSX): Likewise.
31894 (NT_PPC_TM_SPR): Likewise.
31895 (NT_PPC_TM_CTAR): Likewise.
31896 (NT_PPC_TM_CPPR): Likewise.
31897 (NT_PPC_TM_CDSCR): Likewise.
31898
31899 2017-08-15 Florian Weimer <fweimer@redhat.com>
31900
31901 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
31902 regparm (2) instead of internal_function.
31903 (_MCOUNT_DECL): Adjust.
31904
31905 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
31906
31907 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
31908 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
31909
31910 2017-08-14 Joseph Myers <joseph@codesourcery.com>
31911
31912 * conform/data/sys/wait.h-data (si_value): Do not expect for
31913 XPG42.
31914
31915 2017-08-14 Florian Weimer <fweimer@redhat.com>
31916
31917 [BZ #21962]
31918 NSS: Create stubs for accidentally exported lookup functions.
31919 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
31920 Remove declaration.
31921 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
31922 (ether_hostton): Call __nss_ethers_lookup2 instead.
31923 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
31924 (ether_ntohost): Call __nss_ethers_lookup2 instead.
31925 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
31926 (setup): Call __nss_netgroup_lookup2 instead.
31927 * nss/Makefile (routines): Add compat-lookup.
31928 * nss/Versions (GLIBC_2.27): Add symbol version.
31929 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
31930 (DB_COMPAT_FCT): Remove.
31931 * nss/compat-lookup.c: New file.
31932 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
31933 from databases.def.
31934 * nss/service-lookup.c (NO_COMPAT): Remove definition.
31935 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
31936 (netname2user): Call __nss_publickey_lookup2 instead.
31937 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
31938 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
31939 instead.
31940
31941 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31942 Sergei Trofimovich <slyfox@inbox.ru>
31943
31944 [BZ #21908]
31945 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
31946 Rename to MMAP2_PAGE_UNIT.
31947 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
31948 __OFF_T_MATCHES_OFF64_T is not defined.
31949 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
31950 uint64_t.
31951 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
31952 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
31953
31954 2017-08-14 Florian Weimer <fweimer@redhat.com>
31955
31956 i386: Do not set internal_function.
31957 * config.h.in (USE_REGPARMS, internal_function): Remove.
31958 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
31959 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
31960
31961 2017-08-14 Florian Weimer <fweimer@redhat.com>
31962
31963 * elf/dl-init.c (_dl_init): Remove internal_function.
31964 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
31965 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
31966
31967 2017-08-14 Florian Weimer <fweimer@redhat.com>
31968
31969 * elf/rtld.c (_dl_start): Remove internal_function.
31970 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
31971 _dl_start.
31972
31973 2017-08-14 Florian Weimer <fweimer@redhat.com>
31974
31975 * elf/dl-fini.c (_dl_fini): Remove internal_function
31976 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
31977
31978 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
31979
31980 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
31981 (bit_cpu_SHSTK): Likewise.
31982 (index_cpu_IBT): Likewise.
31983 (index_cpu_SHSTK): Likewise.
31984 (reg_IBT): Likewise.
31985 (reg_SHSTK): Likewise.
31986 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
31987 Handle index_cpu_IBT and index_cpu_SHSTK.
31988
31989 2017-08-14 Mike FABIAN <mfabian@redhat.com>
31990
31991 [BZ #19982]
31992 * po/fr.po: Fix spelling mistake.
31993
31994 2017-08-13 Florian Weimer <fweimer@redhat.com>
31995
31996 * elf/dl-addr.c (_dl_addr): Remove internal_function.
31997 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
31998 (_dl_catch_error, _dl_receive_error): Likewise.
31999 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
32000 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
32001 (_dl_deallocate_tls): Likewise.
32002 * include/dlfcn.h (_dl_addr): Likewise.
32003 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
32004 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
32005 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
32006 Likewise.
32007
32008 2017-08-13 Florian Weimer <fweimer@redhat.com>
32009
32010 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
32011 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
32012 internal_function.
32013 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
32014
32015 2017-08-13 Florian Weimer <fweimer@redhat.com>
32016
32017 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
32018 internal_function.
32019 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
32020 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
32021 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
32022 internal_function from _dl_make_stack_executable_hook member.
32023 (_dl_make_stack_executable): Remove internal_function.
32024 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
32025 Likewise.
32026 * sysdeps/unix/sysv/linux/dl-execstack.c
32027 (_dl_make_stack_executable): Likewise.
32028
32029 2017-08-13 Florian Weimer <fweimer@redhat.com>
32030
32031 * sysdeps/unix/sysv/linux/netlinkaccess.h
32032 (__netlink_assert_response): Remove internal_function.
32033 * sysdeps/unix/sysv/linux/netlink_assert_response.c
32034 (__netlink_assert_response): Likewise.
32035
32036 2017-08-13 Florian Weimer <fweimer@redhat.com>
32037
32038 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
32039 internal_function.
32040 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
32041
32042 2017-08-13 Florian Weimer <fweimer@redhat.com>
32043
32044 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
32045 internal_function.
32046 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
32047 * inet/netgroup.h (__internal_setnetgrent)
32048 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
32049 * inet/getnetgrent_r.c (__internal_setnetgrent)
32050 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
32051 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
32052 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
32053 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
32054 * nss/nsswitch.h (db_lookup_function): Likewise.
32055
32056 2017-08-13 Florian Weimer <fweimer@redhat.com>
32057
32058 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
32059 Remove internal_function.
32060 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
32061 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
32062 message argument on the stack.
32063 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
32064 Likeweise.
32065
32066 2017-08-12 Mike FABIAN <mfabian@redhat.com>
32067
32068 Adapt test case data to the changes in the thousands
32069 separators.
32070
32071 [BZ #20756]
32072 * localedata/tst-langinfo.sh: Adapt test case data.
32073 * stdlib/tst-strfmon_l.c: Likewise.
32074 * stdlib/tst-strtod4.c: Likewise.
32075 * stdlib/tst-strtod5i.c: Likewise.
32076
32077 2017-08-11 Florian Weimer <fweimer@redhat.com>
32078
32079 [BZ #21242]
32080 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
32081 Suppress pedantic warning resulting from statement expression.
32082 (__ASSERT_FUNCTION): Add missing __extension__.
32083
32084 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
32085
32086 * benchtests/bench-memmove-large.c: Print output in JSON
32087 format.
32088 * benchtests/bench-memmove.c: Likewise.
32089
32090 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
32091 * benchtests/bench-memchr.c (do_one_test): Likewise.
32092 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
32093 * benchtests/bench-memcpy.c (do_one_test): Likewise.
32094 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
32095 * benchtests/bench-memmove.c (do_one_test): Likewise.
32096 * benchtests/bench-memset-large.c (do_one_test): Likewise.
32097 * benchtests/bench-memset.c (do_one_test): Likewise.
32098 * benchtests/bench-string.h (test_init): Remove memsets.
32099
32100 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
32101
32102 * manual/lang.texi
32103 (Computing the Width of an Integer Data Type): Rename section to
32104 "Width of an Integer Type". Remove inaccurate statement regarding
32105 lack of C language facilities for determining width of integer
32106 types, and reorder content to improve flow and context of
32107 discussion.
32108
32109 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
32110
32111 * lang.texi (va_copy): Change standard from ISO to C99.
32112 (__va_copy): Add standard and header annotation.
32113 Update description for clarity of origins and current use.
32114
32115 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32116
32117 [BZ #21941]
32118 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
32119 xssqrtqp requires operands to be in Vector Registers
32120 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
32121 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
32122 (__ieee754_sqrtf128): Likewise.
32123
32124 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
32125
32126 * sysdeps/aarch64/memcmp.S (memcmp):
32127 Rewrite of optimized memcmp.
32128
32129 2017-08-10 Florian Weimer <fweimer@redhat.com>
32130
32131 Introduce ld.so exceptions.
32132 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
32133 (_dl_exception_create, _dl_exception_create_format)
32134 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
32135 (_dl_catch_exception): Declare.
32136 (_dl_catch_error): Update comment.
32137 * elf/dl-error-skeleton.c (struct catch): Replace objname,
32138 errstring, malloced members with exception member.
32139 (_dl_out_of_memory): Remove.
32140 (fatal_error): New function, extracted from _dl_signal_error.
32141 (_dl_signal_exception, _dl_signal_cexception): New functions.
32142 (_dl_signal_error): Call _dl_exception_create to allocate an
32143 exception object.
32144 (_dl_catch_exception): New function, based on _dl_catch_error.
32145 (_dl_catch_error): Implement using _dl_catch_exception.
32146 * elf/dl-exception.c: New file.
32147 * elf/Makefile (dl-routines): Add dl-exception.
32148 (elide-routines.os): Likewise.
32149 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
32150 _dl_exception_create_format, _dl_exception_free.
32151 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
32152 _dl_signal_exception.
32153 * elf/dl-lookup.c (make_string): Remove.
32154 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
32155 _dl_signal_cexception, _dl_exception_free.
32156 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
32157 _dl_signal_exception.
32158 * elf/dl-sym.c (do_sym): Likewise.
32159 * elf/dl-version.c (make_string): Remove.
32160 (match_symbol): Use _dl_exception_create_format,
32161 _dl_signal_cexception, _dl_exception_free.
32162 (_dl_check_map_versions): Likewise.
32163 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
32164 _dl_catch_exception.
32165 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
32166 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
32167 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
32168 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
32169 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
32170 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
32171 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
32172 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
32173 Likewise.
32174 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
32175 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
32176 (ld.so): Likewise.
32177 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
32178 (ld.so): Likewise.
32179 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
32180 Likewise.
32181 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
32182 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
32183 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
32184 Likewise.
32185 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
32186 Likewise.
32187 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
32188
32189 2017-08-10 Florian Weimer <fweimer@redhat.com>
32190
32191 * inet/net-internal.h (__inet6_scopeid_pton): Remove
32192 attribute_hidden, internal_function.
32193 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
32194 internal_function.
32195
32196 2017-08-10 Florian Weimer <fweimer@redhat.com>
32197
32198 * malloc/malloc.c (get_max_fast): Reimplement as an inline
32199 function which calls __builtin_unreachable.
32200
32201 2017-08-10 Mike FABIAN <mfabian@redhat.com>
32202
32203 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
32204 Indian monetary formatting
32205 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
32206 test cases.
32207
32208 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
32209
32210 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
32211 Fix typo in comment.
32212
32213 [BZ #21928]
32214 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
32215 PTRACE_SEIZE_DEVEL): Remove.
32216 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
32217 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
32218 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
32219 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
32220 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
32221
32222 2017-08-09 Joseph Myers <joseph@codesourcery.com>
32223
32224 * posix/bits/types.h (__qaddr_t): Remove.
32225
32226 [BZ #21457]
32227 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
32228 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32229 __glibc_reserved1.
32230 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
32231 (ucontext_t): Use __ctx with uc_flags.
32232 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
32233 (__ctxt): Likewise.
32234 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32235 __glibc_reserved1.
32236 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
32237 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32238 __glibc_reserved1.
32239 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
32240 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32241 __glibc_reserved1.
32242 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
32243 macro.
32244 (ucontext_t): Use __ctx with uc_flags.
32245 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
32246 (ucontext_t): Use __ctx with uc_flags.
32247 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
32248 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
32249 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
32250 (ucontext_t): Use __ctx with uc_flags.
32251 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
32252 undefine further down.
32253 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32254 __glibc_reserved1.
32255 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
32256 undefine further down.
32257 (ucontext_t): Use __ctx with uc_flags.
32258 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
32259 undefine further down.
32260 (ucontext_t): Use __ctx with uc_flags.
32261 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
32262 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
32263 Rename uc_pad to __glibc_reserved1.
32264 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
32265 undefine further down.
32266 (ucontext_t): Use __ctx with uc_flags.
32267 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
32268 further down.
32269 (ucontext_t): Use __ctx with uc_flags.
32270 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
32271 __ctx with uc_flags.
32272 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
32273 (ucontext_t): Use __ctx with uc_flags.
32274 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
32275 __ctx with uc_flags.
32276
32277 2017-08-09 Florian Weimer <fweimer@redhat.com>
32278
32279 [BZ #21932]
32280 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
32281 before early return.
32282
32283 2017-08-09 Andreas Schwab <schwab@suse.de>
32284
32285 [BZ #21041]
32286 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
32287 renamed alias.
32288
32289 [BZ #21041]
32290 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
32291 tst-compat-forwarder.
32292 (modules-names): Add tst-compat-forwarder-mod.
32293 ($(objpfx)tst-compat-forwarder): Depend on
32294 $(objpfx)tst-compat-forwarder-mod.so.
32295 * nptl/tst-compat-forwarder.c: New file.
32296 * nptl/tst-compat-forwarder-mod.c: New file.
32297
32298 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
32299
32300 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
32301 comments.
32302
32303 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
32304 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
32305 memcpy_falkor.
32306 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
32307 Bump.
32308 (__libc_ifunc_impl_list): Add __memcpy_falkor.
32309 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
32310 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
32311 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
32312 Add falkor.
32313 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
32314 New macro.
32315
32316 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32317
32318 [BZ #759]
32319 * manual/setjmp.texi (getcontex): Document uc_stack value
32320 compatibility differences.
32321
32322 2017-08-08 Joseph Myers <joseph@codesourcery.com>
32323
32324 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
32325 (old_malloc_hook): Likewise.
32326 (old_memalign_hook): Likewise.
32327 (old_realloc_hook): Likewise.
32328 (struct hdr): Likewise.
32329 (flood): Likewise.
32330 (freehook): Likewise.
32331 (mallochook): Likewise.
32332 (memalignhook): Likewise.
32333 (reallochook): Likewise.
32334 (mprobe): Likewise.
32335 * malloc/mtrace.c (mallwatch): Likewise.
32336 (tr_old_free_hook): Likewise.
32337 (tr_old_malloc_hook): Likewise.
32338 (tr_old_realloc_hook): Likewise.
32339 (tr_old_memalign_hook): Likewise.
32340 (tr_where): Likewise.
32341 (lock_and_info): Likewise.
32342 (tr_freehook): Likewise.
32343 (tr_mallochook): Likewise.
32344 (tr_reallochook): Likewise.
32345 (tr_memalignhook): Likewise.
32346 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
32347 * misc/mmap.c (__mmap): Likewise.
32348 * misc/mmap64.c (__mmap64): Likewise.
32349 * misc/mprotect.c (__mprotect): Likewise.
32350 * misc/msync.c (msync): Likewise.
32351 * misc/munmap.c (__munmap): Likewise.
32352 * posix/posix_madvise.c (posix_madvise): Likewise.
32353 * socket/send.c (__send): Likewise.
32354 * socket/sendto.c (__sendto): Likewise.
32355 * socket/setsockopt.c (__setsockopt): Likewise.
32356 * string/memcmp.c (__ptr_t): Remove macro.
32357 (MEMCMP): Use void * instead of ptr_t.
32358 * string/memrchr.c (__ptr_t): Remove macro.
32359 (__memrchr): Use void * instead of ptr_t.
32360 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
32361 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
32362 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
32363 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
32364 * sysdeps/mach/msync.c (msync): Likewise.
32365 * sysdeps/mach/munmap.c (__munmap): Likewise.
32366 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
32367 Likewise.
32368 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
32369 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
32370 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
32371 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
32372 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
32373 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
32374 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
32375 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
32376 Likewise.
32377 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
32378 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
32379 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
32380 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
32381 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
32382 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
32383 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
32384 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
32385 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
32386 Likewise.
32387 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
32388 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
32389 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
32390 (MEMCMP): Use void * instead of ptr_t.
32391 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
32392 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
32393
32394 2017-08-08 Florian Weimer <fweimer@redhat.com>
32395
32396 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
32397 return statement.
32398
32399 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
32400
32401 [BZ #21913]
32402 * csu/libc-tls.c: Include <startup.h> first.
32403 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
32404 * elf/dl-tunables.c: Include <startup.h> first.
32405 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
32406 * sysdeps/generic/startup.h: New file.
32407 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
32408 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
32409 (I386_USE_SYSENTER): New. Defined to 0.
32410
32411 2017-08-08 Andreas Schwab <schwab@suse.de>
32412
32413 [BZ #21041]
32414 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
32415 * nptl/pt-system.c (system): Likewise.
32416
32417 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32418
32419 [BZ #21780]
32420 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
32421 EOPNOTSUPP.
32422 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
32423 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
32424 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
32425 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
32426 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
32427 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
32428 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
32429
32430 2017-08-07 Joseph Myers <joseph@codesourcery.com>
32431
32432 [BZ #21899]
32433 * bits/sigaction.h (struct sigaction): Define sa_handler and
32434 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
32435 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32436 [__USE_XOPEN_EXTENDED].
32437 (SA_RESTART): Likewise.
32438 (SA_NODEFER): Likewise.
32439 (SA_RESETHAND): Likewise.
32440 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
32441 (struct sigaction): Define sa_handler and sa_sigaction using union
32442 also for [__USE_XOPEN_EXTENDED].
32443 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32444 [__USE_XOPEN_EXTENDED].
32445 (SA_RESTART): Likewise.
32446 (SA_NODEFER): Likewise.
32447 (SA_RESETHAND): Likewise.
32448 * sysdeps/unix/sysv/linux/bits/sigaction.h
32449 (struct sigaction): Define sa_handler and sa_sigaction using union
32450 also for [__USE_XOPEN_EXTENDED].
32451 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32452 [__USE_XOPEN_EXTENDED].
32453 (SA_RESTART): Likewise.
32454 (SA_NODEFER): Likewise.
32455 (SA_RESETHAND): Likewise.
32456 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
32457 (struct sigaction): Define sa_handler and sa_sigaction using union
32458 also for [__USE_XOPEN_EXTENDED].
32459 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32460 [__USE_XOPEN_EXTENDED].
32461 (SA_RESTART): Likewise.
32462 (SA_NODEFER): Likewise.
32463 (SA_RESETHAND): Likewise.
32464 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
32465 (struct sigaction): Define sa_handler and sa_sigaction using union
32466 also for [__USE_XOPEN_EXTENDED].
32467 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32468 [__USE_XOPEN_EXTENDED].
32469 (SA_RESTART): Likewise.
32470 (SA_NODEFER): Likewise.
32471 (SA_RESETHAND): Likewise.
32472 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
32473 (struct sigaction): Define sa_handler and sa_sigaction using union
32474 also for [__USE_XOPEN_EXTENDED].
32475 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32476 [__USE_XOPEN_EXTENDED].
32477 (SA_RESTART): Likewise.
32478 (SA_NODEFER): Likewise.
32479 (SA_RESETHAND): Likewise.
32480 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
32481 (struct sigaction): Define sa_handler and sa_sigaction using union
32482 also for [__USE_XOPEN_EXTENDED].
32483 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32484 [__USE_XOPEN_EXTENDED].
32485 (SA_RESTART): Likewise.
32486 (SA_NODEFER): Likewise.
32487 (SA_RESETHAND): Likewise.
32488 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
32489 (struct sigaction): Define sa_handler and sa_sigaction using union
32490 also for [__USE_XOPEN_EXTENDED].
32491 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32492 [__USE_XOPEN_EXTENDED].
32493 (SA_RESTART): Likewise.
32494 (SA_NODEFER): Likewise. Define directly rather than as alias.
32495 (SA_RESETHAND): Likewise.
32496 (SA_INTERRUPT): Define only for [__USE_MISC].
32497 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
32498 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
32499 [__USE_MISC].
32500 (SA_STACK): Define only for [__USE_MISC].
32501 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
32502 (struct sigaction): Define sa_handler and sa_sigaction using union
32503 also for [__USE_XOPEN_EXTENDED].
32504 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32505 [__USE_XOPEN_EXTENDED].
32506 (SA_RESTART): Likewise.
32507 (SA_NODEFER): Likewise.
32508 (SA_RESETHAND): Likewise.
32509 (SA_NOPTRACE): Define only for [__USE_MISC].
32510
32511 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
32512 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
32513 (struct catalog_info): Likewise.
32514 * inet/htontest.c (lo): Likewise.
32515 (foo): Likewise.
32516 * inet/inet_lnaof.c (inet_lnaof): Likewise.
32517 * inet/inet_net.c (inet_network): Likewise.
32518 * inet/inet_netof.c (inet_netof): Likewise.
32519 * inet/rcmd.c (__ivaliduser): Likewise.
32520 (iruserok): Likewise.
32521 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
32522 * locale/programs/locale-spec.c (locale_special): Likewise.
32523 * nis/nis_findserv.c (struct findserv_req): Likewise.
32524 (__nis_findfastest_with_timeout): Likewise.
32525 * nss/test-netdb.c (test_network): Likewise.
32526 * resolv/inet_neta.c (inet_neta): Likewise.
32527 * resolv/ns_date.c (ns_datetosecs): Likewise.
32528 (SECS_PER_DAY): Likewise.
32529 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
32530 Likewise.
32531 * resolv/res_comp.c (__putlong): Likewise.
32532 (__putshort): Likewise.
32533 (_getlong): Likewise.
32534 (_getshort): Likewise.
32535 * resolv/res_debug.c (p_time): Likewise.
32536 (precsize_ntoa): Likewise.
32537 (precsize_aton): Likewise.
32538 (latlon2ul): Likewise.
32539 (loc_aton): Likewise.
32540 (loc_ntoa): Likewise.
32541 * resolv/res_hconf.c (struct netaddr): Likewise.
32542 (_res_hconf_reorder_addrs): Likewise.
32543 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
32544 (clnttcp_control): Likewise.
32545 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
32546 (clntudp_control): Likewise.
32547 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
32548 (clntunix_control): Likewise.
32549 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
32550 * sunrpc/rpc/auth.h (union des_block): Likewise.
32551 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
32552 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
32553 (xdrrec_create): Likewise.
32554 (xdrrec_endofrecord): Likewise.
32555 (flush_out): Likewise.
32556 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
32557 (xdrstdio_putlong): Likewise.
32558 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
32559 Likewise.
32560
32561 * misc/sys/cdefs.h (__long_double_t): Remove.
32562 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
32563 instead of __long_double_t,
32564 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
32565
32566 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
32567
32568 * benchtests/scripts/compare_strings.py: Avoid display error when
32569 running on a text terminal.
32570
32571 * benchtests/scripts/compare_strings.py (main): Add an
32572 optional -base option.
32573 (process_results): New argument base_func.
32574
32575 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
32576 hardcoding memcpy.
32577 * benchtests/bench-memcpy-large.c (test_name): Likewise.
32578 * benchtests/bench-memcpy-random.c (test_name): Likewise.
32579
32580 2017-08-07 Andreas Schwab <schwab@suse.de>
32581
32582 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
32583 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
32584 * intl/Makefile ($(objpfx)tst-gettext.out)
32585 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
32586 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
32587 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
32588 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
32589 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
32590 * posix/Makefile ($(objpfx)globtest.out)
32591 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
32592 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
32593 ($(objpfx)tst-printf.out): Likewise.
32594 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
32595 ($(objpfx)tst-setcontext3.out): Likewise.
32596
32597 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
32598
32599 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32600 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
32601 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
32602 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
32603 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
32604 and mptan-fma.
32605 (CFLAGS-doasin-fma.c): New.
32606 (CFLAGS-dosincos-fma.c): Likewise.
32607 (CFLAGS-e_asin-fma.c): Likewise.
32608 (CFLAGS-e_atan2-fma.c): Likewise.
32609 (CFLAGS-e_exp-fma.c): Likewise.
32610 (CFLAGS-e_log-fma.c): Likewise.
32611 (CFLAGS-e_pow-fma.c): Likewise.
32612 (CFLAGS-halfulp-fma.c): Likewise.
32613 (CFLAGS-mpa-fma.c): Likewise.
32614 (CFLAGS-mpatan-fma.c): Likewise.
32615 (CFLAGS-mpatan2-fma.c): Likewise.
32616 (CFLAGS-mpexp-fma.c): Likewise.
32617 (CFLAGS-mplog-fma.c): Likewise.
32618 (CFLAGS-mpsqrt-fma.c): Likewise.
32619 (CFLAGS-mptan-fma.c): Likewise.
32620 (CFLAGS-s_atan-fma.c): Likewise.
32621 (CFLAGS-sincos32-fma.c): Likewise.
32622 (CFLAGS-slowexp-fma.c): Likewise.
32623 (CFLAGS-slowpow-fma.c): Likewise.
32624 (CFLAGS-s_sin-fma.c): Likewise.
32625 (CFLAGS-s_tan-fma.c): Likewise.
32626 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
32627 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
32628 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
32629 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
32630 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
32631 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
32632 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
32633 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
32634 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
32635 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
32636 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
32637 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
32638 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
32639 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
32640 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
32641 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
32642 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
32643 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
32644 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
32645 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
32646 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
32647 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
32648 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
32649 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
32650 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
32651 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
32652 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
32653 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
32654 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
32655 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
32656 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
32657
32658 2017-08-04 Joseph Myers <joseph@codesourcery.com>
32659
32660 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
32661 (min_of_type_f): New macro.
32662 (min_of_type_): Likewise.
32663 (min_of_type_l): Likewise.
32664 (min_of_type_f128): Likewise.
32665 (min_of_type): Define using __MATH_TG and taking an expression
32666 argument.
32667 (math_check_force_underflow): Pass expression instead of type to
32668 min_of_type.
32669 (math_check_force_underflow_nonneg): Likewise.
32670
32671 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32672
32673 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
32674 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
32675 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
32676
32677 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32678
32679 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
32680 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
32681 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
32682 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
32683 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
32684 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
32685 memcpy_chk-nonshared, mempcpy_chk-nonshared,
32686 memmove_chk-nonshared and memset_chk-nonshared
32687 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
32688 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
32689 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
32690 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
32691 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
32692 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
32693 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
32694 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
32695 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
32696 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
32697 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
32698 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
32699 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
32700 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
32701 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
32702 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
32703 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
32704 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
32705 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
32706 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
32707 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
32708 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
32709 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
32710 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
32711 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
32712 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
32713 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
32714 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
32715 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
32716 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
32717 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
32718 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
32719 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
32720 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
32721 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
32722 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
32723 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
32724 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
32725 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
32726 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
32727 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
32728 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
32729 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
32730 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
32731 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
32732 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
32733 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
32734 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
32735 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
32736 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
32737 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
32738 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
32739 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
32740 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
32741 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
32742 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
32743 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
32744 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
32745 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
32746 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
32747 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
32748 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
32749 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
32750 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
32751 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
32752 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
32753 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
32754 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
32755 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
32756 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
32757 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
32758 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
32759 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
32760 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
32761 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
32762 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
32763 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
32764 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
32765 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
32766 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
32767 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
32768 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
32769 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
32770 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
32771 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
32772 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
32773 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
32774 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
32775 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
32776 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
32777 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
32778 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
32779 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
32780 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
32781 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
32782 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
32783 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
32784 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
32785 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
32786 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
32787 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
32788 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
32789 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
32790 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
32791 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
32792 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
32793 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
32794 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
32795
32796 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32797
32798 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
32799 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
32800 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
32801 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
32802 svml_d_log2_core-sse2, svml_d_log4_core-sse,
32803 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
32804 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
32805 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
32806 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
32807 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
32808 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
32809 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
32810 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
32811 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
32812 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
32813 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
32814 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
32815 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
32816 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
32817 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
32818 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
32819 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
32820 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
32821 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
32822 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
32823 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
32824 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
32825 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
32826 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
32827 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
32828 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
32829 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
32830 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
32831 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
32832 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
32833 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
32834 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
32835 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
32836 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
32837 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
32838 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
32839 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
32840 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
32841 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
32842 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
32843 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
32844 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
32845 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
32846 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
32847 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
32848 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
32849 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
32850 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
32851 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
32852 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
32853 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
32854 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
32855 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
32856 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
32857 ...
32858 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
32859 Don't include <sysdep.h> nor <init-arch.h>.
32860 (_ZGVbN2v_cos): Removed.
32861 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
32862 ...
32863 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
32864 Don't include <sysdep.h> nor <init-arch.h>.
32865 (_ZGVdN4v_cos): Removed.
32866 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
32867 ...
32868 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
32869 Don't include <sysdep.h> nor <init-arch.h>.
32870 (_ZGVeN8v_cos): Removed.
32871 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
32872 ...
32873 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
32874 Don't include <sysdep.h> nor <init-arch.h>.
32875 (_ZGVbN2v_exp): Removed.
32876 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
32877 ...
32878 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
32879 Don't include <sysdep.h> nor <init-arch.h>.
32880 (_ZGVdN4v_exp): Removed.
32881 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
32882 ...
32883 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
32884 Don't include <sysdep.h> nor <init-arch.h>.
32885 (_ZGVeN8v_exp): Removed.
32886 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
32887 ...
32888 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
32889 Don't include <sysdep.h> nor <init-arch.h>.
32890 (_ZGVbN2v_log): Removed.
32891 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
32892 ...
32893 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
32894 Don't include <sysdep.h> nor <init-arch.h>.
32895 (_ZGVdN4v_log): Removed.
32896 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
32897 ...
32898 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
32899 Don't include <sysdep.h> nor <init-arch.h>.
32900 (_ZGVeN8v_log): Removed.
32901 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
32902 ...
32903 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
32904 Don't include <sysdep.h> nor <init-arch.h>.
32905 (_ZGVbN2vv_pow): Removed.
32906 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
32907 ...
32908 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
32909 Don't include <sysdep.h> nor <init-arch.h>.
32910 (_ZGVdN4vv_pow): Removed.
32911 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
32912 ...
32913 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
32914 Don't include <sysdep.h> nor <init-arch.h>.
32915 (_ZGVeN8vv_pow): Removed.
32916 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
32917 ...
32918 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
32919 Don't include <sysdep.h> nor <init-arch.h>.
32920 (_ZGVbN2v_sin): Removed.
32921 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
32922 ...
32923 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
32924 Don't include <sysdep.h> nor <init-arch.h>.
32925 (_ZGVbN4v_sin): Removed.
32926 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
32927 ...
32928 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
32929 Don't include <sysdep.h> nor <init-arch.h>.
32930 (_ZGVbN8v_sin): Removed.
32931 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
32932 ...
32933 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
32934 Don't include <sysdep.h> nor <init-arch.h>.
32935 (_ZGVbN2vvv_sincos): Removed.
32936 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
32937 ...
32938 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
32939 Don't include <sysdep.h> nor <init-arch.h>.
32940 (_ZGVdN4vvv_sincos): Removed.
32941 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
32942 ...
32943 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
32944 Don't include <sysdep.h> nor <init-arch.h>.
32945 (_ZGVeN8vvv_sincos): Removed.
32946 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
32947 ...
32948 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
32949 Don't include <sysdep.h> nor <init-arch.h>.
32950 (_ZGVeN16v_cosf): Removed.
32951 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
32952 ...
32953 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
32954 Don't include <sysdep.h> nor <init-arch.h>.
32955 (_ZGVbN4v_cosf): Removed.
32956 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
32957 ...
32958 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
32959 Don't include <sysdep.h> nor <init-arch.h>.
32960 (_ZGVdN8v_cosf): Removed.
32961 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
32962 ...
32963 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
32964 Don't include <sysdep.h> nor <init-arch.h>.
32965 (_ZGVeN16v_expf): Removed.
32966 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
32967 ...
32968 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
32969 Don't include <sysdep.h> nor <init-arch.h>.
32970 (_ZGVbN4v_expf): Removed.
32971 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
32972 ...
32973 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
32974 Don't include <sysdep.h> nor <init-arch.h>.
32975 (_ZGVdN8v_expf): Removed.
32976 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
32977 ...
32978 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
32979 Don't include <sysdep.h> nor <init-arch.h>.
32980 (_ZGVeN16v_logf): Removed.
32981 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
32982 ...
32983 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
32984 Don't include <sysdep.h> nor <init-arch.h>.
32985 (_ZGVbN4v_logf): Removed.
32986 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
32987 ...
32988 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
32989 Don't include <sysdep.h> nor <init-arch.h>.
32990 (_ZGVdN8v_logf): Removed.
32991 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
32992 ...
32993 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
32994 Don't include <sysdep.h> nor <init-arch.h>.
32995 (_ZGVeN16vv_powf): Removed.
32996 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
32997 ...
32998 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
32999 Don't include <sysdep.h> nor <init-arch.h>.
33000 (_ZGVbN4vv_powf): Removed.
33001 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
33002 ...
33003 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
33004 Don't include <sysdep.h> nor <init-arch.h>.
33005 (_ZGVdN8vv_powf): Removed.
33006 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
33007 ...
33008 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
33009 Don't include <sysdep.h> nor <init-arch.h>.
33010 (_ZGVeN16vvv_sincosf): Removed.
33011 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
33012 ...
33013 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
33014 Don't include <sysdep.h> nor <init-arch.h>.
33015 (_ZGVbN4vvv_sincosf): Removed.
33016 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
33017 ...
33018 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
33019 Don't include <sysdep.h> nor <init-arch.h>.
33020 (_ZGVdN8vvv_sincosf): Removed.
33021 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
33022 ...
33023 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
33024 Don't include <sysdep.h> nor <init-arch.h>.
33025 (_ZGVeN16v_sinf): Removed.
33026 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
33027 ...
33028 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
33029 Don't include <sysdep.h> nor <init-arch.h>.
33030 (_ZGVbN4v_sinf): Removed.
33031 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
33032 ...
33033 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
33034 Don't include <sysdep.h> nor <init-arch.h>.
33035 (_ZGVdN8v_sinf): Removed.
33036
33037 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33038
33039 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
33040 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
33041 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
33042 s_rint-sse4_1 and s_rintf-sse4_1.
33043 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
33044 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
33045 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
33046 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
33047 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
33048 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
33049 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
33050 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
33051 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
33052 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
33053 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
33054 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33055 (__ceil): Removed.
33056 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
33057 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
33058 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33059 (__ceilf): Removed.
33060 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
33061 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
33062 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33063 (__floor): Removed.
33064 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
33065 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
33066 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33067 (__floorf): Removed.
33068 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
33069 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
33070 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33071 (__nearbyint): Removed.
33072 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
33073 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
33074 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33075 (__nearbyintf): Removed.
33076 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
33077 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
33078 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33079 (__rint): Removed.
33080 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
33081 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
33082 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33083 (__rintf): Removed.
33084
33085 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33086
33087 * sysdeps/i386/start.S (_start): Check Check PIC instead of
33088 SHARED. Avoid dynamic relocation against main in static PIE.
33089
33090 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33091
33092 [BZ #21815]
33093 * elf/Makefile (CFLAGS-tst-prelink.c): New.
33094 (LDFLAGS-tst-prelink): Likewise.
33095
33096 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33097
33098 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
33099 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
33100 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
33101 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
33102 (INTERNAL_SYSCALL_NCS): Likewise.
33103 (LOADARGS_1): Likewise.
33104 (LOADARGS_5): Likewise.
33105 (RESTOREARGS_1): Likewise.
33106 (RESTOREARGS_5): Likewise.
33107
33108 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33109
33110 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
33111 (MEMPCPY_SYMBOL): Likewise.
33112 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
33113 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
33114 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
33115 in libc.a.
33116 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
33117 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
33118 Likewise.
33119 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
33120 (__hidden_ver1): Don't use in libc.a.
33121 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
33122 (__mempcpy): Don't create a weak alias in libc.a.
33123 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
33124 libc.a.
33125 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
33126 (__hidden_ver1): Don't use in libc.a.
33127
33128 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33129
33130 * config.make.in (have-insert): New.
33131 * configure.ac (libc_cv_insert): New. Set to yes if linker
33132 supports INSERT in linker script.
33133 (AC_SUBST(libc_cv_insert): New.
33134 * configure: Regenerated.
33135 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
33136 if $(have-insert) == yes.
33137
33138 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33139
33140 * elf/Makefile (tests): Add vismain only if
33141 $(have-protected-data) == yes.
33142 (tests-pie): Likewise.
33143
33144 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33145
33146 [BZ #21871]
33147 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
33148 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
33149
33150 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33151
33152 [BZ #21790]
33153 * sysdeps/i386/i586/memset.S
33154 (__memset_zero_constant_len_parameter): Removed.
33155 * sysdeps/i386/i686/memset.S
33156 (__memset_zero_constant_len_parameter): Likewise.
33157 * sysdeps/i386/i686/multiarch/memset_chk.S
33158 (__memset_zero_constant_len_parameter): Likewise.
33159 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
33160 Likewise.
33161
33162 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
33163
33164 * stdlib/getentropy.c (getentropy): Change return type to int.
33165
33166 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
33167
33168 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
33169
33170 2017-08-03 Joseph Myers <joseph@codesourcery.com>
33171
33172 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
33173 u_intN_t.
33174 * math/s_nexttowardf.c (__nexttowardf): Likewise.
33175 * sysdeps/generic/math_private.h (ieee_double_shape_type):
33176 Likewise.
33177 (ieee_float_shape_type): Likewise.
33178 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
33179 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
33180 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
33181 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
33182 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
33183 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
33184 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
33185 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
33186 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
33187 Likewise.
33188 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
33189 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
33190 (__ieee754_yn): Likewise.
33191 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
33192 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
33193 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
33194 Likewise.
33195 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
33196 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
33197 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
33198 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
33199 (__erfc): Likewise.
33200 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
33201 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
33202 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
33203 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
33204 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
33205 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
33206 Likewise.
33207 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
33208 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
33209 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
33210 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
33211 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
33212 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
33213 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
33214 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
33215 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
33216 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
33217 (__issignaling): Likewise.
33218 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
33219 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
33220 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
33221 Likewise.
33222 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
33223 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
33224 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
33225 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
33226 Likewise.
33227 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
33228 Likewise.
33229 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
33230 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
33231 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
33232 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
33233 (__erfcf): Likewise.
33234 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
33235 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
33236 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
33237 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
33238 Likewise.
33239 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
33240 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
33241 Likewise.
33242 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
33243 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
33244 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
33245 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
33246 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
33247 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
33248 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
33249 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
33250 Likewise.
33251 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
33252 Likewise.
33253 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
33254 Likewise.
33255 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
33256 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
33257 Likewise.
33258 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
33259 Likewise.
33260 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
33261 (__ieee754_ynl): Likewise.
33262 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
33263 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
33264 Likewise.
33265 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
33266 Likewise.
33267 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
33268 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
33269 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
33270 Likewise.
33271 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
33272 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
33273 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
33274 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
33275 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
33276 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
33277 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
33278 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
33279 Likewise.
33280 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
33281 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
33282 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
33283 Likewise.
33284 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
33285 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
33286 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
33287 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
33288 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
33289 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
33290 Likewise.
33291 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
33292 Likewise.
33293 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
33294 Likewise.
33295 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
33296 Likewise.
33297 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
33298 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
33299 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
33300 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
33301 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
33302 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
33303 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
33304 Likewise.
33305 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
33306 Likewise.
33307 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
33308 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
33309 Likewise.
33310 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
33311 (__ieee754_remainderl): Likewise.
33312 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
33313 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
33314 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
33315 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
33316 Likewise.
33317 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
33318 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
33319 Likewise.
33320 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
33321 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
33322 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
33323 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
33324 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
33325 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
33326 Likewise.
33327 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
33328 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
33329 (__ieee754_y0l): Likewise.
33330 (pzero): Likewise.
33331 (qzero): Likewise.
33332 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
33333 (__ieee754_y1l): Likewise.
33334 (pone): Likewise.
33335 (qone): Likewise.
33336 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
33337 (__ieee754_ynl): Likewise.
33338 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
33339 (__ieee754_lgammal_r): Likewise.
33340 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
33341 Likewise.
33342 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
33343 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
33344 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
33345 (__erfcl): Likewise.
33346 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
33347 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
33348 Likewise.
33349 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
33350 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
33351 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
33352 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
33353 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
33354 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
33355 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
33356 Likewise.
33357 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
33358 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
33359 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
33360 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
33361 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
33362 Likewise.
33363 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
33364 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
33365 Likewise.
33366 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
33367 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
33368 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
33369 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
33370 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
33371
33372 2017-08-03 Florian Weimer <fweimer@redhat.com>
33373
33374 [BZ #21885]
33375 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
33376 on memory allocation failure.
33377
33378 2017-08-03 Alan Modra <amodra@gmail.com>
33379
33380 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
33381 tst-tlsopt-powerpc.c with function name change and no test harness.
33382 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
33383 Call tls_get_addr_opt_test.
33384 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
33385 (modules-names): Add mod-tlsopt-powerpc.
33386 (mod-tlsopt-powerpc.so-no-z-defs): Define.
33387 (tst-tlsopt-powerpc): Depend on .so.
33388 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
33389 define. Expand use in TLS_GD and TLS_LD.
33390
33391 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
33392
33393 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
33394 function.
33395 * sysdeps/posix/shm_open.c: Include <pthread.h>.
33396
33397 2017-08-02 Joseph Myers <joseph@codesourcery.com>
33398
33399 [BZ #21686]
33400 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
33401 comparing size with that of double.
33402 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
33403 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
33404 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
33405 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
33406 (__TGMATH_BINARY_REAL_IMAG): Likewise.
33407 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
33408 unsigned __int128 types.
33409
33410 2017-08-02 Steve Ellcey <sellcey@cavium.com>
33411
33412 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
33413 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
33414 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
33415 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
33416 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
33417
33418 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
33419
33420 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
33421
33422 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
33423
33424 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
33425 of SHARED.
33426 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
33427 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
33428 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
33429 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
33430 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
33431 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
33432 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
33433
33434 2017-08-02 Joseph Myers <joseph@codesourcery.com>
33435
33436 [BZ #21685]
33437 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
33438 bit-field expressions passed to sizeof or typeof.
33439 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
33440 (__TGMATH_F128): Likewise.
33441 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
33442 (__TGMATH_CF128): Likewise.
33443 (__TGMATH_UNARY_REAL_ONLY): Likewise.
33444 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
33445 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
33446 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
33447 (__TGMATH_BINARY_REAL_ONLY): Likewise.
33448 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
33449 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
33450 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
33451 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
33452 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
33453 (__TGMATH_UNARY_REAL_IMAG): Likewise.
33454 (__TGMATH_UNARY_IMAG): Likewise.
33455 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
33456 (__TGMATH_BINARY_REAL_IMAG): Likewise.
33457 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
33458 type.
33459 (define_vars_for_type): Handle bit_field type specially.
33460 (Tests.__init__): Declare structure with bit-field element.
33461
33462 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
33463
33464 [BZ #21791]
33465 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
33466 (MEMCPY_CHK): Define only if SHARED is defined.
33467 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
33468 Likewise.
33469 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
33470 Likewise.
33471
33472 See ChangeLog.18 for earlier changes.