]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
Refactor hp-timing rtld usage
[thirdparty/glibc.git] / ChangeLog
1 2019-03-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2
3 * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
4 HP_TIMING_INLINE.
5 * nptl/descr.h: Likewise.
6 * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
7 RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
8 (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
9 Abstract hp-timing usage with RTLD_* macros.
10 * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
11 (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
12 * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
13 HP_TIMING_NONAVAIL): Likewise.
14 * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
15 Likewise.
16 * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
17 HP_SMALL_TIMING_AVAIL): Likewise.
18 * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
19 HP_SMALL_TIMING_AVAIL): Likewise.
20 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
21 HP_SMALL_TIMING_AVAIL): Likewise.
22 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
23 HP_SMALL_TIMING_AVAIL): Likewise.
24 * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
25 Likewise.
26 * sysdeps/generic/hp-timing-common.h: Update comment with
27 HP_TIMING_AVAIL removal.
28
29 * include/random-bits.h: New file.
30 * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
31 (__res_context_mkquery): Remove usage hp-timing usage and replace with
32 random_bits.
33 * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
34 * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
35 Likewise.
36
37 * include/libc-internal.h (__get_clockfreq): Remove prototype.
38 * rt/Makefile (clock-routines): Remove get_clockfreq.
39 * rt/get_clockfreq.c: Remove file.
40 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
41 * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
42 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
43 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
44 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
45
46 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
47 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
48 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
49 (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
50 _SC_CPUTIME, and _SC_THREAD_CPUTIME.
51
52 * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
53 pthread_clock_settime.
54 * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
55 * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
56 (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
57 * elf/rtld.c (_dl_start_final): Likewise.
58 * nptl/allocatestack.c (__find_thread_by_id): Remove function.
59 * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
60 Remove.
61 * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
62 (_dl_cpuclock_offset): Remove.
63 * nptl/descr.h (struct pthread): Rename cpuclock_offset to
64 cpuclock_offset_ununsed.
65 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
66 cpuclock_offset set.
67 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
68 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
69 * nptl/pthread_clock_gettime.c: Remove file.
70 * nptl/pthread_clock_settime.c: Likewise.
71 * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
72 [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
73 and CLOCK_PROCESS_CPUTIME_ID support.
74 * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
75 [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
76 * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
77 [HP_TIMING_AVAIL] (__clock_getres): Likewise.
78 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
79 Likewise.
80 (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
81
82 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
83
84 * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
85 * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
86 MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
87 New defines.
88 * sysdeps/s390/memmem-arch13.S: New file.
89 * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
90 if it is only used as fallback.
91 * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
92 * sysdeps/s390/multiarch/ifunc-impl-list.c
93 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
94
95 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
96
97 * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
98 * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
99 STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
100 New defines.
101 * sysdeps/s390/multiarch/ifunc-impl-list.c
102 (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
103 * sysdeps/s390/strstr-arch13.S: New file.
104 * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
105 if it is only used as fallback.
106 * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
107
108 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
109
110 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
111 HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
112 * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
113 * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
114 ifunc selector.
115 * sysdeps/s390/multiarch/ifunc-impl-list.c
116 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
117 * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
118 S390_IS_ARCH13_MIE3): New defines.
119
120 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
121
122 * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
123 HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
124 * sysdeps/s390/configure.ac: Add checks for arch13 support.
125 * sysdeps/s390/configure: Regenerated.
126
127 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
128
129 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
130 Add vxe2, vxp, dflt, sort flags.
131 * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
132 HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
133 capabilities.
134 (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
135 * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
136 (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
137 HWCAP_S390_DFLT): Define.
138
139 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
140
141 [BZ #24372]
142 * iconv/iconvconfig.c (write_output): Add parentheses to get rid
143 of compiler warning.
144 * locale/programs/ld-collate.c (collate_output): Likewise.
145
146 2019-03-21 DJ Delorie <dj@redhat.com>
147
148 [BZ #24372]
149 * iconv/iconvconfig.c (write_output): Replace floating point math
150 with integer math to avoid imprecise results.
151 * locale/programs/ld-collate.c (collate_output): Likewise.
152
153 2019-03-21 Stefan Liebler <stli@linux.ibm.com>
154
155 * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
156 Add HWCAP_S390_VX and HWCAP_S390_VXE.
157
158 2019-03-20 mansayk <6688000@gmail.com>
159
160 [BZ #24296]
161 * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
162 (abday): Likewise, but remove the trailing dots.
163
164 2019-03-19 Joseph Myers <joseph@codesourcery.com>
165
166 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
167 macro.
168 (HWCAP_PACA): Likewise.
169 (HWCAP_PACG): Likewise.
170 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
171 Increase to 32.
172 (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
173
174 2019-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
175
176 * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
177 should be handled.
178
179 2019-03-15 Joseph Myers <joseph@codesourcery.com>
180
181 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
182 version to 5.0.
183 (old_getpagesize): New syscall.
184
185 2019-03-15 Felix Yan <felixonmars@archlinux.org>
186
187 [BZ #24293]
188 * localedata/locales/zh_TW (era): Add, support Minguo calendar.
189 * localedata/locales/cmn_TW (era): Likewise.
190 * localedata/locales/hak_TW (era): Likewise.
191 * localedata/locales/lzh_TW (era): Likewise.
192 * localedata/locales/nan_TW (era): Likewise.
193
194 2019-03-14 Florian Weimer <fweimer@redhat.com>
195
196 Remove obsolete, never-implemented XSI STREAMS declarations.
197 * manual/terminal.texi (Allocation): Remove portability note and
198 adjust example.
199 * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
200 _SC_STREAMS.
201 * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
202 * sysdeps/unix/inet/Subdirs (streams): Remove.
203 * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
204 (conformtest-headers-UNIX98): Likewise.
205 (conformtest-headers-XOPEN2K): Likewise.
206 (conformtest-headers-POSIX2008): Likewise.
207 * posix/compat-streams.c: New file.
208 * posix/Makefile (routines): Add it.
209 * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
210 getpmsg, isastream, putmsg, putpmsg.
211 (GLIBC_2.30): New section.
212 * bits/stropts.h: Remove file.
213 * bits/xtitypes.h: Likewise.
214 * conform/data/stropts.h-data: Likewise.
215 * include/stropts.h: Likewise.
216 * include/sys/stropts.h: Likewise.
217 * include/xtitypes.h: Likewise.
218 * streams/Makefile: Likewise.
219 * streams/fattach.c: Likewise.
220 * streams/fdetach.c: Likewise.
221 * streams/getmsg.c: Likewise.
222 * streams/getpmsg.c: Likewise.
223 * streams/isastream.c: Likewise.
224 * streams/putmsg.c: Likewise.
225 * streams/putpmsg.c: Likewise.
226 * streams/stropts.h: Likewise.
227 * streams/sys/stropts.h: Likewise.
228 * sysdeps/ia64/bits/xtitypes.h: Likewise.
229 * sysdeps/s390/bits/xtitypes.h: Likewise.
230 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
231 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
232 * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
233 * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
234 * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
235 * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
236 * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
237 * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
238 * sysdeps/x86/bits/xtitypes.h: Likewise.
239
240 2019-03-14 Florian Weimer <fweimer@redhat.com>
241
242 * nss/tst-nss-files-alias-truncated.c (do_test): Load
243 libnss_files.
244 * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
245 but not with libnss_files.
246 (tst-nss-files-alias-truncated.out): Depend on libnss_files.
247
248 2019-03-14 Zack Weinberg <zackw@panix.com>
249
250 * scripts/check-obsolete-constructs.py (HeaderChecker.check):
251 Specify encoding="utf-8" when opening headers to check.
252
253 2019-03-13 Joseph Myers <joseph@codesourcery.com>
254
255 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
256 version to 5.0.
257 (Context.checkout_tar): Handle variable major version for Linux
258 kernel.
259
260 2019-03-13 Florian Weimer <fweimer@redhat.com>
261
262 [BZ #24047]
263 * sysdeps/mach/hurd/res_enable_icmp.c: New file.
264
265 2019-03-13 Zack Weinberg <zackw@panix.com>
266
267 * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
268 Move to stdlib.
269 * include/inttypes.h: Adjust to match.
270 * include/stdint.h: New wrapper.
271
272 2019-03-13 Zack Weinberg <zackw@panix.com>
273
274 * scripts/check-obsolete-constructs.py: New test script.
275 * scripts/check-installed-headers.sh: Remove tests for
276 obsolete typedefs, superseded by check-obsolete-constructs.py.
277 * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
278 as a special test. Update commentary.
279 * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
280 (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
281 Update commentary.
282 * posix/sys/types.h (__u_intN_t): Remove.
283 (u_int8_t): Typedef using __uint8_t.
284 (u_int16_t): Typedef using __uint16_t.
285 (u_int32_t): Typedef using __uint32_t.
286 (u_int64_t): Typedef using __uint64_t.
287
288 2019-03-13 Stefan Liebler <stli@linux.ibm.com>
289
290 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
291 call _dl_procinfo.
292 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
293 Ignore types other than AT_HWCAP.
294 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
295 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
296 Likewise.
297 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
298 in the case of falling back to generic output mechanism.
299 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
300 Likewise.
301
302 2019-03-12 Florian Weimer <fweimer@redhat.com>
303
304 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
305
306 2019-03-12 Florian Weimer <fweimer@redhat.com>
307
308 [BZ #24047]
309 resolv: Enable full ICMP errors for UDP DNS sockets
310 * resolv/res_enable_icmp.c: New file.
311 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
312 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
313 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
314 socket.
315
316 2019-03-11 Mao Han <han_mao@c-sky.com>
317
318 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
319 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
320
321 2019-03-11 Mao Han <han_mao@c-sky.com>
322
323 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
324 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
325 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
326
327 2019-03-11 Mao Han <han_mao@c-sky.com>
328
329 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
330 directly.
331 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
332 definition.
333
334 2019-03-11 Mao Han <han_mao@c-sky.com>
335
336 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
337 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
338 in mcontext_t
339
340 2019-03-08 Mike FABIAN <mfabian@redhat.com>
341
342 [BZ #24307]
343 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
344 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
345 Unicode 12.0.0.
346 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
347 * localedata/unicode-gen/PropList.txt: Likewise.
348 * localedata/unicode-gen/UnicodeData.txt: Likewise.
349 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
350 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
351 * localedata/charmaps/UTF-8: Regenerate.
352 * localedata/locales/i18n_ctype: Likewise.
353 * localedata/locales/tr_TR: Likewise.
354 * localedata/locales/translit_circle: Likewise.
355 * localedata/locales/translit_cjk_compat: Likewise.
356 * localedata/locales/translit_combining: Likewise.
357 * localedata/locales/translit_compat: Likewise.
358 * localedata/locales/translit_font: Likewise.
359 * localedata/locales/translit_fraction: Likewise.
360
361 2019-03-07 Joseph Myers <joseph@codesourcery.com>
362
363 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
364 than after operators.
365 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
366 (setitimer_locked): Likewise.
367 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
368 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
369 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
370 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
371 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
372 (PPC_CPU_SUPPORTED): Likewise.
373 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
374 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
375 (stat_overflow): Likewise.
376 (statfs_overflow): Likewise.
377 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
378 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
379 (eq_ttyname_r): Likewise.
380 (run_chroot_tests): Likewise.
381
382 2019-03-07 Florian Weimer <fweimer@redhat.com>
383
384 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
385 header check.
386
387 2019-03-07 Martin Liska <mliska@suse.cz>
388
389 * math/Makefile: Change location where math-vector-fortran.h is
390 installed.
391 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
392 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
393 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
394 * scripts/check-installed-headers.sh: Skip Fortran header files.
395 * scripts/check-wrapper-headers.py: Likewise.
396
397 2019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
398
399 * nptl/nptl-init.c (__have_futex_clock_realtime,
400 __have_futex_clock_realtime): Remove definition.
401 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
402 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
403 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
404 __ASSUME_FUTEX_CLOCK_REALTIME support.
405 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
406 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
407 * sysdeps/unix/sysv/linux/kernel-features.h
408 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
409 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
410 Adjust comment.
411
412 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
413
414 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
415 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
416 __GI___wcscpy and wcscpy.
417
418 2019-03-04 Florian Weimer <fweimer@redhat.com>
419
420 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
421 declaration.
422 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
423 defined.
424
425 2019-03-04 Stefan Liebler <stli@linux.ibm.com>
426
427 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
428 * sysdeps/s390/s390-32/sysdep.h: Likewise.
429
430 2019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
431
432 [BZ #24162]
433 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
434 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
435
436 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
437
438 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
439 tests.
440 (do_test): Likewise.
441 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
442 (do_test_call_varg): Likewise.
443 (do_test_call_rarg): Likewise.
444 * sysdeps/ieee754/ldbl-opt/Makefile
445 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
446 tst-nldbl-error.
447 ($(objpfx)tst-nldbl-warn.c): New rule.
448 ($(objpfx)tst-nldbl-error.c): Likewise.
449 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
450 New variables.
451
452 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
453
454 [BZ #23984]
455 * include/bits/error-ldbl.h: New file.
456 * include/error.h: Include stdarg.h. Declare internal functions
457 __error_internal and __error_at_line_internal.
458 * misc/Makefile (headers): Add bits/error-ldbl.h.
459 * misc/bits/error-ldbl.h: New file.
460 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
461 avoid the inclusion of bits/error.h.
462 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
463 and __nldbl_error_at_line.
464 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
465 (__nldbl_error, __ndlbl_error_at_line): New functions.
466 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
467 Redirect error and error_at_line.
468 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
469 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
470 Likewise.
471 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
472 Likewise.
473 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
474 Likewise.
475 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
476 Likewise.
477 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
478 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
479 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
480
481 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
482
483 [BZ #23984]
484 * include/bits/err-ldbl.h: New file.
485 * include/err.h: Add prototypes for the internal functions:
486 __vwarnx_internal and __vwarn_internal.
487 * misc/Makefile (headers): Add bits/err-ldbl.h.
488 * misc/bits/err-ldbl.h: New file.
489 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
490 defined, i.e.: when -mlong-double-64 is in use.
491 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
492 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
493 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
494 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
495 (VA_CALL): New macro.
496 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
497 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
498 functions.
499 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
500 declare prototypes for the new functions.
501 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
502 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
503 Likewise.
504 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
505 Likewise.
506 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
507 Likewise.
508 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
509 Likewise.
510 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
511 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
512 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
513
514 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
515
516 * sysdeps/ieee754/ldbl-opt/Makefile
517 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
518 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
519 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
520
521 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
522
523 [BZ #23983]
524 * argp/Makefile (headers): Add bits/argp-ldbl.h.
525 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
526 * argp/bits/argp-ldbl.h: New file.
527 * include/argp.h: Include stdarg.h. Add prototypes for internal
528 functions: __argp_error_internal and __argp_failure_internal.
529 * include/bits/argp-ldbl.h: New file.
530 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
531 __nldbl_argp_error and __nldbl_argp_failure.
532 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
533 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
534 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
535 Redirect argp_error and argp_failure calls.
536 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
537 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
538 Likewise.
539 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
540 Likewise.
541 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
542 Likewise.
543 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
544 Likewise.
545 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
546 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
547 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
548
549 2019-03-01 Florian Weimer <fweimer@redhat.com>
550
551 [BZ #20419]
552 * elf/tst-big-note-lib.S: Create a syntactically valid note.
553 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
554 code, to avoid creating an ABI tag note.
555 (modules-names-nobuild): Add tst-big-note-lib.
556
557 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
558
559 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
560 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
561
562 2019-03-01 Florian Weimer <fweimer@redhat.com>
563
564 [BZ #20271]
565 * sysdeps/unix/sysv/linux/netlink_assert_response.c
566 (__netlink_assert_response): Add additional missing newlines.
567
568 2019-02-28 Joseph Myers <joseph@codesourcery.com>
569
570 * sysdeps/powerpc/powerpc32/dl-machine.c
571 (__elf_machine_fixup_plt): Use space before '('.
572 (__process_machine_rela): Likewise.
573 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
574 Likewise.
575 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
576 Likewise.
577 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
578 Likewise.
579 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
580 (pattern): Likewise.
581 (delta): Likewise.
582 (check_result): Likewise.
583 (check_excepts): Likewise.
584 (check_op): Likewise.
585 (fail_xr): Likewise.
586 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
587 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
588 (SCNHSZ): Likewise.
589 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
590 Likewise.
591 (ARGS): Likewise.
592 (__makecontext): Likewise.
593 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
594 Likewise.
595
596 2019-02-28 Florian Weimer <fweimer@redhat.com>
597
598 [BZ #23937]
599 elf: Add test with a local IFUNC resolver.
600 * elf/ifuncmain9.c: New file.
601 * elf/ifuncmain9pic.c: Likewise.
602 * elf/ifuncmain9picstatic.c: Likewise.
603 * elf/ifuncmain9pie.c: Likewise.
604 * elf/ifuncmain9static.c: Likewise.
605 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
606 ifuncmain9static, ifuncmain9picstatic.
607 * elf/Makefile [multi-arch && build-shared] (tests-internal):
608 Add ifuncmain9, ifuncmain9pic.
609 * elf/Makefile [multi-arch && build-shared && have-fpie]
610 (ifunc-pie-tests): Add ifuncmain9pie.
611 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
612 (CFLAGS-ifuncmain9picstatic.c): Likewise.
613 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
614
615 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
616
617 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
618 * configure: Regenerated.
619 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
620
621 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
622
623 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
624 symbol as __wcspcy instead of wcscpy.
625
626 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
627
628 * include/stdio.h (__renameat2): New hidden prototype.
629 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
630 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
631 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
632 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
633
634 2019-02-27 Joseph Myers <joseph@codesourcery.com>
635
636 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
637 if statement.
638
639 * benchtests/bench-strcpy.c (do_test): Use space before '('.
640 * benchtests/bench-string.h (cmdline_process_function): Likewise.
641 * benchtests/bench-strlen.c (do_test): Likewise.
642 (test_main): Likewise.
643 * catgets/gencat.c (read_old): Likewise.
644 * elf/cache.c (load_aux_cache): Likewise.
645 * iconvdata/bug-iconv8.c (do_test): Likewise.
646 * math/test-tgmath-ret.c (do_test): Likewise.
647 * nis/nis_call.c (rec_dirsearch): Likewise.
648 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
649 * nptl/tst-audit-threads.c (do_test): Likewise.
650 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
651 * nss/nss_test1.c (init): Likewise.
652 * nss/test-netdb.c (test_hosts): Likewise.
653 * posix/execvpe.c (maybe_script_execute): Likewise.
654 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
655 * stdio-common/tst-printf.c (do_test): Likewise.
656 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
657 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
658 * stdlib/qsort.c (STACK_SIZE): Likewise.
659 * stdlib/test-canon.c (do_test): Likewise.
660 * stdlib/tst-swapcontext1.c (do_test): Likewise.
661 * string/memcmp.c (OPSIZ): Likewise.
662 * string/test-strcpy.c (do_test): Likewise.
663 (do_random_tests): Likewise.
664 * string/test-strlen.c (do_test): Likewise.
665 (test_main): Likewise.
666 * string/test-strrchr.c (do_test): Likewise.
667 (do_random_tests): Likewise.
668 * string/tester.c (test_memrchr): Likewise.
669 (test_memchr): Likewise.
670 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
671 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
672 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
673 (read_encoded_value_with_base): Likewise.
674 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
675 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
676 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
677 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
678 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
679 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
680 Likewise.
681 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
682 Likewise.
683 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
684 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
685 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
686 Likewise.
687 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
688 Likewise.
689 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
690 Likewise.
691 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
692 Likewise.
693 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
694 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
695 (FP_XSTATE_MAGIC2_SIZE): Likewise.
696 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
697 * time/test_time.c (main): Likewise.
698
699 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
700
701 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
702
703 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
704 wmemcpy.
705
706 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
707 wmemcpy.
708
709 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
710
711 * include/wchar.h (__wcscpy): New prototype.
712 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
713 (__wcscpy): Route internal symbol to generic implementation.
714 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
715 Add internal __wcscpy alias.
716 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
717 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
718 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
719 * wcsmbs/wcscpy.c (wcscpy): Add
720 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
721 use generic implementation.
722 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
723
724 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
725 wmemset.
726
727 * sysdeps/m68k/wcpcpy.c: Remove file.
728 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
729
730 2019-02-26 Joseph Myers <joseph@codesourcery.com>
731
732 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
733 than after operators.
734 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
735 * sysdeps/mach/hurd/getcwd.c
736 (__hurd_canonicalize_directory_name_internal): Likewise.
737 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
738 (pthread_mutex_consistent): Likewise.
739 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
740 Likewise.
741 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
742 (__pthread_mutex_transfer_np): Likewise.
743 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
744 (__pthread_mutex_unlock): Likewise.
745 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
746 (mtx_owned_p): Likewise.
747 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
748 (pthread_mutexattr_getrobust): Likewise.
749 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
750 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
751 Likewise.
752 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
753 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
754 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
755 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
756 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
757 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
758 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
759 Likewise.
760 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
761 Likewise.
762 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
763 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
764 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
765 (____longjmp_chk): Likewise.
766 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
767 Likewise.
768 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
769 (INTERNAL_SYSCALL): Likewise.
770 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
771 (INTERNAL_SYSCALL): Likewise.
772 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
773 (__get_clockfreq_via_cpuinfo): Likewise.
774
775 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
776 comments.
777 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
778 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
779 (WORD_COPY_BWD): Likewise.
780 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
781 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
782 Likewise.
783 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
784 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
785 comment.
786 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
787
788 2019-02-25 Joseph Myers <joseph@codesourcery.com>
789
790 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
791 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
792 rather than after operators.
793 * elf/cache.c (print_cache): Likewise.
794 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
795 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
796 * hurd/hurdinit.c (_hurd_setproc): Likewise.
797 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
798 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
799 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
800 (reauth_proc): Likewise.
801 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
802 (__file_name_split_at): Likewise.
803 (__directory_name_split_at): Likewise.
804 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
805 * hurd/port2fd.c (_hurd_port2fd): Likewise.
806 * iconv/gconv_dl.c (do_print): Likewise.
807 * inet/netinet/in.h (struct sockaddr_in): Likewise.
808 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
809 * locale/setlocale.c (new_composite_name): Likewise.
810 * malloc/memusagestat.c (main): Likewise.
811 * misc/fstab.c (fstab_convert): Likewise.
812 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
813 Likewise.
814 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
815 (getgrent_next_file): Likewise.
816 (internal_getgrnam_r): Likewise.
817 (internal_getgrgid_r): Likewise.
818 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
819 Likewise.
820 (internal_getgrent_r): Likewise.
821 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
822 (getpwent_next_nss): Likewise.
823 (getpwent_next_file): Likewise.
824 (internal_getpwnam_r): Likewise.
825 (internal_getpwuid_r): Likewise.
826 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
827 Likewise.
828 (getspent_next_nss): Likewise.
829 (internal_getspnam_r): Likewise.
830 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
831 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
832 * string/strchr.c (STRCHR): Likewise.
833 * string/strchrnul.c (STRCHRNUL): Likewise.
834 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
835 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
836 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
837 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
838 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
839 Likewise.
840 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
841 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
842 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
843 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
844 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
845 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
846 (open_file): Likewise.
847 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
848 (pthread_mutexattr_setprotocol): Likewise.
849 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
850 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
851 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
852 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
853 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
854 Likewise.
855 (elf_machine_rela): Likewise.
856 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
857 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
858 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
859 * sysdeps/posix/rename.c (rename): Likewise.
860 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
861 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
862 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
863 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
864 * sysdeps/unix/grantpt.c (grantpt): Likewise.
865 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
866 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
867 Likewise.
868 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
869 Likewise.
870 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
871 * time/tzfile.c (__tzfile_compute): Likewise.
872
873 2019-02-22 Joseph Myers <joseph@codesourcery.com>
874
875 * benchtests/bench-memmem.c (simple_memmem): Break lines before
876 rather than after operators.
877 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
878 * crypt/md5.c (md5_finish_ctx): Likewise.
879 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
880 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
881 * elf/cache.c (load_aux_cache): Likewise.
882 * elf/dl-load.c (open_verify): Likewise.
883 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
884 * elf/readelflib.c (process_elf_file): Likewise.
885 * elf/rtld.c (dl_main): Likewise.
886 * elf/sprof.c (generate_call_graph): Likewise.
887 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
888 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
889 * hurd/dtable.c (reauth_dtable): Likewise.
890 * hurd/getdport.c (__getdport): Likewise.
891 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
892 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
893 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
894 Likewise.
895 * hurd/hurdioctl.c (fioctl): Likewise.
896 * hurd/hurdselect.c (_hurd_select): Likewise.
897 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
898 (STOPSIGS): Likewise.
899 * hurd/hurdstartup.c (_hurd_startup): Likewise.
900 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
901 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
902 * hurd/msgportdemux.c (msgport_server): Likewise.
903 * hurd/setauth.c (_hurd_setauth): Likewise.
904 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
905 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
906 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
907 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
908 * login/tst-utmp.c (do_check): Likewise.
909 (simulate_login): Likewise.
910 * mach/lowlevellock.h (lll_lock): Likewise.
911 (lll_trylock): Likewise.
912 * math/test-fenv.c (ALL_EXC): Likewise.
913 * math/test-fenvinline.c (ALL_EXC): Likewise.
914 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
915 * nis/nis_call.c (__do_niscall3): Likewise.
916 * nis/nis_callback.c (cb_prog_1): Likewise.
917 * nis/nis_defaults.c (searchaccess): Likewise.
918 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
919 * nis/nis_ismember.c (internal_ismember): Likewise.
920 * nis/nis_local_names.c (nis_local_principal): Likewise.
921 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
922 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
923 Likewise.
924 * nis/ypclnt.c (yp_match): Likewise.
925 (yp_first): Likewise.
926 (yp_next): Likewise.
927 (yp_master): Likewise.
928 (yp_order): Likewise.
929 * nscd/hstcache.c (cache_addhst): Likewise.
930 * nscd/initgrcache.c (addinitgroupsX): Likewise.
931 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
932 (internal_getpwuid_r): Likewise.
933 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
934 * posix/glob.h (__GLOB_FLAGS): Likewise.
935 * posix/regcomp.c (peek_token): Likewise.
936 (peek_token_bracket): Likewise.
937 (parse_expression): Likewise.
938 * posix/regexec.c (sift_states_iter_mb): Likewise.
939 (check_node_accept_bytes): Likewise.
940 * posix/tst-spawn3.c (do_test): Likewise.
941 * posix/wordexp-test.c (testit): Likewise.
942 * posix/wordexp.c (parse_tilde): Likewise.
943 (exec_comm): Likewise.
944 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
945 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
946 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
947 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
948 * stdio-common/tst-fileno.c (do_test): Likewise.
949 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
950 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
951 * stdlib/strtod_l.c (round_and_return): Likewise.
952 (____STRTOF_INTERNAL): Likewise.
953 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
954 * string/strcspn.c (STRCSPN): Likewise.
955 * string/test-memmem.c (simple_memmem): Likewise.
956 * termios/tcsetattr.c (tcsetattr): Likewise.
957 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
958 * time/asctime.c (asctime_internal): Likewise.
959 * time/strptime_l.c (__strptime_internal): Likewise.
960 * time/sys/time.h (timercmp): Likewise.
961 * time/tzfile.c (__tzfile_compute): Likewise.
962
963 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
964
965 [BZ #21915]
966 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
967
968 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
969
970 * argp/argp-help.c (__argp_error_internal): New function,
971 renamed from __argp_error, but that takes a 'mode_flags'
972 parameter to control the format of long double parameters.
973 (__argp_error): Converted into a call __argp_error_internal.
974 (__argp_failure_internal): New function, renamed from
975 __argp_failure, but that takes a 'mode_flags' parameter.
976 (__argp_failure): Converted into a call __argp_failure_internal.
977 * misc/err.c (__vwarnx_internal): New function, renamed from
978 vwarnx, but that takes a 'mode_flags' parameter.
979 (vwarnx): Converted into a call to __vwarnx_internal.
980 (__vwarn_internal): New function, renamed from vwarn, but that
981 takes a 'mode_flags' parameter.
982 (vwarn): Converted into a call to __vwarn_internal.
983 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
984 call to __vfxprintf with 'mode_flags'.
985 (__error_internal): New function, renamed from error, but that
986 takes a 'mode_flags' parameter.
987 (error): Converted into a call to __error_internal.
988 (__error_at_line_internal): New function, renamed from
989 error_at_line, but that takes a 'mode_flags' parameter.
990 (error_at_line): Converted into a call to
991 __error_at_line_internal.
992 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
993 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
994 Likewise.
995
996 2019-02-20 Martin Liska <mliska@suse.cz>
997
998 * math/Makefile: Install math-vector-fortran.h.
999 * bits/math-vector-fortran.h: New file.
1000 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
1001
1002 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1003
1004 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
1005 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
1006
1007 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
1008
1009 * nptl/pthread_mutex_trylock.c: Fix comment.
1010
1011 2019-02-19 Carlos O'Donell <carlos@redhat.com>
1012
1013 * nptl/pthread_tryjoin.c: Fix comment.
1014
1015 2019-02-18 Joseph Myers <joseph@codesourcery.com>
1016
1017 [BZ #24231]
1018 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
1019 after R_SPARC_H34 case.
1020
1021 2019-02-18 Florian Weimer <fweimer@redhat.com>
1022
1023 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
1024 (getanswer): Do not call Dprintf.
1025 (res_gethostbyname2_context): Likewise.
1026 (res_gethostbyaddr_context): Likewise.
1027
1028 2019-02-18 Florian Weimer <fweimer@redhat.com>
1029
1030 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
1031 declaration.
1032 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
1033 Remove definitions.
1034 * libio/stdfiles.c: Update comment.
1035 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
1036 set _IO_stdin, _IO_stdout, _IO_stderr.
1037 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
1038 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
1039 inline function.
1040 (_IO_deallocate_file): New inline function.
1041 * libio/iolibio.h (_IO_vprintf): Remove definition.
1042 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
1043 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
1044 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
1045 _IO_legacy_file.
1046 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
1047 __builtin_expect. Use _IO_legacy_file.
1048
1049 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
1050
1051 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
1052 Initialize ctid with a known value and remove update of ctid
1053 after clone.
1054 (wait_tid): Adjust arguments and call futex_wait with ctid_val
1055 as assumed current value of ctid_ptr.
1056
1057 2019-02-15 Florian Weimer <fweimer@redhat.com>
1058
1059 Check that non-sysdeps headers have wrapper headers.
1060 * scripts/check-wrapper-headers.py: New file.
1061 * Makefile (tests-special): Add check-wrapper-headers.out.
1062 (check-wrapper-headers.out): New target.
1063 * Rules (tests-special): Add check-wrapper-headers.out.
1064 (check-wrapper-headers.out): New target.
1065
1066 2019-02-15 Florian Weimer <fweimer@redhat.com>
1067
1068 Add missing header wrappers under include/.
1069 * include/ar.h: New file.
1070 * include/bits/mqueue2.h: Likewise.
1071 * include/bits/stdio.h: Likewise.
1072 * include/bits/stdio2.h: Likewise.
1073 * include/fstab.h: Likewise.
1074 * include/fts.h: Likewise.
1075 * include/lastlog.h: Likewise.
1076 * include/netinet/icmp6.h: Likewise.
1077 * include/netinet/igmp.h: Likewise.
1078 * include/netinet/ip6.h: Likewise.
1079 * include/re_comp.h: Likewise.
1080 * include/regexp.h: Likewise.
1081 * include/rpcsvc/bootparam.h: Likewise.
1082 * include/rpcsvc/yp_prot.h: Likewise.
1083 * include/sys/random.h: Likewise.
1084 * include/sys/stropts.h: Likewise.
1085 * include/sys/ttychars.h: Likewise.
1086 * include/sys/vfs.h: Likewise.
1087 * include/wait.h: Likewise.
1088
1089 2019-02-15 Florian Weimer <fweimer@redhat.com>
1090
1091 * nptl_db/proc_service.h: Move to ...
1092 * sysdeps/nptl/proc_service.h: ... here.
1093 * nptl_db/thread_db.h: Move to ...
1094 * sysdeps/nptl/thread_db.h: ... here.
1095 * nptl/descr.h: Include <thread_db.h>.
1096
1097 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1098
1099 * io/Makefile (tests): Add tst-lockf.
1100 * io/lockf.c (lockf): Use __fcntl and only define for
1101 !__OFF_T_MATCHES_OFF64_T.
1102 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
1103 __OFF_T_MATCHES_OFF64_T case.
1104 * io/tst-lockf.c: New file.
1105 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
1106 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
1107 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
1108 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
1109 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
1110 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
1111 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
1112 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
1113 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
1114
1115 2019-02-15 Florian Weimer <fweimer@redhat.com>
1116
1117 [BZ #24211]
1118 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
1119 pd->result after the thread descriptor has been freed.
1120
1121 2019-02-15 Joseph Myers <joseph@codesourcery.com>
1122
1123 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
1124 from function return type.
1125
1126 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
1127
1128 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1129
1130 * scripts/test_printers_common.py: Set TERM to a known harmless
1131 value.
1132
1133 2019-02-14 Joseph Myers <joseph@codesourcery.com>
1134
1135 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
1136 (xdr_u_int): Likewise.
1137 (xdr_enum): Likewise.
1138 (xdr_bytes): Reword fall-through comment.
1139 (xdr_string): Likewise.
1140
1141 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1142
1143 [BZ #2421]
1144 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
1145 (tests): Add tst-join8 tst-join9.
1146 * nptl/lll_timedwait_tid.c: Remove file.
1147 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
1148 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
1149 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
1150 * nptl/pthread_join_common.c (timedwait_tid): New function.
1151 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
1152 is set.
1153 * nptl/tst-join5.c (thread_join): New function.
1154 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
1155 check.
1156 * nptl/tst-join8.c: New file.
1157 * nptl/tst-join9.c: Likewise.
1158 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
1159 lll_futex_timed_wait_cancel): Add generic macros.
1160 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
1161 Remove definitions.
1162 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
1163 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
1164 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
1165 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
1166 Remove function.
1167 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
1168 Likewise.
1169 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
1170 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
1171 (lll_futex_timed_wait_cancel): New macro.
1172
1173 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
1174
1175 * benchtests/Makefile: Add malloc-simple benchmark.
1176 * benchtests/bench-malloc-simple.c: New benchmark.
1177
1178 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
1179
1180 * benchtests/bench-memmove.c (do_one_test): Remove unused
1181 ORIG_SRC.
1182 (do_test): Adjust.
1183 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
1184 ORIG_SRC.
1185 (do_test): Adjust.
1186
1187 2019-01-13 Jim Wilson <jimw@sifive.com>
1188
1189 [BZ #24040]
1190 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
1191 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
1192 (func): New.
1193 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
1194 call func directly.
1195 * nptl/Makefile (tests): Add tst-unwind-thread.
1196 (CFLAGS-tst-unwind-thread.c): Define.
1197 * nptl/tst-unwind-thread.c: New file.
1198 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
1199 as undefined.
1200
1201 2019-02-13 Joseph Myers <joseph@codesourcery.com>
1202
1203 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
1204 comment wording.
1205 * nis/nis_call.c (__do_niscall3): Likewise.
1206
1207 * catgets/gencat.c (normalize_line): Use braces around empty
1208 'else' body.
1209 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
1210 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
1211 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
1212 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
1213 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
1214 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
1215 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
1216 definition.
1217
1218 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
1219 execlp returns.
1220
1221 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
1222
1223 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
1224 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
1225 * benchtests/bench-strchr.c (stupid_strchr): Remove.
1226 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
1227 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
1228 * benchtests/bench-strlen.c (builtin_strlen): Remove.
1229 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
1230 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
1231 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
1232 * benchtests/bench-strspn.c (stupid_strspn): Remove.
1233 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
1234 * benchtests/bench-bcopy.c: Delete file.
1235 * benchtests/bench-bzero.c: Likewise.
1236 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
1237 (simple_memccpy): Remove.
1238 (generic_memccpy): Add function.
1239 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
1240 * benchtests/bench-memmove.c (simple_bcopy): Remove.
1241 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
1242 (generic_mempcpy): Add new function.
1243 * benchtests/bench-memset.c (simple_bzero): Remove.
1244 (builtin_bzero): Remove.
1245 (builtin_memset): Remove.
1246 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
1247 (generic_rawmemchr): Add new function.
1248
1249 2019-02-12 Florian Weimer <fweimer@redhat.com>
1250
1251 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
1252
1253 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1254
1255 [BZ #24122]
1256 * elf/Makefile (tests): Add tst-audit13.
1257 (modules-names): Add tst-audit13mod1.
1258 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
1259 rule.
1260 * elf/tst-audit13.c: New file.
1261 * elf/tst-audit13mod1.c: Likewise.
1262
1263 2019-02-12 Florian Weimer <fweimer@redhat.com>
1264
1265 [BZ #24122]
1266 * elf/rtld.c (unload_audit_module): New function.
1267 (report_audit_module_load_error): Likewise.
1268 (load_audit_module): Likewise. Extracted from dl_main. Call
1269 _dl_close if the laversion symbol cannot be found. Use early
1270 returns for error handling. Add malloc error check. Check for a
1271 zero return value from la_version. Remove spurious comment about
1272 static TLS initialization. Remove useless casts.
1273 (notify_audit_modules_of_loaded_object): New function. Extracted
1274 from dl_main.
1275 (load_audit_module): Likewise.
1276 (dl_main): Call load_audit_modules.
1277
1278 2019-02-12 Joseph Myers <joseph@codesourcery.com>
1279
1280 * elf/dl-exception.c (_dl_exception_create_format): Add
1281 fall-through comments.
1282 * elf/ldconfig.c (parse_conf_include): Likewise.
1283 * elf/rtld.c (print_statistics): Likewise.
1284 * locale/programs/charmap.c (parse_charmap): Likewise.
1285 * misc/mntent_r.c (__getmntent_r): Likewise.
1286 * posix/wordexp.c (parse_arith): Likewise.
1287 (parse_backtick): Likewise.
1288 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
1289 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
1290 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1291
1292 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
1293
1294 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
1295 Use float instead of double.
1296
1297 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
1298
1299 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
1300
1301 2019-02-08 Joseph Myers <joseph@codesourcery.com>
1302
1303 * sysdeps/powerpc/bits/mathinline.h: Remove.
1304
1305 2019-02-08 Florian Weimer <fweimer@redhat.com>
1306
1307 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
1308 * math/bits/math-finite.h: Move to ...
1309 * bits/math-finite.h: ... here.
1310
1311 2019-02-08 Florian Weimer <fweimer@redhat.com>
1312
1313 * sysdeps/generic/bits/unistd_ext.h: Move to ...
1314 * bits/unistd_ext.h: here.
1315
1316 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
1317
1318 [BZ #21915]
1319 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
1320 * nss/tst-nss-files-hosts-long.c: New file.
1321 * nss/tst-nss-files-hosts-long.root: New directory.
1322 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
1323 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
1324
1325 2019-02-08 Florian Weimer <fweimer@redhat.com>
1326
1327 * include/bits/unistd_ext.h: Remove file.
1328 * posix/bits/unistd_ext.h: Move to ...
1329 * sysdeps/generic/bits/unistd_ext.h: ... here.
1330
1331 2019-02-08 Florian Weimer <fweimer@redhat.com>
1332
1333 * include/bits/unistd_ext.h: New file.
1334
1335 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
1336
1337 * time/tst-strftime2.c: Use array_length macros instead of magic
1338 numbers.
1339
1340 2019-02-08 Florian Weimer <fweimer@redhat.com>
1341
1342 [BZ #24161]
1343 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
1344 argument.
1345 * nptl/register-atfork.c (__run_fork_handlers): Only perform
1346 locking if the new do_locking argument is true.
1347 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
1348 __run_fork_handlers.
1349
1350 2019-02-08 Florian Weimer <fweimer@redhat.com>
1351
1352 [BZ #6399]
1353 Linux: Add gettid system call wrapper.
1354 * posix/Makefile (headers): Add bits/unistd_ext.h.
1355 * posix/bits/unistd_ext.h: New file.
1356 * posix/unistd.h: Include it.
1357 * manual/process.texi (Process Identification): Document gettid.
1358 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
1359 tst-gettid, tst-gettid-kill.
1360 (tst-gettid): Link with $(shared-thread-library).
1361 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
1362 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
1363 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
1364 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
1365 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
1366 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
1367 Add gettid.
1368 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
1369 Likewise.
1370 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
1371 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
1372 Likewise.
1373 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
1374 Likewise.
1375 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
1376 Likewise.
1377 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
1378 Likewise.
1379 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
1380 Likewise.
1381 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
1382 Likewise.
1383 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
1384 Likewise.
1385 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
1386 (GLIBC_2.30): Likewise.
1387 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
1388 (GLIBC_2.30): Likewise.
1389 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
1390 (GLIBC_2.30): Likewise.
1391 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
1392 (GLIBC_2.30): Likewise.
1393 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
1394 Likewise.
1395 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
1396 (GLIBC_2.30): Likewise.
1397 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
1398 (GLIBC_2.30): Likewise.
1399 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
1400 (GLIBC_2.30): Likewise.
1401 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
1402 (GLIBC_2.30): Likewise.
1403 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
1404 Likewise.
1405 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
1406 Likewise.
1407 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
1408 Likewise.
1409 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
1410 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
1411 Likewise.
1412 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
1413 Likewise.
1414 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
1415 Likewise.
1416 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
1417 Likewise.
1418 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
1419
1420 2019-02-07 Florian Weimer <fweimer@redhat.com>
1421
1422 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
1423 compatibility symbols.
1424
1425 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
1426
1427 [BZ #24180]
1428 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
1429 Add compiler barriers and comments.
1430
1431 2019-02-07 Florian Weimer <fweimer@redhat.com>
1432
1433 * include/array_length.h (array_length): Do not use a statement
1434 expression and _Static_assert, so that array_length can be used at
1435 file scope and as a constant expression.
1436
1437 2019-02-07 Florian Weimer <fweimer@redhat.com>
1438
1439 * support/xdlfcn.h (xdlmopen): Declare.
1440 * support/xdlmopen.c: New file.
1441 * support/Makefile (libsupport-routines): Add xdlmopen.
1442
1443 2019-02-06 Joseph Myers <joseph@codesourcery.com>
1444
1445 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
1446 before return type, without separate inline.
1447 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
1448 * elf/dl-tunables.h (tunable_is_name): Likewise.
1449 * malloc/malloc.c (do_set_trim_threshold): Likewise.
1450 (do_set_top_pad): Likewise.
1451 (do_set_mmap_threshold): Likewise.
1452 (do_set_mmaps_max): Likewise.
1453 (do_set_mallopt_check): Likewise.
1454 (do_set_perturb_byte): Likewise.
1455 (do_set_arena_test): Likewise.
1456 (do_set_arena_max): Likewise.
1457 (do_set_tcache_max): Likewise.
1458 (do_set_tcache_count): Likewise.
1459 (do_set_tcache_unsorted_limit): Likewise.
1460 * nis/nis_subr.c (count_dots): Likewise.
1461 * nptl/allocatestack.c (advise_stack_range): Likewise.
1462 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
1463 (do_sin): Likewise.
1464 (reduce_sincos): Likewise.
1465 (do_sincos): Likewise.
1466 * sysdeps/unix/sysv/linux/x86/elision-conf.c
1467 (do_set_elision_enable): Likewise.
1468 (TUNABLE_CALLBACK_FNDECL): Likewise.
1469
1470 2019-02-06 Florian Weimer <fweimer@redhat.com>
1471
1472 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
1473 (xdlsym): Use dlerror to detect a NULL symbol.
1474
1475 2019-02-06 Florian Weimer <fweimer@redhat.com>
1476
1477 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
1478 <stap-probe.h>.
1479 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
1480
1481 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1482
1483 * libio/tst-bz24153.c (wide): Use wide char format specifier.
1484
1485 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1486
1487 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
1488 __wmemcmp and weak alias to wmemcmp.
1489
1490 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1491
1492 [BZ #23403]
1493 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
1494 TLS_TCB_AT_TP tls variant.
1495 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
1496 Add alignment checks.
1497 * support/Makefile (libsupport-routines): Add xposix_memalign and
1498 xpthread_setstack.
1499 * support/support.h: Add xposix_memalign.
1500 * support/xthread.h: Add xpthread_attr_setstack.
1501 * support/xposix_memalign.c: New File.
1502 * support/xpthread_attr_setstack.c: Likewise.
1503
1504 2019-02-05 Florian Weimer <fweimer@redhat.com>
1505
1506 [BZ #24164]
1507 arm: Use "nr" constraint for Systemtap probes, to avoid the
1508 compiler using memory operands for constants, due to the "o"
1509 alternative in the default "nor" constraint.
1510 * include/stap-probe.h [USE_STAP_PROBE]: Include
1511 <stap-probe-machine.h>
1512 * sysdeps/generic/stap-probe-machine.h: New file.
1513 * sysdeps/arm/stap-probe-machine.h: Likewise.
1514
1515 2019-02-04 Joseph Myers <joseph@codesourcery.com>
1516
1517 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
1518 with 0, not tcache->entries[tc_idx].
1519
1520 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
1521 once.
1522
1523 2019-02-04 Andreas Schwab <schwab@suse.de>
1524
1525 [BZ #16976]
1526 [BZ #17396]
1527 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
1528 looking up collating elements match against (wide) character
1529 sequence instead of name. Correct alignment adjustment.
1530 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
1531 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
1532 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
1533 (LOCALES): Add cs_CZ.ISO-8859-2.
1534 * posix/tst-fnmatch4.c: New file.
1535 * posix/tst-fnmatch5.c: New file.
1536 * include/wchar.h (__wmemcmp): Declare.
1537 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
1538 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
1539 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
1540 * sysdeps/s390/wmemcmp.c: Likewise.
1541
1542 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
1543
1544 [BZ #24155]
1545 CVE-2019-7309
1546 * NEWS: Updated for CVE-2019-7309.
1547 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
1548 upper 32 bits of RDX register for x32. Use unsigned Jcc
1549 instructions, instead of signed.
1550 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
1551 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
1552
1553 2019-02-04 Florian Weimer <fweimer@redhat.com>
1554
1555 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
1556 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
1557 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
1558 Likewise.
1559 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
1560 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
1561 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
1562 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
1563 Likewise.
1564 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
1565 Likewise.
1566 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
1567 Likewise.
1568 (posix_spawn_file_actions_addopen): Likewise.
1569 (posix_spawn_file_actions_addclose): Likewise.
1570 (posix_spawn_file_actions_adddup2): Likewise.
1571 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
1572 qualifiers.
1573 (posix_spawn_file_actions_addfchdir_np): Likewise.
1574
1575 2019-02-04 David Newall <glibc@davidnewall.com>
1576
1577 elf: Implement --preload option for the dynamic linker.
1578 * elf/rtld.c (preloadarg): New variable.
1579 (handle_preload_list): Pass through “where” argument to
1580 do_preload.
1581 (dl_main): Handle "--preload" and add second call to
1582 handle_preload_list.
1583 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
1584 (tst-rtld-preload-OBJS): Set variable.
1585 (tst-rtld-preload.out): New target.
1586 * elf/tst-rtld-preload.sh: New file.
1587
1588 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
1589
1590 * Makefile (testrun.sh): Exit in case of incorrect argument.
1591
1592 2019-02-04 Florian Weimer <fweimer@redhat.com>
1593
1594 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
1595 alignment gaps.
1596
1597 2019-02-03 Florian Weimer <fweimer@redhat.com>
1598
1599 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
1600 implicit overflow checks.
1601
1602 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
1603
1604 * stdlib/isomac.c: Include <unistd.h>.
1605
1606 2019-02-03 Florian Weimer <fweimer@redhat.com>
1607
1608 * include/time.h (__tzfile_default): Use int, not long int, for
1609 the GMT offsets.
1610 * time/tzfile.c (struct ttinfo): Change type of the offset member
1611 to int.
1612 (__tzfile_read): Remove useless cast.
1613 (__tzfile_default): Adjust prototype.
1614 * time/tzset.c (tz_rule): Change type of the offset member to int.
1615 (parse_offset): Change the type of the sign variable to int.
1616
1617 2019-02-03 Florian Weimer <fweimer@redhat.com>
1618
1619 [BZ #24153]
1620 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
1621 * libio/getchar.c (getchar): Likewise.
1622 * libio/getchar_u.c (getchar_unlocked): Likewise.
1623 * libio/getwchar.c (getwchar): Likewise.
1624 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
1625 * libio/iogets.c (_IO_gets): Likewise.
1626 * libio/vscanf.c (_IO_vscanf): Likewise.
1627 * libio/vwscanf.c (__vwscanf): Likewise.
1628 * libio/tst-bz24153.c: New file.
1629 * libio/Makefile (tests): Add it.
1630
1631 2019-02-02 Florian Weimer <fweimer@redhat.com>
1632
1633 [BZ #14829]
1634 * manual/resource.texi (Basic Scheduling Functions): Add
1635 portability note. Change process to task throughout the section.
1636 Remove incorrect comment about sched_yield as it affects
1637 tasks/threads, not entire processes.
1638 * sysdeps/unix/sysv/linux/bits/posix_opt.h
1639 (_POSIX_PRIORITY_SCHEDULING): Update comment.
1640
1641 2019-02-01 Joseph Myers <joseph@codesourcery.com>
1642
1643 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
1644 * configure: Regenerated.
1645 * manual/install.texi (Tools for Compilation): Update minimum GCC
1646 version.
1647 * INSTALL: Regenerated.
1648
1649 2019-02-01 Florian Weimer <fweimer@redhat.com>
1650
1651 * support/support_test_compare_string.c
1652 (support_test_compare_string): Use "string" in error message.
1653 * support/tst-test_compare_string.c (do_test): Adjust.
1654
1655 2019-02-01 Florian Weimer <fweimer@redhat.com>
1656
1657 * support/support_format_address_family.c
1658 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
1659
1660 2019-02-01 Florian Weimer <fweimer@redhat.com>
1661
1662 * manual/socket.texi (Internet Address Formats): Clarify the byte
1663 order of struct sockaddr_in, struct sockaddr_in6. Document
1664 sin6_flowinfo and sin6_scope_id.
1665
1666 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
1667
1668 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
1669 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
1670 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
1671 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
1672 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
1673 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
1674
1675 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1676
1677 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
1678 [!MEMCHR](MEMCHR): Set to __memchr.
1679 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1680 Add memchr_generic and memchr_nosimd.
1681 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1682 (__libc_ifunc_impl_list): Add memchr ifuncs.
1683 * sysdeps/aarch64/multiarch/memchr.c: New file.
1684 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
1685 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
1686
1687 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1688
1689 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1690 Add memset_emag.
1691 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1692 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
1693 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
1694 Add IS_EMAG check for ifunc dispatch.
1695 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
1696 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
1697
1698 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1699
1700 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
1701 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1702 Add emag.
1703 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
1704 New macro.
1705
1706 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
1707
1708 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
1709
1710 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
1711
1712 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
1713 syscall-template file.
1714
1715 2019-01-31 Carlos O'Donell <carlos@redhat.com>
1716 Torvald Riegel <triegel@redhat.com>
1717 Rik Prohaska <prohaska7@gmail.com>
1718
1719 [BZ# 23844]
1720 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
1721 tst-rwlock-trywrlock-stall.
1722 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
1723 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
1724 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
1725 Set __wrphase_fute to 1 only if we started the write phase.
1726 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
1727 * nptl/tst-rwlock-trywrlock-stall.c: New file.
1728 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
1729 * support/xpthread_rwlock_destroy.c: New file.
1730 * support/xthread.h: Declare xpthread_rwlock_destroy.
1731
1732 2019-02-01 Joseph Myers <joseph@codesourcery.com>
1733
1734 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
1735 version to 4.0.2.
1736
1737 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
1738
1739 [BZ #24051]
1740 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
1741 * libio/fileops.c (_IO_new_file_underflow): Likewise
1742 * libio/wfileops.c (_IO_wfile_underflow): Likewise
1743 * libio/putchar.c (putchar): Likewise.
1744 * libio/putchar_u.c (putchar_unlocked): Likewise.
1745 * libio/putwchar.c (putchar): Likewise.
1746 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
1747 * libio/tst-bz24051.c: New test.
1748 * libio/Makefile (tests): Add tst-bz24051
1749
1750 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
1751
1752 CVE-2019-9169
1753 regex: fix read overrun [BZ #24114]
1754 Problem found by AddressSanitizer, reported by Hongxu Chen in:
1755 https://debbugs.gnu.org/34140
1756 * posix/regexec.c (proceed_next_node):
1757 Do not read past end of input buffer.
1758
1759 2019-01-31 Florian Weimer <fweimer@redhat.com>
1760
1761 [BZ #24059]
1762 * nss/nss_files/files-alias.c (get_next_alias): Handle
1763 continuation line without newline at the end.
1764 * nss/tst-nss-files-alias-truncated.c: New file.
1765 * nss/Makefile [$(build-shared)] (tests): Add
1766 tst-nss-files-alias-truncated.
1767 (tst-nss-files-alias-truncated): Link with libnss_files.so.
1768 * support/namespace.h (struct support_chroot_configuration): Add
1769 aliases member.
1770 (struct support_chroot): Add path_aliases member.
1771 * support/support_chroot.c (support_chroot_create): Handle
1772 aliases.
1773 (support_chroot_free): Free path_aliases.
1774
1775 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
1776
1777 * version.h (RELEASE): Set to "development".
1778 (VERSION): Set to "2.29.9000".
1779 * NEWS: Add section for 2.30.
1780
1781 * version.h (RELEASE): Set to "stable".
1782 (VERSION): Set to "2.29".
1783 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
1784
1785 * NEWS: Add the list of bugs fixed in 2.29.
1786 * manual/contrib.texi: Update contributors list with some more
1787 names.
1788 * manual/install.texi: Update latest versions of packages
1789 tested.
1790 * INSTALL: Regenerated.
1791
1792 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
1793
1794 * po/be.po: Update translations.
1795 * po/bg.po: Likewise.
1796 * po/ca.po: Likewise.
1797 * po/cs.po: Likewise.
1798 * po/da.po: Likewise.
1799 * po/de.po: Likewise.
1800 * po/el.po: Likewise.
1801 * po/eo.po: Likewise.
1802 * po/es.po: Likewise.
1803 * po/fi.po: Likewise.
1804 * po/fr.po: Likewise.
1805 * po/gl.po: Likewise.
1806 * po/hr.po: Likewise.
1807 * po/hu.po: Likewise.
1808 * po/ia.po: Likewise.
1809 * po/id.po: Likewise.
1810 * po/it.po: Likewise.
1811 * po/ja.po: Likewise.
1812 * po/ko.po: Likewise.
1813 * po/lt.po: Likewise.
1814 * po/nb.po: Likewise.
1815 * po/nl.po: Likewise.
1816 * po/pl.po: Likewise.
1817 * po/pt_BR.po: Likewise.
1818 * po/ru.po: Likewise.
1819 * po/rw.po: Likewise.
1820 * po/sk.po: Likewise.
1821 * po/sl.po: Likewise.
1822 * po/sv.po: Likewise.
1823 * po/tr.po: Likewise.
1824 * po/uk.po: Likewise.
1825 * po/vi.po: Likewise.
1826 * po/zh_CN.po: Likewise.
1827 * po/zh_TW.po: Likewise.
1828
1829 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
1830
1831 [BZ #24130]
1832 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
1833 of $f3 register on $y_is_neg path.
1834
1835 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
1836
1837 [BZ #24110]
1838 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
1839 sigaltstack.ss_flags.
1840
1841 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
1842
1843 [BZ #23758]
1844 * manual/time.texi (strftime): Document "%Ey".
1845 * time/strftime_l.c (__strftime_internal): Set the default width
1846 padding with zero of "%Ey" to 2.
1847
1848 [BZ #24096]
1849 * manual/time.texi (strftime): Document "%EC" and "%EY".
1850 * time/Makefile (tests): Add tst-strftime2.
1851 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
1852 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
1853 override padding for "%Ey".
1854 If an optional flag ('_' or '-') is specified to "%EY", interpret the
1855 "%Ey" in the subformat as if decorated with that flag.
1856 * time/tst-strftime2.c: New file.
1857
1858 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1859
1860 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
1861 are not defined.
1862
1863 [BZ #24122]
1864 * elf/Makefile (tests): Add tst-audit13.
1865 (modules-names): Add tst-audit13mod1.
1866 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
1867 rule.
1868 * elf/rtld.c (dl_main): Handle invalid audit module version.
1869 * elf/tst-audit13.c: New file.
1870 * elf/tst-audit13mod1.c: Likewise.
1871
1872 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
1873
1874 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
1875 returned by __hurd_at_flags.
1876 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
1877 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
1878 directly instead of __hurd_file_name_lookup.
1879
1880 2019-01-21 Joseph Myers <joseph@codesourcery.com>
1881
1882 * scripts/build-many-glibcs.py (Context.checkout): Default
1883 binutils version to 2.32 branch.
1884
1885 2019-01-21 Florian Weimer <fweimer@redhat.com>
1886
1887 [BZ #20018]
1888 CVE-2016-10739
1889 resolv: Reject trailing characters in host names
1890 * include/arpa/inet.h (__inet_aton_exact): Declare.
1891 (inet_aton): Remove hidden prototype. No longer used internally.
1892 * nscd/gai.c (__inet_aton): Do not define.
1893 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
1894 * nss/digits_dots.c (__inet_aton): Likewise.
1895 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
1896 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
1897 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
1898 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
1899 (tst-resolv-trailing): Likewise.
1900 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
1901 libc.
1902 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
1903 Make static. Add endp parameter.
1904 (__inet_aton_exact): New function.
1905 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
1906 (__inet_addr): Call inet_aton_end.
1907 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
1908 not just IPv6. Call __inet_aton_exact.
1909 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
1910 (tests): Make const. Add additional test cases with trailing
1911 characters.
1912 (do_test): Use array_length.
1913 * resolv/tst-inet_aton_exact.c: New file.
1914 * resolv/tst-resolv-trailing.c: Likewise.
1915 * resolv/tst-resolv-nondecimal.c: Likewise.
1916 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
1917
1918 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1919
1920 [BZ# 24097]
1921 CVE-2019-6488
1922 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
1923 Clear the upper 32 bits of RSI register.
1924 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
1925 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
1926 and tst-size_t-wcsnlen.
1927 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
1928 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
1929
1930 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1931
1932 [BZ# 24097]
1933 CVE-2019-6488
1934 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
1935 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
1936 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
1937 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
1938 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
1939
1940 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1941
1942 [BZ# 24097]
1943 CVE-2019-6488
1944 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
1945 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
1946 * sysdeps/x86_64/strcmp.S: Likewise.
1947 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
1948 tst-size_t-strncmp and tst-size_t-wcsncmp.
1949 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
1950 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
1951 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
1952
1953 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1954
1955 [BZ# 24097]
1956 CVE-2019-6488
1957 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
1958 RDX_LP for length. Clear the upper 32 bits of RDX register.
1959 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
1960 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
1961 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
1962 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
1963
1964 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1965
1966 [BZ# 24097]
1967 CVE-2019-6488
1968 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
1969 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
1970 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
1971 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
1972
1973 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1974
1975 [BZ# 24097]
1976 CVE-2019-6488
1977 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
1978 length. Clear the upper 32 bits of RDX register.
1979 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
1980 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
1981 Likewise.
1982 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
1983 Likewise.
1984 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
1985 tst-size_t-wmemchr.
1986 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
1987
1988 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1989
1990 [BZ# 24097]
1991 CVE-2019-6488
1992 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
1993 length. Clear the upper 32 bits of RDX register.
1994 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
1995 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
1996 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
1997 tst-size_t-wmemcmp.
1998 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
1999 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
2000
2001 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
2002
2003 [BZ# 24097]
2004 CVE-2019-6488
2005 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
2006 upper 32 bits of RDX register.
2007 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
2008 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
2009 tst-size_t-wmemchr.
2010 * sysdeps/x86_64/x32/test-size_t.h: New file.
2011 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
2012 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
2013
2014 2019-01-18 Florian Weimer <fweimer@redhat.com>
2015
2016 [BZ #24112]
2017 resolv: Do not send queries for non-host-names in nss_dns.
2018 * resolv/nss_dns/dns-host.c (check_name): New function.
2019 (_nss_dns_gethostbyname2_r): Use it.
2020 (_nss_dns_gethostbyname_r): Likewise.
2021 (_nss_dns_gethostbyname4_r): Likewise.
2022
2023 2019-01-21 Florian Weimer <fweimer@redhat.com>
2024
2025 * resolv/inet_addr.c: Reformat to GNU style.
2026 (__inet_addr, __inet_aton): Update comment.
2027
2028 2019-01-18 Florian Weimer <fweimer@redhat.com>
2029
2030 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
2031 ("malloc: Use current (C11-style) atomics for fastbin access").
2032 This commit introduces a substantial performance regression on
2033 POWER and Aarch64.
2034 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
2035 (REMOVE_FB): Define.
2036 (_int_malloc): Use it and reindent.
2037 (_int_free): Use CAS loop with
2038 catomic_compare_and_exchange_val_rel.
2039 (malloc_consolidate): Use atomic_exchange_acq.
2040
2041
2042 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
2043
2044 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
2045 -Wl,-z,now.
2046 (LDFLAGS-tst-minsigstksz-2): Likewise.
2047 (LDFLAGS-tst-minsigstksz-3): Likewise.
2048 (LDFLAGS-tst-minsigstksz-3a): Likewise.
2049 (LDFLAGS-tst-minsigstksz-4): Likewise.
2050
2051 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
2052
2053 * manual/time.texi (strftime): Fix the wording to "alternative" rather
2054 than "alternate".
2055
2056 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
2057
2058 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
2059
2060 2019-01-16 Zack Weinberg <zackw@panix.com>
2061
2062 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
2063 (xget_sigstack_location): New test support functions.
2064 * support/xsigstack.c: New file, implementing them.
2065 * support/tst-xsigstack.c: New test for them.
2066 * support/Makefile: Update.
2067
2068 * signal/tst-minsigstksz-1.c
2069 * signal/tst-minsigstksz-2.c
2070 * signal/tst-minsigstksz-3.c
2071 * signal/tst-minsigstksz-3a.c
2072 * signal/tst-minsigstksz-4.c: New tests.
2073 * signal/Makefile: Run them.
2074
2075 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
2076
2077 * po/libc.pot: Regenerate.
2078
2079 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2080
2081 * math/libm-test-fma.inc (fma_test_data): Set
2082 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
2083
2084 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
2085
2086 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
2087 (do_test): Changed __vector __int128_t to __vector unsigned int.
2088
2089 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
2090
2091 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2092 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
2093 stpcpy-avx2 and stpncpy-avx2.
2094 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
2095 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
2096 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
2097 and __stpncpy_avx2.
2098 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
2099 ifunc-strcpy.h}: rename header for a more generic name.
2100 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
2101 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
2102 AVX unaligned load is fast and vzeroupper is preferred.
2103 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
2104 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
2105 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
2106 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
2107 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
2108 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
2109
2110 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
2111
2112 * argp/argp-help.c: Fix typo in comment.
2113 * misc/sys/cdefs.h: Likewise.
2114 * posix/regexec.c (sift_states_iter_mb): Likewise.
2115 * socket/sockatmark.c: Likewise.
2116 * socket/sys/socket.h: Likewise.
2117 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
2118 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
2119 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
2120 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
2121 * sysdeps/unix/sockatmark.c: Likewise.
2122 * time/strptime_l.c: Likewise.
2123
2124 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
2125
2126 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
2127 missing space after the cast of "_NL_CURRENT".
2128
2129 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
2130
2131 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
2132 ifdef to fix read of VSCR.
2133 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
2134 tst-ucontext-ppc64-vscr.c to test list.
2135 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
2136
2137 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
2138
2139 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
2140 fall-through.
2141
2142 2019-01-09 Jim Wilson <jimw@sifive.com>
2143
2144 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
2145
2146 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
2147
2148 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
2149 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
2150 __memcpy_falkor for ares.
2151 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
2152 Add new define.
2153 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
2154 Add ares cpu.
2155
2156 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
2157
2158 [BZ #24066]
2159 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
2160 4_FP_W_TYPEs are used for IEEE quad precision.
2161 * soft-fp/extendhftf2.c: Likewise.
2162 * soft-fp/extendsftf2.c: Likewise.
2163 * soft-fp/extendxftf2.c: Likewise.
2164 * soft-fp/trunctfdf2.c: Likewise.
2165 * soft-fp/trunctfhf2.c: Likewise.
2166 * soft-fp/trunctfsf2.c: Likewise.
2167 * soft-fp/trunctfxf2.c: Likewise.
2168 * sysdeps/alpha/ots_cvttx.c: Likewise.
2169 * sysdeps/alpha/ots_cvtxt.c: Likewise.
2170 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
2171 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
2172 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
2173 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
2174 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
2175 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
2176 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
2177 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
2178 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
2179 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
2180 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
2181 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
2182 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
2183 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
2184 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
2185 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
2186
2187 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
2188
2189 [BZ #24024]
2190 * Makeconfig: Build libm with -fno-math-errno but build the remaining
2191 code with -fmath-errno.
2192 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
2193 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
2194 * string/test-strerror-errno.c: New file.
2195
2196 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
2197
2198 [BZ #24046]
2199 * localedata/locales/en_US (date_fmt): Add, set to
2200 "%a %d %b %Y %r %Z".
2201
2202 2019-01-07 Florian Weimer <fweimer@redhat.com>
2203
2204 [BZ #24063]
2205 * manual/arith.texi (Math Error Reporting): Use @code{errno}
2206 instead of @var{errno}.
2207 (Parsing of Integers): Likewise.
2208 (Parsing of Floats): Likewise.
2209 * manual/filesys.texi (Working with Directory Trees): Likewise.
2210 (Temporary Files): Likewise.
2211 * manual/job.texi (Terminal Access Functions): Likewise.
2212 * manual/llio.texi (Synchronizing I/O): Likewise.
2213 * manual/math.texi (SVID Random): Likewise.
2214 * manual/message.texi (The catgets Functions): Likewise.
2215 (Translation with gettext): Likewise.
2216 (Locating gettext catalog): Likewise.
2217 (Charset conversion in gettext): Likewise.
2218 * manual/nss.texi (NSS Module Function Internals): Likewise.
2219 * manual/search.texi (Hash Search Function): Likewise.
2220 * manual/setjmp.texi (System V contexts): Likewise.
2221 * manual/time.texi (Sleeping): Likewise.
2222 * manual/users.texi (Lookup User): Likewise.
2223 (Lookup Group): Likewise.
2224
2225 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2226
2227 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
2228 fix typo.
2229
2230 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
2231
2232 [BZ #19444]
2233 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
2234 __builtin_unreachable for default case in switch.
2235 (__ieee754_yn): Likewise.
2236 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
2237 (__ieee754_ynl): Likewise.
2238 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
2239 (__ieee754_ynl): Likewise.
2240 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
2241 (__ieee754_ynl): Likewise.
2242
2243 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
2244
2245 * manual/maint.texi: Use @{ and @}.
2246
2247 2019-01-04 Florian Weimer <fweimer@redhat.com>
2248
2249 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
2250 function.
2251 (do_in_chroot_1): Call it.
2252 (run_chroot_tests):
2253 Improve error reporting in case it is not possible to create a
2254 collision for the PTY name required by the test.
2255
2256 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2257
2258 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
2259 lll_wait_tid with timeout.
2260 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
2261 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
2262 futex_reltimed_wait_cancelable for cancelabla mode.
2263 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
2264 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
2265 macros.
2266 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
2267 * sysdeps/posix/waitid.c (__sigwait): Likewise.
2268 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
2269 SYSCALL_CANCEL_NCS): New macro.
2270 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
2271 (lll_timedwait_tid): Remove macro.
2272 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
2273 Likewise.
2274 (lll_timedwait_tid): Likewise.
2275 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
2276 Likewise.
2277 (lll_timedwait_tid): Likewise.
2278 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
2279 Likewise.
2280 (lll_timedwait_tid): Likewise.
2281 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
2282 Use INTERNAL_SYSCALL_CANCEL.
2283 * sysdeps/unix/sysv/linux/futex-internal.h
2284 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
2285 instead of __pthread_{enable,disable}_asynccancel.
2286 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
2287 (lll_futex_wait_cancel): New macro.
2288
2289 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
2290 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
2291
2292 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
2293 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
2294
2295 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
2296 in backtrace analysis.
2297 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
2298 side-effects.
2299 (tf_send): Likewise.
2300
2301 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
2302 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
2303 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
2304 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
2305 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
2306 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
2307 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
2308 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
2309 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
2310 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
2311 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
2312 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
2313 Likewise.
2314 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
2315 tst-cancel-wrappers.sh.
2316 (generated): Remove tst-cancel-wrappers.out.
2317 (tst-cancel-wrappers.out): Remove rule.
2318 * nptl/tst-cancel-wrappers.sh: Remove file.
2319
2320 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
2321
2322 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
2323 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
2324 Update.
2325
2326 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2327
2328 [BZ #23640]
2329 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
2330 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
2331 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
2332 close-on-exec reset for adddup2 file action.
2333 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
2334
2335 2019-01-03 Zack Weinberg <zackw@panix.com>
2336
2337 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
2338 parameter. Only use deprecated scanf when __USE_GNU is defined
2339 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
2340 than 201103L, whichever is relevant for the language being compiled.
2341
2342 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
2343 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
2344 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
2345 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
2346 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
2347
2348 * libio/iovsscanf.c
2349 * libio/fwscanf.c
2350 * libio/iovswscanf.c
2351 * libio/swscanf.c
2352 * libio/vscanf.c
2353 * libio/vwscanf.c
2354 * libio/wscanf.c
2355 * stdio-common/fscanf.c
2356 * stdio-common/scanf.c
2357 * stdio-common/vfscanf.c
2358 * stdio-common/vfwscanf.c
2359 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
2360 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
2361 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
2362 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
2363 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
2364 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
2365 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
2366 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
2367 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
2368 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
2369 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
2370 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
2371 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
2372 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
2373 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
2374
2375 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
2376 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
2377 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
2378 not sscanf.
2379 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
2380 with a preprocessor macro.
2381
2382 * stdio-common/bug21.c, stdio-common/scanf14.c:
2383 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
2384 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
2385 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
2386 to xscanf, xfscanf, xsscanf.
2387
2388 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
2389 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
2390 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
2391 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
2392 xfscanf, xsscanf.
2393 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
2394 override feature selection macros or provide definitions of u_char etc.
2395 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
2396 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
2397 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
2398 with -std=gnu89.
2399
2400 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2401
2402 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2403 bits/termios-misc.h.
2404 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
2405 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2406 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2407 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2408 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
2409 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
2410
2411 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
2412 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
2413 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
2414 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
2415 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
2416 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
2417 termios-misc.h.
2418 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
2419 (sysdep_headers): Add termios-misc.h.
2420
2421 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
2422 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2423 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2424
2425 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2426 termios-tcflow.h.
2427 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
2428 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
2429 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
2430 TCSAFLUSH): Move to termios-tcflow.h.
2431 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2432 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2433 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2434 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2435
2436 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2437 termios-c_lflag.h.
2438 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
2439 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
2440 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
2441 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
2442 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
2443 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
2444 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
2445 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
2446 Likewise.
2447 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2448 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2449 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2450 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2451
2452 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2453 termios-c_cflag.h.
2454 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
2455 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
2456 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
2457 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
2458 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
2459 termios-c_cflag.h.
2460 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2461 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2462 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2463 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2464
2465 [BZ #23783]
2466 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2467 termios-baud.h.
2468 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
2469 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
2470 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
2471 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
2472 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
2473 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
2474 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
2475 __MAX_BAUD): Move to termios-baud.h.
2476 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
2477 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
2478 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2479 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2480 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2481
2482 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
2483 termios-c_oflag.h.
2484 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
2485 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
2486 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
2487 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
2488 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
2489 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
2490 termios-c_oflag.h.
2491 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
2492 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
2493 FFR1): Likewise.
2494 [USE_MISC] (XTABS): Likewise.
2495 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2496 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2497 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2498 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
2499
2500 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
2501 termios-c_iflag.h.
2502 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
2503 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
2504 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
2505 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
2506 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
2507 IUTF8): Move to termios-c_iflag.h.
2508 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2509 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2510 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2511 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2512
2513 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
2514 termios-cc.h.
2515 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
2516 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
2517 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
2518 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
2519 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
2520 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
2521 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
2522 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
2523 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2524 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2525 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2526 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2527
2528 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
2529 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
2530 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
2531 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
2532 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2533 termios-struct.h.
2534 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
2535 termios-struct.h.
2536 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
2537 Likewise.
2538 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
2539 Likewise.
2540 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
2541 Likewise.
2542 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
2543 Likewise.
2544 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
2545 _HAVE_C_OSPEED): Define.
2546 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
2547 _HAVE_C_OSPEED): Likewise.
2548 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
2549 _HAVE_C_OSPEED): Likewise.
2550 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
2551 (cfsetospeed): Check for define value instead of existence.
2552 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
2553 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
2554 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
2555 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
2556 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
2557
2558 [BZ #17783]
2559 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
2560 Define.
2561 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
2562 (TIOCSER_TEMT): Likewise.
2563 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
2564 (TEOCSER_TEMT): Likewise.
2565
2566 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
2567
2568 [BZ #24011]
2569 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
2570
2571 2019-01-02 Joseph Myers <joseph@codesourcery.com>
2572
2573 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
2574
2575 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
2576
2577 * sysdeps/htl/pt-barrierattr-setpshared.c
2578 (pthread_barrierattr_setpshared): Add stub warning.
2579 * sysdeps/htl/pt-condattr-setpshared.c
2580 (pthread_condattr_setpshared): Likewise.
2581 * sysdeps/htl/pt-mutexattr-setpshared.c
2582 (pthread_mutexattr_setpshared): Likewise.
2583 * sysdeps/htl/pt-rwlockattr-setpshared.c
2584 (pthread_rwlockattr_setpshared): Likewise.
2585 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
2586 (pthread_mutexattr_setpshared): Likewise.
2587
2588 2019-01-02 Joseph Myers <joseph@codesourcery.com>
2589
2590 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
2591 constants to match with Linux 4.20.
2592
2593 * sysdeps/mips/mips32/libm-test-ulps: Update.
2594 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
2595
2596 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
2597
2598 [BZ #24034]
2599 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
2600 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
2601 than __typeof (...) for the a_ptr variable.
2602
2603 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2604
2605 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
2606 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
2607 * libio/Makefile (tests): Add tst-sprintf-ub and
2608 tst-sprintf-chk-ub.
2609 (CFLAGS-tst-sprintf-ub.c): New variable.
2610 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
2611 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
2612 destination buffer and check for overflows in fortified mode.
2613 * libio/libioP.h (PRINTF_CHK): New macro.
2614 * libio/tst-sprintf-chk-ub.c: New file.
2615 * libio/tst-sprintf-ub.c: Likewise.
2616
2617 2019-01-02 Florian Weimer <fweimer@redhat.com>
2618
2619 [BZ #24018]
2620 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
2621 failure.
2622
2623 2019-01-02 Florian Weimer <fweimer@redhat.com>
2624
2625 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
2626
2627 2019-01-01 Joseph Myers <joseph@codesourcery.com>
2628
2629 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
2630 macro.
2631
2632 * sysdeps/unix/sysv/linux/netpacket/packet.h
2633 (PACKET_IGNORE_OUTGOING): New macro.
2634
2635 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
2636 macro.
2637
2638 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
2639 version to 4.20.
2640 (riscv_flush_icache): New syscall.
2641
2642 * manual/texinfo.tex: Update to version 2018-12-28.17 with
2643 trailing whitespace removed.
2644 * scripts/config.guess: Update to version 2019-01-01.
2645 * scripts/config.sub: Update to version 2019-01-01.
2646 * scripts/move-if-change: Update from gnulib.
2647
2648 * NEWS: Update copyright dates.
2649 * catgets/gencat.c (print_version): Likewise.
2650 * csu/version.c (banner): Likewise.
2651 * debug/catchsegv.sh: Likewise.
2652 * debug/pcprofiledump.c (print_version): Likewise.
2653 * debug/xtrace.sh (do_version): Likewise.
2654 * elf/ldconfig.c (print_version): Likewise.
2655 * elf/ldd.bash.in: Likewise.
2656 * elf/pldd.c (print_version): Likewise.
2657 * elf/sotruss.sh: Likewise.
2658 * elf/sprof.c (print_version): Likewise.
2659 * iconv/iconv_prog.c (print_version): Likewise.
2660 * iconv/iconvconfig.c (print_version): Likewise.
2661 * locale/programs/locale.c (print_version): Likewise.
2662 * locale/programs/localedef.c (print_version): Likewise.
2663 * login/programs/pt_chown.c (print_version): Likewise.
2664 * malloc/memusage.sh (do_version): Likewise.
2665 * malloc/memusagestat.c (print_version): Likewise.
2666 * malloc/mtrace.pl: Likewise.
2667 * manual/libc.texinfo: Likewise.
2668 * nptl/version.c (banner): Likewise.
2669 * nscd/nscd.c (print_version): Likewise.
2670 * nss/getent.c (print_version): Likewise.
2671 * nss/makedb.c (print_version): Likewise.
2672 * posix/getconf.c (main): Likewise.
2673 * scripts/test-installation.pl: Likewise.
2674 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2675
2676 * All files with FSF copyright notices: Update copyright dates
2677 using scripts/update-copyrights.
2678 * locale/programs/charmap-kw.h: Regenerated.
2679 * locale/programs/locfile-kw.h: Likewise.
2680
2681 2018-12-31 Joseph Myers <joseph@codesourcery.com>
2682
2683 * timezone/zdump.c: Update from tzcode 2018i.
2684 * timezone/zic.c: Likewise.
2685
2686 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
2687
2688 regex: improve Gnulib port to AIX
2689 From the glibc point of view, this removes duplicate macro
2690 definitions and is obviously safe.
2691 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
2692 * posix/regex_internal.h:
2693 (__attribute__, __attribute_warn_unused_result__):
2694 Remove; already defined elsewhere.
2695
2696 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
2697
2698 [BZ #24027]
2699 * malloc/malloc.c (_int_realloc): Always call memcpy for the
2700 copying operation. (ncopies had the wrong type, resulting in an
2701 integer wraparound and too few elements being copied.)
2702
2703 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
2704
2705 [BZ #24022]
2706 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
2707 <asm/syscalls.h> exists with __has_include__ before including it.
2708
2709 2018-12-31 Joseph Myers <joseph@codesourcery.com>
2710
2711 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2712 version to 4.20.
2713
2714 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
2715
2716 * hurd/lookup-retry: Include <unistd.h>.
2717 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
2718 Release it on return. Handle "pid" magical lookup retry.
2719
2720 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
2721
2722 [BZ #10496]
2723 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
2724 (t_fmt_ampm): Likewise.
2725 * localedata/locales/aa_ER (t_fmt): Likewise.
2726 (t_fmt_ampm): Likewise.
2727 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
2728 (t_fmt_ampm): Likewise.
2729 * localedata/locales/aa_ET (t_fmt): Likewise.
2730 (t_fmt_ampm): Likewise.
2731 * localedata/locales/am_ET (t_fmt): Likewise.
2732 (t_fmt_ampm): Likewise.
2733 * localedata/locales/byn_ER (t_fmt): Likewise.
2734 (t_fmt_ampm): Likewise.
2735 * localedata/locales/om_ET (t_fmt): Likewise.
2736 (t_fmt_ampm): Likewise.
2737 * localedata/locales/sid_ET (t_fmt): Likewise.
2738 (t_fmt_ampm): Likewise.
2739 * localedata/locales/so_DJ (t_fmt): Likewise.
2740 (t_fmt_ampm): Likewise.
2741 * localedata/locales/so_ET (t_fmt): Likewise.
2742 (t_fmt_ampm): Likewise.
2743 * localedata/locales/so_SO (t_fmt): Likewise.
2744 (t_fmt_ampm): Likewise.
2745 * localedata/locales/ti_ER (t_fmt): Likewise.
2746 (t_fmt_ampm): Likewise.
2747 * localedata/locales/ti_ET (t_fmt): Likewise.
2748 (t_fmt_ampm): Likewise.
2749 * localedata/locales/tig_ER (t_fmt): Likewise.
2750 (t_fmt_ampm): Likewise.
2751 * localedata/locales/wal_ET (t_fmt): Likewise.
2752 (t_fmt_ampm): Likewise.
2753
2754 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
2755 * localedata/locales/ar_IN (t_fmt): Likewise.
2756 * localedata/locales/bhb_IN (t_fmt): Likewise.
2757 * localedata/locales/bho_IN (t_fmt): Likewise.
2758 * localedata/locales/bi_VU (t_fmt): Likewise.
2759 * localedata/locales/bn_BD (t_fmt): Likewise.
2760 * localedata/locales/bn_IN (t_fmt): Likewise.
2761 * localedata/locales/brx_IN (t_fmt): Likewise.
2762 * localedata/locales/doi_IN (t_fmt): Likewise.
2763 * localedata/locales/en_HK (t_fmt): Likewise.
2764 (t_fmt_ampm): Likewise.
2765 * localedata/locales/en_IN (t_fmt): Likewise.
2766 * localedata/locales/en_PH (t_fmt): Likewise.
2767 * localedata/locales/gu_IN (t_fmt): Likewise.
2768 * localedata/locales/hi_IN (t_fmt): Likewise.
2769 * localedata/locales/hif_FJ (t_fmt): Likewise.
2770 * localedata/locales/hne_IN (t_fmt): Likewise.
2771 * localedata/locales/kn_IN (t_fmt): Likewise.
2772 * localedata/locales/kok_IN (t_fmt): Likewise.
2773 * localedata/locales/ks_IN (t_fmt): Likewise.
2774 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
2775 * localedata/locales/mag_IN (t_fmt): Likewise.
2776 * localedata/locales/mai_IN (t_fmt): Likewise.
2777 * localedata/locales/mjw_IN (t_fmt): Likewise.
2778 * localedata/locales/ml_IN (t_fmt): Likewise.
2779 * localedata/locales/mni_IN (t_fmt): Likewise.
2780 * localedata/locales/mr_IN (t_fmt): Likewise.
2781 * localedata/locales/ms_MY (t_fmt): Likewise.
2782 * localedata/locales/pa_IN (t_fmt): Likewise.
2783 * localedata/locales/raj_IN (t_fmt): Likewise.
2784 * localedata/locales/sa_IN (t_fmt): Likewise.
2785 * localedata/locales/sat_IN (t_fmt): Likewise.
2786 * localedata/locales/sd_IN (t_fmt): Likewise.
2787 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
2788 * localedata/locales/tcy_IN (t_fmt): Likewise.
2789 * localedata/locales/the_NP (t_fmt): Likewise.
2790 * localedata/locales/to_TO (t_fmt): Likewise.
2791 * localedata/locales/ur_IN (t_fmt): Likewise.
2792
2793 * localedata/locales/hif_FJ (d_t_fmt): Set to
2794 "%A %d %b %Y %I:%M:%S %p".
2795 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
2796
2797 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
2798 * localedata/locales/ar_BH (t_fmt): Likewise.
2799 * localedata/locales/ar_DZ (t_fmt): Likewise.
2800 * localedata/locales/ar_EG (t_fmt): Likewise.
2801 * localedata/locales/ar_IQ (t_fmt): Likewise.
2802 * localedata/locales/ar_JO (t_fmt): Likewise.
2803 * localedata/locales/ar_KW (t_fmt): Likewise.
2804 * localedata/locales/ar_LB (t_fmt): Likewise.
2805 * localedata/locales/ar_LY (t_fmt): Likewise.
2806 * localedata/locales/ar_OM (t_fmt): Likewise.
2807 * localedata/locales/ar_QA (t_fmt): Likewise.
2808 * localedata/locales/ar_SD (t_fmt): Likewise.
2809 * localedata/locales/ar_SS (t_fmt): Likewise.
2810 * localedata/locales/ar_SY (t_fmt): Likewise.
2811 * localedata/locales/ar_TN (t_fmt): Likewise.
2812 * localedata/locales/ar_YE (t_fmt): Likewise.
2813
2814 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
2815 (t_fmt_ampm): Likewise.
2816 * localedata/locales/gez_ET (t_fmt): Likewise.
2817 (t_fmt_ampm): Likewise.
2818
2819 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
2820 (t_fmt_ampm): Likewise.
2821 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
2822
2823 * localedata/locales/zh_HK (t_fmt):
2824 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
2825
2826 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
2827 because this locale does not use the 12-hour clock.
2828 (t_fmt): Set to "%Z %H:%M:%S".
2829 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
2830
2831 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
2832 because this locale does not use the 12-hour clock.
2833 (t_fmt): Set to "%H:%M:%S %Z".
2834 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
2835
2836 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
2837 because this locale does not use the 12-hour clock.
2838 (t_fmt): Set to "%T".
2839 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
2840 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
2841
2842 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
2843 because this locale does not use the 12-hour clock.
2844 (t_fmt): Set to "%H:%M:%S %Z".
2845 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
2846
2847 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
2848 because this locale does not use the 12-hour clock.
2849 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
2850 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
2851
2852 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
2853
2854 [BZ #10496]
2855 [BZ #23724]
2856 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
2857 (t_fmt_ampm): Likewise.
2858 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
2859 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
2860 (d_fmt): Set to "%-d.%-m.%y".
2861
2862 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2863
2864 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
2865 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
2866 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
2867 Likewise.
2868 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
2869 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
2870 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
2871 function.
2872 * support/blob_repeat.c (check_mul_overflow_size_t,
2873 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
2874
2875 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
2876
2877 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
2878
2879 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
2880
2881 regex: simplify Gnulib port
2882 This simplifies the code, by removing stuff intended for porting
2883 to Gnulib but no longer needed there.
2884 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
2885 uses of libc_hidden_def, weak_alias.
2886 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
2887 _Restrict_ except for public-facing headers.
2888 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
2889 Remove; already defined elsewhere.
2890 * posix/regex.c, posix/regex_internal.h:
2891 Use __GNUC_PREREQ instead of rolling our own.
2892 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
2893
2894 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
2895
2896 * benchtests/bench-strlen.c (generic_strlen): New function.
2897 (memchr_strlen): New function.
2898
2899 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2900
2901 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
2902 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
2903 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
2904
2905 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2906
2907 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
2908
2909 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2910
2911 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
2912 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
2913 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
2914 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
2915 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
2916 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
2917 <sysdeps/ieee754/flt-32/s_sincosf.c>.
2918
2919 2018-12-21 Joseph Myers <joseph@codesourcery.com>
2920
2921 [BZ #24023]
2922 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
2923 PLT reference in libc.so.
2924 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
2925 _Q_lltoq and _Q_qtod PLT references in libc.so.
2926
2927 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
2928
2929 * benchtests/bench-memchr.c: Cleanup defines.
2930 * benchtests/bench-memcmp.c: Likewise.
2931 * benchtests/bench-memset.c: Likewise.
2932 * benchtests/bench-memset-large.c: Likewise.
2933 * benchtests/bench-memset-walk.c: Likewise.
2934 * benchtests/bench-stpcpy.c: Likewise.
2935 * benchtests/bench-stpncpy.c: Likewise.
2936 * benchtests/bench-strcat.c: Likewise.
2937 * benchtests/bench-strchr.c: Likewise.
2938 * benchtests/bench-strcmp.c: Likewise.
2939 * benchtests/bench-strcpy.c: Likewise.
2940 * benchtests/bench-strcspn.c: Likewise.
2941 * benchtests/bench-string.h: Likewise.
2942 * benchtests/bench-strlen.c: Likewise.
2943 * benchtests/bench-strncat.c: Likewise.
2944 * benchtests/bench-strncmp.c: Likewise.
2945 * benchtests/bench-strncpy.c: Likewise.
2946 * benchtests/bench-strnlen.c: Likewise.
2947 * benchtests/bench-strpbrk.c: Likewise.
2948 * benchtests/bench-strrchr.c: Likewise.
2949 * benchtests/bench-strspn.c: Likewise.
2950
2951 2018-12-21 Joseph Myers <joseph@codesourcery.com>
2952
2953 * stdlib/longlong.h: Update from GCC.
2954
2955 [BZ #23993]
2956 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
2957 * configure: Regenerated.
2958 * manual/install.texi (Tools for Compilation): Update minimum GCC
2959 version.
2960 * INSTALL: Regenerated.
2961
2962 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
2963
2964 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
2965
2966 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
2967
2968 * malloc/malloc.c (mremap_chunk): Additional checks.
2969
2970 2018-12-21 Mao Han <han_mao@c-sky.com>
2971
2972 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
2973 * scripts/build-many-glibcs.py: Add C-SKY targets.
2974 * sysdeps/csky/Implies: New file.
2975 * sysdeps/csky/Makefile: Likewise.
2976 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
2977 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
2978 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
2979 * sysdeps/csky/abiv2/memcmp.S: Likewise.
2980 * sysdeps/csky/abiv2/memcpy.S: Likewise.
2981 * sysdeps/csky/abiv2/memmove.S: Likewise.
2982 * sysdeps/csky/abiv2/memset.S: Likewise.
2983 * sysdeps/csky/abiv2/setjmp.S: Likewise.
2984 * sysdeps/csky/abiv2/start.S: Likewise.
2985 * sysdeps/csky/abiv2/strcmp.S: Likewise.
2986 * sysdeps/csky/abiv2/strcpy.S: Likewise.
2987 * sysdeps/csky/abiv2/strlen.S: Likewise.
2988 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
2989 * sysdeps/csky/abort-instr.h: Likewise.
2990 * sysdeps/csky/atomic-machine.h: Likewise.
2991 * sysdeps/csky/bits/endian.h: Likewise.
2992 * sysdeps/csky/bits/fenv.h: Likewise.
2993 * sysdeps/csky/bits/link.h: Likewise.
2994 * sysdeps/csky/bits/setjmp.h: Likewise.
2995 * sysdeps/csky/bsd-_setjmp.S: Likewise.
2996 * sysdeps/csky/bsd-setjmp.S: Likewise.
2997 * sysdeps/csky/configure: Likewise.
2998 * sysdeps/csky/configure.ac: Likewise.
2999 * sysdeps/csky/dl-machine.h: Likewise.
3000 * sysdeps/csky/dl-procinfo.c: Likewise.
3001 * sysdeps/csky/dl-procinfo.h: Likewise.
3002 * sysdeps/csky/dl-sysdep.h: Likewise.
3003 * sysdeps/csky/dl-tls.h: Likewise.
3004 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
3005 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
3006 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
3007 * sysdeps/csky/fpu/fegetenv.c: Likewise.
3008 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
3009 * sysdeps/csky/fpu/fegetmode.c: Likewise.
3010 * sysdeps/csky/fpu/fegetround.c: Likewise.
3011 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
3012 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
3013 * sysdeps/csky/fpu/fenv_private.h: Likewise.
3014 * sysdeps/csky/fpu/fesetenv.c: Likewise.
3015 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
3016 * sysdeps/csky/fpu/fesetmode.c: Likewise.
3017 * sysdeps/csky/fpu/fesetround.c: Likewise.
3018 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
3019 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
3020 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
3021 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
3022 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
3023 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
3024 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
3025 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
3026 * sysdeps/csky/fpu_control.h: Likewise.
3027 * sysdeps/csky/gccframe.h: Likewise.
3028 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
3029 * sysdeps/csky/ldsodefs.h: Likewise.
3030 * sysdeps/csky/libc-tls.c: Likewise.
3031 * sysdeps/csky/linkmap.h: Likewise.
3032 * sysdeps/csky/machine-gmon.h: Likewise.
3033 * sysdeps/csky/memusage.h: Likewise.
3034 * sysdeps/csky/nofpu/Implies: Likewise.
3035 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
3036 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
3037 * sysdeps/csky/nptl/Makefile: Likewise.
3038 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
3039 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
3040 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
3041 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
3042 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
3043 * sysdeps/csky/nptl/tls.h: Likewise.
3044 * sysdeps/csky/preconfigure: Likewise.
3045 * sysdeps/csky/sfp-machine.h: Likewise.
3046 * sysdeps/csky/sotruss-lib.c: Likewise.
3047 * sysdeps/csky/stackinfo.h: Likewise.
3048 * sysdeps/csky/sysdep.h: Likewise.
3049 * sysdeps/csky/tininess.h: Likewise.
3050 * sysdeps/csky/tst-audit.h: Likewise.
3051 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
3052 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
3053 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
3054 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
3055 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
3056 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
3057 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
3058 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
3059 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
3060 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
3061 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
3062 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
3063 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
3064 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
3065 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
3066 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
3067 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
3068 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
3069 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
3070 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
3071 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
3072 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
3073 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
3074 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
3075 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
3076 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
3077 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
3078 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
3079 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
3080 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
3081 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
3082 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
3083 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
3084 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
3085 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
3086 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
3087 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
3088 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
3089 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
3090 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
3091 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
3092 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
3093 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
3094 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
3095
3096 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
3097
3098 * include/time.h (__difftime64): Add.
3099 * time/difftime.c (subtract): convert to 64-bit time.
3100 * time/difftime.c (__difftime64): Add.
3101 * time/difftime.c (__difftime): Wrap around __difftime64.
3102
3103 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
3104
3105 * manual/examples/add.c: Remove redundant "if not".
3106 * manual/examples/argp-ex1.c: Likewise.
3107 * manual/examples/argp-ex2.c: Likewise.
3108 * manual/examples/argp-ex3.c: Likewise.
3109 * manual/examples/argp-ex4.c: Likewise.
3110 * manual/examples/atexit.c: Likewise.
3111 * manual/examples/db.c: Likewise.
3112 * manual/examples/dir.c: Likewise.
3113 * manual/examples/dir2.c: Likewise.
3114 * manual/examples/execinfo.c: Likewise.
3115 * manual/examples/filecli.c: Likewise.
3116 * manual/examples/filesrv.c: Likewise.
3117 * manual/examples/fmtmsgexpl.c: Likewise.
3118 * manual/examples/genpass.c: Likewise.
3119 * manual/examples/inetcli.c: Likewise.
3120 * manual/examples/inetsrv.c: Likewise.
3121 * manual/examples/isockad.c: Likewise.
3122 * manual/examples/longopt.c: Likewise.
3123 * manual/examples/memopen.c: Likewise.
3124 * manual/examples/memstrm.c: Likewise.
3125 * manual/examples/mkdirent.c: Likewise.
3126 * manual/examples/mkfsock.c: Likewise.
3127 * manual/examples/mkisock.c: Likewise.
3128 * manual/examples/mygetpass.c: Likewise.
3129 * manual/examples/pipe.c: Likewise.
3130 * manual/examples/popen.c: Likewise.
3131 * manual/examples/rprintf.c: Likewise.
3132 * manual/examples/search.c: Likewise.
3133 * manual/examples/select.c: Likewise.
3134 * manual/examples/setjmp.c: Likewise.
3135 * manual/examples/sigh1.c: Likewise.
3136 * manual/examples/sigusr.c: Likewise.
3137 * manual/examples/stpcpy.c: Likewise.
3138 * manual/examples/strdupa.c: Likewise.
3139 * manual/examples/strftim.c: Likewise.
3140 * manual/examples/subopt.c: Likewise.
3141 * manual/examples/swapcontext.c: Likewise.
3142 * manual/examples/termios.c: Likewise.
3143 * manual/examples/testopt.c: Likewise.
3144 * manual/examples/testpass.c: Likewise.
3145 * manual/examples/timeval_subtract.c: Likewise.
3146
3147 2018-12-19 Joseph Myers <joseph@codesourcery.com>
3148
3149 * sysdeps/x86/fpu/math_private.h: New file.
3150 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
3151
3152 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
3153 definition.
3154 (cosh): Likewise.
3155 (tanh): Likewise.
3156
3157 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3158
3159 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
3160 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
3161 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
3162 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
3163 fields.
3164 (_dl_show_auxv): Give a special treatment to
3165 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
3166 and AT_L3_CACHEGEOMETRY.
3167 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
3168 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
3169 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
3170 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
3171
3172 2018-12-19 Andreas Schwab <schwab@suse.de>
3173
3174 * nscd/connections.c (check_use): Don't abort on invalid len.
3175
3176 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
3177
3178 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
3179 values in the 64bit value cases.
3180
3181 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
3182
3183 * include/time.h
3184 (__ctime64_r): Add.
3185 * time/ctime_r.c
3186 (__ctime64_r): Add.
3187 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
3188
3189 * include/time.h
3190 (__ctime64): Add.
3191 * time/gmtime.c
3192 (__ctime64): Add.
3193 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
3194
3195 * include/time.h
3196 (__gmtime64_r): Add.
3197 * time/gmtime.c
3198 (__gmtime64_r): Add.
3199 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
3200
3201 * include/time.h
3202 (__gmtime64): Add.
3203 * time/gmtime.c
3204 (__gmtime64): Add.
3205 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
3206
3207 * include/time.h
3208 (__localtime64_r): Add.
3209 * time/localtime.c
3210 (__localtime64_r): Add.
3211 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
3212
3213 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3214
3215 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
3216 kernel_sigction definition.
3217
3218 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
3219
3220 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
3221
3222 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
3223 __syscall_rt_sigaction.
3224 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
3225 (kernel_sigaction): Use Linux generic defintion.
3226 (STUB): Define.
3227 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
3228 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
3229 (__syscall_rt_sigaction): Remove implementation.
3230 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
3231 hidden.
3232 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
3233 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
3234 INTERNAL_SYSCALL): Remove definitions.
3235 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
3236 action and signal set size.
3237 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
3238 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
3239
3240 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3241 James Clarke <jrtc27@jrtc27.com>
3242
3243 [BZ #23967]
3244 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
3245 Define if SA_RESTORER is defined.
3246 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
3247 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
3248 already defined.
3249 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
3250 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
3251 definitions.
3252 (HAS_SA_RESTORER): Define.
3253 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
3254 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
3255 (HAS_SA_RESTORER): Define.
3256 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
3257 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
3258 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
3259 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
3260 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
3261
3262 2018-12-18 Joseph Myers <joseph@codesourcery.com>
3263
3264 * sysdeps/unix/sysv/linux/kernel-features.h
3265 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
3266 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3267 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
3268 * sysdeps/unix/sysv/linux/sh/kernel-features.h
3269 (__ASSUME_ST_INO_64_BIT): Likewise.
3270 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
3271 <kernel-features.h>.
3272 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
3273 Remove conditional code.
3274 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
3275 <kernel-features.h>.
3276 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
3277 Remove conditional code.
3278 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
3279 <kernel-features.h>.
3280 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
3281 Remove conditional code.
3282 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
3283 <kernel-features.h>.
3284 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
3285 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
3286
3287 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3288
3289 * sysdeps/s390/multiarch/ifunc-resolve.h
3290 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
3291 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
3292 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
3293 Delete macro definition.
3294 (s390_libc_ifunc_init): Rename to
3295 s390_libc_ifunc_expr_stfle_init.
3296 * sysdeps/s390/bzero: Use
3297 s390_libc_ifunc_expr_stfle_init instead of
3298 s390_libc_ifunc_init.
3299 * sysdeps/s390/memcmp.c: Likewise.
3300 * sysdeps/s390/memcpy.c: Likewise.
3301 * sysdeps/s390/mempcpy.c: Likewise.
3302 * sysdeps/s390/memset.c: Likewise.
3303
3304 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3305
3306 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
3307 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
3308
3309 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3310
3311 * sysdeps/s390/multiarch/Makefile
3312 (sysdep_routines): Remove wmemcmp variants.
3313 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
3314 * sysdeps/s390/multiarch/ifunc-impl-list.c
3315 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
3316 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
3317 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
3318 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
3319 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
3320 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
3321 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
3322 * sysdeps/s390/ifunc-wmemcmp.h: New file.
3323
3324 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3325
3326 * sysdeps/s390/multiarch/Makefile
3327 (sysdep_routines): Remove wmemset variants.
3328 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
3329 * sysdeps/s390/multiarch/ifunc-impl-list.c
3330 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
3331 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
3332 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
3333 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
3334 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
3335 * sysdeps/s390/multiarch/wmemset.c: Move to ...
3336 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
3337 * sysdeps/s390/ifunc-wmemset.h: New file.
3338
3339 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3340
3341 * sysdeps/s390/multiarch/Makefile
3342 (sysdep_routines): Remove wmemchr variants.
3343 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
3344 * sysdeps/s390/multiarch/ifunc-impl-list.c
3345 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
3346 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
3347 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
3348 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
3349 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
3350 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
3351 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
3352 * sysdeps/s390/ifunc-wmemchr.h: New file.
3353
3354 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3355
3356 * sysdeps/s390/multiarch/Makefile
3357 (sysdep_routines): Remove wcscspn variants.
3358 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
3359 * sysdeps/s390/multiarch/ifunc-impl-list.c
3360 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
3361 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
3362 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
3363 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
3364 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
3365 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
3366 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
3367 * sysdeps/s390/ifunc-wcscspn.h: New file.
3368
3369 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3370
3371 * sysdeps/s390/multiarch/Makefile
3372 (sysdep_routines): Remove wcspbrk variants.
3373 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
3374 * sysdeps/s390/multiarch/ifunc-impl-list.c
3375 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
3376 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
3377 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
3378 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
3379 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
3380 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
3381 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
3382 * sysdeps/s390/ifunc-wcspbrk.h: New file.
3383
3384 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3385
3386 * sysdeps/s390/multiarch/Makefile
3387 (sysdep_routines): Remove wcsspn variants.
3388 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
3389 * sysdeps/s390/multiarch/ifunc-impl-list.c
3390 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
3391 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
3392 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
3393 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
3394 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
3395 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
3396 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
3397 * sysdeps/s390/ifunc-wcsspn.h: New file.
3398
3399 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3400
3401 * sysdeps/s390/multiarch/Makefile
3402 (sysdep_routines): Remove wcsrchr variants.
3403 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
3404 * sysdeps/s390/multiarch/ifunc-impl-list.c
3405 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
3406 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
3407 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
3408 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
3409 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
3410 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
3411 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
3412 * sysdeps/s390/ifunc-wcsrchr.h: New file.
3413
3414 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3415
3416 * sysdeps/s390/multiarch/Makefile
3417 (sysdep_routines): Remove wcschrnul variants.
3418 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
3419 * sysdeps/s390/multiarch/ifunc-impl-list.c
3420 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
3421 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
3422 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
3423 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
3424 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
3425 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
3426 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
3427 * sysdeps/s390/ifunc-wcschrnul.h: New file.
3428
3429 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3430
3431 * sysdeps/s390/multiarch/Makefile
3432 (sysdep_routines): Remove wcschr variants.
3433 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
3434 * sysdeps/s390/multiarch/ifunc-impl-list.c
3435 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
3436 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
3437 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
3438 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
3439 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
3440 * sysdeps/s390/multiarch/wcschr.c: Move to ...
3441 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
3442 * sysdeps/s390/ifunc-wcschr.h: New file.
3443
3444 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3445
3446 * sysdeps/s390/multiarch/Makefile
3447 (sysdep_routines): Remove wcsncmp variants.
3448 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
3449 * sysdeps/s390/multiarch/ifunc-impl-list.c
3450 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
3451 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
3452 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
3453 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
3454 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
3455 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
3456 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
3457 * sysdeps/s390/ifunc-wcsncmp.h: New file.
3458
3459 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3460
3461 * sysdeps/s390/multiarch/Makefile
3462 (sysdep_routines): Remove wcscmp variants.
3463 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
3464 * sysdeps/s390/multiarch/ifunc-impl-list.c
3465 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
3466 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
3467 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
3468 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
3469 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
3470 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
3471 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
3472 * sysdeps/s390/ifunc-wcscmp.h: New file.
3473
3474 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3475
3476 * sysdeps/s390/multiarch/Makefile
3477 (sysdep_routines): Remove wcsncat variants.
3478 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
3479 * sysdeps/s390/multiarch/ifunc-impl-list.c
3480 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
3481 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
3482 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
3483 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
3484 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
3485 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
3486 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
3487 * sysdeps/s390/ifunc-wcsncat.h: New file.
3488
3489 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3490
3491 * sysdeps/s390/multiarch/Makefile
3492 (sysdep_routines): Remove wcscat variants.
3493 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
3494 * sysdeps/s390/multiarch/ifunc-impl-list.c
3495 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
3496 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
3497 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
3498 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
3499 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
3500 * sysdeps/s390/multiarch/wcscat.c: Move to ...
3501 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
3502 * sysdeps/s390/ifunc-wcscat.h: New file.
3503
3504 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3505
3506 * sysdeps/s390/multiarch/Makefile
3507 (sysdep_routines): Remove wcpncpy variants.
3508 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
3509 * sysdeps/s390/multiarch/ifunc-impl-list.c
3510 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
3511 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
3512 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
3513 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
3514 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
3515 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
3516 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
3517 * sysdeps/s390/ifunc-wcpncpy.h: New file.
3518
3519 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3520
3521 * sysdeps/s390/multiarch/Makefile
3522 (sysdep_routines): Remove wcsncpy variants.
3523 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
3524 * sysdeps/s390/multiarch/ifunc-impl-list.c
3525 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
3526 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
3527 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
3528 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
3529 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
3530 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
3531 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
3532 * sysdeps/s390/ifunc-wcsncpy.h: New file.
3533
3534 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3535
3536 * sysdeps/s390/multiarch/Makefile
3537 (sysdep_routines): Remove wcpcpy variants.
3538 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
3539 * sysdeps/s390/multiarch/ifunc-impl-list.c
3540 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
3541 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
3542 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
3543 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
3544 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
3545 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
3546 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
3547 * sysdeps/s390/ifunc-wcpcpy.h: New file.
3548
3549 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3550
3551 * sysdeps/s390/multiarch/Makefile
3552 (sysdep_routines): Remove wcscpy variants.
3553 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
3554 * sysdeps/s390/multiarch/ifunc-impl-list.c
3555 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
3556 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
3557 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
3558 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
3559 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
3560 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
3561 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
3562 * sysdeps/s390/ifunc-wcscpy.h: New file.
3563
3564 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3565
3566 * sysdeps/s390/multiarch/Makefile
3567 (sysdep_routines): Remove wcsnlen variants.
3568 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
3569 * sysdeps/s390/multiarch/ifunc-impl-list.c
3570 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
3571 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
3572 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
3573 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
3574 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
3575 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
3576 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
3577 * sysdeps/s390/ifunc-wcsnlen.h: New file.
3578
3579 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3580
3581 * sysdeps/s390/multiarch/Makefile
3582 (sysdep_routines): Remove wcslen variants.
3583 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
3584 * sysdeps/s390/multiarch/ifunc-impl-list.c
3585 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
3586 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
3587 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
3588 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
3589 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
3590 * sysdeps/s390/multiarch/wcslen.c: Move to ...
3591 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
3592 * sysdeps/s390/ifunc-wcslen.h: New file.
3593
3594 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3595
3596 * sysdeps/s390/multiarch/Makefile
3597 (sysdep_routines): Remove memrchr variants.
3598 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
3599 * sysdeps/s390/multiarch/ifunc-impl-list.c
3600 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
3601 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
3602 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
3603 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
3604 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
3605 * sysdeps/s390/multiarch/memrchr.c: Move to ...
3606 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
3607 * sysdeps/s390/ifunc-memrchr.h: New file.
3608
3609 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3610
3611 * sysdeps/s390/multiarch/Makefile
3612 (sysdep_routines): Remove memccpy variants.
3613 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
3614 * sysdeps/s390/multiarch/ifunc-impl-list.c
3615 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
3616 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
3617 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
3618 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
3619 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
3620 * sysdeps/s390/multiarch/memccpy.c: Move to ...
3621 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
3622 * sysdeps/s390/ifunc-memccpy.h: New file.
3623
3624 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3625
3626 * sysdeps/s390/multiarch/Makefile
3627 (sysdep_routines): Remove rawmemchr variants.
3628 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
3629 * sysdeps/s390/multiarch/ifunc-impl-list.c
3630 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
3631 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
3632 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
3633 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
3634 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
3635 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
3636 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
3637 * sysdeps/s390/ifunc-rawmemchr.h: New file.
3638
3639 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3640
3641 * sysdeps/s390/multiarch/Makefile
3642 (sysdep_routines): Remove memchr variants.
3643 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
3644 * sysdeps/s390/multiarch/ifunc-impl-list.c
3645 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
3646 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
3647 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
3648 * sysdeps/s390/multiarch/memchr.c: Move to ...
3649 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
3650 * sysdeps/s390/ifunc-memchr.h: New file.
3651 * sysdeps/s390/s390-64/memchr.S: Move to ...
3652 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
3653 for 31/64bit and ifunc handling.
3654 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
3655 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
3656 * sysdeps/s390/s390-32/memchr.S: Likewise.
3657
3658 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3659
3660 * sysdeps/s390/multiarch/Makefile
3661 (sysdep_routines): Remove strcspn variants.
3662 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
3663 * sysdeps/s390/multiarch/ifunc-impl-list.c
3664 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
3665 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
3666 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
3667 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
3668 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
3669 * sysdeps/s390/multiarch/strcspn.c: Move to ...
3670 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
3671 * sysdeps/s390/ifunc-strcspn.h: New file.
3672
3673 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3674
3675 * sysdeps/s390/multiarch/Makefile
3676 (sysdep_routines): Remove strpbrk variants.
3677 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
3678 * sysdeps/s390/multiarch/ifunc-impl-list.c
3679 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
3680 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
3681 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
3682 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
3683 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
3684 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
3685 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
3686 * sysdeps/s390/ifunc-strpbrk.h: New file.
3687
3688 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3689
3690 * sysdeps/s390/multiarch/Makefile
3691 (sysdep_routines): Remove strspn variants.
3692 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
3693 * sysdeps/s390/multiarch/ifunc-impl-list.c
3694 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
3695 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
3696 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
3697 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
3698 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
3699 * sysdeps/s390/multiarch/strspn.c: Move to ...
3700 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
3701 * sysdeps/s390/ifunc-strspn.h: New file.
3702
3703 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3704
3705 * sysdeps/s390/multiarch/Makefile
3706 (sysdep_routines): Remove strrchr variants.
3707 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
3708 * sysdeps/s390/multiarch/ifunc-impl-list.c
3709 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
3710 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
3711 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
3712 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
3713 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
3714 * sysdeps/s390/multiarch/strrchr.c: Move to ...
3715 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
3716 * sysdeps/s390/ifunc-strrchr.h: New file.
3717
3718 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3719
3720 * sysdeps/s390/multiarch/Makefile
3721 (sysdep_routines): Remove strchrnul variants.
3722 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
3723 * sysdeps/s390/multiarch/ifunc-impl-list.c
3724 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
3725 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
3726 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
3727 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
3728 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
3729 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
3730 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
3731 * sysdeps/s390/ifunc-strchrnul.h: New file.
3732
3733 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3734
3735 * sysdeps/s390/multiarch/Makefile
3736 (sysdep_routines): Remove strchr variants.
3737 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
3738 * sysdeps/s390/multiarch/ifunc-impl-list.c
3739 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
3740 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
3741 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
3742 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
3743 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
3744 * sysdeps/s390/multiarch/strchr.c: Move to ...
3745 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
3746 * sysdeps/s390/ifunc-strchr.h: New file.
3747
3748 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3749
3750 * sysdeps/s390/multiarch/Makefile
3751 (sysdep_routines): Remove strncmp variants.
3752 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
3753 * sysdeps/s390/multiarch/ifunc-impl-list.c
3754 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
3755 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
3756 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
3757 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
3758 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
3759 * sysdeps/s390/multiarch/strncmp.c: Move to ...
3760 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
3761 * sysdeps/s390/ifunc-strncmp.h: New file.
3762
3763 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3764
3765 * sysdeps/s390/multiarch/Makefile
3766 (sysdep_routines): Remove strcmp variants.
3767 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
3768 * sysdeps/s390/multiarch/ifunc-impl-list.c
3769 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
3770 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
3771 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
3772 * sysdeps/s390/multiarch/strcmp.c: Move to ...
3773 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
3774 * sysdeps/s390/ifunc-strcmp.h: New file.
3775 * sysdeps/s390/s390-64/strcmp.S: Move to ...
3776 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
3777 for 31/64bit and ifunc handling.
3778 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
3779 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
3780 * sysdeps/s390/s390-32/strcmp.S: Likewise.
3781
3782 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3783
3784 * sysdeps/s390/multiarch/Makefile
3785 (sysdep_routines): Remove strncat variants.
3786 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
3787 * sysdeps/s390/multiarch/ifunc-impl-list.c
3788 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
3789 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
3790 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
3791 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
3792 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
3793 * sysdeps/s390/multiarch/strncat.c: Move to ...
3794 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
3795 * sysdeps/s390/ifunc-strncat.h: New file.
3796
3797 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3798
3799 * sysdeps/s390/multiarch/Makefile
3800 (sysdep_routines): Remove strcat variants.
3801 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
3802 * sysdeps/s390/multiarch/ifunc-impl-list.c
3803 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
3804 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
3805 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
3806 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
3807 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
3808 * sysdeps/s390/multiarch/strcat.c: Move to ...
3809 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
3810 * sysdeps/s390/ifunc-strcat.h: New file.
3811
3812 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3813
3814 * sysdeps/s390/multiarch/Makefile
3815 (sysdep_routines): Remove stpncpy variants.
3816 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
3817 * sysdeps/s390/multiarch/ifunc-impl-list.c
3818 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
3819 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
3820 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
3821 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
3822 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
3823 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
3824 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
3825 * sysdeps/s390/ifunc-stpncpy.h: New file.
3826
3827 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3828
3829 * sysdeps/s390/multiarch/Makefile
3830 (sysdep_routines): Remove strncpy variants.
3831 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
3832 * sysdeps/s390/multiarch/ifunc-impl-list.c
3833 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
3834 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
3835 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
3836 * sysdeps/s390/multiarch/strncpy.c: Move to ...
3837 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
3838 * sysdeps/s390/ifunc-strncpy.h: New file.
3839 * sysdeps/s390/s390-64/strncpy.S: Move to ...
3840 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
3841 and adjust ifunc handling.
3842 * sysdeps/s390/s390-32/strncpy.S: Move to ...
3843 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
3844 and adjust ifunc handling.
3845 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
3846 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
3847
3848 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3849
3850 * sysdeps/s390/multiarch/Makefile
3851 (sysdep_routines): Remove stpcpy variants.
3852 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
3853 * sysdeps/s390/multiarch/ifunc-impl-list.c
3854 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
3855 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
3856 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
3857 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
3858 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
3859 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
3860 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
3861 * sysdeps/s390/ifunc-stpcpy.h: New file.
3862
3863 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3864
3865 * sysdeps/s390/multiarch/Makefile
3866 (sysdep_routines): Remove strcpy variants.
3867 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
3868 * sysdeps/s390/multiarch/ifunc-impl-list.c
3869 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
3870 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
3871 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
3872 * sysdeps/s390/multiarch/strcpy.c: Move to ...
3873 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
3874 * sysdeps/s390/ifunc-strcpy.h: New file.
3875 * sysdeps/s390/s390-64/strcpy.S: Move to ...
3876 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
3877 for 31/64bit and ifunc handling.
3878 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
3879 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
3880 * sysdeps/s390/s390-32/strcpy.S: Likewise.
3881
3882 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3883
3884 * sysdeps/s390/multiarch/Makefile
3885 (sysdep_routines): Remove strnlen variants.
3886 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
3887 * sysdeps/s390/multiarch/ifunc-impl-list.c
3888 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
3889 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
3890 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
3891 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
3892 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
3893 * sysdeps/s390/multiarch/strnlen.c: Move to ...
3894 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
3895 * sysdeps/s390/ifunc-strnlen.h: New file.
3896
3897 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3898
3899 * sysdeps/s390/multiarch/Makefile
3900 (sysdep_routines): Remove strlen variants.
3901 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
3902 * sysdeps/s390/multiarch/ifunc-impl-list.c
3903 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
3904 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
3905 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
3906 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
3907 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
3908 * sysdeps/s390/multiarch/strlen.c: Move to ...
3909 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
3910 * sysdeps/s390/ifunc-strlen.h: New file.
3911
3912 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3913
3914 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
3915 * sysdeps/s390/multiarch/ifunc-impl-list.c
3916 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
3917 * sysdeps/s390/ifunc-memmem.h: New file.
3918 * sysdeps/s390/memmem.c: Likewise.
3919 * sysdeps/s390/memmem-c.c: Likewise.
3920 * sysdeps/s390/memmem-vx.c: Likewise.
3921
3922 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3923
3924 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
3925 * sysdeps/s390/multiarch/ifunc-impl-list.c
3926 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
3927 * sysdeps/s390/ifunc-strstr.h: New file.
3928 * sysdeps/s390/strstr.c: Likewise.
3929 * sysdeps/s390/strstr-c.c: Likewise.
3930 * sysdeps/s390/strstr-vx.c: Likewise.
3931
3932 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3933
3934 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
3935 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
3936 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
3937 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
3938 New defines.
3939 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
3940 * sysdeps/s390/memmove-c.c: New file.
3941 * sysdeps/s390/memmove.c: Likewise.
3942 * sysdeps/s390/multiarch/ifunc-impl-list.c
3943 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
3944
3945 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3946
3947 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
3948 * sysdeps/s390/configure.ac: Add check for z13 support.
3949 * sysdeps/s390/configure: Regenerated.
3950
3951 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3952
3953 * sysdeps/s390/memcopy.h: New file.
3954
3955 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3956
3957 * sysdeps/s390/s390-32/bcopy.S: Remove.
3958 * sysdeps/s390/s390-64/bcopy.S: Likewise.
3959
3960 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3961
3962 * sysdeps/s390/ifunc-memcpy.h: New File.
3963 * sysdeps/s390/memcpy.S: Move to ...
3964 * sysdeps/s390/memcpy-z900.S ... here.
3965 Move implementations from memcpy-s390x.s to here.
3966 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
3967 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3968 Remove memcpy/mempcpy variants.
3969 * sysdeps/s390/Makefile (sysdep_routines):
3970 Add memcpy/mempcpy variants.
3971 * sysdeps/s390/multiarch/ifunc-impl-list.c
3972 (__libc_ifunc_impl_list): Adjust ifunc variants for
3973 memcpy and mempcpy.
3974 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
3975 to ...
3976 * sysdeps/s390/memcpy.c: ... here.
3977 Adjust ifunc variants for memcpy.
3978 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
3979 * sysdeps/s390/mempcpy.c: ... here.
3980 Adjust ifunc variants for mempcpy.
3981 * sysdeps/s390/mempcpy.S: Delete file.
3982
3983 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3984
3985 * sysdeps/s390/s390-64/memcpy.S: Move to ...
3986 * sysdeps/s390/memcpy.S: ... here.
3987 Adjust to be usable for 31/64bit.
3988 * sysdeps/s390/s390-32/memcpy.S: Delete File.
3989 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
3990 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
3991 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3992 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
3993 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
3994 Adjust to be usable for 31/64bit.
3995 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
3996 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
3997 * sysdeps/s390/multiarch/memcpy.c: ... here.
3998 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
3999
4000 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4001
4002 * sysdeps/s390/ifunc-memcmp.h: New File.
4003 * sysdeps/s390/memcmp.S: Move to ...
4004 * sysdeps/s390/memcmp-z900.S ... here.
4005 Move implementations from memcmp-s390x.s to here.
4006 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
4007 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
4008 Remove memcmp variants.
4009 * sysdeps/s390/Makefile (sysdep_routines):
4010 Add memcmp variants.
4011 * sysdeps/s390/multiarch/ifunc-impl-list.c
4012 (__libc_ifunc_impl_list): Adjust ifunc variants for
4013 memcmp.
4014 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
4015 to ...
4016 * sysdeps/s390/memcmp.c: ... here.
4017 Adjust ifunc variants for memcmp.
4018
4019 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4020
4021 * sysdeps/s390/s390-64/memcmp.S: Move to ...
4022 * sysdeps/s390/memcmp.S: ... here.
4023 Adjust to be usable for 31/64bit.
4024 * sysdeps/s390/s390-32/memcmp.S: Delete File.
4025 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
4026 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
4027 Remove memcmp.
4028 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
4029 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
4030 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
4031 Adjust to be usable for 31/64bit.
4032 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
4033 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
4034 * sysdeps/s390/multiarch/memcmp.c: ... here.
4035 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
4036
4037 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4038
4039 * sysdeps/s390/s390-32/bzero.S: Delete file.
4040 * sysdeps/s390/s390-64/bzero.S: Likewise.
4041 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
4042 * sysdeps/s390/bzero.c: New file.
4043 * sysdeps/s390/memset-z900.S: Add bzero entry points.
4044 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
4045 * sysdeps/s390/multiarch/ifunc-impl-list.c
4046 (__libc_ifunc_impl_list): Add bzero ifunc variants.
4047
4048 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4049
4050 * sysdeps/s390/ifunc-memset.h: New File.
4051 * sysdeps/s390/memset.S: Move to ...
4052 * sysdeps/s390/memset-z900.S ... here.
4053 Move implementations from memset-s390x.s to here.
4054 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
4055 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
4056 Remove memset variants.
4057 * sysdeps/s390/Makefile (sysdep_routines):
4058 Add memset variants.
4059 * sysdeps/s390/multiarch/ifunc-impl-list.c
4060 (__libc_ifunc_impl_list): Adjust ifunc variants for
4061 memset.
4062 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
4063 to ...
4064 * sysdeps/s390/memset.c: ... here.
4065 Adjust ifunc variants for memset.
4066
4067 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4068
4069 * sysdeps/s390/s390-64/memset.S: Move to ...
4070 * sysdeps/s390/memset.S: ... here.
4071 Adjust to be usable for 31/64bit.
4072 * sysdeps/s390/s390-32/memset.S: Delete File.
4073 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
4074 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
4075 Remove memset.
4076 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
4077 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
4078 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
4079 Adjust to be usable for 31/64bit.
4080 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
4081 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
4082 * sysdeps/s390/multiarch/memset.c: ... here.
4083 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
4084
4085 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4086
4087 * sysdeps/s390/multiarch/ifunc-resolve.h
4088 (s390_libc_ifunc_init, s390_libc_ifunc,
4089 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
4090
4091 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4092
4093 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
4094 * sysdeps/s390/configure.ac: Add check for z10 support.
4095 * sysdeps/s390/configure: Regenerated.
4096
4097 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
4098
4099 * sysdeps/i386/atomic-machine.h: Merged with ...
4100 * sysdeps/x86_64/atomic-machine.h: To ...
4101 * sysdeps/x86/atomic-machine.h: This. New file.
4102
4103 2018-12-18 Florian Weimer <fweimer@redhat.com>
4104
4105 Rewrite locale/gen-translit.pl in Python.
4106 * locale/Makefile (generated): Add C-translit.h.
4107 (before-compile): Add $(objpfx)C-translit.h.
4108 (C-translit.h): Move to $(objpfx). Create target directory.
4109 Build using Python script.
4110 * locale/gen-translit.py: New file.
4111 * locale/gen-translit.pl: Remove file.
4112 * locale/C-translit.h.in: Change comment character to '#' for
4113 easier parsing without a C preprocessor.
4114 * locale/C-translit.h: Remove generated file.
4115 * manual/install.texi (Tools for Compilation): Do not mention
4116 C-translit.h.
4117 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
4118 Remove locale/C-translit.h.
4119 * scripts/update-copyrights: Likewise.
4120 * INSTALL: Regenerate.
4121
4122 2018-12-18 Florian Weimer <fweimer@redhat.com>
4123
4124 [BZ #23995]
4125 * localedata/locales/bi_VU: Remove executable bit from file.
4126
4127 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
4128
4129 * include/time.h
4130 (__localtime64): Add.
4131 * manual/maint.texi: Document Y2038 symbol handling.
4132 * time/localtime.c
4133 (__localtime64): Add.
4134 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
4135
4136 2018-12-17 Joseph Myers <joseph@codesourcery.com>
4137
4138 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
4139 Do not clobber r12.
4140
4141 * scripts/glibcextract.py (compare_macro_consts): Take parameters
4142 to allow extra macros from first or second sources.
4143 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
4144 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
4145 (tests-special): Add $(objpfx)tst-mman-consts.out.
4146 ($(objpfx)tst-mman-consts.out): New makefile target.
4147
4148 2018-12-17 Mao Han <han_mao@c-sky.com>
4149
4150 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
4151 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
4152 without stat64 system call support.
4153 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
4154 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
4155 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
4156 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
4157 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
4158 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
4159 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
4160 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
4161 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
4162 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
4163 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
4164
4165 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
4166
4167 regex: fix storage-exhaustion error
4168 [BZ #18040]
4169 * posix/regexec.c (get_subexp):
4170 Do not continue if storage is exhausted.
4171
4172 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
4173
4174 regex: fix heap-use-after-free error
4175 [BZ #18040]
4176 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
4177 https://debbugs.gnu.org/32592
4178 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
4179 call extend_buffers which reallocates the re_string_t internal buffer.
4180 Local variable 'buf' was not updated in such case, resulting in
4181 use-after-free.
4182 * posix/regexec.c (get_subexp): Update 'buf' after call to
4183 get_subexp_sub.
4184
4185 2018-12-15 Florian Weimer <fweimer@redhat.com>
4186
4187 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
4188 (minimum_stride_size): Use it.
4189 (support_blob_repeat_allocate): Likewise.
4190
4191 2018-12-14 Joseph Myers <joseph@codesourcery.com>
4192
4193 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
4194 definition.
4195 (acosh): Likewise.
4196 (atanh): Likewise.
4197
4198 2018-12-14 Florian Weimer <fweimer@redhat.com>
4199
4200 * manual/process.texi (Process Creation Concepts): Remove
4201 documentation of process (ID) lifetime. List more process
4202 creation functions. Reference Process Identification section.
4203 (Process Identification): Add information about process ID
4204 lifetime. Describe Linux thread/task IDs.
4205 * manual/signal.texi (Signaling Another Process): Mention that the
4206 signal is always sent to the process.
4207
4208 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4209
4210 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
4211 and tst-ldbl-efgcvt.
4212 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
4213 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
4214 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
4215 (fcvt_tests, output_error, output_r_error, do_test): Use the
4216 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
4217 select the type of floating-point variables and arguments; to
4218 produce extra tests for double and conversion specifiers for
4219 printf; and to set the names of called functions.
4220 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
4221 in tst-efgcvt-template.c.
4222 * misc/tst-ldbl-efgcvt.c: Likewise.
4223
4224 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
4225
4226 * nss/Makefile (tst-nss-test3.out): New rule.
4227
4228 2018-12-13 Joseph Myers <joseph@codesourcery.com>
4229
4230 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
4231 clobber sp.
4232
4233 2018-12-13 fanjinke <fanjinke@hygon.cn>
4234
4235 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
4236 "HygonGenuine".
4237
4238 2018-12-13 Andreas Schwab <schwab@suse.de>
4239
4240 [BZ #23861]
4241 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
4242 (__pthread_rwlock_rdlock_full): Update expected value for
4243 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
4244 * nptl/tst-rwlock-pwn.c: New file.
4245 * nptl/Makefile (tests): Add tst-rwlock-pwn.
4246
4247 2018-12-12 Joseph Myers <joseph@codesourcery.com>
4248
4249 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
4250 definition.
4251
4252 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
4253
4254 * benchtests/scripts/compare_bench.py (do_compare): write to
4255 stderr in casestat is not present.
4256 * benchtests/scripts/compare_bench.py (plot_graphs): write to
4257 stderr in case timings field is not present. Also string showing
4258 the output filename goes into the stderr.
4259
4260 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
4261
4262 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
4263 and ZeroDivisorError exceptions.
4264 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
4265 argument to loop through user provided statistics.
4266 * benchtests/scripts/compare_bench.py (main): Include the --stats
4267 argument.
4268
4269 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
4270
4271 * benchtests/scripts/compare_bench.py (compare_runs): Continue
4272 instead of return.
4273
4274 2018-12-12 Florian Weimer <fweimer@redhat.com>
4275
4276 * sysdeps/posix/timespec_get.c: Add missing “any later version”
4277 clause to copyright header.
4278
4279 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4280
4281 [BZ #23614]
4282 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
4283 registers saved in the stack frame.
4284 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
4285 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
4286
4287 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4288
4289 * include/bits/monetary-ldbl.h: New file.
4290 * include/bits/printf-ldbl.h: Likewise.
4291 * include/bits/stdio-ldbl.h: Likewise.
4292 * include/bits/stdlib-ldbl.h: Likewise.
4293 * include/bits/syslog-ldbl.h: Likewise.
4294 * include/bits/wchar-ldbl.h: Likewise.
4295
4296 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4297
4298 * libio/libio.h: Remove redirection for _IO_vfprintf.
4299
4300 2018-12-11 Andreas Schwab <schwab@suse.de>
4301
4302 * Makerules: Remove all references to abilist-pattern.
4303 (update-all-abi): Simplify find expression.
4304
4305 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
4306
4307 [BZ #23961]
4308 * math/auto-libm-test-in: Add new test case.
4309 * math/auto-libm-test-out-pow: Regenerated.
4310 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
4311
4312 2018-12-10 DJ Delorie <dj@redhat.com>
4313
4314 [BZ #23948]
4315 * support/test-container.c: Move postclean step to before we
4316 change namespaces.
4317
4318 2018-12-10 Joseph Myers <joseph@codesourcery.com>
4319
4320 * scripts/gen-as-const.py (main): Handle --python option.
4321 * scripts/gen-py-const.awk: Remove.
4322 * Makerules (py-const-script): Use gen-as-const.py.
4323 ($(py-const)): Likewise.
4324 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
4325 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
4326 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
4327 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
4328 ~PTHREAD_MUTEX_NO_ELISION_NP.
4329 * manual/README.pretty-printers: Update reference to
4330 gen-py-const.awk.
4331
4332 * scripts/glibcextract.py: New file.
4333 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
4334 or tempfile. Import glibcexctract.
4335 (compute_c_consts): Remove. Moved to glibcextract.py.
4336 (gen_test): Update reference to compute_c_consts.
4337 (main): Likewise.
4338 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
4339 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
4340 * sysdeps/unix/sysv/linux/Makefile
4341 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
4342 Redirect stderr as well as stdout.
4343
4344 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
4345
4346 [BZ #19767]
4347 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
4348 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
4349 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
4350 ALWAYS_USE_VSYSCALL.
4351 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
4352 ALWAYS_USE_VSYSCALL.
4353 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
4354 ALWAYS_USE_VSYSCALL.
4355
4356 2018-12-10 Florian Weimer <fweimer@redhat.com>
4357
4358 [BZ #23972]
4359 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
4360 offset instead of count for clarity. Fix typo in comment.
4361 (__old_getdents64): Keep track of previous offset. Use it to call
4362 handle_overflow.
4363 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
4364 that d_off is never zero.
4365
4366 2018-12-10 Andreas Schwab <schwab@suse.de>
4367
4368 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
4369 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
4370 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
4371 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
4372 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
4373
4374 2018-12-10 Joseph Myers <joseph@codesourcery.com>
4375
4376 * timezone/private.h: Update from tzcode 2018g.
4377 * timezone/tzfile.h: Likewise.
4378 * timezone/tzselect.ksh: Likewise.
4379 * timezone/zdump.c: Likewise.
4380 * timezone/zic.c: Likewise.
4381
4382 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
4383
4384 [BZ #23490]
4385 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
4386 (do_test): Adjust buffer size and fix format.
4387
4388 2018-12-07 DJ Delorie <dj@redhat.com>
4389
4390 [BZ #23907]
4391 * malloc/tst-tcfree3.c: New.
4392 * malloc/Makefile: Add it.
4393
4394 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
4395
4396 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
4397
4398 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4399
4400 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
4401 used as a mask for the mode argument of __vfscanf_internal and
4402 __vfwscanf_internal.
4403 * stdio-common/vfscanf-internal.c
4404 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
4405 (__strtof128_internal): Define to __wcstof128_internal.
4406 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
4407 __strtof128_internal or __wcstof128_internal when the format of
4408 long double is the same as _Float128.
4409
4410 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
4411
4412 * include/unistd.h (__confstr): Add prototype and hidden prototype.
4413 * posix/confstr.c (confstr): Rename to __confstr.
4414 (__confstr): Add hidden def.
4415 (confstr): Add weak alias for __confstr.
4416 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
4417 confstr.
4418
4419 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
4420
4421 * NEWS: Mention getcpu.
4422 * include/sched.h (__getcpu): New libc_hidden_proto.
4423 * manual/resource.texi: Document getcpu.
4424 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
4425 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
4426 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
4427 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
4428 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
4429 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
4430 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
4431 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
4432 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
4433 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
4434 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
4435 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
4436 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
4437 Likewise.
4438 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
4439 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
4440 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
4441 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
4442 Likewise.
4443 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
4444 Likewise.
4445 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
4446 Likewise.
4447 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
4448 Likewise.
4449 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
4450 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
4451 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
4452 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
4453 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
4454 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
4455 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
4456 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
4457 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
4458 * sysdeps/unix/sysv/linux/getcpu.c: New file.
4459 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
4460 Also check getcpu.
4461
4462 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
4463
4464 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
4465 functions.
4466 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
4467
4468 2018-12-07 Florian Weimer <fweimer@redhat.com>
4469
4470 [BZ #17405]
4471 * posix/Makefile (routines): Add spawn_faction_addfchdir.
4472 * posix/Versions (GLIBC_2.29): Export
4473 posix_spawn_file_actions_addfchdir_np.
4474 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
4475 * posix/spawn_faction_destroy.c
4476 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
4477 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
4478 and the field action.fchdir_action.
4479 * posix/tst-spawn-chdir.c (add_chdir): New function.
4480 (do_test): Add do_fchdir loop. Call add_chdir.
4481 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
4482 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
4483 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
4484 posix_spawn_file_actions_addfchdir_np.
4485 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
4486 Likewise.
4487 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
4488 Likewise.
4489 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
4490 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
4491 Likewise.
4492 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
4493 Likewise.
4494 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
4495 Likewise.
4496 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
4497 Likewise.
4498 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
4499 Likewise.
4500 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
4501 Likewise.
4502 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4503 (GLIBC_2.29): Likewise.
4504 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4505 (GLIBC_2.29): Likewise.
4506 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4507 (GLIBC_2.29): Likewise.
4508 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4509 (GLIBC_2.29): Likewise.
4510 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
4511 Likewise.
4512 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4513 (GLIBC_2.29): Likewise.
4514 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4515 (GLIBC_2.29): Likewise.
4516 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
4517 (GLIBC_2.29): Likewise.
4518 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
4519 (GLIBC_2.29): Likewise.
4520 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
4521 Likewise.
4522 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
4523 Likewise.
4524 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
4525 Likewise.
4526 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
4527 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
4528 Likewise.
4529 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
4530 Likewise.
4531 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
4532 Likewise.
4533 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
4534 Likewise.
4535
4536 2018-12-06 Joseph Myers <joseph@codesourcery.com>
4537
4538 * manual/texinfo.tex: Update to version 2018-09-21.20 with
4539 trailing whitespace removed.
4540 * scripts/config.guess: Update to version 2018-11-28.
4541 * scripts/config.sub: Update to version 2018-11-28.
4542 * scripts/install-sh: Update to version 2018-03-11.20.
4543 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
4544 * scripts/move-if-change: Update to version 2018-03-07 03:47.
4545
4546 2018-12-07 Florian Weimer <fweimer@redhat.com>
4547
4548 [BZ #23927]
4549 CVE-2018-19591
4550 * inet/tst-if_index-long.c: New file.
4551 * inet/Makefile (tests): Add tst-if_index-long.
4552
4553 2018-12-07 Florian Weimer <fweimer@redhat.com>
4554
4555 * support/check.h (support_record_failure_is_failed): Declare.
4556 * support/descriptors.h: New file.
4557 * support/support_descriptors.c: Likewise.
4558 * support/tst-support_descriptors.c: Likewise.
4559 * support/support_record_failure.c
4560 (support_record_failure_is_failed): New function.
4561 * support/Makefile (libsupport-routines): Add support_descriptors.
4562 (tests): Add tst-support_descriptors.
4563
4564 2018-12-05 Zack Weinberg <zackw@panix.com>
4565 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4566
4567 * stdio-common/vfprintf-internal.c
4568 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
4569 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
4570 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
4571 and __no_long_double.
4572 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
4573 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
4574 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
4575 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
4576 and __nldbl_*syslog* functions.
4577 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
4578 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
4579 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
4580 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
4581 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
4582 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
4583 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
4584 (__nldbl_vwprintf, __nldbl_wprintf):
4585 Directly call the appropriate __v*printf_internal routine, passing
4586 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
4587 variable names.
4588 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
4589 (__nldbl___printf_chk, __nldbl___snprintf_chk)
4590 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
4591 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
4592 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
4593 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
4594 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
4595 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
4596 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
4597 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
4598 Likewise, and also pass PRINTF_FORTIFY when appropriate.
4599 (__nldbl_syslog, __nldbl_vsyslog):
4600 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
4601 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
4602 appropriate.
4603 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
4604 appropriate.
4605
4606 2018-12-05 Zack Weinberg <zackw@panix.com>
4607 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4608
4609 [BZ #11319]
4610 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
4611 Moved here from debug/vsprintf_chk.c.
4612 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
4613 and completion logic for the strfile to match exactly what
4614 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
4615 _IO_str_init_static_internal instead of maxlen-1.
4616 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
4617 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
4618 __vsprintf_internal.
4619
4620 * debug/vsprintf_chk.c (__vsprintf_chk)
4621 * debug/sprintf_chk.c (__sprintf_chk):
4622 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
4623 'flags' argument is positive, and slen as maxlen. No need to lock
4624 the FILE and/or construct a temporary FILE. Minimize and normalize
4625 header inclusions and variable names. Do not libc_hidden_def anything.
4626
4627 * debug/asprintf_chk.c (__asprintf_chk)
4628 * debug/dprintf_chk.c (__dprintf_chk)
4629 * debug/fprintf_chk.c (__fprintf_chk)
4630 * debug/fwprintf_chk.c (__fwprintf_chk)
4631 * debug/printf_chk.c (__printf_chk)
4632 * debug/snprintf_chk.c (__snprintf_chk)
4633 * debug/swprintf_chk.c (__swprintf_chk)
4634 * debug/vasprintf_chk.c (__vasprintf_chk)
4635 * debug/vdprintf_chk.c (__vdprintf_chk)
4636 * debug/vfprintf_chk.c (__vfprintf_chk)
4637 * debug/vfwprintf_chk.c (__vfwprintf_chk)
4638 * debug/vprintf_chk.c (__vprintf_chk)
4639 * debug/vsnprintf_chk.c (__vsnprintf_chk)
4640 * debug/vswprintf_chk.c (__vswprintf_chk)
4641 * debug/vwprintf_chk.c (__vwprintf_chk)
4642 * debug/wprintf_chk.c (__wprintf_chk):
4643 Directly call the corresponding vxxprintf_internal function, passing
4644 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
4645 the FILE and/or construct a temporary FILE. Minimize and normalize
4646 header inclusions and variable names. Do not libc_hidden_def anything.
4647
4648 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
4649 __obstack_vprintf_internal.
4650 (__obstack_vprintf_chk): Convert into a wrapper that calls
4651 __obstack_vprintf_internal (these two functions already had the
4652 same code) and move to new file...
4653 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
4654 file.
4655 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
4656 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
4657 * debug/Makefile (routines): Add vobprintf_chk.
4658
4659 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4660 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
4661 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
4662 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
4663 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
4664 (__nldbl___obstack_vfprintf_chk):
4665 Directly call the corresponding vxxprintf_internal function,
4666 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
4667 duplicate comparison of slen with 0 or maxlen from the corresponding
4668 non-__nldbl function.
4669
4670 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
4671 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
4672 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
4673 Remove libc_hidden_proto.
4674
4675 * stdio-common/vfprintf-internal.c
4676 (__vfprintf_internal, __vfwprintf_internal):
4677 Do not check _IO_FLAGS2_FORTIFY.
4678 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
4679 * libio/libioP.h: Update prototype of __vsprintf_internal and add
4680 a comment explaining why it has the maxlen argument.
4681 (_IO_acquire_lock_clear_flags2_fct): Remove.
4682 (_IO_acquire_lock_clear_flags2): Remove.
4683 (_IO_release_lock): Remove conditional statement which will
4684 now never execute.
4685 (_IO_acquire_lock): Remove variable which is now unused.
4686 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
4687 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
4688
4689 * stdio-common/Makefile (tests): Add tst-bz11319 and
4690 tst-bz11319-fortify2.
4691 (CFLAGS-tst-bz11319-fortify2.c): New macro.
4692 * stdio-common/tst-bz11319-fortify2.c: New file.
4693 * stdio-common/tst-bz11319.c: Likewise.
4694
4695 2018-12-05 Zack Weinberg <zackw@panix.com>
4696 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4697
4698 * misc/syslog.c: Include libioP.h, not iolibio.h.
4699 (__vsyslog_internal): New function with the former body of
4700 __vsyslog_chk; takes mode_flags argument same as
4701 __v*printf_internal. Call __vfprintf_internal directly.
4702
4703 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
4704 Remove libc_hidden_def.
4705 (__syslog, __syslog_chk): Use __vsyslog_internal.
4706 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
4707
4708 * include/sys/syslog.h: Add multiple inclusion guard.
4709 Add prototype for __vsyslog_internal.
4710 Remove declaration and libc_hidden_proto for __vsyslog_chk.
4711
4712 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
4713 Use __vsyslog_internal.
4714
4715 2018-12-05 Zack Weinberg <zackw@panix.com>
4716 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4717
4718 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
4719 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
4720 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
4721 New functions.
4722 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
4723 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
4724
4725 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
4726 Include wctype.h here if COMPILE_WPRINTF is defined.
4727 Define __vfprintf_internal or __vfwprintf_internal, depending
4728 on COMPILE_WPRINTF.
4729 Temporarily, on entry to this function, update mode_flags
4730 according to the environmental settings corresponding to
4731 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
4732 Throughout, check mode_flags instead of __ldbl_is_dbl and
4733 _IO_FLAGS2_FORTIFY on the destination FILE.
4734 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
4735 Include vfprintf-internal.c. Don't include wctype.h.
4736 * stdio-common/vfprintf.c: New file. Just define __vfprintf
4737 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
4738 and vfprintf.
4739 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
4740 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
4741 and vfwprintf.
4742 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
4743
4744 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
4745 and add mode_flags argument; use __vfprintf_internal.
4746 (__vdprintf): New function. Alias vdprintf to this.
4747 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
4748 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
4749 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
4750 (__obstack_printf): Use __obstack_printf_internal.
4751 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
4752 public aliases __vsnprintf and vsnprintf.
4753 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
4754 called internally.
4755 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
4756 public aliases _IO_vsprintf and vsprintf.
4757 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
4758 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
4759 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
4760 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
4761 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
4762
4763 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
4764 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
4765 * stdio-common/fprintf.c, stdio-common/fxprintf.c
4766 * stdio-common/printf.c: Use __vfprintf_internal.
4767
4768 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
4769 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
4770 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
4771
4772 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
4773 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
4774 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
4775 __vfwprintf_internal.
4776
4777 * libio/libio.h: Remove libc_hidden_proto and declaration for
4778 _IO_vfprintf.
4779 Remove declaration of _IO_vfwprintf.
4780 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
4781 _IO_vsprintf.
4782 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
4783 _IO_obstack_printf.
4784 * include/stdio.h: Add prototype for __vasprintf.
4785 (__vsnprintf): Remove declaration, because there are no more
4786 internal calls.
4787 * include/wchar.h (__vfwprintf, __vswprintf): Remove
4788 declaration, because there are no more internal calls.
4789
4790 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
4791 __vsnprintf_internal, instead of _IO_vsnprintf.
4792 * argp/argp-help.c (__argp_error, __argp_failure): Use
4793 __vasprintf_internal, instead of _IO_vasprintf.
4794 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
4795 redefine, because there are no more internal calls.
4796
4797 2018-12-05 Zack Weinberg <zackw@panix.com>
4798 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4799
4800 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
4801 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
4802 Include libio/strfile.h instead of libioP.h.
4803 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
4804 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
4805 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
4806 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
4807 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
4808 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
4809 necessary. Do not set __no_long_double. Normalize variable names.
4810 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
4811 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
4812 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
4813 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
4814 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
4815 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
4816 Call __vfscanf_internal / __vfwscanf_internal directly, passing
4817 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
4818 Do not set __no_long_double. Normalize variable names.
4819
4820 2018-12-05 Zack Weinberg <zackw@panix.com>
4821 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4822
4823 * stdio-common/isoc99_scanf.c
4824 * stdio-common/isoc99_fscanf.c
4825 * stdio-common/isoc99_sscanf.c
4826 * stdio-common/isoc99_vscanf.c
4827 * stdio-common/isoc99_vfscanf.c
4828 * stdio-common/isoc99_vsscanf.c
4829 * wcsmbs/isoc99_wscanf.c
4830 * wcsmbs/isoc99_fwscanf.c
4831 * wcsmbs/isoc99_swscanf.c
4832 * wcsmbs/isoc99_vwscanf.c
4833 * wcsmbs/isoc99_vfwscanf.c
4834 * wcsmbs/isoc99_vswscanf.c:
4835 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
4836 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
4837 No need to lock and unlock the FILE passed to that function.
4838
4839 * stdio-common/vfscanf-internal.c
4840 (__vfscanf_internal, __vfwscanf_internal):
4841 Don't look at _IO_FLAGS2_SCANF_STD.
4842 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
4843 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
4844 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
4845
4846 2018-12-05 Zack Weinberg <zackw@panix.com>
4847 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4848
4849 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
4850 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
4851 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
4852 * libio/strfile.h: Add multiple inclusion guard.
4853 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
4854
4855 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
4856 consistency with the other version of this file.
4857 (ldbl_compat_symbol): New macro.
4858 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
4859 New macro.
4860
4861 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
4862 Define __vfscanf_internal or __vfwscanf_internal, depending on
4863 COMPILE_WSCANF; don't define any other public symbols.
4864 Remove errval and code to set errp.
4865 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
4866 as the mode_flags argument.
4867 (encode_error, conv_error, input_error): Don't set errval.
4868 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
4869 Include vfscanf-internal.c.
4870 * stdio-common/vfscanf.c: New file defining the public entry
4871 point vfscanf, which calls __vfscanf_internal.
4872 * stdio-common/vfwscanf.c: New file defining the public entry
4873 point vfwscanf, which calls __vfwscanf_internal.
4874
4875 * stdio-common/iovfscanf.c: New file.
4876 * stdio-common/iovfwscanf.c: Likewise.
4877
4878 * stdio-common/Makefile (routines): Add vfscanf-internal,
4879 vfwscanf-internal, iovfscanf, iovfwscanf.
4880 * stdio-common/Versions: Mention GLIBC_2.29, so that
4881 it can be used in SHLIB_COMPAT expressions.
4882 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
4883 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
4884 Call __vfscanf_internal, instead of _IO_vfscanf.
4885 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
4886 _IO_vfscanf.
4887 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
4888 _IO_vfwscanf.
4889
4890 * libio/iovsscanf.c: Clean up includes, when possible. Use
4891 _IO_strfile_read or _IO_strfile_readw, when needed. Call
4892 __vfscanf_internal or __vfwscanf_internal directly.
4893 * libio/iovswscanf.c: Likewise.
4894 * libio/swscanf.c: Likewise.
4895 * libio/vscanf.c: Likewise.
4896 * libio/vwscanf.c: Likewise.
4897 * libio/wscanf.c: Likewise.
4898 * stdio-common/isoc99_fscanf.c: Likewise.
4899 * stdio-common/isoc99_scanf.c: Likewise.
4900 * stdio-common/isoc99_sscanf.c: Likewise.
4901 * stdio-common/isoc99_vfscanf.c: Likewise.
4902 * stdio-common/isoc99_vscanf.c: Likewise.
4903 * stdio-common/isoc99_vsscanf.c: Likewise.
4904 * stdio-common/scanf.c: Likewise.
4905 * stdio-common/sscanf.c: Likewise.
4906 * wcsmbs/isoc99_fwscanf.c: Likewise.
4907 * wcsmbs/isoc99_swscanf.c: Likewise.
4908 * wcsmbs/isoc99_vfwscanf.c: Likewise.
4909 * wcsmbs/isoc99_vswscanf.c: Likewise.
4910 * wcsmbs/isoc99_vwscanf.c: Likewise.
4911 * wcsmbs/isoc99_wscanf.c: Likewise.
4912
4913 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
4914
4915 * include/time.h
4916 (__tz_compute): Replace time_t with __time64_t.
4917 (__tz_convert): Replace time_t* with __time64_t.
4918 (__offtime): Replace time_t* with __time64_t.
4919 * time/gmtime.c
4920 (__gmtime_r): Adjust call to __tz_convert.
4921 (gmtime): Likewise.
4922 * time/localtime.c
4923 (__localtime_r): Likewise.
4924 (localtime): Likewise.
4925 * time/offtime.c: Replace time_t with __time64_t.
4926 * time/tzset.c: Likewise.
4927
4928 2018-12-04 Joseph Myers <joseph@codesourcery.com>
4929
4930 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
4931 dynamic linker unless [$(run-built-tests) = yes].
4932
4933 2018-12-03 DJ Delorie <dj@delorie.com>
4934
4935 * support/test-container.c (check_for_unshare_hints): New.
4936 (main): Call it if unshare fails. Add support for "su" scriptlet
4937 command.
4938
4939 2018-12-03 Joseph Myers <joseph@codesourcery.com>
4940
4941 * scripts/gen-as-const.py (compute_c_consts): Take an argument
4942 'START' to indicate that start text should be output.
4943 (gen_test): Likewise.
4944 (main): Generate 'START' for first symbol or '--' line, or at end
4945 of input if not previously generated.
4946
4947 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
4948
4949 [BZ #19767]
4950 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
4951 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
4952 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
4953 ALWAYS_USE_VSYSCALL.
4954
4955 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4956
4957 [BZ #23913]
4958 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
4959 new_argv by one.
4960
4961 2018-12-03 Carlos O'Donell <carlos@redhat.com>
4962
4963 [BZ #23923]
4964 * locale/programs/localedef.c: Declare boolean hard_links default true.
4965 (options): Add --no-hard-links option.
4966 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
4967 * locale/programs/localedef.h: Declare prototype for hard_links.
4968 * locale/programs/locfile.c (write_locale_data): Don't use hard
4969 links if hard_links is false.
4970
4971 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
4972
4973 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
4974 cpu_features_basic.
4975 (__cache_sysconf): Likewise.
4976 (init_cacheinfo): Likewise.
4977 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
4978 populate COMMON_CPUID_INDEX_80000007 and
4979 COMMON_CPUID_INDEX_80000008.
4980 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
4981 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
4982 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
4983 (init_cpu_features): Use _Static_assert on
4984 index_arch_Fast_Unaligned_Load.
4985 __get_cpuid_registers and __get_arch_feature. Updated for
4986 cpu_features_basic. Set stepping in cpu_features.
4987 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
4988 (FEATURE_INDEX_2): New.
4989 (FEATURE_INDEX_MAX): Changed to enum.
4990 (COMMON_CPUID_INDEX_D_ECX_1): New.
4991 (COMMON_CPUID_INDEX_80000007): Likewise.
4992 (COMMON_CPUID_INDEX_80000008): Likewise.
4993 (cpuid_registers): Likewise.
4994 (cpu_features_basic): Likewise.
4995 (CPU_FEATURE_USABLE): Likewise.
4996 (bit_arch_XXX_Usable): Likewise.
4997 (cpu_features): Use cpuid_registers and cpu_features_basic.
4998 (bit_arch_XXX): Reweritten.
4999 (bit_cpu_XXX): Likewise.
5000 (index_cpu_XXX): Likewise.
5001 (reg_XXX): Likewise.
5002 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
5003 <support/check.h>.
5004 (CHECK_CPU_FEATURE): New.
5005 (CHECK_CPU_FEATURE_USABLE): Likewise.
5006 (cpu_kinds): Likewise.
5007 (do_test): Print vendor, family, model and stepping. Check
5008 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
5009 (TEST_FUNCTION): Removed.
5010 Include <support/test-driver.c> instead of
5011 "../../test-skeleton.c".
5012 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
5013 Check POPCNT instead of POPCOUNT.
5014 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
5015
5016 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
5017
5018 * scripts/gen-as-const.py (main): Avoid emitting empty line when
5019 there is no element in `consts'.
5020
5021 2018-12-01 Florian Weimer <fweimer@redhat.com>
5022
5023 * support/support_capture_subprocess.c
5024 (support_capture_subprocess): Check that pipe descriptors have
5025 expected values. Close original pipe descriptors in subprocess.
5026
5027 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5028
5029 [BZ #23032]
5030 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
5031 attr with __pthread_default_barrierattr.
5032 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
5033 attr with __pthread_default_condattr.
5034 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
5035 attr with __pthread_default_mutexattr.
5036 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
5037 attr with __pthread_default_rwlockattr.
5038
5039 2018-12-01 Kemi Wang <kemi.wang@intel.com>
5040
5041 * manual/tunables.texi (POSIX Thread Tunables): New node.
5042 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
5043 * nptl/nptl-init.c: Include pthread_mutex_conf.h
5044 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
5045 __pthread_tunables_init.
5046 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
5047 (max_adaptive_count): Define.
5048 * nptl/pthread_mutex_conf.c: New file.
5049 * nptl/pthread_mutex_conf.h: New file.
5050 * sysdeps/generic/adaptive_spin_count.h: New file.
5051 * sysdeps/nptl/dl-tunables.list: New file.
5052 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
5053 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
5054 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
5055 Likewise.
5056
5057 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
5058
5059 [BZ #20544]
5060 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
5061 * stdlib/on_exit.c (__on_exit): Likewise.
5062 * stdlib/Makefile (tests): Add tst-bz20544.
5063 * stdlib/tst-bz20544.c: New test.
5064
5065 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
5066
5067 [BZ #19767]
5068 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
5069 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
5070 New.
5071
5072 2018-11-30 Florian Weimer <fweimer@redhat.com>
5073
5074 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
5075 Extend error logging.
5076 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
5077 symbol.
5078
5079 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5080
5081 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
5082 __sigismember instead of sigismember.
5083 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
5084 cancel_handler): New definitions.
5085 (do_system): Use posix_spawn instead of fork and execl and remove
5086 reentracy code.
5087 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
5088 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
5089 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
5090 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
5091 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
5092 * sysdeps/unix/sysv/linux/system.c: Likewise.
5093
5094 [BZ #22834]
5095 [BZ #17490]
5096 * NEWS: Add new semantic for atfork with popen and system.
5097 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
5098 fork and execl.
5099
5100 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
5101
5102 [BZ #23690]
5103 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
5104 modification order when accessing reloc_result->addr.
5105 * include/link.h (reloc_result): Add field init.
5106 * nptl/Makefile (tests): Add tst-audit-threads.
5107 (modules-names): Add tst-audit-threads-mod1 and
5108 tst-audit-threads-mod2.
5109 Add rules to build tst-audit-threads.
5110 * nptl/tst-audit-threads-mod1.c: New file.
5111 * nptl/tst-audit-threads-mod2.c: Likewise.
5112 * nptl/tst-audit-threads.c: Likewise.
5113 * nptl/tst-audit-threads.h: Likewise.
5114
5115 2018-11-30 Joseph Myers <joseph@codesourcery.com>
5116
5117 * scripts/gen-as-const.py: New file.
5118 * scripts/gen-as-const.awk: Remove.
5119 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
5120 gen-as-const.py.
5121 ($(objpfx)test-as-const-%.c): Likewise.
5122
5123 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
5124
5125 * elf/dl-exception.c: Include <_itoa.h>.
5126
5127 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5128
5129 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
5130 returned by __f_setlk.
5131
5132 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
5133 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5134
5135 * elf/Makefile (tests-internal): Add tst-create_format1.
5136 * elf/dl-exception.c (_dl_exception_create_format): Support
5137 %x, %lx and %zx.
5138 * elf/tst-create_format1.c: New file.
5139
5140 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
5141
5142 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
5143 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
5144 gnulib.)
5145 * argp/argp-help.c (__argp_failure): Likewise.
5146
5147 2018-11-29 Mao Han <han_mao@c-sky.com>
5148
5149 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
5150 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
5151 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
5152 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
5153 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
5154 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
5155 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
5156 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
5157 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
5158 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
5159 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
5160 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
5161 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
5162 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
5163 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
5164 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
5165 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
5166 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
5167 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
5168 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
5169 (R_CKCORE_TLS_TPOFF32): New defines.
5170
5171 2018-11-29 Florian Weimer <fweimer@redhat.com>
5172
5173 * posix/Makefile (before-compile): Remove testcases.h and
5174 ptestcases.h.
5175 (generated): Add testcases.h and ptestcases.h.
5176 (testcases.h, ptestcases.h): Move to $(objpfx).
5177 (runtests.o): Add dependency on testcases.h.
5178 (runptests.o): Add dependency on ptestcases.h.
5179 * posix/testcases.h, posix/ptestcases.h: Remove files.
5180 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
5181 not touch posix/testcases.h and posix/ptestcases.h.
5182
5183 2018-11-28 Florian Weimer <fweimer@redhat.com>
5184
5185 support: Add signal support to support_capture_subprocess_check.
5186 * support/capture_subprocess.h (support_capture_subprocess_check):
5187 Adjust comment and rename parameter.
5188 * support/support_capture_subprocess_check.c
5189 (print_actual_status): New function.
5190 (support_capture_subprocess_check): Support negative
5191 status_or_signal. Call print_actual_status.
5192 * support/tst-support_capture_subprocess.c (do_test): Call
5193 support_capture_subprocess_check.
5194 * libio/tst-vtables-common.c (termination_status)
5195 (init_termination_status): Remove.
5196 (check_for_termination): Adjust support_capture_subprocess_check
5197 call.
5198 (do_test): Remove call to init_termination_status.
5199
5200 2018-11-28 Joseph Myers <joseph@codesourcery.com>
5201
5202 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
5203 source directory instead of a copy.
5204 (CommandList.create_copy_dir): Remove.
5205
5206 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
5207
5208 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
5209
5210 2018-11-28 Florian Weimer <fweimer@redhat.com>
5211
5212 * support/support.h (support_quote_string): Do not use str
5213 parameter name.
5214
5215 2018-11-27 Joseph Myers <joseph@codesourcery.com>
5216
5217 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
5218 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
5219
5220 2018-11-27 Florian Weimer <fweimer@redhat.com>
5221
5222 * support/support.h (support_quote_string): Declare.
5223 * support/support_quote_string.c: New file.
5224 * support/tst-support_quote_string.c: Likewise.
5225 * support/Makefile (libsupport-routines): Add
5226 support_quote_string.
5227 (tests): Add tst-support_quote_string.
5228
5229 2018-11-27 Florian Weimer <fweimer@redhat.com>
5230
5231 [BZ #23927]
5232 CVE-2018-19591
5233 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
5234 descriptor leak in case of ENODEV error.
5235
5236 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
5237
5238 [BZ #19767]
5239 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
5240 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
5241 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
5242
5243 2018-11-26 Carlos O'Donell <carlos@redhat.com>
5244
5245 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
5246 Error for unknown lines.
5247
5248 2018-11-26 Joseph Myers <joseph@codesourcery.com>
5249
5250 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
5251 Touch additional files.
5252
5253 2018-11-26 Florian Weimer <fweimer@redhat.com>
5254
5255 [BZ #23907]
5256 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
5257 double-frees.
5258
5259 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
5260
5261 [BZ #19767]
5262 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
5263 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
5264 SHARED. Include sysdep.h.
5265 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
5266 ALWAYS_USE_VSYSCALL.
5267 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
5268 ALWAYS_USE_VSYSCALL.
5269
5270 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
5271
5272 [BZ #19767]
5273 * nptl/Makefile (tests-static): Add tst-cond11-static.
5274 (tests): Likewise.
5275 * nptl/tst-cond11-static.c: New File.
5276 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
5277 tst-affinity-static.
5278 (tests): Likewise.
5279 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
5280 instead of SHARED.
5281 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
5282 (USE_VSYSCALL): Likewise.
5283 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
5284 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
5285 instead of SHARED.
5286 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
5287 SHARED.
5288 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
5289 New.
5290
5291 2018-11-23 Joseph Myers <joseph@codesourcery.com>
5292
5293 [BZ #23915]
5294 * sysdeps/unix/sysv/linux/arm/kernel-features.h
5295 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
5296 Undefine.
5297
5298 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
5299
5300 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
5301 (tst-cet-legacy-1a-ARGS): New.
5302 ($(objpfx)tst-cet-legacy-1a): New target.
5303 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
5304
5305 2018-11-22 Joseph Myers <joseph@codesourcery.com>
5306
5307 * conform/conformtest.py (CompileSubTest.__init__): Set
5308 self.run_early to False.
5309 (ExecuteSubTest.__init__): Likewise.
5310 (HeaderTests.run): Try running all non-optional, non-XFAILed
5311 compilation tests in a single execution of the compiler.
5312
5313 * conform/conformtest.py (CompileSubTest): New class.
5314 (ExecuteSubTest): Likewise.
5315 (ElementTest.run): Rename to gen_subtests. Append tests to
5316 self.subtests instead of running them.
5317 (ConstantTest.run): Likewise.
5318 (SymbolTest.run): Likewise.
5319 (TypeTest.run): Likewise.
5320 (TagTest.run): Likewise.
5321 (FunctionTest.run): Likewise.
5322 (VariableTest.run): Likewise.
5323 (MacroFunctionTest.run): Likewise.
5324 (MacroStrTest.run): Likewise.
5325 (HeaderTests.handle_test_line): Generate subtests for tests.
5326 (HeaderTests.run): Run subtests for tests.
5327
5328 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5329
5330 * math/Versions (GLIBC_2.29): Add pow.
5331 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
5332 symbol.
5333 * math/w_pow.c: New file.
5334 * sysdeps/i386/fpu/w_pow.c: New file.
5335 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
5336 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
5337 and add necessary aliases.
5338 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
5339 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
5340 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5341 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5342 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5343 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5344 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5345 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5346 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5347 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5348 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5349 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5350 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5351 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5352 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5353 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5354 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5355 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5356 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5357 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5358 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5359 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5360 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5361 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5362 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5363 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5364 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
5365 __pow.
5366 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
5367 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
5368 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
5369
5370 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5371
5372 * math/Versions (GLIBC_2.29): Add log2.
5373 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
5374 symbol.
5375 * math/w_log2.c: New file.
5376 * sysdeps/i386/fpu/w_log2.c: New file.
5377 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
5378 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
5379 and add necessary aliases.
5380 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
5381 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
5382 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5383 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5384 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5385 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5386 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5387 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5388 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5389 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5390 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5391 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5392 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5393 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5394 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5395 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5396 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5397 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5398 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5399 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5400 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5401 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5402 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5403 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5404 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5405 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5406
5407 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5408
5409 * math/Versions (GLIBC_2.29): Add log.
5410 * math/w_log_compat.c (__log_compat): Change to versioned compat
5411 symbol.
5412 * math/w_log.c: New file.
5413 * sysdeps/i386/fpu/w_log.c: New file.
5414 * sysdeps/ia64/fpu/e_log.S: Update.
5415 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
5416 and add necessary aliases.
5417 * sysdeps/ieee754/dbl-64/w_log.c: New file.
5418 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
5419 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5420 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5421 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5422 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5423 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5424 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5425 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5426 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5427 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5428 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5429 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5430 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5431 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5432 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5433 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5434 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5435 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5436 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5437 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5438 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5439 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5440 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5441 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5442 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5443 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
5444 __log.
5445 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
5446 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
5447 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
5448 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
5449
5450 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5451
5452 * math/Versions (GLIBC_2.29): Add exp and exp2.
5453 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
5454 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
5455 * math/w_exp_compat.c (__exp_compat): Likewise.
5456 * math/w_exp.c: New file.
5457 * math/w_exp2.c: New file.
5458 * sysdeps/i386/fpu/w_exp.c: New file.
5459 * sysdeps/i386/fpu/w_exp2.c: New file.
5460 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
5461 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
5462 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
5463 and add necessary aliases.
5464 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
5465 and add necessary aliases.
5466 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
5467 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
5468 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
5469 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
5470 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5471 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5472 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5473 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5474 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5475 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5476 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5477 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5478 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5479 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5480 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5481 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5482 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5483 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5484 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5485 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5486 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5487 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5488 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5489 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5490 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5491 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5492 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5493 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5494 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
5495 (__ieee754_exp): Rename to __exp.
5496 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
5497 (__ieee754_exp): Rename to __exp.
5498 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
5499 (__ieee754_exp): Rename to __exp.
5500 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
5501 __exp.
5502 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
5503
5504 2018-11-20 DJ Delorie <dj@redhat.com>
5505
5506 * malloc/malloc.c (tcache_entry): Add key field.
5507 (tcache_put): Set it.
5508 (tcache_get): Likewise.
5509 (_int_free): Check for double free in tcache.
5510 * malloc/tst-tcfree1.c: New.
5511 * malloc/tst-tcfree2.c: New.
5512 * malloc/Makefile: Run the new tests.
5513 * manual/probes.texi: Document memory_tcache_double_free probe.
5514
5515 * dlfcn/dlerror.c (check_free): Prevent double frees.
5516
5517 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
5518
5519 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
5520
5521 2018-11-20 Joseph Myers <joseph@codesourcery.com>
5522
5523 * conform/conformtest.py (ElementTest.run): Use unique identifiers
5524 in tests. Use names for format arguments.
5525 (ConstantTest.run): Likewise.
5526 (SymbolTest.run): Likewise.
5527 (TypeTest.run): Likewise.
5528 (TagTest.run): Likewise.
5529 (FunctionTest.run): Likewise.
5530 (VariableTest.run): Likewise.
5531 (MacroFunctionTest.run): Likewise.
5532 (MacroStrTest.run): Likewise.
5533 (HeaderTests.__init__): Set self.num_tests.
5534 (HeaderTests.handle_test_line): Set test.num. Increment
5535 self.num_tests.
5536
5537 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
5538
5539 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
5540 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
5541 SEEK_SET.
5542
5543 2018-11-19 Mao Han <han_mao@c-sky.com>
5544
5545 * scripts/config.guess: Update to version 2018-08-29.
5546 * scripts/config.sub: Update to version 2018-08-29.
5547
5548 2018-11-19 Florian Weimer <fweimer@redhat.com>
5549
5550 support: Print timestamps in timeout handler.
5551 * support/support_test_main.c (print_timestamp): New function.
5552 (signal_handler): Use it to print the termination time and the
5553 time of the last write to standard output.
5554
5555 2018-11-16 Zack Weinberg <zackw@panix.com>
5556 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5557
5558 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
5559 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
5560 argument.
5561 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
5562 and add flags argument. Check flags instead of __ldbl_is_dbl when
5563 deciding whether to set is_long_double.
5564 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
5565 passing zero for flags argument.
5566 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
5567
5568 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5569 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
5570 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
5571 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
5572 variable names. Remove libc_hidden_def/libc_hidden_proto from
5573 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
5574 longer called from within the library.
5575 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
5576 for __nldbl___vstrfmon_l, declare it explicitly.
5577
5578 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
5579
5580 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
5581
5582 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
5583 macros
5584 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
5585 F_SETLK64, F_SETLKW64, respectively.
5586 * sysdeps/mach/hurd/f_setlk.c: New file.
5587 * sysdeps/mach/hurd/f_setlk.h: New file.
5588 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
5589 f_setlk.
5590 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
5591 (__libc_fcntl): Move non-flock operations to...
5592 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
5593 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
5594
5595 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
5596
5597 mktime: DEBUG_MKTIME cleanup
5598 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
5599 And it’s no longer needed now that glibc and Gnulib both have
5600 their own testing mechanisms for mktime.
5601 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
5602
5603 mktime: fix non-EOVERFLOW errno handling
5604 [BZ#23789]
5605 mktime was not properly reporting failures when the underlying
5606 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
5607 them like EOVERFLOW failures, and set errno to EOVERFLOW.
5608 The problem could happen on non-glibc platforms, with Gnulib.
5609 * time/mktime.c (guess_time_tm): Remove, replacing with ...
5610 (tm_diff): ... this simpler function, which does not change errno.
5611 All callers changed to deal with errno themselves.
5612 (ranged_convert, __mktime_internal): Return failure immediately if
5613 the underlying function reports any failure other than EOVERFLOW.
5614 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
5615 gap code fails.
5616
5617 mktime: fix bug with Y2038 DST transition
5618 [BZ#23789]
5619 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
5620 mishandle a DST transition that jumps over the Y2038 boundary.
5621 No such DST transitions are known so this is only a theoretical
5622 bug, but we might as well do things right.
5623
5624 mktime: make more room for overflow
5625 [BZ#23789]
5626 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
5627 This is so that we can add tm_diff results to a previous guess,
5628 which will be useful in a later patch.
5629
5630 mktime: simplify offset guess
5631 [BZ#23789]
5632 * time/mktime.c (__mktime_internal): Omit excess precision.
5633
5634 mktime: new test for mktime failure
5635 [BZ#23789]
5636 Based on a test suggested by Albert Aribaud in:
5637 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
5638 * time/Makefile (tests): Add bug-mktime4.
5639 * time/bug-mktime4.c: New file.
5640
5641 mktime: fix EOVERFLOW bug
5642 [BZ#23789]
5643 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
5644 Include libc-config.h, not config.h, for __set_errno.
5645 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
5646
5647 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
5648
5649 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
5650 __attribute_copy__ to copy attributes from name. Drop static qualifier
5651 to avoid warnings about leaf attribute not having effect on static
5652 functions.
5653
5654 2018-11-13 Florian Weimer <fweimer@redhat.com>
5655
5656 * malloc/malloc.c (fastbin_push_entry): New function.
5657 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
5658 (REMOVE_FB): Remove macro.
5659 (_int_malloc): Use fastbin_pop_entry and reindent.
5660 (_int_free): Use fastbin_push_entry.
5661 (malloc_consolidate): Use atomic_exchange_acquire.
5662
5663 2018-11-13 Joseph Myers <joseph@codesourcery.com>
5664
5665 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
5666 alias attribute, not with strong_alias.
5667
5668 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
5669 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
5670 with additional parameter thread.
5671 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
5672 in terms of __hidden_ver2.
5673 (hidden_tls_def): New macro.
5674 (libc_hidden_tls_def): Likewise.
5675 (rtld_hidden_tls_def): Likewise.
5676 (libm_hidden_tls_def): Likewise.
5677 (libmvec_hidden_tls_def): Likewise.
5678 (libresolv_hidden_tls_def): Likewise.
5679 (librt_hidden_tls_def): Likewise.
5680 (libdl_hidden_tls_def): Likewise.
5681 (libnss_files_hidden_tls_def): Likewise.
5682 (libnsl_hidden_tls_def): Likewise.
5683 (libnss_nisplus_hidden_tls_def): Likewise.
5684 (libutil_hidden_tls_def): Likewise.
5685 (libutil_hidden_tls_def): Likweise.
5686 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
5687 libc_hidden_tls_def.
5688 (__sim_disabled_exceptions_thread): Likewise.
5689 (__sim_round_mode_thread): Likewise.
5690
5691 * sysdeps/sparc/sparc-ifunc.h [SHARED]
5692 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
5693 copy attributes from name.
5694
5695 2018-11-12 Joseph Myers <joseph@codesourcery.com>
5696
5697 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
5698 Use __attribute_copy__ to copy attributes from name.
5699
5700 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
5701 with __hidden_ver1 call.
5702 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
5703 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
5704 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
5705 (__cosf): Do not declare here.
5706 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
5707 (__sincosf): Do not declare here.
5708 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
5709 (__sinf): Do not declare here.
5710
5711 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
5712 (__BIG_ENDIAN): Likewise.
5713 (__BYTE_ORDER): Likewise.
5714 (strong_alias): Likewise.
5715 (_strong_alias): Likewise.
5716
5717 2018-11-12 Florian Weimer <fweimer@redhat.com>
5718
5719 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
5720 function. Move after the definition of in_smallbin_range. Do not
5721 use __builtin_expect for paths that lead to a noreturn function.
5722 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
5723 because it is unclear whether this is in fact an unlikely
5724 condition.
5725 (_int_malloc, _int_free): Adjust.
5726 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
5727 variables.
5728 * malloc/arena.c (heap_trim): Likewise.
5729
5730 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
5731
5732 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
5733 it, free it if needed.
5734 (reauthenticate): Test and use ccwdir.
5735 (child_init_port): In non-resetids case, test and use ccwdir.
5736 (child_chdir): New nested function to set ccwdir.
5737 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
5738 * hurd/hurd/port.h (_hurd_port_move): New function.
5739 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
5740 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
5741 * hurd/Versions (_hurd_port_move): Export function.
5742 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
5743 symbol.
5744 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
5745 of dtablesize for allocating dtable_cloexec.
5746
5747 2018-11-09 Martin Sebor <msebor@redhat.com>
5748
5749 * include/libc-symbols.h (__attribute_copy__): Define macro unless
5750 it's already defined.
5751 (_strong_alias): Use __attribute_copy__.
5752 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
5753 * misc/sys/cdefs.h (__attribute_copy__): New macro.
5754 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
5755 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
5756 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
5757 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
5758 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
5759 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
5760 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
5761 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
5762 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
5763 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
5764 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
5765 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
5766 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
5767 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
5768 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
5769 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
5770 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
5771
5772 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5773
5774 * misc/tst-efgcvt.c: Include support/check.h and
5775 support/test-driver.c. Do not include test-skeleton.c.
5776 (error_count): Remove.
5777 (output_error): Replace increments to error_count with calls to
5778 support_record_failure.
5779 (output_r_error): Likewise.
5780 (special): Likewise.
5781 (do_test): Unconditionally return zero.
5782 (TEST_FUNCTION): Remove.
5783
5784 2018-11-09 Joseph Myers <joseph@codesourcery.com>
5785
5786 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
5787 not $(@D)/scratch.
5788 ($(linknamespace-header-tests)): Likewise.
5789
5790 * conform/conformtest.py: New file.
5791 * conform/conformtest.pl: Remove.
5792 * conform/GlibcConform.pm: Likewise.
5793 * conform/glibcconform.py (KEYWORDS_C90): New constant.
5794 (KEYWORDS_C99): Likewise.
5795 (KEYWORDS): Likewise.
5796 * conform/Makefile ($(conformtest-header-tests)): Use
5797 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
5798 option. Use --header instead of --headers.
5799 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
5800 function entries.
5801 * conform/data/spawn.h-data: Likewise.
5802 * conform/data/fcntl.h-data (openat): Add space after function
5803 name.
5804 * conform/data/wchar.h-data (wcscasecmp): Likewise.
5805 (wcscasecmp_l): Likewise.
5806 * conform/data/termios.h-data (c_cc): Add space after element
5807 name.
5808
5809 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5810
5811 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
5812 instead of manually comparing and reporting mismatching strings.
5813 * misc/tst-ldbl-error.c (do_one_test): Likewise.
5814 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
5815
5816 2018-11-08 Joseph Myers <joseph@codesourcery.com>
5817
5818 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
5819 __ASSUME_SOCKETCALL.
5820 * sysdeps/unix/sysv/linux/i386/kernel-features.h
5821 (__ASSUME_SOCKETCALL): Remove.
5822 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5823 (__ASSUME_SOCKETCALL): Likewise.
5824 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5825 (__ASSUME_SOCKETCALL): Likewise.
5826 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
5827 (__ASSUME_SOCKETCALL): Likewise.
5828 * sysdeps/unix/sysv/linux/s390/kernel-features.h
5829 (__ASSUME_SOCKETCALL): Likewise.
5830 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5831 (__ASSUME_SOCKETCALL): Likewise.
5832 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
5833 (__ASSUME_SOCKETCALL): Likewise.
5834
5835 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
5836
5837 [BZ #23509]
5838 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
5839 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
5840 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
5841 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
5842 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
5843 lc_unknown.
5844
5845 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
5846
5847 [BZ #17630]
5848 * resolv/tst-resolv-network.c: Add test for getnetbyname.
5849
5850 2018-11-07 Joseph Myers <joseph@codesourcery.com>
5851
5852 [BZ #23867]
5853 * sysdeps/unix/sysv/linux/arm/kernel-features.h
5854 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5855 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5856 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5857
5858 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5859
5860 * support/support_test_compare_string.c
5861 (support_test_compare_string): Fix printf format.
5862
5863 2018-11-07 Florian Weimer <fweimer@redhat.com>
5864
5865 Implement TEST_COMPARE_STRING.
5866 * support/check.h (TEST_COMPARE_STRING): Define.
5867 (support_test_compare_string): Declare.
5868 * support/Makefile (libsupport-routines): Add
5869 support_test_compare_string.
5870 (tests): Add tst-test_compare_string.
5871 * support/support_test_compare_string.c: New file.
5872 * support/tst-test_compare_string.c: Likewise.
5873
5874 2018-11-07 Andreas Schwab <schwab@suse.de>
5875
5876 [BZ #23864]
5877 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
5878 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
5879 Undef.
5880
5881 2018-11-06 Joseph Myers <joseph@codesourcery.com>
5882
5883 [BZ #23862]
5884 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5885 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
5886 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
5887 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
5888 Likewise.
5889
5890 2018-11-06 Florian Weimer <fweimer@redhat.com>
5891
5892 [BZ #17405]
5893 * posix/Makefile (routines): Add spawn_faction_addchdir.
5894 (tests): Add tst-spawn-chdir.
5895 * posix/Versions (GLIBC_2.29): Add
5896 posix_spawn_file_actions_addchdir_np.
5897 * posix/spawn_faction_addchdir.c: New file.
5898 * posix/spawn_faction_destroy.c
5899 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
5900 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
5901 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
5902 chdir_action.
5903 * posix/tst-spawn-chdir.c: New file.
5904 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
5905 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
5906 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
5907 posix_spawn_file_actions_addchdir_np.
5908 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
5909 Likewise.
5910 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
5911 Likewise.
5912 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
5913 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
5914 Likewise.
5915 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
5916 Likewise.
5917 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
5918 Likewise.
5919 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
5920 Likewise.
5921 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
5922 Likewise.
5923 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
5924 Likewise.
5925 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
5926 (GLIBC_2.29): Likewise.
5927 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
5928 (GLIBC_2.29): Likewise.
5929 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
5930 (GLIBC_2.29): Likewise.
5931 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
5932 (GLIBC_2.29): Likewise.
5933 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
5934 Likewise.
5935 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
5936 (GLIBC_2.29): Likewise.
5937 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
5938 (GLIBC_2.29): Likewise.
5939 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
5940 (GLIBC_2.29): Likewise.
5941 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
5942 (GLIBC_2.29): Likewise.
5943 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
5944 Likewise.
5945 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
5946 Likewise.
5947 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
5948 Likewise.
5949 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
5950 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
5951 Likewise.
5952 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
5953 Likewise.
5954 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
5955 Likewise.
5956 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
5957 Likewise.
5958
5959 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5960
5961 * misc/Makefile (tests): Add tst-ldbl-error.
5962 * misc/tst-ldbl-error.c: New file.
5963
5964 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5965
5966 * misc/Makefile (tests): Add tst-ldbl-warn.
5967 * misc/tst-ldbl-warn.c: New file.
5968
5969 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5970
5971 * argp/Makefile (tests): Add tst-ldbl-argp.
5972 * argp/tst-ldbl-argp.c: New file.
5973
5974 2018-11-05 Arjun Shankar <arjun@redhat.com>
5975
5976 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
5977 __gconv_path_elem and call __gconv_get_path unconditionally.
5978
5979 2018-11-05 Andreas Schwab <schwab@suse.de>
5980
5981 [BZ #22927]
5982 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
5983 creating the first helper thread failed.
5984
5985 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
5986
5987 * sysdeps/mach/hurd/msync.c: New file.
5988
5989 2018-11-02 Florian Weimer <fweimer@redhat.com>
5990
5991 * support/shell-container.c (copy_func): Call
5992 support_copy_file_range instead of copy_file_range to support
5993 cross-device copies.
5994
5995 2018-11-02 Florian Weimer <fweimer@redhat.com>
5996
5997 * support/test-container.c: Include <libc-pointer-arith.h> for
5998 ALIGN_UP.
5999
6000 2018-11-01 Zong Li <zong@andestech.com>
6001
6002 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
6003 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
6004 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
6005 (__FP_FRAC_SET_8): Add implementation for RV32 use.
6006
6007 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
6008 variable to avoid overlap arguments.
6009
6010 2018-11-01 Joseph Myers <joseph@codesourcery.com>
6011
6012 * posix/bug-regex22.c (main): Use puts with distinct error
6013 messages for unexpected success of re_compile_pattern, not printf
6014 with NULL argument to %s.
6015
6016 * stdio-common/bug22.c: Include <libc-diag.h>.
6017 (do_test): Disable -Wformat-overflow= warnings around fprintf
6018 calls outputting more than INT_MAX characters.
6019 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
6020 around printf call with NULL %s argument.
6021
6022 [BZ #23848]
6023 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
6024 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
6025 Undefine.
6026 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
6027 (__ASSUME_RECVMSG_SYSCALL): Likewise.
6028 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
6029 (__ASSUME_SENDTO_SYSCALL): Likewise.
6030 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
6031 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
6032 [!__arch64__].
6033 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
6034 (__ASSUME_CONNECT_SYSCALL): Likewise.
6035 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
6036 (__ASSUME_RECVFROM_SYSCALL): Likewise.
6037 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
6038 Define.
6039 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
6040 Likewise.
6041 [__LINUX_KERNEL_VERSION >= 0x040400]
6042 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6043 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
6044 Remove.
6045 (listen): Likewise.
6046 (setsockopt): Likewise.
6047
6048 2018-11-01 Fredrik Noring <noring@nocrew.org>
6049
6050 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
6051 with the ISA override.
6052
6053 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
6054
6055 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
6056 #endif.
6057
6058 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
6059
6060 * manual/errno.texi (EIEIO): Document how translators should
6061 translate the error message.
6062 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
6063 printing trailing whitespaces refused by git.
6064 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
6065 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
6066 * hurd/Makefile (user-interfaces): Add pci.
6067
6068 2018-10-30 Joseph Myers <joseph@codesourcery.com>
6069
6070 * conform/linknamespace.py: New file.
6071 * conform/linknamespace.pl: Remove file.
6072 * conform/Makefile ($(linknamespace-header-tests)): Use
6073 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
6074 option.
6075
6076 2018-10-30 Florian Weimer <fweimer@redhat.com>
6077
6078 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
6079 memory leaks.
6080
6081 2018-10-30 Florian Weimer <fweimer@redhat.com>
6082
6083 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
6084
6085 2018-10-30 Florian Weimer <fweimer@redhat.com>
6086
6087 * stdlib/tst-strtod-overflow.c (do_test): Switch to
6088 support_blob_repeat.
6089
6090 2018-10-30 Florian Weimer <fweimer@redhat.com>
6091
6092 Avoid spurious test failures in stdlib/test-bz22786.
6093 * support/Makefile (libsupport-routines): Add blob_repeat.
6094 (tests): Add tst-support_blob_repeat.
6095 * support/blob_repeat.h: New file.
6096 * support/blob_repeat.c: Likewise.
6097 * support/tst-support_blob_repeat.c: Likewise.
6098 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
6099 support_blob_repeat_allocate.
6100
6101 2018-10-30 Andreas Schwab <schwab@suse.de>
6102
6103 [BZ #23125]
6104 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
6105 Don't use tail call.
6106 * elf/tst-unwind-main.c: New file.
6107 * elf/Makefile (tests): Add tst-unwind-main.
6108 (CFLAGS-tst-unwind-main.c): Define.
6109
6110 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
6111
6112 [BZ #23791]
6113 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
6114 n_cs_precedes to 0.
6115 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
6116
6117 2018-10-29 Joseph Myers <joseph@codesourcery.com>
6118
6119 * conform/glibcconform.py: Do not import shutil.
6120 (list_exported_functions): Use tempfile.TemporaryDirectory instead
6121 of mkdtemp.
6122
6123 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
6124 critic_missing for versions before 3.4.
6125 * configure: Regenerated.
6126 * manual/install.texi (Tools for Compilation): Document
6127 requirement for Python to build glibc.
6128 * INSTALL: Regenerated.
6129 * Rules [PYTHON]: Make code unconditional.
6130 * benchtests/Makefile [PYTHON]: Likewise.
6131 * conform/Makefile [PYTHON]: Likewise.
6132 * manual/Makefile [PYTHON]: Likewise.
6133 * math/Makefile [PYTHON]: Likewise.
6134
6135 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
6136
6137 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
6138 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
6139 answer to interrupt_operation, return EIEIO instead of EINTR.
6140 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
6141 _hurd_intr_rpc_msg_about_to global point to start of controlled
6142 assembly snippet. Make it check canceled flag.
6143 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
6144 the _hurd_intr_rpc_msg_about_to point.
6145 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
6146 issue, remove cancel flag check.
6147
6148 2018-10-26 Joseph Myers <joseph@codesourcery.com>
6149
6150 * scripts/build-many-glibcs.py: Remove compatibility for missing
6151 os.cpu_count and re.fullmatch.
6152
6153 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
6154
6155 [BZ #23822]
6156 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
6157 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
6158 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
6159
6160 2018-10-25 Joseph Myers <joseph@codesourcery.com>
6161
6162 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
6163 macro.
6164
6165 2018-10-25 Florian Weimer <fweimer@redhat.com>
6166
6167 [BZ #23562]
6168 [BZ #23821]
6169 XFAIL siginfo_t si_band conform test on sparc64.
6170 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
6171 (__SI_BAND_TYPE): Only override long int default type on sparc64.
6172 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
6173 (conformtest-xfail-conds): Add sparc64-linux.
6174 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
6175 sparc64.
6176 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
6177
6178 2018-10-25 Joseph Myers <joseph@codesourcery.com>
6179
6180 * elf/elf.h (NT_MIPS_DSP): New macro.
6181 (NT_MIPS_FP_MODE): Likewise.
6182
6183 2018-10-25 Zong Li <zong@andestech.com>
6184
6185 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
6186 name by adding the file extension (.so).
6187
6188 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
6189
6190 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
6191 (test-xfail-ISO11/threads.h/linknamespace,
6192 test-xfail-ISO11/threads.h/conform): Add.
6193
6194 2018-10-24 Joseph Myers <joseph@codesourcery.com>
6195
6196 * math/gen-libm-test.py: Import os.
6197 (ALL_FLOATS_MANUAL): New constant.
6198 (ALL_FLOATS_SUFFIX): Likewise.
6199 (Ulps.all_functions): New function.
6200 (real_all_ulps): Likewise.
6201 (generate_err_table_sub): Likewise.
6202 (generate_err_table): Likewise.
6203 (main): Handle -s and -m options.
6204 * manual/libm-err-tab.pl: Remove.
6205 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
6206 instead of libm-err-tab.pl.
6207 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
6208 != no].
6209 * manual/install.texi (Tools for Compilation): Document
6210 requirement for Python to build manual.
6211 * INSTALL: Regenerated.
6212
6213 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
6214
6215 * bits/time64.h: New file.
6216 * include/time.h: Replace internal_time_t with __time64_t.
6217 * posix/bits/types (__time64_t): Add.
6218 * stdlib/Makefile: Add bits/time64.h to includes.
6219 * time/tzfile.c: Replace internal_time_t with __time64_t.
6220
6221 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6222
6223 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
6224 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
6225 __posix_spawn_file_actions_init, __posix_spawnattr_init,
6226 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
6227 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
6228 prototype.
6229 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
6230 * posix/spawn_faction_addclose.c
6231 (__posix_spawn_file_actions_addclose): Add hidden definition.
6232 * posix/spawn_faction_adddup2.c
6233 (__posix_spawn_file_actions_adddup2): Likewise.
6234 * posix/spawn_faction_destroy.c
6235 (__posix_spawn_file_actions_destroy): Likewise.
6236 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
6237 Likewise.
6238 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
6239 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
6240 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
6241 Likewise.
6242 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
6243 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
6244 Likewise.
6245
6246 2018-10-24 Andreas Schwab <schwab@suse.de>
6247
6248 [BZ #18093]
6249 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
6250 format cache.
6251 * elf/cache.c (print_cache): Likewise.
6252
6253 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
6254
6255 * bits/timesize.h: New file.
6256 * stdlib/Makefile (headers): Add bits/timesize.h.
6257 * sysdeps/unix/sysv/linux/bits/msq-pad.h
6258 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
6259 * sysdeps/unix/sysv/linux/bits/sem-pad.h
6260 (__SEM_PAD_AFTER_TIME): Likewise.
6261 * sysdeps/unix/sysv/linux/bits/shm-pad.h
6262 (__SHM_PAD_AFTER_TIME): Likewise.
6263 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
6264 (__MSQ_PAD_BEFORE_TIME): Likewise.
6265 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
6266 (__SEM_PAD_BEFORE_TIME): Likewise.
6267 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
6268 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
6269 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
6270 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
6271 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
6272 (__MSQ_PAD_BEFORE_TIME): Likewise.
6273 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
6274 (__SEM_PAD_BEFORE_TIME): Likewise.
6275 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
6276 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
6277 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
6278 (__MSQ_PAD_BEFORE_TIME): Likewise.
6279 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
6280 (__SEM_PAD_BEFORE_TIME): Likewise.
6281 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
6282 (__SHM_PAD_BEFORE_TIME): Likewise.
6283 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
6284 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
6285 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
6286
6287 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
6288
6289 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
6290 USE_RDTSCP is defined.
6291 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
6292 USE_RDTSCP is defined.
6293
6294 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6295
6296 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
6297 defined.
6298
6299 [BZ #23709]
6300 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
6301 independently of other flags.
6302
6303 2018-10-23 Florian Weimer <fweimer@redhat.com>
6304
6305 * time/tst-mktime2.c (N_STRINGS): Remove.
6306 (set_timezone): New function.
6307 (spring_forward_gap): Call it. Use FAIL_EXIT1.
6308 (mktime_test1): Report localtime failure and check errno value.
6309 Use TEST_COMPARE.
6310 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
6311 (do_test): Remove alarm call. Use set_timezone and array_length.
6312
6313 2018-10-23 Andreas Schwab <schwab@suse.de>
6314
6315 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
6316 (__start_context): Use END instead of PSEUDO_END.
6317
6318 2018-10-22 Joseph Myers <joseph@codesourcery.com>
6319
6320 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
6321 version to 4.19.
6322
6323 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
6324 version to 4.19.
6325
6326 [BZ #23793]
6327 * wcsmbs/c32rtomb.c: New file.
6328 * wcsmbs/mbrtoc32.c: Likewise.
6329 * wcsmbs/tst-c32-state.c: Likewise.
6330 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
6331 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
6332 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
6333 (tests): Add tst-c32-state.
6334 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
6335 $(gen-locales).
6336
6337 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
6338
6339 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
6340 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
6341
6342 2018-10-19 Joseph Myers <joseph@codesourcery.com>
6343
6344 [BZ #23794]
6345 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
6346 pair and return 0 in that case, and use saved character to
6347 interpret following character.
6348 * wcsmbs/tst-c16-surrogate.c: New file.
6349 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
6350 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
6351 Depend on $(gen-locales)
6352
6353 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
6354
6355 [BZ #23562]
6356 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
6357 (struct siginfo_t): Use correct type for si_band.
6358
6359 2018-10-19 Florian Weimer <fweimer@redhat.com>
6360
6361 [BZ #23689]
6362 * resource/bits/types/struct_rusage.h (struct rusage): Update
6363 comment on struct. Remove extraneous field comment.
6364
6365 2018-10-18 David S. Miller <davem@davemloft.net>
6366
6367 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
6368 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
6369 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
6370 sysdep_routines in subdir elf.
6371 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
6372 version for __vdso_clock_gettime.
6373 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
6374 Define.
6375 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
6376 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
6377
6378 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
6379
6380 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
6381
6382 * sysdeps/i386/init-arch.h: Removed.
6383 * sysdeps/i386/i586/init-arch.h: Likewise.
6384 * sysdeps/i386/i686/init-arch.h: Likewise.
6385 * sysdeps/i386/i686/hp-timing.h: Likewise.
6386 * sysdeps/x86_64/hp-timing.h: Likewise.
6387 * sysdeps/i386/isa.h: New file.
6388 * sysdeps/i386/i586/isa.h: Likewise.
6389 * sysdeps/i386/i686/isa.h: Likewise.
6390 * sysdeps/x86_64/isa.h: Likewise.
6391 * sysdeps/x86/hp-timing.h: New file.
6392 * sysdeps/x86/init-arch.h: Include <isa.h>.
6393
6394 2018-10-17 Joseph Myers <joseph@codesourcery.com>
6395
6396 * math/libm-test-pow.inc (pow_test_data): Do not allow
6397 divide-by-zero exception for pow(+/- 0, -Inf).
6398
6399 2018-10-17 Zack Weinberg <zackw@panix.com>
6400
6401 * manual/job.texi (Job Control is Optional): Remove node, as
6402 job control has not been optional in quite some time.
6403 (Job Control): Mention briefly that systems older than
6404 POSIX.1-2001 might not support job control.
6405 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
6406 defined on systems conforming to POSIX.1-2001.
6407
6408 2018-10-17 Arjun Shankar <arjun@redhat.com>
6409
6410 [BZ #22062]
6411 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
6412 indentation.
6413 * (__gconv_read_conf): Mark function static.
6414 * (once): New static variable.
6415 * (__gconv_load_conf): New function.
6416 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
6417 * iconv/gconv_db.c (once): Remove static variable.
6418 * (__gconv_compare_alias): Use __gconv_load_conf instead of
6419 __gconv_read_conf.
6420 * (__gconv_find_transform): Likewise.
6421 * iconv/tst-iconv-mt.c: New test.
6422 * iconv/Makefile: Add tst-iconv_mt.
6423
6424 2018-10-17 Joseph Myers <joseph@codesourcery.com>
6425
6426 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6427 bits/shm-pad.h.
6428 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
6429 (shmatt_t): Define as __syscall_ulong_t.
6430 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
6431 and [__SHM_PAD_AFTER_TIME].
6432 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
6433 Define shm_segsz and associated padding based on
6434 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
6435 Use __syscall_ulong_t instead of unsigned long int.
6436 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
6437 unsigned long int.
6438 [__USE_MISC] (struct shm_info): Likewise.
6439 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
6440 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
6441 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
6442 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
6443 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
6444 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
6445 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
6446 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
6447 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
6448 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
6449 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
6450
6451 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6452 bits/shmlba.h.
6453 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
6454 (SHMLBA): Remove macro.
6455 (__getpagesize): Remove function declaration.
6456 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
6457 <bits/shmlba.h>.
6458 (SHMLBA): Remove macro.
6459 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
6460 <bits/shmlba.h>.
6461 (SHMLBA): Remove macro.
6462 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
6463 <bits/shmlba.h>.
6464 (SHMLBA): Remove macro.
6465 (__getpagesize): Remove function declaration.
6466 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
6467 <bits/shmlba.h>.
6468 (SHMLBA): Remove macro.
6469 (__getshmlba): Remove function declaration.
6470 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
6471 (SHMLBA): Remove macro.
6472 (__getpagesize): Remove function declaration.
6473 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
6474 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
6475 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
6476 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
6477 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
6478 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
6479 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
6480 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
6481 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
6482 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
6483
6484 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
6485
6486 [BZ #23275]
6487 * nptl/tst-mutex10.c: New File.
6488 * nptl/Makefile (tests): Add tst-mutex10.
6489 (tst-mutex10-ENV): New variable.
6490 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
6491 Ensure that elision path is used if elision is available.
6492 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
6493 Likewise.
6494 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
6495 Likewise.
6496 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
6497 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
6498 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
6499 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
6500 Likewise.
6501 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
6502 (__pthread_mutex_cond_lock_adjust): Likewise.
6503 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
6504 Likewise.
6505 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
6506 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
6507 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
6508 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
6509 Add comments.
6510 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
6511 Use atomic_load_relaxed and atomic_store_relaxed.
6512 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
6513 Use atomic_store_relaxed.
6514
6515 2018-10-17 Andreas Schwab <schwab@suse.de>
6516
6517 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
6518 * crypt/badsalttest.c (TIMEOUT): Likewise.
6519 * crypt/sha256c-test.c (TIMEOUT): Likewise.
6520 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
6521 * io/test-lfs.c (TIMEOUT): Likewise.
6522 * libio/tst-atime.c (TIMEOUT): Likewise.
6523 * localedata/tst-leaks.c (TIMEOUT): Likewise.
6524 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
6525 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
6526 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
6527 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
6528 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
6529 * nptl/tst-cond11.c (TIMEOUT): Likewise.
6530 * nptl/tst-cond14.c (TIMEOUT): Likewise.
6531 * nptl/tst-cond15.c (TIMEOUT): Likewise.
6532 * nptl/tst-cond24.c (TIMEOUT): Likewise.
6533 * nptl/tst-cond25.c (TIMEOUT): Likewise.
6534 * nptl/tst-kill2.c (TIMEOUT): Likewise.
6535 * nptl/tst-kill3.c (TIMEOUT): Likewise.
6536 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
6537 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
6538 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
6539 * nptl/tst-once2.c (TIMEOUT): Likewise.
6540 * nptl/tst-once3.c (TIMEOUT): Likewise.
6541 * nptl/tst-once4.c (TIMEOUT): Likewise.
6542 * nptl/tst-robust8.c (TIMEOUT): Likewise.
6543 * nptl/tst-robust9.c (TIMEOUT): Likewise.
6544 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
6545 * nptl/tst-sem14.c (TIMEOUT): Likewise.
6546 * nptl/tst-sem6.c (TIMEOUT): Likewise.
6547 * nptl/tst-signal3.c (TIMEOUT): Likewise.
6548 * nptl/tst-spin4.c (TIMEOUT): Likewise.
6549 * nptl/tst-tls3.c (TIMEOUT): Likewise.
6550 * nptl/tst-tls4.c (TIMEOUT): Likewise.
6551 * posix/tst-chmod.c (TIMEOUT): Likewise.
6552 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
6553 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
6554 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
6555 * posix/tst-regex2.c (TIMEOUT): Likewise.
6556 * posix/tst-waitid.c (TIMEOUT): Likewise.
6557 * rt/tst-aio.c (TIMEOUT): Likewise.
6558 * rt/tst-aio10.c (TIMEOUT): Likewise.
6559 * rt/tst-aio4.c (TIMEOUT): Likewise.
6560 * rt/tst-aio5.c (TIMEOUT): Likewise.
6561 * rt/tst-aio6.c (TIMEOUT): Likewise.
6562 * rt/tst-aio64.c (TIMEOUT): Likewise.
6563 * rt/tst-aio7.c (TIMEOUT): Likewise.
6564 * rt/tst-aio9.c (TIMEOUT): Likewise.
6565 * rt/tst-clock.c (TIMEOUT): Likewise.
6566 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
6567 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
6568 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
6569 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
6570 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
6571 * rt/tst-timer4.c (TIMEOUT): Likewise.
6572 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
6573 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
6574 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
6575 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
6576 * time/tst-ftime.c (TIMEOUT): Likewise.
6577 * timezone/tst-tzset.c (TIMEOUT): Likewise.
6578
6579 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
6580
6581 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
6582 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
6583 for thunderX2.
6584
6585 2018-10-15 Joseph Myers <joseph@codesourcery.com>
6586
6587 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6588 bits/sem-pad.h.
6589 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
6590 instead of <bits/wordsize.h>.
6591 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
6592 and [__SEM_PAD_AFTER_TIME].
6593 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
6594 __syscall_ulong_t instead of unsigned long int.
6595 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
6596 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
6597 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
6598 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
6599 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
6600 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
6601 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
6602 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
6603 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
6604 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
6605 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
6606
6607 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
6608
6609 regex: simplify by using intprops.h
6610 [BZ#23744]
6611 * posix/regex_internal.h [_LIBC]: Include intprops.h.
6612 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
6613 intprops.h defines them.
6614
6615 regex: __builtin_expect → __glibc_unlikely
6616 [BZ#23744]
6617 This refactoring was prompted by a problem when the regex code is
6618 used as part of Gnulib and when the builder’s compiler does not grok
6619 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
6620 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
6621 Although this refactoring does not fix the problem directly,
6622 we might as well have Gawk use the now-preferred glibc style for when
6623 __builtin_expect is unavailable.
6624 * posix/regex_internal.h (BE): Remove.
6625 All uses replaced by __glibc_unlikely or __glibc_likely.
6626
6627 2018-10-11 Joseph Myers <joseph@codesourcery.com>
6628
6629 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6630 bits/msq-pad.h.
6631 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
6632 instead of <bits/wordsize.h>.
6633 (msgqnum_t): Define as __syscall_ulong_t.
6634 (msglen_t): Likewise.
6635 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
6636 and [__MSQ_PAD_AFTER_TIME].
6637 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
6638 __syscall_ulong_t instead of unsigned long int.
6639 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
6640 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
6641 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
6642 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
6643 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
6644 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
6645 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
6646 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
6647 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
6648 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
6649 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
6650
6651 2018-10-10 Joseph Myers <joseph@codesourcery.com>
6652
6653 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
6654 (struct shmid_ds): Condition padding after time fields on
6655 [__WORDSIZE == 32].
6656 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
6657 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
6658 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
6659
6660 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
6661 (struct semid_ds): Condition padding after time fields on
6662 [__WORDSIZE == 32].
6663 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
6664 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
6665 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
6666 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
6667
6668 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
6669 (struct msqid_ds): Condition padding after time fields on
6670 [__WORDSIZE == 32].
6671 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
6672 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
6673 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
6674 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
6675
6676 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
6677
6678 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
6679
6680 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
6681
6682 * libio/tst-readline.c (TIMEOUT): Define.
6683
6684 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
6685
6686 mktime fix for Gnulib + coreutils
6687 [BZ#23745]
6688 This fix affects only Gnulib. Problem discovered when
6689 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
6690 * time/mktime.c:
6691 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
6692 Do not define since it is not used. Defining an unused static
6693 function prompts a warning from GCC when Coreutils is configured
6694 with --enable-gcc-warnings.
6695
6696 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
6697
6698 * benchtests/scripts/compare_bench.py (main): set float type on
6699 threshold argument.
6700
6701 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
6702
6703 [BZ #23740]
6704 * localedata/locales/kl_GL (mon): Update, the relative case.
6705 (alt_mon): Add, fill with month names in the nominative case.
6706 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
6707 (d_fmt): Set to "%b %d %Y".
6708
6709 2018-10-04 Joseph Myers <joseph@codesourcery.com>
6710
6711 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
6712 <bits/mman-linux.h>.
6713 (PROT_READ): Don't define here.
6714 (PROT_WRITE): Likewise.
6715 (PROT_EXEC): Likewise.
6716 (PROT_NONE): Likewise.
6717 (PROT_GROWSDOWN): Likewise.
6718 (PROT_GROWSUP): Likewise.
6719 (MAP_SHARED): Likewise.
6720 (MAP_PRIVATE): Likewise.
6721 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
6722 [__USE_MISC] (MAP_FILE): Likewise.
6723 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
6724 [__USE_MISC] (MAP_ANON): Likewise.
6725 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
6726 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
6727 (MCL_CURRENT): Likewise.
6728 (MCL_FUTURE): Likewise.
6729 (MCL_ONFAULT): Likewise.
6730 [__USE_MISC] (MADV_NORMAL): Likewise.
6731 [__USE_MISC] (MADV_RANDOM): Likewise.
6732 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
6733 [__USE_MISC] (MADV_WILLNEED): Likewise.
6734 [__USE_MISC] (MADV_DONTNEED): Likewise.
6735 [__USE_MISC] (MADV_FREE): Likewise.
6736 [__USE_MISC] (MADV_REMOVE): Likewise.
6737 [__USE_MISC] (MADV_DONTFORK): Likewise.
6738 [__USE_MISC] (MADV_DOFORK): Likewise.
6739 [__USE_MISC] (MADV_HWPOISON): Likewise.
6740 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
6741 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
6742 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
6743 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
6744 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
6745 (__MAP_ANONYMOUS): New macro.
6746 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
6747 <bits/mman-linux.h> inclusion.
6748 (MAP_FIXED): Likewise.
6749 (MS_SYNC): Likewise.
6750 (MS_ASYNC): Likewise.
6751 (MS_INVALIDATE): Likewise.
6752 [__USE_MISC] (MADV_MERGEABLE): Likewise.
6753 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
6754 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
6755 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
6756 [__USE_MISC] (MADV_DONTDUMP): Likewise.
6757 [__USE_MISC] (MADV_DODUMP): Likewise.
6758 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
6759 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
6760
6761 [BZ #23735]
6762 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
6763 Define.
6764 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
6765 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
6766 Add test-nldbl-redirect.
6767 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
6768 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
6769 $(objpfx)libnldbl_nonshared.a.
6770
6771 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
6772
6773 * support/support.h (support_objdir_elf_ldso): New variable.
6774 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
6775 * support/Makefile (CFLAGS-support_paths.c): Add definition
6776 for OBJDIR_ELF_LDSO_PATH.
6777 * support/test-container.c (main): Search for the ld.so
6778 which is also used by the testsuite.
6779
6780 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
6781
6782 [BZ #20209]
6783 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
6784 should be "sap" rather than "sab".
6785 (day): Fix spelling of Sunday, should be "sapaat" rather than
6786 "sabaat".
6787
6788 2018-10-02 Joseph Myers <joseph@codesourcery.com>
6789
6790 * math/libm-test-fma.inc (fma_test_data): Add more tests.
6791
6792 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
6793
6794 [BZ #19444]
6795 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
6796 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
6797 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
6798
6799 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6800
6801 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
6802
6803 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
6804
6805 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
6806 Add -mrtm.
6807 (CFLAGS-elision-unlock.c): Likewise.
6808 (CFLAGS-elision-timed.c): Likewise.
6809 (CFLAGS-elision-trylock.c): Likewise.
6810 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
6811
6812 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6813
6814 [BZ #21037]
6815 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
6816 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
6817 new fd_to_filename interface.
6818 * libio/freopen64.c (freopen64): Likewise.
6819 * libio/tst-memstream.h: New file.
6820 * libio/tst-memstream4.c: Likewise.
6821 * libio/tst-wmemstream4.c: Likewise.
6822 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
6823 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
6824 and remove internal dynamic allocation.
6825
6826 2018-10-01 Joseph Myers <joseph@codesourcery.com>
6827
6828 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
6829 (MREMAP_MAYMOVE): Do not define here.
6830 [__USE_GNU] (MREMAP_FIXED): Likewise.
6831 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
6832 (MREMAP_MAYMOVE): Define here instead.
6833 [__USE_GNU] (MREMAP_FIXED): Likewise.
6834 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
6835 (MREMAP_MAYMOVE): Remove.
6836 [__USE_GNU] (MREMAP_FIXED): Likewise.
6837
6838 2018-09-28 Joseph Myers <joseph@codesourcery.com>
6839
6840 * math/fromfp.h: Do not include <math_private.h>.
6841 * math/s_cacosh_template.c: Likewise.
6842 * math/s_casin_template.c: Likewise.
6843 * math/s_casinh_template.c: Likewise.
6844 * math/s_ccos_template.c: Likewise.
6845 * math/s_cproj_template.c: Likewise.
6846 * math/s_fdim_template.c: Likewise.
6847 * math/s_fmaxmag_template.c: Likewise.
6848 * math/s_fminmag_template.c: Likewise.
6849 * math/s_iseqsig_template.c: Likewise.
6850 * math/s_ldexp_template.c: Likewise.
6851 * math/s_nextdown_template.c: Likewise.
6852 * math/w_log1p_template.c: Likewise.
6853 * math/w_scalbln_template.c: Likewise.
6854 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
6855 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
6856 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
6857 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
6858 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
6859 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
6860 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
6861 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
6862 * sysdeps/i386/fpu/s_atanl.c: Likewise.
6863 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
6864 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
6865 * sysdeps/i386/fpu/s_fdim.c: Likewise.
6866 * sysdeps/i386/fpu/s_logbl.c: Likewise.
6867 * sysdeps/i386/fpu/s_rintl.c: Likewise.
6868 * sysdeps/i386/fpu/s_significandl.c: Likewise.
6869 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
6870 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
6871 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6872 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
6873 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
6874 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6875 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
6876 * sysdeps/ieee754/k_standardf.c: Likewise.
6877 * sysdeps/ieee754/k_standardl.c: Likewise.
6878 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6879 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
6880 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
6881 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
6882 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
6883 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
6884 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
6885 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6886 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6887 * sysdeps/ieee754/s_signgam.c: Likewise.
6888 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
6889 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
6890 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
6891 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6892 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6893 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
6894 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6895 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
6896 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6897 * sysdeps/riscv/rvd/s_finite.c: Likewise.
6898 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
6899 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
6900 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
6901 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
6902 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
6903 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
6904 * sysdeps/riscv/rvf/fegetround.c: Likewise.
6905 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
6906 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
6907 * sysdeps/riscv/rvf/fesetround.c: Likewise.
6908 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
6909 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
6910 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
6911 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6912 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
6913 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6914 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
6915 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
6916 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
6917 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
6918 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
6919 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
6920 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
6921 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
6922 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6923 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6924 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
6925 <math_private.h>.
6926 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6927
6928 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
6929
6930 [BZ #23716]
6931 * sysdeps/i386/dl-cet.c: Removed.
6932 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
6933 prototype.
6934 (_dl_runtime_profile_shstk): Likewise.
6935 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
6936 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
6937
6938 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6939
6940 [BZ #23579]
6941 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
6942 do_test_with_invalid_iov): New tests.
6943 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
6944 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
6945 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
6946 errno is ENOSYS.
6947 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
6948 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
6949 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
6950
6951 2018-09-27 Joseph Myers <joseph@codesourcery.com>
6952
6953 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6954 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
6955 (MATH_REDIRECT_BINARY_ARGS): New macro.
6956 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6957 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
6958 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
6959 header inclusion.
6960 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
6961 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
6962 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
6963 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
6964 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
6965 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6966 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
6967 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
6968 Likewise.
6969 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
6970 Likewise.
6971 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
6972 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
6973 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
6974 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
6975 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
6976 Likewise.
6977 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
6978 Likewise.
6979 * sysdeps/generic/math_private_calls.h
6980 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
6981 Do not declare and define as an inline function.
6982 * math/divtc3.c (__divtc3): Use copysign functions instead of
6983 __copysign variants.
6984 * math/multc3.c (__multc3): Likewise.
6985 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
6986 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
6987 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
6988 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
6989 Likewise.
6990 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
6991 (__ieee754_yn): Likewise.
6992 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
6993 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
6994 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
6995 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
6996 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
6997 (__sin): Likewise.
6998 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
6999 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
7000 Likewise.
7001 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
7002 Likewise.
7003 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
7004 Likewise.
7005 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
7006 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
7007 Likewise.
7008 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
7009 (__ieee754_ynf): Likewise.
7010 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
7011 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
7012 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
7013 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
7014 Likewise.
7015 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
7016 (__ieee754_ynl): Likewise.
7017 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
7018 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
7019 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
7020 Likewise.
7021 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
7022 (__ieee754_ynl): Likewise.
7023 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
7024 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
7025 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
7026 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7027 Likewise.
7028 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
7029 (__ieee754_ynl)
7030 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
7031 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
7032 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
7033 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7034 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7035
7036 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7037 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
7038 using MATH_REDIRECT.
7039 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
7040 header inclusion.
7041 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
7042 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
7043 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
7044 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
7045 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
7046 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
7047 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
7048 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
7049 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
7050 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
7051 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
7052 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
7053 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
7054 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
7055 (round): Redirect to __round.
7056 (__roundl): Call round instead of __round.
7057 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
7058 Remove macro.
7059 [_ARCH_PWR5X] (__roundf): Likewise.
7060 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
7061 functions instead of __round variants.
7062 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
7063 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
7064 Likewise.
7065 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
7066 Likewise.
7067 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
7068 Likewise.
7069 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
7070 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
7071 __lroundl.
7072 (__ieee754_expl): Call roundl instead of __roundl.
7073
7074 2018-09-27 Andreas Schwab <schwab@suse.de>
7075
7076 [BZ #23717]
7077 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
7078 (do_test): Make st1 static.
7079
7080 2018-09-26 Andreas Schwab <schwab@suse.de>
7081
7082 [BZ #23707]
7083 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
7084 * elf/Makefile (tests): Add tst-unwind-ctor.
7085 (modules-names): Add tst-unwind-ctor-lib.
7086 ($(objpfx)tst-unwind-ctor): Depend on
7087 $(objpfx)tst-unwind-ctor-lib.so.
7088
7089 2018-09-26 Joseph Myers <joseph@codesourcery.com>
7090
7091 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
7092 file. Most contents moved from ....
7093 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
7094 and include <bits/mman-map-flags-generic.h>.
7095 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7096 (sysdep_headers): Add bits/mman-map-flags-generic.h.
7097 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
7098 <bits/mman-map-flags-generic.h>.
7099 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
7100 macros defined in <bits/mman-map-flags-generic.h>.
7101 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
7102 <bits/mman-map-flags-generic.h>.
7103 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
7104 defined in <bits/mman-map-flags-generic.h>.
7105
7106 2018-09-26 Andreas Schwab <schwab@suse.de>
7107
7108 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
7109 output.
7110
7111 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
7112 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7113 Fangrui Song <maskray@google.com>
7114
7115 [BZ #20480]
7116 * config.make.in (have-textrel_ifunc): New define.
7117 * configure.ac: Add check if linker supports textrel relocation with
7118 ifunc.
7119 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
7120 tst-ifunc-textrel.
7121 (CFLAGS-tst-ifunc-textrel.c): New rule.
7122 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
7123 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
7124 * elf/tst-ifunc-textrel.c: New file.
7125
7126 2018-09-25 Joseph Myers <joseph@codesourcery.com>
7127
7128 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
7129 <bits/procfs-prregset.h>.
7130 (prgregset_t): Define using __prgregset_t.
7131 (prfpregset_t): Define using __prfpregset_t.
7132 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7133 (sysdep_headers): Add bits/procfs-prregset.h.
7134 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
7135 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
7136 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
7137 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
7138
7139 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
7140 <bits/procfs-id.h> and <bits/procfs-extra.h>.
7141 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
7142 pr_uid and pr_gid.
7143 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7144 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
7145 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
7146 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
7147 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
7148 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
7149 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
7150 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
7151 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
7152 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
7153 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
7154 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
7155 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
7156 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
7157 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
7158 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
7159 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
7160 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
7161 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
7162 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
7163 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
7164 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
7165 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
7166 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
7167
7168 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
7169 AArch64 version. Include <bits/procfs.h>.
7170 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7171 (sysdep_headers): Add bits/procfs.h.
7172 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
7173 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
7174 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
7175 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
7176 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
7177 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
7178 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
7179 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
7180 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
7181 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
7182 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
7183 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
7184 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
7185 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
7186 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
7187 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
7188 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
7189
7190 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7191
7192 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
7193 Use libsupport.
7194
7195 2018-09-25 Arjun Shankar <arjun@redhat.com>
7196
7197 * iconv/gconv_int.h (__gconv_path_elem): Remove.
7198 (__gconv_max_path_elem_len): Likewise.
7199 (__gconv_nmodules): Likewise.
7200 (__gconv_get_path): Likewise.
7201 (path_elem): Move to ...
7202 * iconv/gconv_conf.c: ... here.
7203 (__gconv_get_path): Mark function static.
7204 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
7205 * iconv/gconv_open.c: ... here.
7206
7207 2018-09-24 Andreas Schwab <schwab@suse.de>
7208
7209 * scripts/haveversions.awk: New file.
7210 * Makerules ($(common-objpfx)Versions.def)
7211 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
7212 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
7213 Move rules ...
7214 * Makeconfig ($(common-objpfx)Versions.def)
7215 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
7216 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
7217 ... here.
7218 ($(common-objpfx)Versions.mk): New rule. Include it.
7219 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
7220 Emit error if build-obsolete-nsl = yes.
7221 * manual/install.texi (Configuring and compiling): Describe
7222 --enable-obsolete-nsl as unavaiable after version 2.28.
7223 * INSTALL: Regenerate.
7224
7225 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7226
7227 * NEWS: Add note about new TLE support on powerpc64le.
7228 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
7229 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
7230 __ununsed1.
7231 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
7232 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
7233 * sysdeps/powerpc/powerpc32/sysdep.h,
7234 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
7235 ABORT_TRANSACTION): Remove macros.
7236 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
7237 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
7238 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
7239 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
7240 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
7241 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
7242 usage.
7243 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
7244
7245 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
7246
7247 [BZ #10425]
7248 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
7249 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
7250 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
7251 which is the same as in it_IT.
7252 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
7253 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
7254
7255 2018-09-20 Joseph Myers <joseph@codesourcery.com>
7256
7257 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7258 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
7259 using MATH_REDIRECT.
7260 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
7261 header inclusion.
7262 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
7263 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
7264 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
7265 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
7266 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
7267 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
7268 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
7269 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
7270 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
7271 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
7272 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
7273 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
7274 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
7275 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
7276 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
7277 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
7278 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
7279 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
7280 (ceil): Redirect to __ceil.
7281 (floor): Redirect to __floor.
7282 (trunc): Redirect to __trunc.
7283 (__truncl): Call trunc instead of __trunc.
7284 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
7285 Remove macro.
7286 [_ARCH_PWR5X] (__truncf): Likewise.
7287 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
7288 trunc functions instead of __trunc variants.
7289 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
7290 Likewise.
7291 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
7292 Likewise.
7293 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
7294 Likewise.
7295 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7296 Likewise.
7297
7298 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
7299 [__i586__ || __pentium__].
7300 [__i486__]: Handle explicitly.
7301 (HAS_CPUID): Define to 1 if above macros are undefined.
7302 (HAS_I586): Likewise.
7303 (HAS_I686): Likewise.
7304
7305 2018-09-20 Florian Weimer <fweimer@redhat.com>
7306
7307 * misc/tst-gethostid.c: New file.
7308 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
7309 (tst-gethostid): Link with -ldl.
7310
7311 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
7312
7313 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
7314 value from gethostbyname_r.
7315
7316 2018-09-19 Carlos O'Donell <carlos@redhat.com>
7317
7318 * stdlib/tst-setcontext9.c (f1): Rename to...
7319 (f1a): ... this.
7320 (f1b): New function implementing lower half of f1 in alternate stack.
7321
7322 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
7323
7324 Fix mktime localtime offset confusion
7325 [BZ #23603]
7326 * include/time.h (__mktime_internal): The localtime offset is now
7327 of type long int instead of time_t. This is the longstanding type
7328 in glibc, and it is more than enough to represent difference
7329 between localtime and gmtime even if it is 32 bits and time_t is
7330 64. Changing it now will let us avoid an unnecessary change when
7331 time_t is widened to 64 bits on 32-bit platforms.
7332 * time/mktime-internal.h (mktime_offset_t): Now long int.
7333
7334 Merge mktime, timegm from upstream Gnulib
7335 [BZ #23603][BZ #16346]
7336 This fixes some obscure problems with integer overflow.
7337 Although it looks scary, it is almost all a byte-for-byte copy
7338 from Gnulib, and the Gnulib code has been tested reasonably well.
7339 * include/intprops.h: New file, copied from Gnulib.
7340 * include/verify.h, time/mktime-internal.h:
7341 New tiny files, simplified from Gnulib.
7342 * time/mktime.c: Copy from Gnulib. This has the following changes:
7343 Do not include config.h if DEBUG_MKTIME is nonzero.
7344 Include stdbool.h, intprops.h, verify.h.
7345 Include string.h only if needed.
7346 Include stdlib.h on MS-Windows.
7347 Include mktime-internal.h.
7348 (DEBUG_MKTIME): Default to 0, and simplify later uses.
7349 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
7350 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
7351 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
7352 simplify later conditionals; default the others to zero. Use
7353 these conditionals to express only the code needed on the current
7354 platform. In uses of these conditionals, explicitly spell out how
7355 _LIBC affects things, so it’s easier to review from a glibc
7356 viewpoint.
7357 (WRAPV): Remove; no longer needed now that we have
7358 systematic overflow checking.
7359 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
7360 compartmentalize tzset issues. Move system-dependent tzsettish
7361 code here from mktime.
7362 (verify): Remove; now done by verify.h. All uses changed.
7363 (long_int): Use a more-conservative definition, to avoid
7364 integer overflow.
7365 (SHR): Remove, replacing with ...
7366 (shr): New function, which means we needn’t worry about side
7367 effects in args, and conversion analysis is simpler.
7368 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
7369 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
7370 (time_t_avg, time_t_add_ok): Remove.
7371 (mktime_min, mktime_max): New constants.
7372 (leapyear, isdst_differ): Use bool for booleans.
7373 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
7374 Use long_int, not time_t, for mktime differences.
7375 (long_int_avg): New function, replacing time_t_avg.
7376 INT_ADD_WRAPV replaces time_t_add_ok.
7377 (guess_time_tm): 6th arg is now long_int, not time_t const *.
7378 All uses changed.
7379 (convert_time): New function.
7380 (ranged_convert): Use it.
7381 (__mktime_internal): Last arg now points to mktime_offset_t, not
7382 time_t. All uses changed. This is a no-op on glibc, where
7383 mktime_offset_t is always time_t. Use int, not time_t, for UTC
7384 offset guess. Directly check for integer overflow instead of
7385 using a heuristic that works only 99.9...% of the time.
7386 Access *OFFSET only once, to avoid an unlikely race if the
7387 compiler delays a load and if this cascades into a signed integer
7388 overflow.
7389 (mktime): Move tzsettish code to my_tzset, and move
7390 localtime_offset to within mktime so that it doesn’t
7391 need a separate ifdef.
7392 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
7393 instead of localtime.
7394 * time/timegm.c: Copy from Gnulib. This has the following changes:
7395 Include mktime-internal.h.
7396 [!_LIBC]: Include config.h and time.h. Do not include
7397 timegm.h or time_r.h. Make __mktime_internal a macro,
7398 and include mktime-internal.h to get its declaration.
7399 (timegm): Temporary is now mktime_offset_t, not time_t.
7400 This affects only Gnulib.
7401
7402 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
7403
7404 [BZ #23637]
7405 * string/test-strstr.c (pr23637): New function.
7406 (test_main): Add tests with longer needles.
7407 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
7408 * string/strstr.c (AVAILABLE): Likewise.
7409
7410 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
7411
7412 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
7413
7414 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
7415
7416 * NEWS: Mention pow improvements.
7417 * math/Makefile (type-double-routines): Add e_pow_log_data.
7418 * sysdeps/generic/math_private.h (__exp1): Remove.
7419 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
7420 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
7421 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
7422 contraction.
7423 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
7424 (exp_inline): Remove.
7425 (__ieee754_exp): Only single double input is handled.
7426 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
7427 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
7428 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
7429 (__pow_log_data): Define.
7430 * sysdeps/ieee754/dbl-64/upow.h: Remove.
7431 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
7432 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
7433 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
7434 contraction.
7435 (CFLAGS-e_pow-fma4.c): Likewise.
7436
7437 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
7438
7439 Simplify tzfile fstat failure code
7440 [BZ #21716]
7441 * time/tzfile.c (__tzfile_read): Simplify slightly.
7442
7443 Fix tzfile low-memory assertion failure
7444 [BZ #21716]
7445 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
7446 when registering time zone abbreviations.
7447
7448 2018-09-18 Joseph Myers <joseph@codesourcery.com>
7449
7450 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
7451 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
7452 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
7453 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
7454 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
7455 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
7456 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
7457 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
7458 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
7459
7460 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
7461 __ceil.
7462 (__ceill): Call ceil instead of __ceil.
7463 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
7464 __floor.
7465 (__floorl): Call floor instead of __floor.
7466
7467 2018-09-17 Joseph Myers <joseph@codesourcery.com>
7468
7469 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7470 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
7471 using MATH_REDIRECT.
7472 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
7473 header inclusion.
7474 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
7475 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
7476 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
7477 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
7478 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
7479 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
7480 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
7481 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
7482 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
7483 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
7484 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
7485 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
7486 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
7487 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
7488 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
7489 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
7490 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
7491 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
7492 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
7493 Remove macro.
7494 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
7495 functions instead of __ceil variants.
7496 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
7497 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
7498 Likewise.
7499 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
7500 Likewise.
7501 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7502 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
7503 Likewise.
7504 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7505 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7506
7507 [BZ #21286]
7508 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
7509 constant.
7510 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
7511 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
7512 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
7513 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
7514 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
7515 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
7516 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
7517 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
7518 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
7519 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
7520 (ILL_BADIADDR): Remove constant.
7521 (TRAP_BRANCH): Likewise.
7522 (TRAP_HWBKPT): Likewise.
7523
7524 2018-09-14 Joseph Myers <joseph@codesourcery.com>
7525
7526 [BZ #23656]
7527 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
7528 Remove [_MIPS_SIM = _ABIN32] conditional case.
7529 (struct elf_prpsinfo): Likewise.
7530
7531 [BZ #23649]
7532 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
7533 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
7534 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
7535 Likewise.
7536 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
7537 elf_prpsinfo): Likewise.
7538 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
7539 elf_prpsinfo): Likewise.
7540 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
7541 Likewise.
7542
7543 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7544 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
7545 using MATH_REDIRECT.
7546 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
7547 header inclusion.
7548 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
7549 * sysdeps/alpha/fpu/s_rint.c: Likewise.
7550 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
7551 * sysdeps/i386/fpu/s_rintl.c: Likewise.
7552 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
7553 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
7554 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
7555 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
7556 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
7557 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7558 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
7559 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
7560 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
7561 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
7562 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
7563 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
7564 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
7565 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
7566 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
7567 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
7568 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
7569 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
7570 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
7571 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
7572 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
7573 * sysdeps/x86_64/fpu/math_private.h: Remove file.
7574 * math/e_scalb.c (invalid_fn): Use rint functions instead of
7575 __rint variants.
7576 * math/e_scalbf.c (invalid_fn): Likewise.
7577 * math/e_scalbl.c (invalid_fn): Likewise.
7578 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
7579 Likewise.
7580 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
7581 Likewise.
7582 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
7583 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
7584 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
7585 Likewise.
7586 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
7587 Likewise.
7588 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7589 Likewise.
7590 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
7591 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
7592
7593 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7594 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
7595 New macro.
7596 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7597 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
7598 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7599 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
7600 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7601 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
7602 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7603 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
7604 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7605 && !NO_MATH_REDIRECT] (floor): Likewise.
7606 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
7607 header inclusion.
7608 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
7609 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
7610 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
7611 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
7612 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
7613 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
7614 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7615 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
7616 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
7617 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
7618 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
7619 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
7620 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7621 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7622 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
7623 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
7624 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
7625 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
7626 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
7627 Remove macro.
7628 [_ARCH_PWR5X] (__floorf): Likewise.
7629 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
7630 inline function.
7631 [__SSE4_1__] (__floorf): Likewise.
7632 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
7633 instead of __floor variants.
7634 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
7635 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
7636 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
7637 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
7638 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
7639 * math/w_tgamma_compat.c (__tgamma): Likewise.
7640 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
7641 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
7642 * math/w_tgammal_compat.c (__tgammal): Likewise.
7643 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
7644 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
7645 Likewise.
7646 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
7647 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
7648 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
7649 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
7650 Likewise.
7651 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
7652 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
7653 Likewise.
7654 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
7655 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
7656 Likewise.
7657 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
7658 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
7659 Likewise.
7660 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
7661 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7662 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
7663 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
7664 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7665 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7666
7667 2018-09-12 Joseph Myers <joseph@codesourcery.com>
7668
7669 * elf/Makefile (modules-names-tests): New variable.
7670
7671 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
7672
7673 * NEWS: Mention log2 improvements.
7674 * math/Makefile (type-double-routines): Add e_log2_data.
7675 * sysdeps/i386/fpu/e_log2_data.c: New file.
7676 * sysdeps/ia64/fpu/e_log2_data.c: New file.
7677 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
7678 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
7679 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
7680 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
7681 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
7682
7683 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
7684
7685 * NEWS: Mention log improvement.
7686 * math/Makefile (type-double-routines): Add e_log_data.
7687 * sysdeps/i386/fpu/e_log_data.c: New file.
7688 * sysdeps/ia64/fpu/e_log_data.c: New file.
7689 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
7690 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
7691 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
7692 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
7693 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
7694 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
7695
7696 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
7697 Xuepeng Guo <xuepeng.guo@intel.com>
7698
7699 [BZ #23606]
7700 * sysdeps/i386/start.S: Include <sysdep.h>
7701 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
7702 enabled. Add cfi_undefined (eip).
7703
7704 2018-09-11 Joseph Myers <joseph@codesourcery.com>
7705
7706 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
7707 (MOVQ): Likewise.
7708 (EXTRACT_WORDS64): Likewise.
7709 (INSERT_WORDS64): Likewise.
7710 (GET_FLOAT_WORD): Likewise.
7711 (SET_FLOAT_WORD): Likewise.
7712
7713 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
7714 argument.
7715 (Config.build_gcc): Use --disable-libsanitizer for first GCC
7716 build, but not for second build if --full-gcc. Use
7717 --enable-languages=all for second build if --full-gcc.
7718 (get_parser): Add --full-gcc option.
7719 (main): Update call to Context.
7720
7721 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
7722
7723 [BZ #10797]
7724 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
7725 Single Quotation Mark).
7726 (thousands_sep): Likewise.
7727 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
7728 * localedata/locales/it_IT (thousands_sep): Use ".".
7729 (grouping): Use "3;3".
7730
7731 2018-09-10 Joseph Myers <joseph@codesourcery.com>
7732
7733 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
7734 x86_64 and i686 configs using --enable-obsolete-rpc
7735 --enable-obsolete-nsl.
7736
7737 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
7738
7739 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
7740
7741 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
7742
7743 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
7744 Increment size of new_argv by one.
7745
7746 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
7747
7748 [BZ #17426]
7749 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
7750 * localedata/locales/ar_IN (d_fmt): Likewise.
7751 * localedata/locales/bhb_IN (d_fmt): Likewise.
7752 * localedata/locales/bho_IN (d_fmt): Likewise.
7753 * localedata/locales/bn_BD (d_fmt): Likewise.
7754 * localedata/locales/bn_IN (d_fmt): Likewise.
7755 * localedata/locales/doi_IN (d_fmt): Likewise.
7756 * localedata/locales/gu_IN (d_fmt): Likewise.
7757 * localedata/locales/hi_IN (d_fmt): Likewise.
7758 * localedata/locales/hne_IN (d_fmt): Likewise.
7759 * localedata/locales/kn_IN (d_fmt): Likewise.
7760 * localedata/locales/mag_IN (d_fmt): Likewise.
7761 * localedata/locales/mai_IN (d_fmt): Likewise.
7762 * localedata/locales/mjw_IN (d_fmt): Likewise.
7763 * localedata/locales/ml_IN (d_fmt): Likewise.
7764 * localedata/locales/mni_IN (d_fmt): Likewise.
7765 * localedata/locales/mr_IN (d_fmt): Likewise.
7766 * localedata/locales/pa_IN (d_fmt): Likewise.
7767 * localedata/locales/raj_IN (d_fmt): Likewise.
7768 * localedata/locales/sat_IN (d_fmt): Likewise.
7769 * localedata/locales/sd_IN (d_fmt): Likewise.
7770 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
7771 * localedata/locales/ta_IN (d_fmt): Likewise.
7772 * localedata/locales/ta_LK (d_fmt): Likewise.
7773 * localedata/locales/tcy_IN (d_fmt): Likewise.
7774 * localedata/locales/ur_IN (d_fmt): Likewise.
7775
7776 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
7777 * localedata/locales/ks_IN (d_fmt): Likewise.
7778 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
7779
7780 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
7781 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
7782 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
7783 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
7784
7785 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
7786
7787 * NEWS: Mention exp and exp2 improvements.
7788 * math/Makefile (libm-support): Remove t_exp.
7789 (type-double-routines): Add math_err and e_exp_data.
7790 * sysdeps/aarch64/libm-test-ulps: Update.
7791 * sysdeps/arm/libm-test-ulps: Update.
7792 * sysdeps/i386/fpu/e_exp_data.c: New file.
7793 * sysdeps/i386/fpu/math_err.c: New file.
7794 * sysdeps/i386/fpu/t_exp.c: Remove.
7795 * sysdeps/ia64/fpu/e_exp_data.c: New file.
7796 * sysdeps/ia64/fpu/math_err.c: New file.
7797 * sysdeps/ia64/fpu/t_exp.c: Remove.
7798 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
7799 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
7800 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
7801 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
7802 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
7803 * sysdeps/ieee754/dbl-64/math_config.h: New file.
7804 * sysdeps/ieee754/dbl-64/math_err.c: New file.
7805 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
7806 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
7807 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
7808 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
7809 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
7810 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
7811 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
7812 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7813 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7814
7815 2018-09-05 Joseph Myers <joseph@codesourcery.com>
7816
7817 * sysdeps/alpha/fpu/math_private.h: Remove.
7818
7819 * sysdeps/generic/math_private.h
7820 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
7821 Move this inline function ....
7822 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
7823 * include/math.h [!_ISOMAC]: To here....
7824
7825 2018-09-04 Joseph Myers <joseph@codesourcery.com>
7826
7827 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
7828 code ....
7829 [!FE_HAVE_ROUNDING_MODES]: And this code ....
7830 * include/fenv.h [!_ISOMAC]: ... to here.
7831 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
7832 (feraiseexcept): Likewise.
7833 * math/fromfp.h: Do not include <fenv_private.h>.
7834 * math/s_cexp_template.c: Likewise.
7835 * math/s_csin_template.c: Likewise.
7836 * math/s_csinh_template.c: Likewise.
7837 * math/s_ctan_template.c: Likewise.
7838 * math/s_ctanh_template.c: Likewise.
7839 * math/s_iseqsig_template.c: Likewise.
7840 * math/w_acos_compat.c: Likewise.
7841 * math/w_acosf_compat.c: Likewise.
7842 * math/w_acosl_compat.c: Likewise.
7843 * math/w_asin_compat.c: Likewise.
7844 * math/w_asinf_compat.c: Likewise.
7845 * math/w_asinl_compat.c: Likewise.
7846 * math/w_j0_compat.c: Likewise.
7847 * math/w_j0f_compat.c: Likewise.
7848 * math/w_j0l_compat.c: Likewise.
7849 * math/w_j1_compat.c: Likewise.
7850 * math/w_j1f_compat.c: Likewise.
7851 * math/w_j1l_compat.c: Likewise.
7852 * math/w_jn_compat.c: Likewise.
7853 * math/w_jnf_compat.c: Likewise.
7854 * math/w_log10_compat.c: Likewise.
7855 * math/w_log10f_compat.c: Likewise.
7856 * math/w_log10l_compat.c: Likewise.
7857 * math/w_log2_compat.c: Likewise.
7858 * math/w_log2f_compat.c: Likewise.
7859 * math/w_log2l_compat.c: Likewise.
7860 * math/w_log_compat.c: Likewise.
7861 * math/w_logf_compat.c: Likewise.
7862 * math/w_logl_compat.c: Likewise.
7863 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7864 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7865 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7866 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7867 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7868 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7869 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7870 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7871 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7872 * sysdeps/ieee754/k_standardl.c: Likewise.
7873 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7874 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7875 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7876 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7877 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7878 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7879 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7880 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7881 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7882 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7883 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7884 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7885 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7886 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7887 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7888 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7889 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7890 * math/w_ilogb_template.c: Include <fenv.h> instead of
7891 <fenv_private.h>.
7892 * math/w_llogb_template.c: Likewise.
7893 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7894 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7895
7896 2018-09-03 Joseph Myers <joseph@codesourcery.com>
7897
7898 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
7899 * math/fromfp.h: Include <fenv_private.h>.
7900 * math/math-narrow.h: Likewise.
7901 * math/s_cexp_template.c: Likewise.
7902 * math/s_csin_template.c: Likewise.
7903 * math/s_csinh_template.c: Likewise.
7904 * math/s_ctan_template.c: Likewise.
7905 * math/s_ctanh_template.c: Likewise.
7906 * math/s_iseqsig_template.c: Likewise.
7907 * math/w_acos_compat.c: Likewise.
7908 * math/w_acosf_compat.c: Likewise.
7909 * math/w_acosl_compat.c: Likewise.
7910 * math/w_asin_compat.c: Likewise.
7911 * math/w_asinf_compat.c: Likewise.
7912 * math/w_asinl_compat.c: Likewise.
7913 * math/w_ilogb_template.c: Likewise.
7914 * math/w_j0_compat.c: Likewise.
7915 * math/w_j0f_compat.c: Likewise.
7916 * math/w_j0l_compat.c: Likewise.
7917 * math/w_j1_compat.c: Likewise.
7918 * math/w_j1f_compat.c: Likewise.
7919 * math/w_j1l_compat.c: Likewise.
7920 * math/w_jn_compat.c: Likewise.
7921 * math/w_jnf_compat.c: Likewise.
7922 * math/w_llogb_template.c: Likewise.
7923 * math/w_log10_compat.c: Likewise.
7924 * math/w_log10f_compat.c: Likewise.
7925 * math/w_log10l_compat.c: Likewise.
7926 * math/w_log2_compat.c: Likewise.
7927 * math/w_log2f_compat.c: Likewise.
7928 * math/w_log2l_compat.c: Likewise.
7929 * math/w_log_compat.c: Likewise.
7930 * math/w_logf_compat.c: Likewise.
7931 * math/w_logl_compat.c: Likewise.
7932 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
7933 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
7934 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
7935 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
7936 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7937 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
7938 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
7939 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
7940 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
7941 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7942 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
7943 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
7944 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
7945 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
7946 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
7947 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
7948 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
7949 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7950 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7951 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7952 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7953 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
7954 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
7955 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
7956 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7957 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7958 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
7959 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
7960 * sysdeps/ieee754/float128/float128_private.h: Likewise.
7961 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
7962 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
7963 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
7964 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
7965 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7966 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7967 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7968 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7969 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
7970 * sysdeps/ieee754/k_standardl.c: Likewise.
7971 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7972 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
7973 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
7974 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
7975 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
7976 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
7977 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7978 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7979 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7980 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7981 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7982 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7983 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
7984 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
7985 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
7986 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
7987 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
7988 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
7989 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
7990 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7991 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7992 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7993 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7994 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7995 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
7996 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
7997 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
7998 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
7999 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
8000 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
8001 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
8002 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
8003 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
8004 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
8005 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
8006 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
8007 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
8008 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
8009 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
8010 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
8011 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
8012 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
8013 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
8014 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
8015 * sysdeps/riscv/rvd/s_finite.c: Likewise.
8016 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
8017 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
8018 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
8019 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
8020 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
8021 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
8022 * sysdeps/riscv/rvf/fegetround.c: Likewise.
8023 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
8024 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
8025 * sysdeps/riscv/rvf/fesetround.c: Likewise.
8026 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
8027 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
8028 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
8029 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
8030 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
8031 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
8032 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
8033 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
8034 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
8035 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
8036 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
8037 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
8038 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
8039 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
8040 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
8041 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
8042
8043 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
8044
8045 [BZ #20271]
8046 * include/stdio.h (__libc_fatal): Mention newline in comment.
8047 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
8048 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
8049 * nscd/initgrcache.c (addinitgroupsX): Likewise.
8050 * nss/nsswitch.c (__nss_next2): Likewise.
8051 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
8052 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
8053 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
8054 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
8055 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
8056 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
8057 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
8058 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
8059 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
8060 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
8061 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
8062 * sysdeps/unix/sysv/linux/netlink_assert_response.c
8063 (__netlink_assert_response): Likewise.
8064
8065 2018-08-31 Joseph Myers <joseph@codesourcery.com>
8066
8067 * conform/glibcconform.py: New file.
8068 * conform/list-header-symbols.py: Likewise.
8069 * conform/list-header-symbols.pl: Remove.
8070 * conform/Makefile (tests-special): Only add linknamespace tests
8071 if [PYTHON].
8072 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
8073
8074 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
8075
8076 [BZ #23597]
8077 * support/Makefile (libsupport-routines): Add
8078 support_copy_file_range and xcopy_file_range.
8079 * support/support.h: Include <sys/types.h>.
8080 (support_copy_file_range): New prototype.
8081 * support/support_copy_file_range.c: New file. Copied and
8082 modified from io/copy_file_range-compat.c.
8083 * support/test-container.c (copy_one_file): Call xcopy_file_rang
8084 instead of copy_file_range.
8085 * support/xcopy_file_range.c: New file.
8086 * support/xunistd.h (xcopy_file_range): New prototype.
8087
8088 2018-08-30 Carlos O'Donell <carlos@redhat.com>
8089
8090 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
8091 xpthread_create and xpthread_join.
8092
8093 2018-08-30 Florian Weimer <fweimer@redhat.com>
8094
8095 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
8096
8097 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
8098
8099 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
8100 if malloc fails.
8101
8102 2018-08-29 Joseph Myers <joseph@codesourcery.com>
8103
8104 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
8105 and minus_oflow as non-finite.
8106
8107 2018-08-28 Joseph Myers <joseph@codesourcery.com>
8108
8109 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
8110 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
8111 moved to fenv_private.h except for ...
8112 (TOINT_INTRINSICS): Kept in math_private.h.
8113 (roundtoint): Likewise.
8114 (converttoint): Likewise.
8115 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
8116 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
8117 * sysdeps/arm/math_private.h: Remove.
8118 * sysdeps/generic/fenv_private.h: New file. Contents moved from
8119 ....
8120 * sysdeps/generic/math_private.h: ... this file. Include
8121 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
8122 Include <fenv_private.h>. Remove functions and macros moved to
8123 fenv_private.h.
8124 * sysdeps/i386/fpu/math_private.h: Remove.
8125 * sysdeps/mips/math_private.h: Move to ....
8126 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
8127 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
8128 [__mips_hard_float] conditional. Include next <fenv_private.h>.
8129 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
8130 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
8131 * sysdeps/powerpc/fpu/math_private.h: Do not include
8132 <fenv_private.h>.
8133 * sysdeps/riscv/rvf/math_private.h: Move to ....
8134 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
8135 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
8136 <fenv_private.h>.
8137 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
8138 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
8139 * sysdeps/sparc/fpu/math_private.h: Remove.
8140 * sysdeps/i386/fpu/fenv_private.h: Move to ....
8141 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
8142 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
8143 <fenv_private.h>.
8144 * sysdeps/x86_64/fpu/math_private.h: Do not include
8145 <sysdeps/i386/fpu/fenv_private.h>.
8146
8147 2018-08-28 Florian Weimer <fweimer@redhat.com>
8148
8149 [BZ #23578]
8150 * posix/tst-regcomp-truncated.c: New file.
8151 * posix/Makefile (tests): Add it.
8152 (tst-regcomp-truncated.out): Depend on generated locales.
8153
8154 2018-08-28 Florian Weimer <fweimer@redhat.com>
8155
8156 * support/test-container.c (main): Treat unshare failure with
8157 EPERM as an unsupported test.
8158
8159 2018-08-28 Florian Weimer <fweimer@redhat.com>
8160
8161 [BZ #23520]
8162 nscd: Fix use-after-free in addgetnetgrentX and its callers.
8163 * nscd/netgroupcache.c
8164 (addgetnetgrentX): Add tofreep parameter. Do not free
8165 heap-allocated buffer.
8166 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
8167 (addgetnetgrentX_ignore): New function.
8168 (addgetnetgrent): Call it.
8169 (readdgetnetgrent): Likewise.
8170
8171 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
8172
8173 * string/memmem.c: Use memcmp for first match.
8174
8175 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
8176
8177 [BZ #17426]
8178 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
8179
8180 2018-08-27 DJ Delorie <dj@redhat.com>
8181
8182 * support/Makefile (others): Don't list programs explicitly as a
8183 dependency of "others".
8184
8185 2018-08-27 Joseph Myers <joseph@codesourcery.com>
8186
8187 * sysdeps/generic/math-tests-trap-force.h: New file.
8188 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
8189 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
8190 * sysdeps/powerpc/math-tests.h: Remove file.
8191 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
8192
8193 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
8194 Torvald Riegel <triegel@redhat.com>
8195
8196 [BZ #23538]
8197 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
8198 Update r to include the set wake-request flag if waiters are
8199 remaining after spinning.
8200
8201 2018-08-27 Joseph Myers <joseph@codesourcery.com>
8202
8203 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
8204
8205 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
8206
8207 [BZ #23578]
8208 regex: fix uninitialized memory access
8209 I introduced this bug into gnulib in commit
8210 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
8211 eventually it was merged into glibc. The bug was found by
8212 project-repo <bugs@feusi.co> and reported here:
8213 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
8214 Diagnosis and draft fix reported by Assaf Gordon here:
8215 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
8216 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
8217 * posix/regex_internal.c (build_wcs_upper_buffer):
8218 Fix bug when mbrtowc returns 0.
8219
8220 2018-08-24 Carlos O'Donell <carlos@redhat.com>
8221
8222 * po/be.po: Update translation.
8223
8224 2018-08-24 DJ Delorie <dj@delorie.com>
8225
8226 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
8227 $(libunwind).
8228
8229 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
8230
8231 [BZ #23400]
8232 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
8233 create temporary files in source tree.
8234
8235 2018-08-24 Joseph Myers <joseph@codesourcery.com>
8236
8237 * sysdeps/generic/math-tests-trap.h: New file.
8238 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
8239 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
8240 * sysdeps/aarch64/math-tests.h: Remove file.
8241 * sysdeps/arm/math-tests.h: Likewise.
8242 * sysdeps/riscv/math-tests.h: Likewise.
8243 * sysdeps/aarch64/math-tests-trap.h: New file.
8244 * sysdeps/arm/math-tests-trap.h: Likewise.
8245 * sysdeps/riscv/math-tests-trap.h: Likewise.
8246
8247 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
8248
8249 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
8250 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
8251 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
8252 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
8253 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
8254 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
8255 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
8256 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
8257 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
8258 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
8259 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
8260 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
8261 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
8262 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
8263 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
8264 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
8265 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
8266 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
8267
8268 2018-08-23 Joseph Myers <joseph@codesourcery.com>
8269
8270 * sysdeps/generic/math-tests-exceptions.h: New file.
8271 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
8272 (EXCEPTION_TESTS_float): Do not define here.
8273 (EXCEPTION_TESTS_double): Likewise.
8274 (EXCEPTION_TESTS_long_double): Likewise.
8275 (EXCEPTION_TESTS_float128): Likewise.
8276 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
8277 Likewise.
8278 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
8279 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
8280 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
8281 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
8282 * sysdeps/mips/math-tests.h: Likewise.
8283 * sysdeps/nios2/math-tests.h: Likewise.
8284 * sysdeps/riscv/math-tests.h [!__riscv_flen]
8285 (EXCEPTION_TESTS_float): Do not define here.
8286 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
8287 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
8288 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
8289
8290 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
8291
8292 * NEWS: Move optimized sinf entry to 2.29.
8293
8294 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
8295
8296 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
8297
8298 2018-08-22 DJ Delorie <dj@redhat.com>
8299
8300 * Makefile (testroot.pristine): New rules to initialize the
8301 test-in-container "testroot".
8302 * Makerules (all-testsuite): Add tests-container.
8303 * Rules (tests-expected): Add tests-container.
8304 (binaries-all-tests): Likewise.
8305 (tests-container): New, run these tests in the testroot container.
8306 * support/Makefile (others): Add *-container, support_paths.c,
8307 xmkdirp, and links-dso-program.
8308 * support/links-dso-program-c.c: New.
8309 * support/links-dso-program.cc: New.
8310 * support/test-container.c: New.
8311 * support/shell-container.c: New.
8312 * support/echo-container.c: New.
8313 * support/true-container.c: New.
8314 * support/xmkdirp.c: New.
8315 * support/xsymlink.c: New.
8316 * support/support_paths.c: New.
8317 * support/support.h: Add support paths prototypes.
8318 * support/xunistd.h: Add xmkdirp () and xsymlink ().
8319
8320 * nss/tst-nss-test3.c: Convert to test-in-container.
8321 * nss/tst-nss-test3.root/: New.
8322
8323 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
8324
8325 regex: port Gnulib code to z/OS POSIX environment
8326 Problem reported by Arnold Robbins in:
8327 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
8328 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
8329 Undef.
8330
8331 2018-08-22 Joseph Myers <joseph@codesourcery.com>
8332
8333 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
8334 (ROUNDING_TESTS_double): Remove.
8335 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
8336 (ROUNDING_TESTS_double): Remove.
8337 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
8338 (ROUNDING_TESTS_double): Remove.
8339 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
8340 (ROUNDING_TESTS_float): Remove.
8341 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
8342 (ROUNDING_TESTS_float): Remove.
8343 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
8344 (ROUNDING_TESTS_float): Remove.
8345 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
8346 !TEST_MATHVEC here.
8347 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
8348 (IF_ROUND_INIT_FE_UPWARD): Likewise.
8349
8350 * sysdeps/generic/math-tests-rounding.h: New file.
8351 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
8352 (ROUNDING_TESTS_float): Do not define here.
8353 (ROUNDING_TESTS_double): Likewise.
8354 (ROUNDING_TESTS_long_double): Likewise.
8355 (ROUNDING_TESTS_float128): Likewise.
8356 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
8357 (ROUNDING_TESTS_double): Undefine before defining.
8358 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
8359 (ROUNDING_TESTS_double): Undefine before defining.
8360 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
8361 (ROUNDING_TESTS_double): Undefine before defining.
8362 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
8363 (ROUNDING_TESTS_float): Undefine before defining.
8364 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
8365 (ROUNDING_TESTS_float): Undefine before defining.
8366 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
8367 (ROUNDING_TESTS_float): Undefine before defining.
8368 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
8369 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
8370 not define here.
8371 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
8372 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
8373 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
8374 * sysdeps/riscv/math-tests.h [!__riscv_flen]
8375 (ROUNDING_TESTS_float): Do not define here.
8376 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
8377 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
8378 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
8379 (ROUNDING_TESTS_float): Likewise.
8380 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
8381 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
8382 * sysdeps/mips/math-tests.h [__mips_soft_float]
8383 (ROUNDING_TESTS_float): Likewise.
8384 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
8385 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
8386 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
8387 (ROUNDING_TESTS_double): Likewise.
8388 (ROUNDING_TESTS_long_double): Likewise.
8389
8390 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
8391
8392 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
8393 (PF_XDP): New macro.
8394 (AF_XDP): New macro.
8395 (SOL_XDP): New macro.
8396
8397 2018-08-21 Joseph Myers <joseph@codesourcery.com>
8398
8399 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
8400 (TCP_INQ): Likewise.
8401 (TCP_CM_INQ): Likewise.
8402 (TCP_REPAIR_ON): Likewise.
8403 (TCP_REPAIR_OFF): Likewise.
8404 (TCP_REPAIR_OFF_NO_WP): Likewise.
8405 (struct tcp_zerocopy_receive): New type.
8406
8407 2018-08-21 Florian Weimer <fweimer@redhat.com>
8408
8409 * support/support.h (support_descriptor_supports_holes): Declare.
8410 * support/Makefile (libsupport-routines): Add
8411 support_descriptor_supports_holes.
8412 * support/support_descriptor_supports_holes.c: New file.
8413 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
8414 and stop testing if holes are not supported.
8415 * io/test-lfs.c (do_prepare): Likewise.
8416 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
8417 Likewise.
8418 * timezone/tst-tzset.c (create_tz_file): Likewise.
8419 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
8420 variable.
8421 (do_prepare): Set it.
8422 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
8423
8424 2018-08-21 Florian Weimer <fweimer@redhat.com>
8425
8426 [BZ #17248]
8427 * Makeconfig (+cflags): Do not sort (and deduplicate).
8428
8429 2018-08-21 Florian Weimer <fweimer@redhat.com>
8430
8431 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
8432 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
8433
8434 2018-08-20 Florian Weimer <fweimer@redhat.com>
8435
8436 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
8437 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
8438
8439 2018-08-20 Joseph Myers <joseph@codesourcery.com>
8440
8441 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
8442 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
8443 and ssi_arch members.
8444
8445 * elf/elf.c (NT_VMCOREDD): New macro.
8446 (AT_MINSIGSTKSZ): Likewise.
8447
8448 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
8449
8450 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
8451 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
8452 s_cosf-ppc64 and s_cosf-power8.
8453 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
8454 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
8455 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
8456 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
8457 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
8458 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
8459 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
8460 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
8461 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
8462 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
8463 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
8464 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
8465
8466 2018-08-17 Florian Weimer <fweimer@redhat.com>
8467
8468 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
8469
8470 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
8471
8472 * malloc/malloc.c (_int_malloc): Additional binning code checks.
8473
8474 2018-08-16 Florian Weimer <fweimer@redhat.com>
8475
8476 * configure.ac: Add --with-nonshared-cflags option.
8477 * config.make.in (extra-nonshared-cflags): Set variable.
8478 * Makeconfig (CFLAGS-.oS): Use it.
8479 * manual/install.texi (Configuring and compiling): Document
8480 --with-nonshared-cflags.
8481 * configure: Regenerate.
8482 * INSTALL: Likewise.
8483
8484 2018-08-16 Florian Weimer <fweimer@redhat.com>
8485
8486 * Makeconfig (ASFLAGS): Always append required assembler flags.
8487
8488 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
8489
8490 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
8491 (malloc_consolidate): Likewise.
8492
8493 2018-08-16 Pochang Chen <johnchen902@gmail.com>
8494
8495 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
8496
8497 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
8498
8499 * benchtests/bench-strlen.c (do_test): Allocate buffers before
8500 every strlen call.
8501
8502 * benchtests/bench-strlen.c: Print performance numbers in json.
8503
8504 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
8505
8506 * sysdeps/powerpc/powerpc64/multiarch/Makefile
8507 (sysdep_routines): Build strcmp-power9 and strncmp-power9
8508 only for little endian.
8509 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
8510 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
8511 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
8512 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
8513 Add check for little endian.
8514 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
8515 (__strcmp_power9): Add check for little endian.
8516 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
8517 Add check for little endian.
8518 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
8519 (__strncmp_power9): Add check for little endian.
8520 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
8521 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
8522 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
8523 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
8524 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
8525
8526 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
8527
8528 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
8529 [!STRLEN](STRLEN): Set to __strlen.
8530 * sysdeps/aarch64/multiarch/strlen.c: New file.
8531 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
8532 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
8533 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
8534 (__libc_ifunc_impl_list): Add strlen.
8535 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
8536 strlen_generic and strlen_asimd.
8537
8538 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
8539
8540 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
8541 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
8542 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
8543
8544 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
8545
8546 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
8547
8548 2018-08-14 Florian Weimer <fweimer@redhat.com>
8549
8550 [BZ #23519]
8551 * include/stdio.h (__vfxprintf): Declare.
8552 * stdio-common/fxprintf.c (__vfxprintf): New function.
8553 (__fxprintf): Call it.
8554 * misc/err.c (convert_and_print): Remove function.
8555 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
8556 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
8557 * misc/Makefile (tests): Add tst-warn-wide.
8558 * misc/tst-warn-wide.c: New file.
8559
8560 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
8561 Szabolcs Nagy <szabolcs.nagy@arm.com>
8562
8563 * NEWS: Mention sinf, cosf, sincosf.
8564 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
8565 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
8566 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
8567 constants rather than including generic sincosf.h.
8568 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
8569 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
8570 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
8571 (reduced_cos): Remove.
8572 (sinf_poly): New function.
8573 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
8574
8575 2018-08-14 Florian Weimer <fweimer@redhat.com>
8576
8577 [BZ #23521]
8578 [BZ #23522]
8579 * nss/nss_files/files-alias.c (get_next_alias): During :include:
8580 processing, bail out if no room, and close the stream before
8581 returning ERANGE.
8582 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
8583 (tst-nss-files-alias-leak): Link with libdl.
8584 (tst-nss-files-alias-leak.out): Depend on nss_files.
8585
8586 * nss/tst-nss-files-alias-leak.c: New file.
8587
8588 2018-08-14 Florian Weimer <fweimer@redhat.com>
8589
8590 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
8591 server_user, stat_user.
8592
8593 2018-08-13 Joseph Myers <joseph@codesourcery.com>
8594
8595 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
8596 version to 4.18.
8597 (io_pgetevents): New syscall.
8598 (rseq): Likewise.
8599
8600 * manual/install.texi (Configuring and compiling): Do not list
8601 tools used for testing pretty printers here.
8602 (Tools for Compilation): List Python, PExpect and GDB here.
8603 Update descriptions of uses of Perl and Python.
8604 * INSTALL: Regenerate.
8605
8606 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
8607 version to 4.18.
8608
8609 2018-08-13 Florian Weimer <fweimer@redhat.com>
8610
8611 * misc/error.c (error): Add missing va_end call.
8612 (error_at_line): Likewise.
8613
8614 2018-08-13 Florian Weimer <fweimer@redhat.com>
8615
8616 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
8617
8618 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
8619
8620 * benchtests/scripts/benchout.schema.json (properties): Add
8621 new properties.
8622
8623 * benchtests/bench-skeleton.c (main): Add duration and
8624 iterations attributes.
8625
8626 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
8627
8628 regex: Gnulib unibyte RRI uses bytes not chars
8629 Adjust the non-glibc code to agree with what Gawk needs for
8630 rational range interpretation (RRI) for regular expression ranges.
8631 In unibyte locales, Gawk wants ranges to use the underlying byte
8632 rather than the character code point. This change does not affect
8633 glibc proper.
8634 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
8635 In unibyte locales, use the byte value rather than
8636 running it through btowc.
8637
8638 2018-08-10 Joseph Myers <joseph@codesourcery.com>
8639
8640 * sysdeps/generic/math-tests-snan.h: New file.
8641 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
8642 (SNAN_TESTS_float): Do not define here.
8643 (SNAN_TESTS_double): Likewise.
8644 (SNAN_TESTS_long_double): Likewise.
8645 (SNAN_TESTS_float128): Likewise.
8646 * sysdeps/i386/fpu/math-tests-snan.h: New file.
8647 * sysdeps/i386/fpu/math-tests.h: Remove file.
8648 * sysdeps/ia64/math-tests-snan.h: New file.
8649 * sysdeps/ia64/math-tests.h: Remove file.
8650 * sysdeps/x86/math-tests.h: Likewise.
8651 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
8652
8653 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
8654 Szabolcs Nagy <szabolcs.nagy@arm.com>
8655
8656 * math/Makefile: Add s_sincosf_data.c.
8657 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
8658 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
8659 (sincosf_poly): Likewise.
8660 (reduce_small): Likewise.
8661 (reduce_large): Likewise.
8662 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
8663 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
8664 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
8665 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
8666
8667 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
8668 Szabolcs Nagy <szabolcs.nagy@arm.com>
8669
8670 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
8671 (converttoint): Use lround.
8672 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
8673 document the semantics when TOINT_INTRINSICS is set.
8674 (converttoint): Likewise.
8675 (TOINT_RINT): Remove.
8676 (TOINT_SHIFT): Remove.
8677 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
8678 path.
8679
8680 2018-08-10 Florian Weimer <fweimer@redhat.com>
8681
8682 [BZ #23497]
8683 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
8684 function.
8685 (__old_getdents64): Use getdents64. Convert entries without
8686 moving them.
8687 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
8688 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
8689 tst-readdir64-compat.
8690
8691 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8692
8693 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
8694 Fix unwind.
8695
8696 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8697
8698 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
8699 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
8700 code to s390x-mcount.h and #include it.
8701 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
8702 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
8703 (__fentry__): Add.
8704
8705 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8706
8707 * stdlib/Versions: Remove __fentry__.
8708 * sysdeps/i386/Versions: Add __fentry__.
8709 * sysdeps/x86_64/Versions: Add __fentry__.
8710
8711 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8712
8713 * sysdeps/s390/Makefile: Register the new tests.
8714 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
8715 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
8716 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
8717 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
8718 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
8719 * sysdeps/s390/tst-dl-runtime.c: New file.
8720
8721 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8722
8723 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8724 Do not clobber R0.
8725
8726 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8727
8728 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8729 Do not clobber R0.
8730
8731 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8732
8733 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8734 Do not clobber R0.
8735
8736 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8737
8738 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8739 Do not clobber R0.
8740
8741 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8742
8743 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8744 Use symbolic offsets for stack variables.
8745
8746 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8747
8748 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8749 Use symbolic offsets for stack variables.
8750
8751 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8752
8753 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8754 Use symbolic offsets for stack variables.
8755
8756 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8757
8758 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8759 Use symbolic offsets for stack variables.
8760
8761 2018-08-09 Joseph Myers <joseph@codesourcery.com>
8762
8763 * math/gen-libm-test.py: New file.
8764 * math/gen-libm-test.pl: Remove.
8765 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
8766 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
8767 gen-libm-test.pl.
8768 ($(libm-test-c-noauto-obj)): Likewise.
8769 ($(libm-test-c-auto-obj)): Likewise.
8770 ($(libm-test-c-narrow-obj)): Likewise.
8771 (regen-ulps): Likewise.
8772 * math/README.libm-test: Update references to gen-libm-test.pl.
8773 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
8774 referencing gen-libm-test.pl.
8775 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
8776 * math/libm-test-support.c: Likewise.
8777 * math/libm-test-support.h: Likewise.
8778 * sysdeps/generic/libm-test-ulps: Likewise.
8779
8780 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
8781
8782 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
8783 Fix value.
8784
8785 2018-08-08 Joseph Myers <joseph@codesourcery.com>
8786
8787 * math/libm-test-nextdown.inc (do_test): Move comment to ....
8788 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
8789
8790 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
8791
8792 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
8793 symbols.
8794 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
8795 __pthread_setspecific): Add hidden proto.
8796 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
8797 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
8798
8799 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
8800
8801 * benchtests/bench-string.h (buf1_size, buf2_size): New
8802 variables.
8803 (init_sizes): New function.
8804 (test_init): Use it.
8805 (alloc_buf, exit_error): New functions.
8806 (alloc_bufs): Use ALLOC_BUF.
8807 (realloc_bufs): Remove.
8808 * benchtests/bench-memcmp.c (do_test): Adjust.
8809 * benchtests/bench-memset-large.c (do_test): Likewise.
8810 * benchtests/bench-memset-walk.c (do_test): Likewise.
8811 * benchtests/bench-memset.c (do_test): Likewise.
8812 * benchtests/bench-strncmp.c (do_test): Likewise.
8813
8814 2018-08-06 Andreas Schwab <schwab@suse.de>
8815
8816 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
8817 of CONST_THREAD_AREA.
8818
8819 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
8820
8821 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
8822 (STATE_SAVE_MASK): Likewise.
8823 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
8824 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
8825 (STATE_SAVE_MASK): Likewise.
8826 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
8827 instead of <cpu-features.h>.
8828
8829 2018-08-03 DJ Delorie <dj@redhat.com>
8830
8831 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
8832 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
8833
8834 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
8835
8836 2018-08-03 Joseph Myers <joseph@codesourcery.com>
8837
8838 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
8839 after TEST_* calls.
8840 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
8841 * math/libm-test-logb.inc (logb_test_data): Likewise.
8842
8843 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
8844
8845 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
8846 * string/strstr.c (AVAILABLE): Likewise.
8847
8848 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
8849
8850 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
8851 <init-arch.h>.
8852 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
8853 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
8854 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
8855
8856 2018-08-03 Carlos O'Donell <carlos@redhat.com>
8857
8858 * po/be.po: Update translation.
8859
8860 * po/be.po: Update translation.
8861
8862 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
8863
8864 * sysdeps/x86/cpu-features-offsets.sym
8865 (rtld_global_ro_offsetof): Removed.
8866 (CPU_FEATURES_SIZE): Likewise.
8867 (CPUID_OFFSET): Likewise.
8868 (CPUID_SIZE): Likewise.
8869 (CPUID_EAX_OFFSET): Likewise.
8870 (CPUID_EBX_OFFSET): Likewise.
8871 (CPUID_ECX_OFFSET): Likewise.
8872 (CPUID_EDX_OFFSET): Likewise.
8873 (FAMILY_OFFSET): Likewise.
8874 (MODEL_OFFSET): Likewise.
8875 (FEATURE_OFFSET): Likewise.
8876 (FEATURE_SIZ): Likewise.
8877 (COMMON_CPUID_INDEX_1): Likewise.
8878 (COMMON_CPUID_INDEX_7): Likewise.
8879 (FEATURE_INDEX_1): Likewise.
8880 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
8881
8882 2018-08-02 Carlos O'Donell <carlos@redhat.com>
8883
8884 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
8885 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
8886 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
8887 (install-locales): Depend on install-locale-archive.
8888 (install-locale-archive): Define.
8889 (install-locale-files): Define.
8890 (build-one-locale): Define macro.
8891 * manual/install.texi (Running make install): Document.
8892 * manual/INSTALL: Regenerate.
8893
8894 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
8895
8896 * benchtests/scripts/compare_strings.py: Import traceback.
8897 (parse_file): Pretty-print error.
8898
8899 * NEWS: Mention the change.
8900 * elf/dl-tunables.list: Rename tune namespace to cpu.
8901 * sysdeps/powerpc/dl-tunables.list: Likewise.
8902 * sysdeps/x86/dl-tunables.list: Likewise.
8903 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
8904 cpu.name.
8905 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
8906 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
8907 * manual/README.tunables: Likewise.
8908 * manual/tunables.texi: Likewise.
8909 * sysdeps/powerpc/cpu-features.c: Likewise.
8910 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
8911 (init_cpu_features): Likewise.
8912 * sysdeps/x86/cpu-features.c: Likewise.
8913 * sysdeps/x86/cpu-features.h: Likewise.
8914 * sysdeps/x86/cpu-tunables.c: Likewise.
8915 * sysdeps/x86_64/Makefile: Likewise.
8916 * sysdeps/x86/dl-cet.c: Likewise.
8917
8918 2018-08-02 Joseph Myers <joseph@codesourcery.com>
8919
8920 [BZ #23479]
8921 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
8922 [__mips_hard_float].
8923 (FE_UNDERFLOW): Likewise.
8924 (FE_OVERFLOW): Likewise.
8925 (FE_DIVBYZERO): Likewise.
8926 (FE_INVALID): Likewise.
8927 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
8928 (FE_TOWARDZERO): Define only if [__mips_hard_float].
8929 (FE_UPWARD): Likewise.
8930 (FE_DOWNWARD): Likewise.
8931 (__FE_UNDEFINED): Define if [!__mips_hard_float]
8932 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
8933 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
8934 [__mips_hard_float].
8935 (FP_ROUNDMODE): Likewise.
8936 (FP_RND_NEAREST): Likewise.
8937 (FP_RND_ZERO): Likewise.
8938 (FP_RND_PINF): Likewise.
8939 (FP_RND_MINF): Likewise.
8940 (FP_EX_INVALID): Likewise.
8941 (FP_EX_OVERFLOW): Likewise.
8942 (FP_EX_UNDERFLOW): Likewise.
8943 (FP_EX_DIVZERO): Likewise.
8944 (FP_EX_INEXACT): Likewise.
8945 (FP_INIT_ROUNDMODE): Likewise.
8946 * sysdeps/mips/nofpu/fesetenv.c: New file.
8947 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
8948
8949 2018-08-01 Joseph Myers <joseph@codesourcery.com>
8950
8951 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
8952 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
8953 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
8954 conditional on [FE_UPWARD].
8955
8956 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
8957
8958 regex: fix memory leak in Gnulib
8959 Problem and fix reported by Assaf Gordon in:
8960 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
8961 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
8962 range_ends members too, as they are defined in 'struct
8963 re_charset_t' even if not _LIBC. This affects only Gnulib.
8964
8965 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
8966
8967 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
8968 ...
8969 (get_common_indices): This.
8970 (init_cpu_features): Updated.
8971
8972 2018-08-01 Joseph Myers <joseph@codesourcery.com>
8973
8974 * sysdeps/generic/math-tests-snan-payload.h: New file.
8975 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
8976 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
8977 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
8978 * sysdeps/generic/math-tests.h: Include
8979 <math-tests-snan-payload.h>.
8980 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
8981 * sysdeps/hppa/math-tests.h: Remove file.
8982 * sysdeps/mips/math-tests.h [!__mips_nan2008]
8983 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
8984 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
8985 Likewise.
8986
8987 * sysdeps/generic/math-tests-snan-cast.h: New file.
8988 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
8989 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
8990 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
8991 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
8992
8993 2018-08-01 Carlos O'Donel <carlos@redhat.com>
8994
8995 * version.h (RELEASE): Set to "development".
8996 (VERSION): Set to "2.28.9000".
8997 * NEWS (2.29): New section.
8998
8999 * version.h (RELEASE): Set to "stable".
9000 (VERSION): Set to "2.28".
9001 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
9002 * NEWS: Add the list of bugs fixed in 2.28.
9003
9004 * po/ca.po: Update to latest version.
9005 * po/cs.po: Likewise
9006 * po/da.po: Likewise
9007 * po/el.po: Likewise
9008 * po/eo.po: Likewise
9009 * po/es.po: Likewise
9010 * po/fi.po: Likewise
9011 * po/fr.po: Likewise
9012 * po/gl.po: Likewise
9013 * po/hu.po: Likewise
9014 * po/ia.po: Likewise
9015 * po/id.po: Likewise
9016 * po/it.po: Likewise
9017 * po/ja.po: Likewise
9018 * po/ko.po: Likewise
9019 * po/lt.po: Likewise
9020 * po/nb.po: Likewise
9021 * po/nl.po: Likewise
9022 * po/pt_BR.po: Likewise
9023 * po/ru.po: Likewise
9024 * po/rw.po: Likewise
9025 * po/sk.po: Likewise
9026 * po/sl.po: Likewise
9027 * po/tr.po: Likewise
9028 * po/zh_CN.po: Likewise
9029 * po/zh_TW.po: Likewise
9030
9031 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
9032
9033 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
9034 initialization...
9035 (init): ... before initializing libpthread.
9036
9037 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
9038 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
9039 (__mach_setup_tls): ... new function.
9040 (mach_setup_tls): New alias.
9041 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
9042 __mach_setup_thread.
9043 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
9044 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
9045 * mach/Versions [libc] (mach_setup_tls): Add symbol.
9046 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
9047
9048 2018-07-31 Carlos O'Donell <carlos@redhat.com>
9049
9050 * manual/install.texi: Update versions.
9051 * INSTALL: Regenerate.
9052
9053 * manual/contrib.texi (Contributors): Update contributions.
9054
9055 2018-07-31 Carlos O'Donell <carlos@redhat.com>
9056
9057 * po/be.po: Update translations.
9058
9059 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9060
9061 * sysdeps/sh/libm-test-ulps: Update.
9062
9063 2018-07-30 Carlos O'Donell <carlos@redhat.com>
9064
9065 * po/bg.po: Update translations.
9066 * po/de.po: Likewise.
9067 * po/hr.po: Likewise.
9068 * po/pt_BR.po: Likewise.
9069 * po/sv.po: Likewise.
9070 * po/vi.po: Likewise.
9071
9072 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
9073
9074 [BZ #23467]
9075 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
9076 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
9077 (CFLAGS-tst-cet-property-1.o): New.
9078 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
9079 ($(objpfx)tst-cet-property-2): Likewise.
9080 ($(objpfx)tst-cet-property-2.out): Likewise.
9081 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
9082 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
9083 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
9084 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
9085 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
9086
9087 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
9088
9089 [BZ #23458]
9090 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
9091
9092 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
9093
9094 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
9095 __sbrk): Do not set attribute_hidden.
9096 * sysdeps/mach/hurd/not-errno.h: New file.
9097 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
9098 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
9099
9100 2018-07-27 Carlos O'Donell <carlos@redhat.com>
9101
9102 * po/uk.po: Update translations.
9103 * po/cs.po: Likewise.
9104 * po/pl.po: Likewise.
9105
9106 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
9107
9108 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
9109 parse beyond the note end.
9110
9111 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9112
9113 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
9114 kernel does not support OFD locks.
9115 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
9116
9117 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
9118
9119 * sysdeps/mach/hurd/Versions (libc): Make __access and
9120 __access_noerrno external so they can override the ld symbols.
9121 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
9122 __writev, __open64, __access_noerrno extern so they can be overrided.
9123 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
9124 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
9125
9126 2018-07-26 Carlos O'Donell <carlos@redhat.com>
9127
9128 * po/libc.pot: Regenerate.
9129
9130 2018-07-26 Joseph Myers <joseph@codesourcery.com>
9131
9132 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
9133
9134 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
9135
9136 [BZ #23459]
9137 * sysdeps/x86/cpu-features.c (get_extended_indices): New
9138 function.
9139 (init_cpu_features): Call get_extended_indices for both Intel
9140 and AMD CPUs.
9141 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
9142 Remove "for AMD" comment.
9143
9144 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
9145
9146 [BZ # 23456]
9147 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
9148 COMMON_CPUID_INDEX_80000001.
9149
9150 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
9151
9152 * string/tst-xbzero-opt.c (use_test_buffer): New function.
9153 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
9154
9155 2018-07-26 Florian Weimer <fweimer@redhat.com>
9156
9157 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
9158 aliases for symbols not in the implementation namespace.
9159
9160 2018-07-25 Carlos O'Donell <carlos@redhat.com>
9161
9162 [BZ #23393]
9163 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
9164 lowercase in LATIN script.
9165 * localedata/Makefile (test-input): Add en_US.UTF-8.
9166 * localedata/en_US.UTF-8.in: New file.
9167 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
9168 and restore old tests.
9169 * posix/tst-regexloc.c (do_test): Add back range expression test.
9170
9171 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9172
9173 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
9174
9175 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9176
9177 * nptl/threads.h: Move to ...
9178 * sysdeps/nptl/threads.h: ... here.
9179 * sysdeps/hurd/stdc-predef.h: New file.
9180
9181 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9182
9183 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
9184 tst-cet-setcontext-1 if CET is enabled.
9185 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
9186 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
9187
9188 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9189
9190 * include/threads.h: Move to ...
9191 * sysdeps/nptl/threads.h: ... here.
9192 * sysdeps/htl/threads.h: New file.
9193 * conform/Makefile (linknamespace-libs-ISO11): Use
9194 static-thread-library instead of linking libpthread.
9195 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
9196
9197 2018-07-25 Florian Weimer <fweimer@redhat.com>
9198
9199 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
9200 nanoseconds into seconds.
9201 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
9202 (do_test): Likewise.
9203 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
9204 (do_test): Likewise. Avoid nanosecond overflow and spurious
9205 timeouts due to system load.
9206 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
9207 (child_wait): Increment it.
9208 (do_test): Wait as long as necessary until all expected threads
9209 have arrived.
9210
9211 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
9212 H.J. Lu <hongjiu.lu@intel.com>
9213
9214 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
9215 __ssp.
9216 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
9217 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
9218 (__push___start_context): New.
9219 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
9220 <asm/prctl.h>.
9221 (__getcontext): Record the current shadow stack base. Save the
9222 caller's shadow stack pointer and base.
9223 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
9224 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
9225 (__push___start_context): New prototype.
9226 (__makecontext): Call __push___start_context to allocate a new
9227 shadow stack, push __start_context onto the new stack as well
9228 as the new shadow stack.
9229 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
9230 <asm/prctl.h>.
9231 (__setcontext): Restore the target shadow stack.
9232 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
9233 <asm/prctl.h>.
9234 (__swapcontext): Record the current shadow stack base. Save
9235 the caller's shadow stack pointer and base. Restore the target
9236 shadow stack.
9237 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
9238 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
9239 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
9240
9241 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9242
9243 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
9244 tst-setcontext8 and tst-setcontext9.
9245 * stdlib/tst-setcontext6.c: New file.
9246 * stdlib/tst-setcontext7.c: Likewise.
9247 * stdlib/tst-setcontext8.c: Likewise.
9248 * stdlib/tst-setcontext9.c: Likewise.
9249
9250 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9251
9252 * stdlib/Makefile ((tests): Add tst-setcontext5.
9253 * stdlib/tst-setcontext5.c: New file.
9254
9255 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9256
9257 * stdlib/Makefile (tests): Add tst-setcontext4.
9258 * stdlib/tst-setcontext4.c: New file.
9259
9260 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9261
9262 * stdlib/Makefile (tests): Add tst-swapcontext1.
9263 * stdlib/tst-swapcontext1.c: New test.
9264
9265 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9266
9267 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
9268 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
9269 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
9270 and tst-cet-legacy-4c.
9271 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
9272 and tst-cet-legacy-mod-4.
9273 (CFLAGS-tst-cet-legacy-2.c): New.
9274 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
9275 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
9276 (CFLAGS-tst-cet-legacy-3.c): Likewise.
9277 (CFLAGS-tst-cet-legacy-4.c): Likewise.
9278 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
9279 ($(objpfx)tst-cet-legacy-1): Likewise.
9280 ($(objpfx)tst-cet-legacy-2): Likewise.
9281 ($(objpfx)tst-cet-legacy-2.out): Likewise.
9282 ($(objpfx)tst-cet-legacy-2a): Likewise.
9283 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
9284 ($(objpfx)tst-cet-legacy-4): Likewise.
9285 ($(objpfx)tst-cet-legacy-4.out): Likewise.
9286 ($(objpfx)tst-cet-legacy-4a): Likewise.
9287 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
9288 (tst-cet-legacy-4a-ENV): Likewise.
9289 ($(objpfx)tst-cet-legacy-4b): Likewise.
9290 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
9291 (tst-cet-legacy-4b-ENV): Likewise.
9292 ($(objpfx)tst-cet-legacy-4c): Likewise.
9293 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
9294 (tst-cet-legacy-4c-ENV): Likewise.
9295 * sysdeps/x86/tst-cet-legacy-1.c: New file.
9296 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
9297 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
9298 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
9299 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
9300 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
9301 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
9302 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
9303 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
9304 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
9305 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
9306
9307 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9308
9309 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
9310 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
9311 with ssp_base.
9312 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
9313 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
9314 with ssp_base.
9315
9316 2018-07-25 Andreas Schwab <schwab@suse.de>
9317
9318 [BZ #23442]
9319 * locale/weightwc.h (findidx): Handle the case where usrc is a
9320 prefix of cp but one character too short.
9321
9322 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9323
9324 * NEWS: Add ISO C threads addition.
9325
9326 2018-07-24 Florian Weimer <fweimer@redhat.com>
9327
9328 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9329 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
9330 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
9331 4.13.
9332
9333 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9334
9335 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
9336 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
9337 <sys/prctl.h> and <asm/prctl.h>.
9338 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
9339 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
9340 and <asm/prctl.h>.
9341 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
9342 ARCH_CET_LEGACY_BITMAP.
9343 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
9344 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
9345 * sysdeps/x86/libc-start.c: Include <startup.h>.
9346
9347 2018-07-24 Florian Weimer <fweimer@redhat.com>
9348
9349 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
9350 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
9351
9352 2018-07-24 Rical Jasan <rj@2c3t.io>
9353 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9354 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
9355
9356 [BZ #14092]
9357 * manual/debug.texi: Update adjacent chapter name.
9358 * manual/probes.texi: Likewise.
9359 * manual/threads.texi (ISO C Threads): New section.
9360 (POSIX Threads): Convert to a section.
9361
9362 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9363 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
9364
9365 [BZ# 14092]
9366 * nptl/Makefile (tests): Add new test files.
9367 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
9368 * nptl/tst-cnd-basic.c: Likewise.
9369 * nptl/tst-cnd-broadcast.c: Likewise.
9370 * nptl/tst-cnd-timedwait.c: Likewise.
9371 * nptl/tst-mtx-basic.c: Likewise.
9372 * nptl/tst-mtx-recursive.c: Likewise.
9373 * nptl/tst-mtx-timedlock.c: Likewise.
9374 * nptl/tst-mtx-trylock.c: Likewise.
9375 * nptl/tst-thrd-basic.c: Likewise.
9376 * nptl/tst-thrd-detach.c: Likewise.
9377 * nptl/tst-thrd-sleep.c: Likewise.
9378 * nptl/tst-tss-basic.c: Likewise.
9379
9380 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9381
9382 [BZ #14092]
9383 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
9384 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
9385 symbols.
9386 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9387 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
9388 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9389 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
9390 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9391 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9392 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9393 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9394 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9395 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9396 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9397 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9398 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9399 Likewise.
9400 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9401 Likewise.
9402 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
9403 Likewise.
9404 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
9405 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9406 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9407 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9408 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9409 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9410 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9411 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9412 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9413 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
9414 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
9415 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
9416 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
9417 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
9418 Likewise.
9419 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
9420 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
9421 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
9422 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
9423 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
9424 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
9425 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
9426 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
9427 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
9428 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
9429 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
9430 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
9431 ikewise.
9432 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
9433 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
9434 Likewise.
9435 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
9436 Likewise.
9437 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
9438 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
9439 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
9440 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
9441 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
9442 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
9443 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
9444 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
9445
9446 [BZ #14092]
9447 * conform/data/threads.h-data (thread_local): New macro.
9448 (TSS_DTOR_ITERATIONS): Likewise.
9449 (tss_t): New type.
9450 (tss_dtor_t): Likewise.
9451 (tss_create): New function.
9452 (tss_get): Likewise.
9453 (tss_set): Likewise.
9454 (tss_delete): Likewise.
9455 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
9456 tss_get, and tss_set objects.
9457 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
9458 * nptl/tss_create.c: New file.
9459 * nptl/tss_delete.c: Likewise.
9460 * nptl/tss_get.c: Likewise.
9461 * nptl/tss_set.c: Likewise.
9462 * sysdeps/nptl/threads.h (thread_local): New define.
9463 (TSS_DTOR_ITERATIONS): Likewise.
9464 (tss_t): New typedef.
9465 (tss_dtor_t): Likewise.
9466 (tss_create): New prototype.
9467 (tss_get): Likewise.
9468 (tss_set): Likewise.
9469 (tss_delete): Likewise.
9470
9471 [BZ #14092]
9472 * conform/data/threads.h-data (cnd_t): New type.
9473 (cnd_init): New function.
9474 (cnd_signal): Likewise.
9475 (cnd_broadcast): Likewise.
9476 (cnd_wait): Likewise.
9477 (cnd_timedwait): Likewise.
9478 (cnd_destroy): Likewise.
9479 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
9480 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
9481 object.
9482 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
9483 * nptl/cnd_broadcast.c: New file.
9484 * nptl/cnd_destroy.c: Likewise.
9485 * nptl/cnd_init.c: Likewise.
9486 * nptl/cnd_signal.c: Likewise.
9487 * nptl/cnd_timedwait.c: Likewise.
9488 * nptl/cnd_wait.c: Likewise.
9489 * sysdeps/nptl/threads.h (cnd_t): New type.
9490 (cnd_init): New prototype.
9491 (cnd_signa): Likewise.
9492 (cnd_broadcast): Likewise.
9493 (cnd_wait): Likewise.
9494 (cnd_timedwait): Likewise.
9495 (cnd_destroy): Likewise.
9496
9497 [BZ #14092]
9498 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
9499 (once_flag): New type.
9500 (call_once): New function.
9501 * nptl/Makefile (libpthread-routines): Add call_once object.
9502 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
9503 * nptl/call_once.c: New file.
9504 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
9505 (once_flag): New type.
9506 (call_once): New prototype.
9507
9508 [BZ #14092]
9509 * conform/data/threads.h-data (mtx_plain): New constant.
9510 (mtx_recursive): Likewise.
9511 (mtx_timed): Likewise.
9512 (mtx_t): New type.
9513 (mtx_init): New function.
9514 (mtx_lock): Likewise.
9515 (mtx_timedlock): Likewise.
9516 (mtx_trylock): Likewise.
9517 (mtx_unlock): Likewise.
9518 (mtx_destroy): Likewise.
9519 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
9520 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
9521 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
9522 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
9523 * nptl/mtx_destroy.c: New file.
9524 * nptl/mtx_init.c: Likewise.
9525 * nptl/mtx_lock.c: Likewise.
9526 * nptl/mtx_timedlock.c: Likewise.
9527 * nptl/mtx_trylock.c: Likewise.
9528 * nptl/mtx_unlock.c: Likewise.
9529 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
9530 (mtx_recursive): Likewise.
9531 (mtx_timed): Likewise.
9532 (mtx_t): New type.
9533 (mtx_init): New prototype.
9534 (mtx_lock): Likewise.
9535 (mtx_timedlock): Likewise.
9536 (mtx_trylock): Likewise.
9537 (mtx_unlock): Likewise.
9538 (mtx_destroy): Likewise.
9539
9540 [BZ #14092]
9541 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
9542 (linknamespace-libs-ISO11): Add libpthread.a.
9543 * conform/data/threads.h-data: New file: add C11 thrd_* types and
9544 functions.
9545 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
9546 * nptl/Makefile (headers): Add threads.h.
9547 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
9548 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
9549 thrd_yield.
9550 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
9551 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
9552 thrd_join, thrd_sleep, and thrd_yield symbols.
9553 * nptl/descr.h (struct pthread): Add c11 field.
9554 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
9555 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
9556 routine with expected function prototype.
9557 (__pthread_create_2_1): Add C11 threads check based on attribute
9558 value.
9559 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
9560 * nptl/thrd_create.c: New file.
9561 * nptl/thrd_current.c: Likewise.
9562 * nptl/thrd_detach.c: Likewise.
9563 * nptl/thrd_equal.c: Likewise.
9564 * nptl/thrd_exit.c: Likewise.
9565 * nptl/thrd_join.c: Likewise.
9566 * nptl/thrd_priv.h: Likewise.
9567 * nptl/thrd_sleep.c: Likewise.
9568 * nptl/thrd_yield.c: Likewise.
9569 * include/threads.h: Likewise.
9570
9571 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9572
9573 * bits/indirect-return.h: New file.
9574 * misc/sys/cdefs.h (__glibc_has_attribute): New.
9575 * sysdeps/x86/bits/indirect-return.h: Likewise.
9576 * stdlib/Makefile (headers): Add bits/indirect-return.h.
9577 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
9578 (swapcontext): Add __INDIRECT_RETURN.
9579 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
9580 (prepare_test_buffer): Use it.
9581
9582 2018-07-24 Andreas Schwab <schwab@suse.de>
9583
9584 [BZ #23448]
9585 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
9586 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
9587
9588 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9589
9590 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
9591 Redefine if shadow stack is enabled.
9592 (SYSCALL_ERROR_LABEL): Likewise.
9593 (__vfork): Pop shadow stack and jump back to to caller directly
9594 when shadow stack is in use.
9595 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
9596 Redefine if shadow stack is enabled.
9597 (SYSCALL_ERROR_LABEL): Likewise.
9598 (__vfork): Pop shadow stack and jump back to to caller directly
9599 when shadow stack is in use.
9600
9601 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9602
9603 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
9604 enabled.
9605 (foo): Likewise.
9606 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
9607 (foo): Likewise.
9608
9609 2018-07-20 Joseph Myers <joseph@codesourcery.com>
9610
9611 * scripts/build-many-glibcs.py (Context.checkout): Default
9612 binutils version to 2.31 branch.
9613
9614 2018-07-20 Zong Li <zong@andestech.com>
9615
9616 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
9617 URL of gcc's tarball.
9618
9619 2018-07-20 Florian Weimer <fweimer@redhat.com>
9620
9621 [BZ #23396]
9622 * posix/regcomp.c (build_equiv_class): When comparing weights, do
9623 not compare an extra byte after the end of the weights.
9624
9625 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
9626
9627 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
9628 to 1.
9629 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
9630 hidden prototypes.
9631 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
9632 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
9633 * scripts/check-execstack.awk: Consider `xfail' variable containing a
9634 list of libraries whose stack executability is expected.
9635 * elf/Makefile ($(objpfx)check-execstack.out): Pass
9636 $(check-execstack-xfail) to check-execstack.awk through `xfail'
9637 variable.
9638 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
9639 libc.so libpthread.so.
9640
9641 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
9642
9643 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
9644 SOCK_NONBLOCK.
9645 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
9646 and SOCK_NONBLOCK.
9647 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
9648 implement __pipe2.
9649 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
9650
9651 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9652
9653 * benchtests/scripts/compare_bench.py (__main__): use the argparse
9654 library to improve command line parsing.
9655 (__main__): make schema file as optional parameter (--schema),
9656 defaulting to benchtests/scripts/benchout.schema.json.
9657 (main): move out of the parsing stuff to __main_  and leave it
9658 only as caller of main comparison functions.
9659
9660 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
9661
9662 * NEWS: Add a note for Intel CET status.
9663 * manual/install.texi: Likewise.
9664 * INSTALL: Regenerated.
9665
9666 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
9667
9668 [BZ #23140]
9669 * localedata/locales/oc_FR (mon): Rename to...
9670 (alt_mon): This, then update October (typo fix).
9671 (mon): New content (genitive case, month names preceded by
9672 "de" or "d’").
9673
9674 [BZ #23422]
9675 * localedata/locales/oc_FR (abday): Update all items.
9676 (day): Update Wednesday and Saturday (typo fixes).
9677 (abmon): Update all items, except May.
9678 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
9679 (LC_IDENTIFICATION): Bump the revision number and date.
9680 Keep the "category" entries in alphabetic order.
9681 (LC_ADDRESS): Remove no longer needed comment.
9682 (LC_COLLATE): Use “copy "ca_ES"”.
9683 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
9684 "name_mrs".
9685
9686 2018-07-18 Joseph Myers <joseph@codesourcery.com>
9687
9688 * grp/tst_fgetgrent.c: Include <unistd.h>.
9689 (main): Use mkstemp instead of tmpnam.
9690 * io/test-utime.c (main): Likewise.
9691 * posix/annexc.c (macrofile): Change to modifiable array.
9692 (main): Remove macrofile here.
9693 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
9694 macrofile here.
9695 (check_header): Do not remove macrofile here.
9696 * posix/bug-getopt1.c: Include <stdlib.h>.
9697 (do_test): Use mkstemp instead of tmpnam.
9698 * posix/bug-getopt2.c: Include <stdlib.h>.
9699 (do_test): Use mkstemp instead of tmpnam.
9700 * posix/bug-getopt3.c: Include <stdlib.h>.
9701 (do_test): Use mkstemp instead of tmpnam.
9702 * posix/bug-getopt4.c: Include <stdlib.h>.
9703 (do_test): Use mkstemp instead of tmpnam.
9704 * posix/bug-getopt5.c: Include <stdlib.h>.
9705 (do_test): Use mkstemp instead of tmpnam.
9706 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
9707 (main): Use mkstemp instead of tmpnam.
9708 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
9709 (main): Use mkstemp instead of tmpnam.
9710 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
9711 (main): use mkstemp instead of tmpnam.
9712 * stdlib/isomac.c (macrofile): Change to modifiable array.
9713 (main): Remove macrofile here.
9714 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
9715 macrofile here.
9716 (check_header): Do not remove macrofile here.
9717
9718 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9719
9720 * manual/tunables.texi: Document glibc.tune.x86_ibt and
9721 glibc.tune.x86_shstk.
9722
9723 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9724
9725 * NEWS: Mention --enable-cet.
9726 * manual/install.texi: Document --enable-cet.
9727 * INSTALL: Regenerated.
9728
9729 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9730
9731 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
9732 Add _CET_NOTRACK before indirect jump to jump table.
9733
9734 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9735
9736 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
9737 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9738 to jump table.
9739
9740 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9741
9742 * sysdeps/i386/i686/multiarch/strcat-sse2.S
9743 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9744 to jump table.
9745
9746 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9747
9748 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
9749 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9750 to jump table.
9751
9752 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9753
9754 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
9755 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9756 to jump table.
9757
9758 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9759
9760 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
9761 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9762 to jump table.
9763 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
9764
9765 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9766
9767 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
9768 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9769 to jump table.
9770
9771 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9772
9773 * sysdeps/i386/i686/multiarch/memset-sse2.S
9774 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9775 to jump table.
9776
9777 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9778
9779 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
9780 indirect jump to jump table.
9781
9782 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9783
9784 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
9785 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9786 to jump table.
9787 (MEMCPY): Likewise.
9788
9789 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9790
9791 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
9792 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9793 to jump table.
9794 (MEMCPY): Likewise.
9795
9796 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9797
9798 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9799 _CET_NOTRACK before indirect jump to jump table.
9800
9801 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9802
9803 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
9804 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9805 to jump table.
9806
9807 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9808
9809 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
9810 indirect jump to jump table.
9811
9812 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
9813
9814 [BZ #22241]
9815 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
9816 (LOCALES): Likewise.
9817 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
9818 * localedata/locales/sah_RU: New file.
9819 * localedata/sah_RU.UTF-8.in: New file.
9820
9821 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9822
9823 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
9824 "sysdep.h".
9825 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
9826 _CET_ENDBR to indirect jump targets and adjust jump destination
9827 for _CET_ENDBR.
9828 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
9829 "sysdep.h".
9830 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
9831 _CET_ENDBR to indirect jump targets and adjust jump destination
9832 for _CET_ENDBR.
9833 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
9834 "sysdep.h".
9835 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
9836 _CET_ENDBR to indirect jump targets and adjust jump destination
9837 for _CET_ENDBR.
9838
9839 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9840
9841 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9842 _CET_ENDBR.
9843
9844 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9845
9846 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
9847 _CET_ENDBR.
9848 (_dl_tlsdesc_undefweak): Likewise.
9849 (_dl_tlsdesc_dynamic): Likewise.
9850 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
9851 (_dl_tlsdesc_resolve_rel): Likewise.
9852 (_dl_tlsdesc_resolve_rela): Likewise.
9853 (_dl_tlsdesc_resolve_hold): Likewise.
9854 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
9855 (_dl_tlsdesc_undefweak): Likewise.
9856 (_dl_tlsdesc_dynamic): Likewise.
9857 (_dl_tlsdesc_resolve_rela): Likewise.
9858 (_dl_tlsdesc_resolve_hold): Likewise.
9859
9860 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9861
9862 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
9863 (_fini): Likewise.
9864 * sysdeps/x86_64/crti.S (_init): Likewise.
9865 (_fini): Likewise.
9866
9867 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
9868
9869 [BZ #23140]
9870 * localedata/locales/os_RU (mon): Rename to...
9871 (alt_mon): This.
9872 (mon): Import from CLDR (genitive case).
9873
9874 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9875
9876 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
9877 cet-tunables.h> when CET is enabled.
9878
9879 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
9880
9881 [BZ #21598]
9882 * configure.ac: Add --enable-cet.
9883 * configure: Regenerated.
9884 * elf/Makefille (all-built-dso): Add a comment.
9885 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
9886 Include <dl-prop.h>.
9887 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
9888 segment.
9889 * elf/dl-open.c: Include <dl-prop.h>.
9890 (dl_open_worker): Call _dl_open_check.
9891 * elf/rtld.c: Include <dl-prop.h>.
9892 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
9893 _rtld_main_check.
9894 * sysdeps/generic/dl-prop.h: New file.
9895 * sysdeps/i386/dl-cet.c: Likewise.
9896 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
9897 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
9898 * sysdeps/x86/cet-tunables.h: Likewise.
9899 * sysdeps/x86/check-cet.awk: Likewise.
9900 * sysdeps/x86/configure: Likewise.
9901 * sysdeps/x86/configure.ac: Likewise.
9902 * sysdeps/x86/dl-cet.c: Likewise.
9903 * sysdeps/x86/dl-procruntime.c: Likewise.
9904 * sysdeps/x86/dl-prop.h: Likewise.
9905 * sysdeps/x86/libc-start.h: Likewise.
9906 * sysdeps/x86/link_map.h: Likewise.
9907 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
9908 _CET_ENDBR.
9909 (_dl_runtime_profile): Likewise.
9910 (_dl_runtime_resolve_shstk): New.
9911 (_dl_runtime_profile_shstk): Likewise.
9912 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
9913 if CET is enabled.
9914 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
9915 (CFLAGS-.os): Likewise.
9916 (CFLAGS-.op): Likewise.
9917 (CFLAGS-.oS): Likewise.
9918 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
9919 is enabled.
9920 (tests-special): Add $(objpfx)check-cet.out.
9921 (cet-built-dso): New.
9922 (+$(cet-built-dso:=.note)): Likewise.
9923 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
9924 ($(objpfx)check-cet.out): New.
9925 (generated): Add check-cet.out.
9926 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
9927 <cet-tunables.h>.
9928 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
9929 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9930 (init_cpu_features): Call get_cet_status to check CET status
9931 and update dl_x86_feature_1 with CET status. Call
9932 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
9933 (set_x86_shstk). Disable and lock CET in libc.a.
9934 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
9935 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
9936 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9937 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
9938 (_CET_ENDBR): Define if not defined.
9939 (ENTRY): Add _CET_ENDBR.
9940 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
9941 x86_shstk.
9942 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
9943 _CET_ENDBR.
9944 (_dl_runtime_profile): Likewise.
9945
9946 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
9947
9948 [BZ #21895]
9949 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
9950 restore r2 on longjmp.
9951 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
9952 test list.
9953 Added rules to build test tst-setjmp-bug21895-static.
9954 Added module setjmp-bug21895 and rules to build a shared object from it.
9955 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
9956 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
9957
9958 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
9959
9960 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
9961 * benchtests/bench-strstr.c: Likewise.
9962 * string/memmem.c (FASTSEARCH): Define.
9963 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
9964 Add support for FASTSEARCH.
9965 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
9966 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
9967 (FASTSEARCH): Define.
9968 * string/test-strcasestr.c: Rename __strnlen to strnlen.
9969 * string/test-strstr.c: Likewise.
9970
9971 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
9972
9973 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
9974 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
9975
9976 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
9977 H.J. Lu <hongjiu.lu@intel.com>
9978
9979 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
9980 (__longjmp): Restore shadow stack pointer if shadow stack is
9981 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
9982 isn't defined for __longjmp_cancel.
9983 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
9984 (_setjmp): Save shadow stack pointer if shadow stack is enabled
9985 and SHADOW_STACK_POINTER_OFFSET is defined.
9986 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
9987 (setjmp): Save shadow stack pointer if shadow stack is enabled
9988 and SHADOW_STACK_POINTER_OFFSET is defined.
9989 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
9990 (__sigsetjmp): Save shadow stack pointer if shadow stack is
9991 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9992 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
9993 <jmp_buf-ssp.h>.
9994 (____longjmp_chk): Restore shadow stack pointer if shadow stack
9995 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9996 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
9997 Remove jmp_buf-ssp.sym.
9998 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
9999 <jmp_buf-ssp.h>.
10000 (____longjmp_chk): Restore shadow stack pointer if shadow stack
10001 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
10002 * sysdeps/x86/Makefile (gen-as-const-headers): Add
10003 jmp_buf-ssp.sym.
10004 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
10005 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
10006 (__longjmp): Restore shadow stack pointer if shadow stack is
10007 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
10008 isn't defined for __longjmp_cancel.
10009 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
10010 (__sigsetjmp): Save shadow stack pointer if shadow stack is
10011 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
10012
10013 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
10014
10015 [BZ #22563]
10016 * nptl/pthread_create.c: Include <tls-setup.h>.
10017 (__pthread_create_2_1): Call tls_setup_tcbhead.
10018 * sysdeps/generic/tls-setup.h: New file.
10019 * sysdeps/x86/nptl/tls-setup.h: Likewise.
10020 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
10021 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
10022 Likewise.
10023 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
10024 to feature_1.
10025 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
10026 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
10027 (X86_FEATURE_1_SHSTK): Likewise.
10028 (CET_ENABLED): Likewise.
10029 (IBT_ENABLED): Likewise.
10030 (SHSTK_ENABLED): Likewise.
10031
10032 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
10033
10034 [BZ #23208]
10035 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
10036 (LOCALES): Likewise.
10037 * localedata/dsb_DE.UTF-8.in: New file.
10038 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
10039
10040 2018-07-12 Florian Weimer <fweimer@redhat.com>
10041
10042 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
10043 __mprotect, not mprotect.
10044
10045 2018-07-11 Florian Weimer <fweimer@redhat.com>
10046
10047 * io/Makefile (headers): Add bits/statx.h.
10048
10049 2018-07-10 Mike FABIAN <mfabian@redhat.com>
10050
10051 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
10052 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
10053 and headers.
10054 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
10055 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
10056 for utf8_gen.py
10057
10058 2018-07-10 Florian Weimer <fweimer@redhat.com>
10059
10060 * io/Makefile (routines): Add statx.
10061 (tests-internal): Add tst-statx.
10062 * io/Versions (GLIBC_2.28): Export statx.
10063 * io/bits/statx.h: New file.
10064 * io/sys/stat.h [__USE_GNU]: Include it.
10065 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
10066 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
10067 Define.
10068 * io/statx.c: New file.
10069 * io/statx_generic.: Likewise.
10070 * io/tst-statx.: Likewise.
10071 * include/bits/statx.h: Likewise.
10072 * sysdeps/unix/sysv/linux/kernel-features.h
10073 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
10074 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
10075 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
10076 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
10077 Undefine.
10078 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10079 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
10080 * sysdeps/unix/sysv/linux/statx.c: New file.
10081 * manual/filesys.texi: Note that statx is undocumented.
10082 * sysdeps/**/libc*.abilist: Update.
10083
10084 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10085
10086 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
10087 a kernel issue which lead to test failure in some cases.
10088
10089 2018-07-10 Florian Weimer <fweimer@redhat.com>
10090
10091 [BZ #23036]
10092 * posix/regexec.c (check_node_accept_bytes): When comparing
10093 weights, do not compare an extra byte after the end of the
10094 weights.
10095
10096 2018-07-10 Florian Weimer <fweimer@redhat.com>
10097
10098 * libio/readline.c: Fix copyright year.
10099 * libio/tst-readline.c Likewise.
10100 * nss/tst-nss-files-hosts-getent.c: Likewise.
10101
10102 2018-07-06 Florian Weimer <fweimer@redhat.com>
10103
10104 [BZ #18991]
10105 * nss/nss_files/files-XXX.c (internal_getent): Use
10106 __libc_readline_unlocked. Seek back to the start of the line if
10107 parsing failes with ERANGE.
10108 (get_contents_ret, get_contents): Remove.
10109 * nss/tst-nss-files-hosts-getent.c: New file.
10110 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
10111 (tst-nss-files-hosts-getent): Link with -ldl.
10112
10113 2018-07-06 Florian Weimer <fweimer@redhat.com>
10114
10115 * include/stdio.h (__libc_readline_unlocked): Declare.
10116 (__ftello64, __fseeko64): Declare aliases.
10117 * libio/readline.c: New file.
10118 * libio/tst-readline.c: Likewise.
10119 (routines): Add readline.
10120 (tests-internal): Add tst-readlime.
10121 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
10122 __libc_readline_unlocked.
10123 * libio/fseeko.c (__fseeko): Rename from fseeko.
10124 (fseeko): Add alias.
10125 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
10126 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
10127 (fseeko64): Add alias.
10128 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
10129 * libio/ftello64.c (__ftello64): Rename from ftello64.
10130 (ftello64): Add alias.
10131
10132 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
10133
10134 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
10135 HWCAP_ATOMICS.
10136
10137 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
10138
10139 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
10140 Use dl_hwcap without masking.
10141 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
10142 Remove HWCAP_CPUID.
10143
10144 2018-07-06 Florian Weimer <fweimer@redhat.com>
10145
10146 * conform/conformtest.pl (checknamespace): Escape literal braces
10147 in regular expressions.
10148
10149 2018-07-06 Amit Pawar <amit.pawar@amd.com>
10150
10151 * sysdeps/x86/cpu-features.c (get_common_indeces):
10152 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
10153 * sysdeps/x86/cpu-features.c (init_cpu_features):
10154 AVX_Fast_Unaligned_Load is disabled for Excavator core.
10155
10156 2018-07-05 Florian Weimer <fweimer@redhat.com>
10157
10158 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
10159 protector.
10160 (CFLAGS-elf-init.oS): Likewise.
10161
10162 2018-07-05 Florian Weimer <fweimer@redhat.com>
10163 Carlos O'Donell <carlos@redhat.com>
10164
10165 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
10166 $(no-stack-protector). stack_chk_fail_local.c can be compiled
10167 with stack protector enabled because there is no risk of infinite
10168 recursion.
10169
10170 2018-07-05 Maciej W. Rozycki <macro@mips.com>
10171
10172 [BZ #19818]
10173 [BZ #23307]
10174 * libc-abis (ABSOLUTE): New ABI.
10175 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
10176 * NEWS: Mention the new ABI.
10177
10178 2018-07-05 Florian Weimer <fweimer@redhat.com>
10179
10180 [BZ # 17662]
10181 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
10182 (RENAME_WHITEOUT): Define.
10183 [__USE_GNU] (renameat2): Declare.
10184 * stdio-common/Makefile (routines): Add renameat2.
10185 (tests): Add tst-renameat2.
10186 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
10187 * stdio-common/renameat2.c: New file.
10188 * stdio-common/tst-renameat2.c: Likewise.
10189 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
10190 * manual/filesys.texi (Temporary Files): Note that renameat2 is
10191 undocumented.
10192 * sysdeps/unix/sysv/linux/kernel-features.h
10193 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
10194 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
10195 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
10196 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10197 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
10198 * sysdeps/unix/sysv/linux/sh/kernel-features.h
10199 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
10200 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
10201 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
10202 * include/stdio.h (__renameat): Add alias for renameat.
10203 * stdio-common/renameat.c (__renameat): Rename from renameat.
10204 Add hidden definition and alias.
10205 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
10206 * sysdeps/mach/hurd/renameat.c: Likewise.
10207 * sysdeps/**/libc*.abilist: Add renameat2.
10208
10209 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10210
10211 * posix/bug-regex33.c: Fix build after regex sync.
10212
10213 2018-07-04 Carlos O'Donell <carlos@redhat.com>
10214
10215 [BZ #23164]
10216 * localedata/tst-langinfo-setlocale.c: New file.
10217 * localedata/tst-langinfo-setlocale-static.c: New file.
10218 * localedata/tst-langinfo-newlocale.c: New file.
10219 * localedata/tst-langinfo-newlocale-static.c: New file.
10220 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
10221 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
10222 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
10223 (tests-static): Remove tst-langinfo-static. Add
10224 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
10225 (tests-special): Remove $(objpfx)tst-langinfo.out,
10226 $(objpfx)tst-langinfo-static.out. Add
10227 $(objpfx)tst-langinfo-setlocale.out,
10228 $(objpfx)tst-langinfo-newlocale.out,
10229 $(objpfx)tst-langinfo-setlocale-static.out,
10230 $(objpfx)tst-langinfo-newlocale-static.out.
10231 ($(objpfx)tst-langinfo.out): Remove.
10232 ($(objpfx)tst-langinfo-static.out): Remove.
10233 ($(objpfx)tst-langinfo-newlocale.out): New target.
10234 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
10235 (test-xfail-tst-langinfo-newlocale-static): Add.
10236 ($(objpfx)tst-langinfo-setlocale.out): New target.
10237 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
10238 * localedata/tst-langinfo.c: Call test_locale.
10239 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
10240 data.
10241
10242 2018-07-04 Florian Weimer <fweimer@redhat.com>
10243
10244 testrun.sh: Implement --tool=strace, --tool=valgrind
10245 * Makefile (testrun-script): Define variable.
10246 (testrun.sh): Use variable.
10247 * manual/install.texi (Tools for Compilation): make 4.0 or later
10248 is required.
10249 * configure.ac: Check for make 4.0 or later.
10250 * INSTALL: Regenerate.
10251 * configure: Likewise.
10252
10253 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10254
10255 [BZ #23233]
10256 [BZ #21163]
10257 [BZ #18986]
10258 [BZ #13762]
10259 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
10260 * posix/PCRE.tests: Remove invalid test.
10261 * posix/bug-regex28.c: Fix expected values for used syntax.
10262 * posix/bug-regex37.c: New file.
10263 * posix/bug-regex38.c: Likewise.
10264 * posix/regcomp.c: Sync with gnulib.
10265 * posix/regex.c: Likewise.
10266 * posix/regex.h: Likewise.
10267 * posix/regex_internal.c: Likewise.
10268 * posix/regex_internal.h: Likewise.
10269 * posix/regexec.c: Likewise.
10270
10271 2018-06-26 Mike FABIAN <mfabian@redhat.com>
10272
10273 [BZ #23308]
10274 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
10275 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
10276 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
10277 * localedata/unicode-gen/PropList.txt: likewise.
10278 * localedata/unicode-gen/UnicodeData.txt: likewise.
10279 * localedata/charmaps/UTF-8: Regenerate.
10280 * localedata/locales/i18n_ctype: likewise.
10281 * localedata/locales/tr_TR: likewise.
10282 * localedata/locales/translit_circle: likewise.
10283 * localedata/locales/translit_cjk_compat: likewise.
10284 * localedata/locales/translit_combining: likewise.
10285 * localedata/locales/translit_compat: likewise.
10286 * localedata/locales/translit_font: likewise.
10287 * localedata/locales/translit_fraction: likewise.
10288
10289 2018-07-03 Florian Weimer <fweimer@redhat.com>
10290
10291 [BZ #23363]
10292 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
10293 * stdio-common/tst-printf.sh: Adjust expected output.
10294 * LICENSES: Update.
10295
10296 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10297
10298 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
10299 symbol.
10300
10301 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10302
10303 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
10304 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
10305 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
10306 * stdio-common/tst-printfsz-islongdouble.c: New file.
10307 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
10308 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
10309 [subdir == stdio-common] (routines): Add ieee128-printf_size.
10310 [subdir == stdio-common] (tests-internal): Add
10311 test-printf-size-ieee128, and test-printf-size-ibm128.
10312 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
10313 (CFLAGS-test-printf-size-ibm128.c): New variables.
10314 [subdir == stdio-common] (tests-special): Add
10315 $(objpfx)test-printf-size-ieee128.out and
10316 $(objpfx)test-printf-size-ibm128.out.
10317 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
10318 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
10319 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
10320 __printf_sizeieee128.
10321 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
10322 New file.
10323 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
10324 Likewise.
10325 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
10326 Likewise.
10327
10328 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
10329
10330 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
10331 (exp2f_inline): Likewise.
10332 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
10333 (__math_uflowf): Likewise.
10334 (__math_may_uflowf): Likewise.
10335 (__math_divzerof): Likewise.
10336 (__math_invalidf): Likewise.
10337 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
10338 (__math_oflowf): Likewise.
10339 (__math_uflowf): Likewise.
10340 (__math_may_uflowf): Likewise.
10341 (__math_divzerof): Likewise.
10342 (__math_invalidf): Likewise.
10343
10344 2018-06-29 DJ Delorie <dj@redhat.com>
10345 Carlos O'Donell <carlos@redhat.com>
10346
10347 [BZ #23329]
10348 * include/libc-symbols.h: Comment the freeres framework.
10349 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
10350 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
10351 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
10352 * dlfcn/dlerror.c: Include libc-symbols.h
10353 (__dlerror_main_freeres): New function.
10354 * dlfcn/dlfreeres.c: New file.
10355 * dlfcn/sdlfreeres.c: New file.
10356 * include/dlfcn.h: Declare __dlerror_main_freeres.
10357 * malloc/set-freeres.c: Declare __libdl_freeres, and
10358 __libpthread_freeres.
10359 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
10360 the releavant libraries are loaded.
10361 * malloc/thread-freeres.c: Add comments.
10362 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
10363 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
10364 * nptl/allocatestack.c (__nptl_free_stacks): New function.
10365 (__free_stacks): Rename to...
10366 (free_stacks): ...this. Mark static.
10367 (queue_stack): Call free_stacks.
10368 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
10369 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
10370 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
10371 ptr_freeres element from struct.
10372 (pthread_functions): Remove .ptr_freeres from struct initializer.
10373 [SHARED] (nptl_freeres): Remove.
10374 * nptl/nptlfreeres.c: New file.
10375 * nptl/pthreadP.h
10376 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
10377 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
10378 attribute_hidden.
10379 (__free_stacks): Rename to...
10380 (__nptl_stacks_freeres): ...this.
10381 (__shm_directory_freeres): Declare.
10382 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
10383 (__nptl_unwind_freeres): ...this.
10384 * resolv/res-close.c: Add comment.
10385 * resolv/resolv_conf.c: Include libc-symbols.h.
10386 * string/strerror_l.c: Include libc-symbols.h.
10387 * sunrpc/rpc_thread.c: Include libc-symbols.h.
10388 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
10389 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
10390 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
10391
10392 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10393
10394 * stdlib/tst-strfmon_l.c: Add tests for long double.
10395
10396 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
10397
10398 [BZ #23208]
10399 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
10400 * localedata/locales/dsb_DE: New file.
10401
10402 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
10403
10404 [BZ #23140]
10405 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
10406 genitive case).
10407 (alt_mon): New entry, import from CLDR (nominative case).
10408
10409 2018-06-29 Sylvain Lesage <severo@rednegra.net>
10410
10411 [BZ #22996]
10412 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
10413
10414 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
10415
10416 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
10417 Use vector registers.
10418
10419 * sysdeps/aarch64/multiarch/memmove_falkor.S
10420 (__memcpy_falkor): Use vector registers.
10421
10422 2018-06-29 Martin Sebor <msebor@redhat.com>
10423
10424 * manual/stdio.texi (Customizing Printf): Mention interaction
10425 with GCC built-ins.
10426
10427 2018-06-29 Maciej W. Rozycki <macro@mips.com>
10428
10429 [BZ #23307]
10430 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
10431 `st_value' is 0 if `st_shndx' is SHN_ABS.
10432 * elf/tst-absolute-zero.c: New file.
10433 * elf/tst-absolute-zero-lib.c: New file.
10434 * elf/tst-absolute-zero-lib.lds: New file.
10435 * elf/Makefile (tests): Add `tst-absolute-zero'.
10436 (modules-names): Add `tst-absolute-zero-lib'.
10437 (LDLIBS-tst-absolute-zero-lib.so): New variable.
10438 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
10439 ($(objpfx)tst-absolute-zero: New dependency.
10440
10441 2018-06-29 Zack Weinberg <zackw@panix.com>
10442
10443 * configure.ac: New command-line option --disable-crypt.
10444 Force --disable-nss-crypt when --disable-crypt is given, with a
10445 warning if it was explicitly enabled.
10446 * configure: Regenerate.
10447 * config.make.in: New boolean substitution variable $(build-crypt).
10448 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
10449 when $(build-crypt).
10450 * manual/install.texi: Document --disable-crypt.
10451 * INSTALL: Regenerate.
10452
10453 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
10454 which is never set.
10455 * conform/Makefile: Only include libcrypt.a in
10456 linknamespace-libs-xsi and linknamespace-libs-XPG4
10457 when $(build-crypt).
10458 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
10459 USE_CRYPT to 1 when $(build-crypt).
10460 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
10461 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
10462 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
10463
10464 2018-06-29 Zack Weinberg <zackw@panix.com>
10465
10466 * crypt/crypt.h, posix/unistd.h: Update comments and
10467 prototypes for crypt and crypt_r.
10468
10469 * manual/crypt.texi (Cryptographic Functions): New initial
10470 exposition.
10471 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
10472 (Unpredictable Bytes): Improve initial exposition. Clarify error
10473 behavior of getentropy and getrandom.
10474 * manual/examples/genpass.c: Generate a salt using getentropy
10475 instead of the current time. Use hash $5$ (SHA-2-256).
10476 * manual/examples/testpass.c: Demonstrate validation against
10477 hashes generated with three different one-way functions.
10478
10479 * manual/intro.texi: crypt.texi does not need an overview
10480 anymore.
10481
10482 * manual/nss.texi, manual/memory.texi, manual/socket.texi
10483 * manual/terminal.texi: Consistently refer to "passphrases"
10484 * instead of "passwords", and to the "user database" instead
10485 * of the "password database".
10486 * manual/users.texi: Similarly. Add notes about how actual
10487 passphrase hashes are now stored in the shadow database.
10488 Remove 20-year-old junk todo note.
10489
10490 2018-06-29 Zack Weinberg <zackw@panix.com>
10491
10492 * manual/crypt.texi: Use a normal top-level @node declaration.
10493 Move most of the introductory text to the 'crypt' section.
10494 Move the example programs below the @deftypefun for 'crypt_r'.
10495 Move the 'getpass' section...
10496 * manual/terminal.texi: ...here.
10497
10498 2018-06-29 Zack Weinberg <zackw@panix.com>
10499 Florian Weimer <fweimer@redhat.com>
10500
10501 * posix/unistd.h: Do not declare encrypt.
10502 (_XOPEN_CRYPT): Remove macro definition.
10503 (crypt): Declare only for _USE_MISC.
10504 * stdlib/stdlib.h: Do not declare setkey.
10505 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
10506 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
10507
10508 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
10509 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
10510 into compat symbols. Don't define initial_perm if it's not
10511 going to be used.
10512 * crypt/cert.c: Link explicitly with the expected versions for
10513 setkey and encrypt. If they are not available at all, mark
10514 the test as unsupported.
10515
10516 * sunrpc/des_crypt.c: Unconditionally block linkage with
10517 cbc_crypt and ecb_crypt for new binaries.
10518 * sunrpc/des_soft.c: Unconditionally block linkage with
10519 des_setparity for new binaries.
10520
10521 * manual/crypt.texi: Remove the entire "DES Encryption"
10522 section. Also remove the paragraph talking about FIPS 140-2
10523 from the introduction.
10524 * manual/string.texi (strfry, memfrob): Revise. Recommend use
10525 of libgcrypt for "real" encryption, not DES.
10526 * manual/conf.texi (Constants for Sysconf): Mention that
10527 _XOPEN_CRYPT is no longer impelemented.
10528
10529 * conform/data/unistd.h-data: Remove crypt function declaration.
10530
10531 2018-06-29 Florian Weimer <fweimer@redhat.com>
10532
10533 [BZ #23351]
10534 * malloc/hooks.c: Update comments on restoring of dumped heaps.
10535 (disallow_malloc_check): Remove variable.
10536 (__malloc_check_init): Adjust.
10537 (malloc_set_state): Update comment.
10538 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
10539 declarations.
10540
10541 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
10542
10543 [BZ #23140]
10544 * localedata/locales/ast_ES (mon): Rename to...
10545 (alt_mon): This.
10546 (mon): Import from CLDR (genitive case).
10547
10548 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
10549 Jakub Sitnicki <jkbs@redhat.com>
10550
10551 [BZ #21812]
10552 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
10553 on NLM_F_DUMP_INTR.
10554
10555 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
10556
10557 * manual/llio.texi: Remove spurious space.
10558
10559 2018-06-28 Florian Weimer <fweimer@redhat.com>
10560
10561 [BZ #23349]
10562 * time/bits/types/struct_timespec.h: Change header inclusion guard to
10563 _STRUCT_TIMESPEC.
10564
10565 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10566
10567 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
10568 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
10569 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
10570 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
10571 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
10572 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
10573 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
10574
10575 2018-06-27 Maciej W. Rozycki <macro@mips.com>
10576
10577 [BZ #23266]
10578 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
10579 Copy and null-terminate entries that are not terminated, in
10580 addition to empty ones.
10581
10582 2018-06-27 Florian Weimer <fweimer@redhat.com>
10583
10584 [BZ #18023]
10585 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
10586 (extend_alloca_account): Remove.
10587 * manual/stdio.texi (Variable Arguments Output): Update comment.
10588
10589 2018-06-27 Joseph Myers <joseph@codesourcery.com>
10590
10591 * nptl/sockperf.c: Remove file.
10592
10593 2018-06-27 Florian Weimer <fweimer@redhat.com>
10594
10595 [BZ #18023]
10596 * elf/dl-deps.c (_dl_map_object_deps): Use struct
10597 scratch_buffer instead of extend_alloca.
10598
10599 2018-06-27 Florian Weimer <fweimer@redhat.com>
10600
10601 [BZ #18023]
10602 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
10603 scratch_buffer instead of extend_alloca. Update comments.
10604
10605 2018-06-27 Florian Weimer <fweimer@redhat.com>
10606
10607 [BZ #18023]
10608 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
10609 instead of extend_alloca.
10610
10611 2018-06-26 Joseph Myers <joseph@codesourcery.com>
10612
10613 [BZ #13888]
10614 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
10615 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
10616 /tmp.
10617 * scripts/test-installation.pl: Put temporary files in build
10618 directory, not /tmp.
10619 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
10620 (CFLAGS-bug4.c): Likewise.
10621 (CFLAGS-bug5.c): Likewise.
10622 (CFLAGS-test-fseek.c): Likewise.
10623 (CFLAGS-test-popen.c): Likewise.
10624 (CFLAGS-test_rdwr.c): Likewise.
10625 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
10626 /tmp.
10627 * stdio-common/bug4.c (main): Likewise.
10628 * stdio-common/bug5.c (main): Likewise.
10629 * stdio-common/test-fseek.c (TESTFILE): Likewise.
10630 * stdio-common/test-popen.c (do_test): Likewise.
10631 * stdio-common/test_rdwr.c (main): Likewise.
10632
10633 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
10634
10635 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
10636 (sem_open): Set sem.newsem.pad to zero for valgrind.
10637
10638 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10639
10640 [BZ #20251]
10641 * NEWS: Mention fcntl64 addition.
10642 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
10643 * login/utmp_file.c: Likewise.
10644 * sysdeps/posix/fdopendir.c: Likewise.
10645 * sysdeps/posix/opendir.c: Likewise.
10646 * sysdeps/unix/pt-fcntl.c: Likewise.
10647 * include/fcntl.h (__libc_fcntl64, __fcntl64,
10648 __fcntl64_nocancel_adjusted): New prototype.
10649 (__fcntl_nocancel_adjusted): Remove prototype.
10650 * io/Makefile (routines): Add fcntl64.
10651 (CFLAGS-fcntl64.c): New rule.
10652 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
10653 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
10654 * io/fcntl.h (fcntl64): Add prototype and redirect if
10655 __USE_FILE_OFFSET64 is defined.
10656 * io/fcntl64.c: New file.
10657 * manual/llio.text: Add a note for which commands fcntl acts a
10658 cancellation point.
10659 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
10660 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
10661 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
10662 New symbols.
10663 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
10664 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
10665 non-LFS case.
10666 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
10667 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
10668 to __fcntl64_nocancel.
10669 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
10670 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
10671 to __fcntl64_nocancel.
10672 * sysdeps/generic/not-cancel.h: Likewise.
10673 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
10674 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
10675 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
10676 (fcntl64): New symbol.
10677 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
10678 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
10679 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
10680 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
10681 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
10682 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
10683 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
10684 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
10685 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
10686 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
10687 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
10688 fcntl64): Likewise.
10689 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
10690 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
10691 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
10692 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
10693 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
10694 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
10695 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
10696 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
10697 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
10698 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
10699 Likewise.
10700 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
10701 Likewise.
10702 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
10703 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
10704 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
10705
10706 2018-06-26 Florian Weimer <fweimer@redhat.com>
10707
10708 Run thread shutdown functions in an explicit order.
10709 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
10710 definition.
10711 (__libc_thread_freeres): Call thread shutdown functions
10712 explicitly.
10713 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
10714 * include/string.h (__strerror_thread_freeres): Declare.
10715 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
10716 arena_thread_freeres. No longer static. Remove thread shutdown
10717 hook registration.
10718 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
10719 Declare.
10720 * resolv/res-close.c (__res_thread_freeres): Renamed from
10721 res_thread_freeres. No longer static. Remove thread shutdown
10722 hook registration.
10723 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
10724 * resolv/resolv_conf.c (freeres): Remove incorrect section
10725 attribute and use libc_freeres_fn.
10726 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
10727 strerror_thread_freeres. No longer static. Remove thread
10728 shutdown hook registration.
10729 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
10730 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
10731 shutdown hook registration.
10732 * Makerules (shlib.lds): Do not provide section boundary symbols
10733 for __libc_thread_subfreeres.
10734 * manual/memory.texi (Basic Allocation): Update comment.
10735
10736 2018-06-26 Florian Weimer <fweimer@redhat.com>
10737
10738 Remove always-defined _RPC_THREAD_SAFE_ macro.
10739 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
10740 Do not define _RPC_THREAD_SAFE_.
10741 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
10742 conditional.
10743 * sunrpc/clnt_perr.c: Likewise.
10744 * sunrpc/clnt_raw.c: Likewise.
10745 * sunrpc/clnt_simp.c: Likewise.
10746 * sunrpc/key_call.c: Likewise.
10747 * sunrpc/rpc_common.c: Likewise.
10748 * sunrpc/rpc_main.c: Likewise.
10749 * sunrpc/rpc_thread.c: Likewise.
10750 * sunrpc/svc.c: Likewise.
10751 * sunrpc/svc_raw.c: Likewise.
10752 * sunrpc/svc_simple.c: Likewise.
10753 * sumrpc/svcauth_des.c: Likewise.
10754
10755 2018-06-26 Florian Weimer <fweimer@redhat.com>
10756
10757 * libio/Makefile (tests-internal): Add tst-vtables,
10758 tst-vtables-interposed.
10759 * libio/tst-vtables.c: New file.
10760 * libio/tst-vtables-common.c: Likewise.
10761 * libio/tst-vtables-interposed.c: Likewise.
10762
10763 2018-06-26 Florian Weimer <fweimer@redhat.com>
10764
10765 * support/support_test_main.c (support_test_main): Only call
10766 setvbuf if not disables.
10767 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
10768 * support/test-driver.h (struct test_config): Add no_setvbuf member.
10769
10770 2018-06-26 Florian Weimer <fweimer@redhat.com>
10771
10772 [BZ #23313]
10773 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
10774
10775 2018-06-25 Florian Weimer <fweimer@redhat.com>
10776
10777 [BZ #18023]
10778 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
10779 Use struct scratch_buffer instead of extend_alloca.
10780
10781 2018-06-25 Florian Weimer <fweimer@redhat.com>
10782
10783 [BZ #18023]
10784 * nss/getent.c (initgroups_keys): Use dynarray instead of
10785 extend_alloca.
10786
10787 2018-06-25 Florian Weimer <fweimer@redhat.com>
10788
10789 [BZ #18023]
10790 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
10791 Use struct scratch_buffer instead of extend_alloca.
10792
10793 2018-06-25 Florian Weimer <fweimer@redhat.com>
10794
10795 [BZ #18023]
10796 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
10797 back to malloc directly, without stack allocations.
10798
10799 2018-06-25 Florian Weimer <fweimer@redhat.com>
10800
10801 [BZ #18023]
10802 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
10803 of extend_alloca.
10804
10805 2018-06-25 Florian Weimer <fweimer@redhat.com>
10806
10807 [BZ #18023]
10808 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
10809 of extend_alloca.
10810 * nscd/hstcache.c (addhstbyX): Likewise.
10811 * nscd/pwdcache.c (addpwbyX): Likewise.
10812 * nscd/servicescache.c (addservbyX): Likewise.
10813
10814 2018-06-25 Florian Weimer <fweimer@redhat.com>
10815
10816 [BZ #18023]
10817 * nscd/connections.c (read_cmdline): New function.
10818 (restart): Use it. Update comment.
10819
10820 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
10821
10822 [BZ #23140]
10823 * localedata/locales/csb_PL (mon): Rename to...
10824 (alt_mon): This.
10825 (abmon): Rename to...
10826 (ab_alt_mon): This.
10827 (mon): Add with proper genitive forms, copy from Wikipedia.
10828 (abmon): Likewise.
10829
10830 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
10831
10832 [BZ #19485]
10833 * localedata/locales/csb_PL (mon): Fix typos:
10834 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
10835 (yesstr): Add, value is "jo".
10836 (nostr): Add, value is "nié".
10837
10838 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10839
10840 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
10841 all log1p and significand functions on m680x0.
10842 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
10843 of s_significand.c..
10844 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
10845 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
10846 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
10847 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
10848 s_log1p.c and include it..
10849
10850 2018-06-21 Vincent Chen <vincentc@andestech.com>
10851
10852 * elf/elf.h (R_NDS32_NONE): New define.
10853 (R_NDS32_32_RELA): Likewise.
10854 (R_NDS32_COPY): Likewise.
10855 (R_NDS32_GLOB_DAT): Likewise.
10856 (R_NDS32_JUMP_SLOT): Likewise.
10857 (R_NDS32_RELATIVE): Likewise.
10858 (R_NDS32_TLS_TPOFF): Likewise.
10859 (R_NDS32_TLS_DESC): Likewise.
10860
10861 2018-06-21 Mark Wielaard <mark@klomp.org>
10862
10863 * elf/elf.h (R_BPF_MAP_FD): Removed.
10864 (R_BPF_64_64, R_BPF_64_32): New.
10865
10866 2018-06-21 Florian Weimer <fweimer@redhat.com>
10867
10868 [BZ #23253]
10869 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
10870 Renamed from libc_feholdsetround_ctx.
10871 (default_libc_feresetround_ctx): Renamed from
10872 libc_feresetround_ctx.
10873 (default_libc_feholdsetround_noex_ctx): Renamed from
10874 libc_feholdsetround_noex_ctx.
10875 (default_libc_feresetround_noex_ctx): Renamed from
10876 libc_feresetround_noex_ctx.
10877 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
10878 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
10879 forwardning to the old implementations under the new names.
10880 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
10881 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
10882 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
10883 (libc_feresetround_ctx): Forward to default implements for i386
10884 and MATH_SET_BOTH_ROUNDING_MODES.
10885 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
10886 Add -DMATH_SET_BOTH_ROUNDING_MODES.
10887
10888 2018-06-20 Joseph Myers <joseph@codesourcery.com>
10889
10890 * string/tst-cmp.c: Include <libc-diag.h>.
10891 (strncmp_max): Disable -Wstringop-overflow= around call to
10892 strncmp.
10893 (strncasecmp_max): Disable -Wstringop-overflow= around call to
10894 strncasecmp.
10895
10896 * string/bug-strpbrk1.c: Include <libc-diag.h>.
10897 (main): Disable -Wunused-value around call to strpbrk.
10898 * string/bug-strspn1.c: Include <libc-diag.h>.
10899 (main): Disable -Wunused-value around call to strspn.
10900
10901 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10902 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10903
10904 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
10905 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
10906
10907 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10908
10909 * math/Makefile (libm-calls): Move s_significandF to...
10910 (gen-libm-calls): ... here.
10911 * math/s_significand_template.c: New file.
10912 * math/s_significand.c: Removed.
10913 * math/s_significandf.c: Removed.
10914 * math/s_significandl.c: Removed.
10915 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
10916 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
10917
10918 * math/e_exp2_template.c (declare_mgen_finite_alias,
10919 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
10920 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
10921 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
10922
10923 2018-06-20 Florian Weimer <fweimer@redhat.com>
10924
10925 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
10926
10927 2018-06-19 Joseph Myers <joseph@codesourcery.com>
10928
10929 [BZ #23280]
10930 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
10931 floating-point number to strtod functions rather than possibly
10932 negating result of those functions.
10933 * stdio-common/tst-scanf-round.c: New file.
10934 * stdio-common/Makefile (tests): Add tst-scanf-round.
10935 ($(objpfx)tst-scanf-round): Depend on $(libm).
10936
10937 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
10938
10939 * sysdeps/mach/hurd/localplt.data: Move to...
10940 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
10941 R_386_GLOB_DAT like on Linux i386.
10942
10943 2018-06-18 Joseph Myers <joseph@codesourcery.com>
10944
10945 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
10946 (SHM_STAT_ANY): New macro.
10947 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
10948 (SHM_STAT_ANY): Likewise.
10949 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
10950 (SHM_STAT_ANY): Likewise.
10951 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
10952 (SHM_STAT_ANY): Likewise.
10953 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
10954 (SHM_STAT_ANY): Likewise.
10955 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
10956 (SHM_STAT_ANY): Likewise.
10957 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
10958 (SHM_STAT_ANY): Likewise.
10959 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
10960 (SHM_STAT_ANY): Likewise.
10961 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
10962 (SHM_STAT_ANY): Likewise.
10963 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
10964 (SHM_STAT_ANY): Likewise.
10965 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
10966 (SHM_STAT_ANY): Likewise.
10967 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
10968 (SHM_STAT_ANY): Likewise.
10969
10970 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
10971 (SEM_STAT_ANY): New macro.
10972 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
10973 (SEM_STAT_ANY): Likewise.
10974 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
10975 (SEM_STAT_ANY): Likewise.
10976 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
10977 (SEM_STAT_ANY): Likewise.
10978 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
10979 (SEM_STAT_ANY): Likewise.
10980 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
10981 (SEM_STAT_ANY): Likewise.
10982 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
10983 (SEM_STAT_ANY): Likewise.
10984 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
10985 (SEM_STAT_ANY): Likewise.
10986 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
10987 (SEM_STAT_ANY): Likewise.
10988 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
10989 (SEM_STAT_ANY): Likewise.
10990
10991 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
10992 (MSG_STAT_ANY): New macro.
10993 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
10994 (MSG_STAT_ANY): Likewise.
10995 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
10996 (MSG_STAT_ANY): Likewise.
10997 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
10998 (MSG_STAT_ANY): Likewise.
10999 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
11000 (MSG_STAT_ANY): Likewise.
11001 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
11002 (MSG_STAT_ANY): Likewise.
11003 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
11004 (MSG_STAT_ANY): Likewise.
11005 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
11006 (MSG_STAT_ANY): Likewise.
11007 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
11008 (MSG_STAT_ANY): Likewise.
11009 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
11010 (MSG_STAT_ANY): Likewise.
11011
11012 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
11013 (MAP_TYPE): Change value to 0x2b.
11014
11015 2018-06-18 Florian Weimer <fweimer@redhat.com>
11016
11017 [BZ #15722]
11018 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
11019 socket with SOCK_CLOEXEC.
11020
11021 2018-06-18 Joseph Myers <joseph@codesourcery.com>
11022
11023 [BZ #23303]
11024 * sysdeps/powerpc/powerpc64/le/Makefile
11025 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
11026 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
11027 (gnulib-tests): Also add $(f128-loader-link) for
11028 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
11029
11030 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
11031
11032 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
11033 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
11034 of sendfile.
11035 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
11036 (sendfile64): New strong alias.
11037 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
11038 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
11039 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
11040 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
11041 attribute.
11042 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
11043 ___pthread_get_cleanup_stack.
11044 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
11045 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
11046 * mach/shortcut.awk: Make syscall stubs include
11047 <mach-shortcuts-hidden.h> and add hidden definition.
11048 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
11049 (__mach_msg): Add hidden prototype.
11050 * mach/msg.c: Include <mach.h>.
11051 (__mach_msg): Add hidden definition.
11052 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
11053 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
11054 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
11055 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
11056 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
11057 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
11058 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
11059 prototype and definition.
11060 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
11061 hidden target for _hurd_self_sigstate.
11062
11063 2018-06-15 Joseph Myers <joseph@codesourcery.com>
11064
11065 [BZ #23007]
11066 * stdlib/tst-strtod-nan-sign-main.c: New file.
11067 * stdlib/tst-strtod-nan-sign.c: Likewise.
11068 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
11069 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
11070 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
11071 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
11072 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
11073
11074 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
11075
11076 [BZ #23007]
11077 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
11078 appropriate sign.
11079
11080 2018-06-14 Florian Weimer <fweimer@redhat.com>
11081
11082 [BZ #23290]
11083 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
11084 that the result stays within the ISO-8859-1 range.
11085 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
11086 characters are defined in IBM273.
11087
11088 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
11089
11090 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
11091 __mach_task_self): Remove attribute_hidden.
11092
11093 2018-06-14 Joseph Myers <joseph@codesourcery.com>
11094
11095 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
11096 ignore -Wrestrict for one test.
11097
11098 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
11099 Szabolcs Nagy <szabolcs.nagy@arm.com>
11100
11101 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
11102
11103 2018-06-14 Florian Weimer <fweimer@redhat.com>
11104
11105 * scripts/update-abilist.sh: Accept empty list of files to patch.
11106
11107 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
11108
11109 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
11110 test-xfail-check-abi-libmachuser): Add.
11111 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
11112 __libc_read and __libc_write to __read and __write.
11113 * sysdeps/hurd/include/hurd/port.h: New file.
11114 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
11115 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
11116 __thread_switch, __evc_wait): Move declarations to...
11117 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
11118 attribute_hidden.
11119 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
11120 use PLT to call _hurd_self_sigstate.
11121
11122 2018-06-13 Joseph Myers <joseph@codesourcery.com>
11123
11124 [BZ #23279]
11125 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
11126 MAX_EXP as overflowing.
11127 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
11128 overflow flag.
11129 (round_str): Output also whether result overflows in each rounding
11130 mode.
11131 * stdlib/tst-strtod-round-data: Add more tests.
11132 * stdlib/tst-strtod-round-data.h: Regenerated.
11133 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
11134 (TEST): Handle extra arguments for overflow flags.
11135 (struct test_overflow): New type.
11136 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
11137 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
11138 (test_in_one_mode): Take argument with overflow information.
11139 (do_test): Update calls to test_in_one_mode.
11140
11141 2018-06-12 Carlos O'Donell <carlos@redhat.com>
11142
11143 * elf/dl-load (_dl_dst_substitute): Correct comment.
11144 (_dl_dst_count): Likewise.
11145
11146 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
11147 lll_futex_timed_wait.
11148
11149 2018-06-12 Joseph Myers <joseph@codesourcery.com>
11150
11151 [BZ #23277]
11152 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
11153 attribute.
11154 * math/test-nan-const.c: New file.
11155 * math/Makefile (tests): Add test-nan-const.
11156 (CFLAGS-test-nan-const.c): New variable.
11157
11158 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
11159
11160 * benchtests/scripts/compare_strings.py (process_results): Add
11161 funcs argument. Compare only functions which are selected.
11162 (main): Check if base function is among selected functions.
11163 Pass selected functions to process_results.
11164 (__main__): Add -f/--functions argument.
11165
11166 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
11167 Hongbo Zhang <hongbo.zhang@linaro.org>
11168
11169 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
11170 __memcpy_falkor for phecda core.
11171 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
11172 __memmove_falkor for phecda core.
11173 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
11174 __memset_falkor for phecda core.
11175 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
11176 for phecda core.
11177 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
11178 macro to identify phecda core.
11179
11180 2018-06-12 Carlos O'Donell <carlos@redhat.com>
11181 Andreas Schwab <schwab@suse.de>
11182 Dmitry V. Levin <ldv@altlinux.org>
11183 Florian Weimer <fweimer@redhat.com>
11184
11185 [BZ #23102]
11186 [BZ #21942]
11187 [BZ #18018]
11188 [BZ #23259]
11189 CVE-2011-0536
11190 * elf/dl-dst.h: Remove DL_DST_COUNT.
11191 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
11192 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
11193 (is_dst): Comment. Support ELF gABI.
11194 (_dl_dst_count): Comment. Simplify and count DSTs.
11195 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
11196 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
11197 locals.
11198
11199 2018-06-12 Zack Weinberg <zackw@panix.com>
11200
11201 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
11202 * sysdeps/unix/sysv/linux/dl-sysdep.c
11203 Include not-cancel.h. Use __close_nocancel instead of __close,
11204 __open64_nocancel instead of __open, __read_nocancel instead of
11205 __libc_read, and __write_nocancel instead of __libc_write.
11206
11207 * csu/check_fds.c (check_one_fd)
11208 * sysdeps/posix/fdopendir.c (__fdopendir)
11209 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
11210 instead of __fcntl and/or __libc_fcntl.
11211
11212 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
11213 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
11214 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
11215 Use __open64_nocancel instead of __open_nocancel.
11216
11217 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
11218 hidden_proto declarations to the end and issue them if either
11219 IS_IN(libc) or IS_IN(rtld).
11220 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
11221 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
11222 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
11223 read_nocancel, waitpid_nocancel, write_nocancel.
11224
11225 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
11226 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
11227 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
11228
11229 * nptl/pt-fcntl.c: New file.
11230 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
11231 (libpthread-routines): Add pt-fcntl.
11232 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
11233 (__libc_fcntl): Remove attribute_hidden.
11234 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
11235 __fcntl_nocancel_adjusted, not fcntl_common.
11236 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
11237 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
11238 to fcntl_nocancel.c.
11239 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
11240 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
11241 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
11242 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
11243
11244 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
11245 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
11246 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
11247 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
11248 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
11249 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
11250 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
11251 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
11252 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
11253 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
11254 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
11255 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
11256 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
11257 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
11258 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
11259 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
11260 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
11261 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
11262 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
11263 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
11264
11265 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
11266 libpthread-routines.
11267 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
11268 defines nothing.
11269
11270 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
11271 __libc_read, and __write instead of __libc_write. Define
11272 __open64 in addition to __open.
11273
11274 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
11275
11276 [BZ #23250]
11277 [BZ #10686]
11278 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
11279 to _private_tm[3] and add __glibc_reserved2.
11280 Add _Static_assert of offset of __private_ss == 0x30.
11281 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
11282 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
11283
11284 2018-06-12 Florian Weimer <fweimer@redhat.com>
11285
11286 x86: Make strncmp usable from rtld.
11287 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
11288 __strncmp_ia32 if in libc (and not in rtld).
11289 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
11290 strncmp if not in libc (and not to __strncmp_sse2).
11291
11292 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
11293
11294 [BZ #23140]
11295 * localedata/locales/gd_GB (mon): Rename to...
11296 (alt_mon): This.
11297 (mon): Import from CLDR (genitive case).
11298 * localedata/locales/hsb_DE (mon): Rename to...
11299 (alt_mon): This.
11300 (mon): Import from CLDR (genitive case).
11301 * localedata/locales/wa_BE (mon): Rename to...
11302 (alt_mon): This.
11303 (mon): Add, fill with the proper genitive forms, but CLDR data
11304 is incomplete; completed according to the comments in this file.
11305 (d_t_fmt): Do not use "di" before the month name, no longer needed.
11306
11307 * localedata/locales/wa_BE (country_name): Reword
11308 "Beljike" -> "Beldjike".
11309
11310 2018-06-11 Joseph Myers <joseph@codesourcery.com>
11311
11312 [BZ #23272]
11313 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
11314 cases of non-finite arguments.
11315 * math/libm-test-fma.inc (fma_test_data): Add more tests.
11316
11317 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
11318
11319 [BZ #23174]
11320 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
11321
11322 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11323
11324 [BZ #23264]
11325 * include/unistd.h (__execvpex): New prototype.
11326 * posix/Makefile (tests): Add tst-spawn4.
11327 (tests-internal): Add tst-spawn4-compat.
11328 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
11329 * posix/tst-spawn4-compat.c: New file.
11330 * posix/tst-spawn4.c: Likewise.
11331 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
11332 binaries as shell scripts.
11333 * sysdeps/posix/spawni.c (__spawni): Likewise.
11334
11335 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
11336
11337 [BZ #23145]
11338 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
11339 ($(all-built-dso:=.dynsym): New target.
11340 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
11341 ($(objpfx)check-initfini.out): New target.
11342 (generated): Add check-initfini.out.
11343 * scripts/check-initfini.awk: New file.
11344 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
11345 (_fini): Likewise.
11346 * sysdeps/alpha/crti.S (_init): Mark as hidden.
11347 (_fini): Likewise.
11348 * sysdeps/arm/crti.S (_init): Mark as hidden.
11349 (_fini): Likewise.
11350 * sysdeps/hppa/crti.S (_init): Mark as hidden.
11351 (_fini): Likewise.
11352 * sysdeps/i386/crti.S (_init): Mark as hidden.
11353 (_fini): Likewise.
11354 * sysdeps/ia64/crti.S (_init): Mark as hidden.
11355 (_fini): Likewise.
11356 * sysdeps/m68k/crti.S (_init): Mark as hidden.
11357 (_fini): Likewise.
11358 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
11359 (_fini): Likewise.
11360 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
11361 (_fini): Likewise.
11362 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
11363 (_fini): Likewise.
11364 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
11365 (_fini): Likewise.
11366 * sysdeps/nios2/crti.S (_init): Mark as hidden.
11367 (_fini): Likewise.
11368 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
11369 (_fini): Likewise.
11370 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
11371 (_fini): Likewise.
11372 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
11373 (_fini): Likewise.
11374 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
11375 (_fini): Likewise.
11376 * sysdeps/sh/crti.S (_init): Mark as hidden.
11377 (_fini): Likewise.
11378 * sysdeps/sparc/crti.S (_init): Mark as hidden.
11379 (_fini): Likewise.
11380 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
11381 (_fini): Likewise.
11382
11383 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11384
11385 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
11386 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
11387 and TF redirection to KFtype and KF only when the default
11388 long double type is not the IEEE 128-bit floating point type.
11389
11390 2018-06-05 Joseph Myers <joseph@codesourcery.com>
11391
11392 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
11393 macro.
11394 (HWCAP_USCAT): Likewise.
11395 (HWCAP_ILRCPC): Likewise.
11396 (HWCAP_FLAGM): Likewise.
11397 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
11398 Increase to 28.
11399 (_dl_aarch64_cap_flags): Add new flag names.
11400
11401 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
11402 (MAP_FIXED_NOREPLACE): New macro.
11403 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
11404 (MAP_FIXED_NOREPLACE): Likewise.
11405 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
11406 (MAP_FIXED_NOREPLACE): Likewise.
11407 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
11408 (MAP_FIXED_NOREPLACE): Likewise.
11409 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
11410 (MAP_FIXED_NOREPLACE): Likewise.
11411 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
11412 (MAP_FIXED_NOREPLACE): Likewise.
11413 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
11414 (MAP_FIXED_NOREPLACE): Likewise.
11415 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
11416 (MAP_FIXED_NOREPLACE): Likewise.
11417 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
11418 (MAP_FIXED_NOREPLACE): Likewise.
11419 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
11420 (MAP_FIXED_NOREPLACE): Likewise.
11421 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
11422 (MAP_FIXED_NOREPLACE): Likewise.
11423 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
11424 (MAP_FIXED_NOREPLACE): Likewise.
11425 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
11426 (MAP_FIXED_NOREPLACE): Likewise.
11427 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
11428 (MAP_FIXED_NOREPLACE): Likewise.
11429 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
11430 (MAP_FIXED_NOREPLACE): Likewise.
11431
11432 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
11433 version to 4.17.
11434
11435 2018-06-04 Joseph Myers <joseph@codesourcery.com>
11436
11437 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
11438 version to 4.17
11439
11440 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
11441
11442 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
11443 int.
11444 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
11445
11446 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11447
11448 * benchtests/scripts/compare_string.py: (process_results) Catch
11449 exception in non-existent base_func and catch exception in
11450 non-existent attribute.
11451 (parse_file) Catch exception if input file does not exist.
11452
11453 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11454
11455 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
11456 options to avoid diff calculation and omit header, respectively.
11457 (main): process --no-diff and --no-header
11458
11459 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11460 H.J. Lu <hongjiu.lu@intel.com>
11461
11462 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11463 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
11464 wcsncmp-sse2.
11465 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
11466 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
11467 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
11468 and __wcsncmp_sse2.
11469 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
11470 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
11471 AVX unaligned load is fast and vzeroupper is preferred.
11472 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
11473 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
11474 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
11475 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
11476 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
11477 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
11478 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
11479 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
11480 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
11481 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
11482 is undefined.
11483
11484 2018-06-01 Florian Weimer <fweimer@redhat.com>
11485
11486 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
11487 configuring with --disable-multi-arch, building with
11488 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
11489 Haswell-era CPU.
11490
11491 2018-06-01 Florian Weimer <fweimer@redhat.com>
11492
11493 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
11494 results from building with “-march=x86-64 -mtune=generic
11495 -mfpmath=sse” and running on a Haswell-era CPU.
11496
11497 2018-06-01 Joseph Myers <joseph@codesourcery.com>
11498
11499 [BZ #18473]
11500 * soft-fp/sqrttf2.c: Remove file.
11501 * soft-fp/sqrtdf2.c: Move to ....
11502 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
11503 <shlib-compat.h>.
11504 (__sqrtdf2): Make conditional on
11505 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
11506 symbol.
11507 * soft-fp/sqrtsf2.c: Move to ....
11508 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
11509 <shlib-compat.h>.
11510 (__sqrtsf2): Make conditional on
11511 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
11512 symbol.
11513 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
11514 (gcc-double-routines): Remove sqrtdf2.
11515 (gcc-quad-routines): Remove sqrttf2.
11516 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
11517 Do not filter out sqrtsf2 and sqrtdf2.
11518 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
11519 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
11520
11521 2018-06-01 Florian Weimer <fweimer@redhat.com>
11522
11523 * sysdeps/generic/libcidn.abilist: Remove file.
11524
11525 2018-06-01 Florian Weimer <fweimer@redhat.com>
11526
11527 [BZ #23236]
11528 * libio/strfile.h (struct _IO_str_fields): Rename members to
11529 discourage their use and add comment.
11530 (_IO_STR_DYNAMIC): Remove unused macro.
11531 * libio/strops.c (_IO_str_init_static_internal): Do not use
11532 callback pointers. Call malloc and free.
11533 (_IO_str_overflow): Do not use callback pointers. Call malloc
11534 and free.
11535 (enlarge_userbuf): Likewise.
11536 (_IO_str_finish): Call free.
11537 * libio/wstrops.c (_IO_wstr_init_static): Initialize
11538 _allocate_buffer_unused.
11539 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
11540 and free.
11541 (enlarge_userbuf): Likewise.
11542 (_IO_wstr_finish): Call free.
11543 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
11544 _allocate_buffer_unused, _free_buffer_unused.
11545 * libio/memstream.c (__open_memstream): Likewise.
11546 * libio/vasprintf.c (_IO_vasprintf): Likewise.
11547 * libio/wmemstream.c (open_wmemstream): Likewise.
11548
11549 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
11550
11551 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
11552 AMD Ryzen 7 1800X.
11553
11554 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
11555
11556 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
11557 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
11558 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
11559 New file.
11560 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
11561 Likewise.
11562 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
11563
11564 2018-05-29 Florian Weimer <fweimer@redhat.com>
11565
11566 * support/Makefile (libsupport-routines): Add
11567 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
11568 xpthread_barrierattr_setpshared.
11569 * support/xpthread_barrierattr_destroy.c: New file.
11570 * support/xpthread_barrierattr_init.c: Likewise.
11571 * support/xpthread_barrierattr_setpshared.c: Likewise.
11572
11573 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
11574
11575 [BZ #23206]
11576 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
11577 _r_debug and update DT_DEBUG for debugger.
11578
11579 2018-05-29 Florian Weimer <fweimer@redhat.com>
11580
11581 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
11582 (tst-strtod5i.out): Likewise.
11583
11584 2018-05-25 Joseph Myers <joseph@codesourcery.com>
11585
11586 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
11587 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
11588 (sparc64-quad-routines): New variable. Moved from ....
11589 [$(subdir) = soft-fp] (sysdep_routines): Add
11590 $(sparc64-quad-routines). Moved from ....
11591 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
11592 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
11593 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
11594 moved from ....
11595 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
11596 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
11597 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
11598 * sysdeps/sparc/sparc64/qp_add.c: ... here.
11599 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
11600 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
11601 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
11602 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
11603 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
11604 * sysdeps/sparc/sparc64/qp_div.c: ... here.
11605 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
11606 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
11607 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
11608 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
11609 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
11610 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
11611 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
11612 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
11613 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
11614 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
11615 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
11616 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
11617 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
11618 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
11619 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
11620 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
11621 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
11622 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
11623 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
11624 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
11625 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
11626 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
11627 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
11628 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
11629 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
11630 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
11631 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
11632 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
11633 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
11634 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
11635 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
11636 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
11637 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
11638 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
11639 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
11640 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
11641 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
11642 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
11643 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
11644 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
11645 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
11646 * sysdeps/sparc/sparc64/qp_util.c: ... here.
11647 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
11648 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
11649 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
11650 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
11651 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
11652 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
11653
11654 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
11655 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
11656 (sparc32-quad-routines): New variable. Moved from ....
11657 [$(subdir) = soft-fp] (sysdep_routines): Add
11658 $(sparc32-quad-routines). Moved from ....
11659 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
11660 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
11661 moved from ....
11662 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
11663 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
11664 * sysdeps/sparc/sparc32/q_add.c: ... here.
11665 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
11666 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
11667 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
11668 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
11669 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
11670 * sysdeps/sparc/sparc32/q_div.c: ... here.
11671 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
11672 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
11673 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
11674 * sysdeps/sparc/sparc32/q_feq.c: ... here.
11675 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
11676 * sysdeps/sparc/sparc32/q_fge.c: ... here.
11677 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
11678 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
11679 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
11680 * sysdeps/sparc/sparc32/q_fle.c: ... here.
11681 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
11682 * sysdeps/sparc/sparc32/q_flt.c: ... here.
11683 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
11684 * sysdeps/sparc/sparc32/q_fne.c: ... here.
11685 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
11686 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
11687 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
11688 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
11689 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
11690 * sysdeps/sparc/sparc32/q_mul.c: ... here.
11691 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
11692 * sysdeps/sparc/sparc32/q_neg.c: ... here.
11693 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
11694 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
11695 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
11696 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
11697 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
11698 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
11699 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
11700 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
11701 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
11702 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
11703 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
11704 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
11705 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
11706 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
11707 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
11708 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
11709 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
11710 * sysdeps/sparc/sparc32/q_sub.c: ... here.
11711 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
11712 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
11713 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
11714 * sysdeps/sparc/sparc32/q_util.c: ... here.
11715 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
11716 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
11717 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
11718 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
11719
11720 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11721 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11722
11723 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
11724 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
11725 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
11726 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
11727
11728 2018-05-24 Joseph Myers <joseph@codesourcery.com>
11729
11730 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
11731 powerpc/soft-fp.
11732 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
11733 Likewise.
11734 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
11735 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
11736
11737 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11738
11739 [BZ #23171]
11740 * math/math.h [C++] (iseqsig): Fix parameter type for the long
11741 double version.
11742
11743 2018-05-23 Joseph Myers <joseph@codesourcery.com>
11744
11745 * sysdeps/sh/Implies: Remove sh/soft-fp.
11746 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
11747 * sysdeps/sh/sfp-machine.h: ... here.
11748
11749 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
11750
11751 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
11752 (__mempcpy_erms): Skip zero length.
11753 (__memmove_erms): Likewise.
11754 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11755 (__memset_erms): Likewise.
11756
11757 2018-05-23 Joseph Myers <joseph@codesourcery.com>
11758
11759 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
11760 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
11761 Add functions moved from ....
11762 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
11763 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
11764 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
11765 from ....
11766 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
11767 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
11768 * sysdeps/alpha/e_sqrtl.c: ... here.
11769 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
11770 * sysdeps/alpha/local-soft-fp.h: ... here.
11771 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
11772 * sysdeps/alpha/ots_add.c: ... here.
11773 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
11774 * sysdeps/alpha/ots_cmp.c: ... here.
11775 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
11776 * sysdeps/alpha/ots_cmpe.c: ... here.
11777 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
11778 * sysdeps/alpha/ots_cvtqux.c: ... here.
11779 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
11780 * sysdeps/alpha/ots_cvtqx.c: ... here.
11781 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
11782 * sysdeps/alpha/ots_cvttx.c: ... here.
11783 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
11784 * sysdeps/alpha/ots_cvtxq.c: ... here.
11785 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
11786 * sysdeps/alpha/ots_cvtxt.c: ... here.
11787 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
11788 * sysdeps/alpha/ots_div.c: ... here.
11789 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
11790 * sysdeps/alpha/ots_mul.c: ... here.
11791 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
11792 * sysdeps/alpha/ots_nintxq.c: ... here.
11793 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
11794 * sysdeps/alpha/ots_sub.c: ... here.
11795 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
11796 * sysdeps/alpha/sfp-machine.h: ... here.
11797
11798 2018-05-23 Florian Weimer <fweimer@redhat.com>
11799
11800 [BZ #19728]
11801 [BZ #19729]
11802 [BZ #22247]
11803 CVE-2016-6261
11804 CVE-2016-6263
11805 CVE-2017-14062
11806 Switch to extern IDNA implementation (libidn2).
11807 * libidn: Remove subdirectory.
11808 * LICENSES: Do not mention licensing conditions for the removed
11809 libidn code.
11810 * config.h.in (HAVE_LIBIDN): Remove.
11811 * include/dlfcn.h (__libc_dlopen): Update comment.
11812 * include/idna.h: Remove file.
11813 * inet/Makefile (routines): Add idna.
11814 (tests-static, tests-internal): Add tst-idna_name_classify.
11815 (LOCALES): Generate locales for tests.
11816 (tst-idna_name_classify.out): Depend on generated locales.
11817 * inet/idna_name_classify.c: New file.
11818 * inet/tst-idna_name_classify.c: Likewise.
11819 * inet/net-internal.h (__idna_to_dns_encoding)
11820 (__idna_from_dns_encoding): Declare.
11821 * inet/net-internal.h (enum idna_name_classification): Define.
11822 (__idna_name_classify): Declare.
11823 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
11824 __idna_from_dns_encoding.
11825 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
11826 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
11827 name as a fallback in case of encoding errors.
11828 (getnameinfo): Use DEPRECATED_NI_IDN.
11829 * inet/idna.c: New file.
11830 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
11831 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
11832 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
11833 (modules-names): Add tst-no-libidn2.
11834 (extra-test-objs): Add tst-no-libidn2.os.
11835 (LDFLAGS-tst-no-libidn2.so): Set soname.
11836 (LOCALES): Set, and generate locales.
11837 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
11838 (tst-resolv-ai_idn-latin1): Likewise.
11839 (tst-resolv-ai_idn-nolibidn2): Likewise.
11840 (tst-resolv-ai_idn.out): Depend on locales.
11841 (tst-resolv-ai_idn-latin1.out): Depend on locales.
11842 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
11843 tst-no-libidn2.so.
11844 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
11845 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
11846 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
11847 * resolv/tst-resolv-ai_idn.c: New file.
11848 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
11849 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
11850 * resolv/tst-no-libidn2.c: Likewise.
11851 * support/support_format_addrinfo.c (format_ai_flags): Do not
11852 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
11853 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
11854 (gaih_inet): Call __idna_to_dns_encoding and
11855 __idna_from_dns_encoding, and use the original (punycode) name if
11856 __idna_from_dns_encoding fails due to an encoding error.
11857 (getaddrinfo): Use DEPRECATED_AI_IDN.
11858 * sysdeps/unix/inet/Subdirs (libidn): Remove.
11859 * sysdeps/unix/inet/configure: Remove file.
11860 * sysdeps/unix/inet/configure.ac: Likewise.
11861
11862 2018-05-23 Florian Weimer <fweimer@redhat.com>
11863
11864 Implement allocate_once.
11865 * include/allocate_once.h: New file.
11866 * misc/allocate_once.c: Likewise.
11867 * misc/tst-allocate_once.c: Likewise.
11868 * misc/Makefile (routines): Add allocate_once.
11869 (tests-internal): Add tst-allocate_once.
11870 (generated): Add tst-allocate_once.mtrace,
11871 tst-allocate_once-mem.out.
11872 (tests-special): Add tst-allocate_once-mem.out.
11873 (tst-allocate_once-ENV): Set MALLOC_TRACE.
11874 (tst-allocate_once-mem.out): Call mtrace.
11875 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
11876
11877 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
11878
11879 [BZ #23196]
11880 * string/test-memcpy.c (do_test1): New function.
11881 (test_main): Call it.
11882
11883 2018-05-23 Andreas Schwab <schwab@suse.de>
11884
11885 [BZ #23196]
11886 CVE-2018-11237
11887 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
11888 (L(preloop_large)): Save initial destination pointer in %r11 and
11889 use it instead of %rax after the loop.
11890 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
11891
11892 2018-05-22 Joseph Myers <joseph@codesourcery.com>
11893
11894 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
11895 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
11896 -I../soft-fp. Moved from ....
11897 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
11898 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
11899 * sysdeps/aarch64/e_sqrtl.c: ... here.
11900 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
11901 * sysdeps/aarch64/sfp-machine.h: ... here.
11902
11903 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
11904 -Wmaybe-uninitialized around access to fq[0].
11905 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
11906 Likewise.
11907
11908 [BZ #18471]
11909 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
11910 aliases for non-libc case of versioned symbols.
11911 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
11912 (llseek): Define as compat symbol if
11913 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
11914 with link warning.
11915 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
11916 Make into a compat symbol, disabled for minimum symbol version
11917 GLIBC_2.28 and later.
11918 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
11919
11920 2018-05-22 Florian Weimer <fweimer@redhat.com>
11921
11922 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
11923 not add -mpreferred-stack-boundary=4.
11924 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
11925 (stack-align-test-flags): Likewise.
11926 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
11927 Likewise.
11928 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
11929 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
11930 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
11931 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
11932 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
11933 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
11934 (CFLAGS-tst-align2.c): Likewise.
11935
11936 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
11937
11938 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
11939 (index_arch_Prefer_FSRM): Likewise.
11940 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
11941 Also check Prefer_FSRM.
11942 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
11943 Also return OPTIMIZE (erms) for Prefer_FSRM.
11944
11945 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
11946
11947 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
11948 (index_cpu_FSRM): Likewise.
11949 (reg_FSRM): Likewise.
11950
11951 2018-05-18 Joseph Myers <joseph@codesourcery.com>
11952
11953 * math/gen-tgmath-tests.py: Import sys.
11954 (Tests.__init__): Initialize macros_seen.
11955 (Tests.add_tests): Add macro to macros_seen. Only generate tests
11956 if requested to do so for this macro.
11957 (Tests.add_all_tests): Take argument for macro for which to
11958 generate tests.
11959 (Tests.check_macro_list): New function.
11960 (main): Handle check-list argument and argument specifying macro
11961 for which to generate tests.
11962 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
11963 [PYTHON] (tgmath3-macro-tests): Likewise.
11964 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
11965 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
11966 not test-tgmath3.c.
11967 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
11968 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
11969 to CFLAGS.
11970 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
11971 [PYTHON] ($(foreach
11972 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
11973 rule.
11974 [PYTHON] (tests-special): Add
11975 $(objpfx)test-tgmath3-macro-list.out.
11976 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
11977
11978 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
11979 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
11980 later.
11981
11982 [BZ #22639]
11983 * time/tzset.c (SECSPERDAY): Cast to time_t.
11984 * time/tst-y2039.c: New file.
11985 * time/Makefile (tests): Add tst-y2039.
11986
11987 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11988
11989 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
11990 (PREFETCH_ONE_SET): Remove duplicate line.
11991
11992 2018-05-17 Florian Weimer <fweimer@redhat.com>
11993
11994 * sysdeps/generic/math-type-macros-double.h: Include
11995 <math-nan-payload-double.h> after <libm-alias-double.h>.
11996 * sysdeps/generic/math-type-macros-float.h: Include
11997 <math-nan-payload-float.h> after <libm-alias-float.h>.
11998 * sysdeps/generic/math-type-macros-float128.h: Include
11999 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
12000 * sysdeps/generic/math-type-macros-ldouble.h: Include
12001 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
12002
12003 2018-05-17 Andreas Schwab <schwab@suse.de>
12004
12005 * resolv/res_send.c (__res_context_send): Don't set errno when
12006 returing error after malloc failure.
12007
12008 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
12009
12010 * nptl/allocatestack.c (allocate_stack): Remove the
12011 !__ASSUME_PRIVATE_FUTEX paths.
12012 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
12013 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
12014 Likewise.
12015 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
12016 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
12017 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
12018 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
12019 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
12020 !__ASSUME_PRIVATE_FUTEX path.
12021 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
12022 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
12023 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
12024 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
12025 !__ASSUME_PRIVATE_FUTEX macros.
12026 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
12027 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
12028 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
12029 * sysdeps/unix/sysv/linux/kernel-features.h
12030 (__ASSUME_PRIVATE_FUTEX): Removed.
12031
12032 2018-05-17 Joseph Myers <joseph@codesourcery.com>
12033
12034 * math/Makefile (libm-narrow-fns): Add div.
12035 (libm-test-funcs-narrow): Likewise.
12036 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
12037 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
12038 * math/gen-auto-libm-tests.c (test_functions): Add div.
12039 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
12040 (NARROW_DIV_ROUND_TO_ODD): Likewise.
12041 (NARROW_DIV_TRIVIAL): Likewise.
12042 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
12043 macro.
12044 (__ddivl): Likewise.
12045 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
12046 ddiv.
12047 (CFLAGS-nldbl-ddiv.c): New variable.
12048 (CFLAGS-nldbl-fdiv.c): Likewise.
12049 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
12050 __nldbl_ddivl.
12051 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
12052 prototype.
12053 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
12054 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
12055 * math/auto-libm-test-in: Add tests of div.
12056 * math/auto-libm-test-out-narrow-div: New generated file.
12057 * math/libm-test-narrow-div.inc: New file.
12058 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
12059 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
12060 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
12061 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
12062 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
12063 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
12064 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
12065 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
12066 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
12067 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
12068 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
12069 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
12070 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
12071 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
12072 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
12073 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
12074 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
12075 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
12076 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12077 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12078 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12079 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12080 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12081 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12082 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12083 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12084 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12085 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12086 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12087 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12088 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12089 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12090 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12091 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
12092 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12093 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12094 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12095 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12096 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12097 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12098 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12099 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12100 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12101 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12102
12103 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12104
12105 [BZ #23178]
12106 * nscd/nscd-client.h (sendfileall): Remove prototype.
12107 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
12108 (handle_request): Use writeall instead of sendfileall.
12109 * nscd/aicache.c (addhstaiX): Likewise.
12110 * nscd/grpcache.c (cache_addgr): Likewise.
12111 * nscd/hstcache.c (cache_addhst): Likewise.
12112 * nscd/initgrcache.c (addinitgroupsX): Likewise.
12113 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
12114 * nscd/pwdcache.c (cache_addpw): Likewise.
12115 * nscd/servicescache.c (cache_addserv): Likewise.
12116 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
12117 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
12118 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
12119 Remove define.
12120
12121 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
12122
12123 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
12124 Include <string/strncat.c>.
12125 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
12126 alias.
12127 (__GI___strncat): New hidden alias.
12128
12129 2018-05-16 Joseph Myers <joseph@codesourcery.com>
12130
12131 * sysdeps/mips/mips32/libm-test-ulps: Update.
12132 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
12133
12134 2018-05-16 Florian Weimer <fweimer@redhat.com>
12135
12136 * support/Makefile (libsupport-routines): Add support_quote_blob,
12137 support_test_compare_blob.
12138 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
12139 * support/check.h (TEST_COMPARE_BLOB): Define.
12140 (support_test_compare_blob): Declare.
12141 * support/support.h (support_quote_blob): Declare.
12142 * support/support_quote_blob.c: New file.
12143 * support/support_test_compare_blob.c: Likewise.
12144 * support/tst-support_quote_blob.c: Likewise.
12145 * support/tst-test_compare_blob.c: Likewise.
12146
12147 2018-05-16 Florian Weimer <fweimer@redhat.com>
12148
12149 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
12150 of <strtod_nan_double.h>.
12151 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
12152 instead of SET_MANTISSA.
12153 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
12154 of include <strtod_nan_float.h>.
12155 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
12156 instead of <strtod_nan_ldouble.h>.
12157 * stdlib/strtod_nan_double.h: Move to ...
12158 * sysdeps/generic/math-nan-payload-double.h: ... here.
12159 (FLOAT): Remove definition.
12160 (SET_MANTISSA): Rename to ...
12161 (SET_NAN_PAYLOAD): ... this.
12162 * stdlib/strtod_nan_float.h: Move to ...
12163 * sysdeps/generic/math-nan-payload-float.h: ... here.
12164 (FLOAT): Remove definition.
12165 (SET_MANTISSA): Rename to ...
12166 (SET_NAN_PAYLOAD): ... this.
12167 * sysdeps/generic/math-type-macros-double.h: Include
12168 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
12169 instead of <math-svid-compat.h>.
12170 * sysdeps/generic/math-type-macros-float.h: Include
12171 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
12172 instead of <math-svid-compat.h>.
12173 * sysdeps/generic/math-type-macros-float128.h: Include
12174 <math-nan-payload-float128.h>.
12175 * sysdeps/generic/math-type-macros-ldouble.h: Include
12176 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
12177 instead of <math-svid-compat.h>.
12178 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
12179 check for definition.
12180 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
12181 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
12182 Include <ieee754_float128.h>.
12183 (FLOAT): Remove definition.
12184 (SET_MANTISSA): Rename to ...
12185 (SET_NAN_PAYLOAD): ... this.
12186 * sysdeps/ieee754/float128/strtof128_nan.c: Include
12187 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
12188 Do not include <float128_private.h>.
12189 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
12190 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
12191 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
12192 (FLOAT): Remove definition.
12193 (SET_MANTISSA): Rename to ...
12194 (SET_NAN_PAYLOAD): ... this.
12195 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
12196 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
12197 (FLOAT): Remove definition.
12198 (SET_MANTISSA): Rename to ...
12199 (SET_NAN_PAYLOAD): ... this.
12200 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
12201 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
12202 (FLOAT): Remove definition.
12203 (SET_MANTISSA): Rename to ...
12204 (SET_NAN_PAYLOAD): ... this.
12205 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
12206 of "../stdlib/strtod_nan_double.h".
12207 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
12208 of "../stdlib/strtod_nan_float.h".
12209 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
12210 instead of "../stdlib/strtod_nan_ldouble.h".
12211 * manual/arith.texi (Parsing of Floats): Adjust comment.
12212
12213 2018-05-16 Joseph Myers <joseph@codesourcery.com>
12214
12215 * math/Makefile (libm-narrow-fns): Add mul.
12216 (libm-test-funcs-narrow): Likewise.
12217 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
12218 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
12219 * math/gen-auto-libm-tests.c (test_functions): Add mul.
12220 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
12221 (NARROW_MUL_ROUND_TO_ODD): Likewise.
12222 (NARROW_MUL_TRIVIAL): Likewise.
12223 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
12224 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
12225 macro.
12226 (__dmull): Likewise.
12227 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
12228 dmul.
12229 (CFLAGS-nldbl-dmul.c): New variable.
12230 (CFLAGS-nldbl-fmul.c): Likewise.
12231 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
12232 __nldbl_dmull.
12233 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
12234 prototype.
12235 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
12236 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
12237 * math/auto-libm-test-in: Add tests of mul.
12238 * math/auto-libm-test-out-narrow-mul: New generated file.
12239 * math/libm-test-narrow-mul.inc: New file.
12240 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
12241 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
12242 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
12243 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
12244 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
12245 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
12246 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
12247 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
12248 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
12249 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
12250 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
12251 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
12252 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
12253 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
12254 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
12255 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
12256 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
12257 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
12258 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12259 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12260 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12261 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12262 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12263 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12264 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12265 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12266 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12267 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12268 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12269 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12270 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12271 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12272 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12273 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
12274 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12275 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12276 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12277 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12278 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12279 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12280 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12281 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12282 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12283 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12284
12285 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
12286
12287 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
12288 with *%eax in call.
12289
12290 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
12291
12292 * sysdeps/i386/ldsodefs.h: Removed.
12293 * sysdeps/x86_64/ldsodefs.h: Moved to ...
12294 * sysdeps/x86/ldsodefs.h: This.
12295 (La_i86_regs): New.
12296 (La_i86_retval): Likewise.
12297 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
12298 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
12299
12300 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
12301
12302 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
12303 unnecessary testl.
12304
12305 2018-05-13 Alan Modra <amodra@gmail.com>
12306
12307 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
12308 R_PARISC_TLS_DTPOFF32 reloc addend.
12309
12310 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12311
12312 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
12313 * math/math.h: Restrict the prototype definition for the functions
12314 issignaling(_Float128) and iszero(_Float128); and template
12315 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
12316 __HAVE_FLOAT128_UNLIKE_LDBL.
12317 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
12318 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
12319 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
12320 __f128() constants; define the type _Float128 as long double;
12321 and reuse long double in __CFLOAT128.
12322
12323 2018-05-11 Joseph Myers <joseph@codesourcery.com>
12324
12325 * sysdeps/generic/math_private.h: Do not include
12326 <math-barriers.h>.
12327 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
12328 <math_private.h>.
12329 * math/fromfp.h: Include <math-barriers.h>.
12330 * math/math-narrow.h: Likewise.
12331 * math/s_nextafter.c: Likewise.
12332 * math/s_nexttowardf.c: Likewise.
12333 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
12334 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
12335 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
12336 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
12337 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12338 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12339 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12340 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12341 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12342 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12343 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12344 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12345 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12346 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12347 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
12348 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
12349 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12350 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12351 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
12352 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12353 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12354 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12355 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12356 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12357 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12358 * sysdeps/ieee754/k_standardl.c: Likewise.
12359 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12360 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12361 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
12362 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
12363 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12364 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12365 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12366 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12367 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12368 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
12369 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
12370 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12371 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12372 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12373 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12374 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
12375 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
12376 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
12377 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12378 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12379 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
12380 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
12381
12382 2018-05-11 Florian Weimer <fweimer@redhat.com>
12383
12384 Use 64-bit epoch values in the time zone file parser.
12385 * include/time.h (internal_time_t): Define.
12386 (__tzfile_compute): Use it.
12387 * time/tzfile.c (struct leap): Use internal_time_t for epoch
12388 member.
12389 (transitions): Switch to internal_time_t.
12390 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
12391 types.
12392 (__tzfile_compute): Use internal_time_t for timer argument. Check
12393 for truncation before calling __offtime.
12394
12395 2018-05-11 Florian Weimer <fweimer@redhat.com>
12396
12397 [BZ #23166]
12398 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
12399 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
12400 Likewise.
12401 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
12402 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
12403 export without --enable-obsolete-rpc.
12404 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
12405 symbol. This should not have been exported, ever.
12406
12407 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
12408
12409 [BZ #23152]
12410 * localedata/locales/gd_GB (abmon): Fix typo in May:
12411 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
12412
12413 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
12414
12415 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
12416 Use multiple registers to copy data in loop tail.
12417
12418 * sysdeps/aarch64/multiarch/memmove_falkor.S
12419 (__memmove_falkor): Use multiple registers to move data in
12420 loop tail.
12421
12422 2018-05-10 Joseph Myers <joseph@codesourcery.com>
12423
12424 * math/math-underflow.h: New file.
12425 * sysdeps/generic/math_private.h: Do not include <float.h>.
12426 (fabs_tg): Remove macro. Moved to math-underflow.h.
12427 (min_of_type_f): Likewise.
12428 (min_of_type_): Likewise.
12429 (min_of_type_l): Likewise.
12430 (min_of_type_f128): Likewise.
12431 (min_of_type): Likewise.
12432 (math_check_force_underflow): Likewise.
12433 (math_check_force_underflow_nonneg): Likewise.
12434 (math_check_force_underflow_complex): Likewise.
12435 * math/e_exp2_template.c: Include <math-underflow.h>.
12436 * math/k_casinh_template.c: Likewise.
12437 * math/s_catan_template.c: Likewise.
12438 * math/s_catanh_template.c: Likewise.
12439 * math/s_ccosh_template.c: Likewise.
12440 * math/s_cexp_template.c: Likewise.
12441 * math/s_clog10_template.c: Likewise.
12442 * math/s_clog_template.c: Likewise.
12443 * math/s_csin_template.c: Likewise.
12444 * math/s_csinh_template.c: Likewise.
12445 * math/s_csqrt_template.c: Likewise.
12446 * math/s_ctan_template.c: Likewise.
12447 * math/s_ctanh_template.c: Likewise.
12448 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
12449 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12450 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12451 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12452 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12453 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12454 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12455 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12456 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12457 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12458 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12459 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12460 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12461 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12462 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12463 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12464 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12465 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12466 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12467 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12468 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12469 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12470 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12471 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12472 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12473 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12474 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
12475 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12476 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12477 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12478 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12479 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12480 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12481 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12482 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12483 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
12484 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12485 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12486 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12487 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12488 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
12489 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
12490 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12491 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12492 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
12493 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12494 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
12495 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
12496 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12497 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12498 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
12499 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
12500 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
12501 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
12502 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12503 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
12504 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12505 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
12506 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
12507 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12508 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12509 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
12510 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12511 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
12512 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12513 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12514 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12515 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
12516 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12517 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
12518 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12519 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
12520 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
12521 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
12522 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12523 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12524 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12525 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
12526 * sysdeps/x86/fpu/powl_helper.c: Likewise.
12527 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
12528 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
12529 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
12530 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
12531 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
12532
12533 2018-05-09 Joseph Myers <joseph@codesourcery.com>
12534
12535 * sysdeps/generic/math-barriers.h: New file.
12536 * sysdeps/generic/math_private.h [!math_opt_barrier]
12537 (math_opt_barrier): Move to math-barriers.h.
12538 [!math_opt_barrier] (math_force_eval): Likewise.
12539 * sysdeps/aarch64/fpu/math-barriers.h: New file.
12540 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
12541 math-barriers.h.
12542 (math_force_eval): Likewise.
12543 * sysdeps/alpha/fpu/math-barriers.h: New file.
12544 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
12545 math-barriers.h.
12546 (math_force_eval): Likewise.
12547 * sysdeps/x86/fpu/math-barriers.h: New file.
12548 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
12549 math-barriers.h.
12550 (math_force_eval): Likewise.
12551 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
12552 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
12553 multiple-include guard for rename.
12554 * sysdeps/powerpc/fpu/math-barriers.h: New file.
12555 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
12556 math-barriers.h.
12557 (math_force_eval): Likewise.
12558
12559 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
12560
12561 [BZ #22786]
12562 CVE-2018-11236
12563 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
12564 computation.
12565 * stdlib/Makefile (test-bz22786): New test.
12566 * stdlib/test-bz22786.c: New test.
12567
12568 2018-05-09 Joseph Myers <joseph@codesourcery.com>
12569
12570 * include/math-narrow-eval.h: New file. Contents moved from ....
12571 * sysdeps/generic/math_private.h: ... here.
12572 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
12573 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
12574 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
12575 * stdlib/strtod_l.c: Likewise.
12576 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
12577 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
12578 * sysdeps/i386/fpu/s_fdim.c: Likewise.
12579 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12580 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12581 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12582 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12583 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
12584 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12585 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
12586 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12587 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
12588 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12589 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12590 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12591 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12592 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
12593 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
12594 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12595 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12596 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12597 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12598 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12599 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12600 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
12601 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12602 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12603 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12604 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
12605
12606 2018-05-08 Andreas Schwab <schwab@suse.de>
12607
12608 * sysdeps/nptl/internaltypes.h: Fix comment.
12609
12610 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
12611
12612 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
12613 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
12614 hidden.
12615
12616 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
12617
12618 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
12619 of I into loop header.
12620 * benchtests/bench-memmove-walk.c
12621 (test_main): Likewise.
12622
12623 2018-05-07 Alexandre Oliva <oliva@gnu.org>
12624
12625 Revert:
12626 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
12627 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
12628
12629 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
12630
12631 [BZ #20419]
12632 * elf/dl-load.c (open_verify): Fix stack overflow.
12633 * elf/Makefile (tst-big-note): New test.
12634 * elf/tst-big-note-lib.S: New.
12635 * elf/tst-big-note.c: New.
12636
12637 2018-05-04 Joseph Myers <joseph@codesourcery.com>
12638
12639 * scripts/abilist.awk: Ignore absolute symbols.
12640 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
12641 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
12642 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
12643 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
12644 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
12645 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
12646 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12647 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
12648 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
12649 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
12650 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
12651 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
12652 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
12653 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
12654 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
12655 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
12656 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
12657 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
12658 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12659 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
12660 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
12661 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
12662 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
12663 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
12664 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
12665 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
12666 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
12667 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
12668 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12669 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
12670 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
12671 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12672 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
12673 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
12674 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
12675 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
12676 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
12677 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
12678 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
12679 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
12680 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
12681 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
12682 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
12683 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
12684 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12685 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
12686 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
12687 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
12688 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
12689 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
12690 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
12691 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
12692 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
12693 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
12694 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12695 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
12696 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
12697 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12698 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
12699 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
12700 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
12701 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
12702 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
12703 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
12704 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
12705 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
12706 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
12707 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
12708 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
12709 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
12710 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12711 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
12712 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
12713 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
12714 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
12715 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
12716 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
12717 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
12718 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
12719 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
12720 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12721 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
12722 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
12723 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12724 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
12725 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
12726 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
12727 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
12728 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
12729 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
12730 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
12731 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
12732 Likewise.
12733 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
12734 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12735 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
12736 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
12737 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12738 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
12739 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
12740 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
12741 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
12742 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
12743 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
12744 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
12745 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
12746 Likewise.
12747 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
12748 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12749 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
12750 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
12751 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12752 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
12753 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
12754 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
12755 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
12756 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
12757 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
12758 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
12759 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
12760 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
12761 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12762 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
12763 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
12764 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12765 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
12766 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
12767 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
12768 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
12769 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
12770 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
12771 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12772 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
12773 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
12774 Likewise.
12775 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
12776 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
12777 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
12778 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
12779 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12780 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
12781 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
12782 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
12783 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
12784 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
12785 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
12786 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
12787 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
12788 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
12789 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
12790 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
12791 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
12792 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
12793 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
12794 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
12795 Likewise.
12796 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
12797 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
12798 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
12799 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12800 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
12801 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
12802 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
12803 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
12804 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
12805 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
12806 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12807 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
12808 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
12809 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12810 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
12811 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
12812 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
12813 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
12814 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12815 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
12816 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
12817 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12818 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
12819 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
12820 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
12821 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
12822 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
12823 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
12824 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
12825 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12826 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
12827 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
12828 Likewise.
12829 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
12830 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
12831 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
12832 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
12833 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
12834 Likewise.
12835 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
12836 Likewise.
12837 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
12838 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
12839 Likewise.
12840 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
12841 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12842 Likewise.
12843 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
12844 Likewise.
12845 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
12846 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
12847 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
12848 Likewise.
12849 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
12850 Likewise.
12851 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
12852 Likewise.
12853 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
12854 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
12855 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
12856 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
12857 Likewise.
12858 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
12859 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
12860 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
12861 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12862 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12863 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
12864 Likewise.
12865 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
12866 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
12867 Likewise.
12868 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
12869 Likewise.
12870 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
12871 Likewise.
12872 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
12873 Likewise.
12874 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
12875 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
12876 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
12877 Likewise.
12878 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
12879 Likewise.
12880 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
12881 Likewise.
12882 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
12883 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
12884 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
12885 Likewise.
12886 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
12887 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
12888 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
12889 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
12890 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12891 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
12892 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
12893 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
12894 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
12895 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
12896 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
12897 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
12898 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
12899 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
12900 Likewise.
12901 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12902 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
12903 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
12904 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12905 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
12906 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
12907 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
12908 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
12909 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
12910 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
12911 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
12912 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
12913 Likewise.
12914 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12915 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
12916 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
12917 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12918 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
12919 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
12920 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
12921 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
12922 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
12923 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
12924 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
12925 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
12926 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
12927 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12928 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
12929 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
12930 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12931 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
12932 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
12933 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
12934 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
12935 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
12936 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
12937 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
12938 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
12939 Likewise.
12940 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
12941 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12942 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
12943 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
12944 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12945 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
12946 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
12947 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
12948 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
12949 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
12950 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
12951 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
12952 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
12953 Likewise.
12954 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
12955 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
12956 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
12957 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
12958 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12959 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
12960 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
12961 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
12962 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
12963 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
12964 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
12965 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
12966 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
12967 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
12968 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
12969 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
12970 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
12971 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12972 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
12973 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
12974 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
12975 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
12976 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
12977 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
12978 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
12979 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
12980 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
12981 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
12982 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
12983 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
12984 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
12985 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12986 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
12987 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
12988 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
12989 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
12990 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
12991 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
12992
12993 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
12994
12995 [BZ #23137]
12996 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
12997 Use atomic_load_acquire to load __tid.
12998
12999 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
13000
13001 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
13002 Restore the pointer into %rdx, after syscall and use %rdx,
13003 instead of %rsi, to restore context.
13004
13005 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
13006
13007 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
13008 Pop the pointer into %rdx after syscall and use %rdx, instead
13009 of %rsi, to restore context.
13010
13011 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
13012
13013 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
13014 handlers after setjmp.
13015 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
13016 defined.
13017 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
13018 <libc-pointer-arith.h>.
13019 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
13020 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
13021 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
13022 _JUMP_BUF_SIGSET_BITS_PER_WORD.
13023 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
13024 * sysdeps/x86/__longjmp_cancel.S: New file.
13025 * sysdeps/x86/longjmp.c: Likewise.
13026 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
13027
13028 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13029
13030 * NEWS: Add ustat.h deprecation entry.
13031 * bits/ustat.h: Remove file.
13032 * misc/sys/ustat.h: Likewise.
13033 * misc/ustat.h: Likewise.
13034 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
13035 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
13036 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
13037 compatibility mode.
13038 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
13039 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
13040 generic Linux implementation.
13041
13042 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13043
13044 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
13045 * math/w_expl_compat.c: Likewise.
13046 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
13047
13048 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
13049
13050 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
13051
13052 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13053
13054 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
13055 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
13056 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
13057 Remove.
13058 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
13059 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
13060 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
13061 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
13062 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
13063 and SYSCALL_LL64.
13064
13065 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13066
13067 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
13068
13069 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
13070 * math/w_asin_template.c: Likewise.
13071 * math/w_atanh_template.c: Likewise.
13072
13073 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
13074
13075 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
13076 to powerpc/powerpc64/be for big-endian.
13077 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
13078 little-endian.
13079
13080 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
13081 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
13082 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
13083 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
13084 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
13085 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
13086 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
13087 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
13088 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
13089 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
13090 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
13091 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
13092 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
13093 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
13094 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
13095 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
13096 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
13097 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
13098 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
13099 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
13100 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
13101 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
13102 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
13103 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
13104 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
13105 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
13106 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
13107 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
13108 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
13109 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
13110 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
13111 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
13112
13113 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
13114 adjusted to imply powerpc64 and older processors on powerpc64/be.
13115 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
13116 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
13117 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
13118 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
13119 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
13120 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
13121 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
13122 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
13123 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
13124 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
13125 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
13126 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
13127 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
13128 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
13129 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
13130 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
13131 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
13132 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
13133 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
13134 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
13135 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
13136 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
13137 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
13138 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
13139 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
13140 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
13141 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
13142 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
13143 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
13144 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
13145 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
13146
13147 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
13148 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
13149 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
13150 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
13151
13152 * sysdeps/powerpc/powerpc64/be/Implies: New file.
13153 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
13154 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
13155 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
13156
13157 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
13158 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
13159 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
13160 * sysdeps/powerpc/powerpc64le/configure: Likewise.
13161 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
13162 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
13163 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
13164 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
13165 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
13166 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
13167 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
13168
13169 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
13170 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
13171 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
13172 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
13173 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
13174 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
13175 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
13176 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
13177 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
13178 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
13179 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
13180
13181 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
13182 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
13183 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
13184 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
13185 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
13186 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
13187 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
13188 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
13189 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
13190 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
13191 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
13192 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
13193
13194 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
13195 and adjusted to imply olders processors.
13196 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
13197 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
13198 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
13199 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
13200 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
13201 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
13202 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
13203 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
13204 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
13205 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
13206 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
13207
13208 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
13209 powerpc64/le.
13210 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
13211 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
13212
13213 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
13214 powerpc64le.
13215 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
13216 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
13217
13218 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
13219 powerpc64/be.
13220 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
13221 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
13222 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
13223
13224 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
13225 powerpc64 and adjusted.
13226 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
13227 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
13228 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
13229 Likewise.
13230
13231 2018-04-27 Joseph Myers <joseph@codesourcery.com>
13232
13233 * sysdeps/tile: Remove.
13234 * sysdeps/unix/sysv/linux/tile: Likewise.
13235 * README (tilegx-*-linux-gnu): Remove from list of supported
13236 configurations.
13237 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
13238 contribution of support for generic Linux kernel syscall
13239 interface.
13240 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
13241 tilegx configurations.
13242 (Config.install_linux_headers): Do not handle tile.
13243 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
13244 in comment.
13245 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
13246 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
13247 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
13248 conditional undefine and redefine.
13249 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
13250 in comment.
13251 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
13252 conditional undefine and redefine.
13253
13254 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
13255
13256 * signal/tst-sigaction.c: New file to test BZ #23069.
13257 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
13258
13259 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13260
13261 [BZ #22766]
13262 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
13263 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
13264 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
13265 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
13266
13267 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13268
13269 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
13270 _DIRENT_MATCHES_DIRENT64 is not defined.
13271 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
13272 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
13273 is defined.
13274 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
13275 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
13276
13277 2018-04-25 Joseph Myers <joseph@codesourcery.com>
13278
13279 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
13280 version to GCC 8 branch.
13281
13282 2018-04-24 Joseph Myers <joseph@codesourcery.com>
13283
13284 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
13285 (check_no_hidden): Use type of original function when declaring
13286 alias.
13287
13288 * sysdeps/unix/sysv/linux/sys/ptrace.h
13289 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
13290 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
13291 (struct __ptrace_seccomp_metadata): New type.
13292 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
13293 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13294 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
13295 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13296 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
13297 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13298 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
13299 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13300 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
13301 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13302 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
13303 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13304 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
13305 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13306 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
13307 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13308
13309 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13310
13311 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
13312 defined.
13313 * dirent/versionsort.c (versionsort): Likewise.
13314 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
13315 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
13316 * dirent/versionsort64.c (versionsort64): Likewise.
13317 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
13318 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
13319 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
13320 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
13321 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
13322 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
13323 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
13324 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
13325 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
13326 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
13327 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
13328 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
13329 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
13330 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
13331
13332 2018-04-23 Joseph Myers <joseph@codesourcery.com>
13333
13334 * elf/elf.h (NT_PPC_PKEY): New macro.
13335
13336 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
13337
13338 [BZ #23094]
13339 * localedata/locales/hr_HR: fix thousands_sep and
13340 mon_thousands_sep
13341
13342 2018-04-20 Joseph Myers <joseph@codesourcery.com>
13343
13344 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
13345 (XTABS): Define to TAB3.
13346
13347 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13348
13349 * sysdeps/hppa/fpu/libm-test-ulps: Update.
13350
13351 * dirent/scandir-tail-common.c: New file.
13352 * dirent/scandir-tail.c: Use scandir-tail-common.c.
13353 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
13354 * dirent/scandir.c: Use scandir-tail-common.c.
13355 * dirent/scandirat.c: Likewise.
13356 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
13357 * dirent/scandir64.c (scandir64): Always build and alias to scandir
13358 if _DIRENT_MATCHES_DIRENT64 is defined.
13359 * dirent/scandirat64.c (scandirat64): Likewise.
13360 * include/dirent.h (__scandir_tail): Only define iff
13361 _DIRENT_MATCHES_DIRENT64 is not defined.
13362 (__scandir64_tail): Define regardless.
13363 (__scandirat, scandirat64): Remove libc_hidden_proto.
13364 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
13365 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
13366 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
13367 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
13368 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
13369 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
13370 * sysdeps/unix/sysv/linux/scandir64.c: New file.
13371
13372 2018-04-20 Joseph Myers <joseph@codesourcery.com>
13373
13374 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
13375 New macro.
13376 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
13377 Increase to 24.
13378 (_dl_aarch64_cap_flags): Add asimdfhm.
13379
13380 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
13381
13382 * sysdeps/nios2/libm-test-ulps: Update.
13383
13384 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13385
13386 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
13387 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
13388
13389 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
13390 requirements.
13391 (_DIRENT_MATCHES_DIRENT64): Undef
13392 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
13393 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
13394 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
13395 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
13396 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
13397 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
13398 use getdents64 syscalls as base.
13399 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
13400 symbol if required.
13401 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
13402 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
13403 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
13404 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
13405 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
13406 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
13407 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
13408 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
13409 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13410 (__get_clockfreq_via_proc_openprom): Use __getdents64.
13411 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
13412
13413 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
13414
13415 * scripts/test_printers_common.py (init_test): Disable lock elision.
13416
13417 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
13418
13419 * math/test-tgmath.c (count_double, count_float,
13420 count_ldouble, count_cdouble, count_cfloat,
13421 count_cldouble): Use volatile int.
13422
13423 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
13424
13425 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
13426 (conformtest-xfail-conds): Add i386-gnu.
13427 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
13428 i386-gnu.
13429 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
13430 ipc_perm.cuid, ipc_perm.cgid): Likewise.
13431 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
13432 msqid_ds.msg_lrpid): Likewise.
13433 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
13434 Likewise.
13435 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
13436 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
13437 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
13438 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
13439 unsigned int.
13440 (struct statvfs64): Likewise.
13441 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
13442 Likewise.
13443 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
13444 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
13445 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
13446 instead of wait_queue.
13447 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
13448 instead of vm_area_struct.
13449 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
13450 struct sched_param definition to it.
13451 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
13452 * bits/types/struct_sched_param.h: New file.
13453 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
13454 <bits/types/struct_sched_param.h> instead of <sched.h>.
13455 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
13456 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
13457 generic version but include <bits/pthreadtypes.h> to make struct
13458 sigevent's sigev_notify_attributes field a pthread_attr_t*.
13459 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
13460 non-compliant.
13461 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
13462 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
13463 [__USE_XOPEN] (OFDEL): New macro.
13464 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
13465 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
13466 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
13467 prototypes.
13468 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
13469 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
13470 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
13471 non-compliant.
13472 * sysdeps/i386/sys/ucontext.h: Likewise.
13473 * sysdeps/m68k/sys/ucontext.h: Likewise.
13474 * sysdeps/mips/sys/ucontext.h: Likewise.
13475 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
13476 * sysdeps/mach/hurd/i386/Makefile
13477 (test-xfail-POSIX/fcntl.h/conform): Add.
13478 (test-xfail-POSIX/signal.h/conform): Add.
13479 (test-xfail-POSIX/semaphore.h/conform): Add.
13480 (test-xfail-POSIX/regex.h/conform): Add.
13481 (test-xfail-POSIX/aio.h/conform): Add.
13482 (test-xfail-POSIX/mqueue.h/conform): Add.
13483 (test-xfail-POSIX/sys/types.h/conform): Add.
13484 (test-xfail-UNIX98/fcntl.h/conform): Add.
13485 (test-xfail-UNIX98/netdb.h/conform): Add.
13486 (test-xfail-UNIX98/signal.h/conform): Add.
13487 (test-xfail-UNIX98/semaphore.h/conform): Add.
13488 (test-xfail-UNIX98/regex.h/conform): Add.
13489 (test-xfail-UNIX98/aio.h/conform): Add.
13490 (test-xfail-UNIX98/ftw.h/conform): Add.
13491 (test-xfail-UNIX98/mqueue.h/conform): Add.
13492 (test-xfail-UNIX98/netinet/in.h/conform): Add.
13493 (test-xfail-UNIX98/sys/wait.h/conform): Add.
13494 (test-xfail-UNIX98/sys/sem.h/conform): Add.
13495 (test-xfail-UNIX98/sys/uio.h/conform): Add.
13496 (test-xfail-UNIX98/sys/socket.h/conform): Add.
13497 (test-xfail-UNIX98/sys/types.h/conform): Add.
13498 (test-xfail-UNIX98/stdlib.h/conform): Add.
13499 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
13500 (test-xfail-POSIX2008/fcntl.h/conform): Add.
13501 (test-xfail-POSIX2008/netdb.h/conform): Add.
13502 (test-xfail-POSIX2008/signal.h/conform): Add.
13503 (test-xfail-POSIX2008/semaphore.h/conform): Add.
13504 (test-xfail-POSIX2008/regex.h/conform): Add.
13505 (test-xfail-POSIX2008/aio.h/conform): Add.
13506 (test-xfail-POSIX2008/mqueue.h/conform): Add.
13507 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
13508 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
13509 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
13510 (test-xfail-POSIX2008/sys/types.h/conform): Add.
13511 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
13512 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
13513 (test-xfail-XOPEN2K/netdb.h/conform): Add.
13514 (test-xfail-XOPEN2K/signal.h/conform): Add.
13515 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
13516 (test-xfail-XOPEN2K/regex.h/conform): Add.
13517 (test-xfail-XOPEN2K/aio.h/conform): Add.
13518 (test-xfail-XOPEN2K/ftw.h/conform): Add.
13519 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
13520 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
13521 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
13522 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
13523 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
13524 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
13525 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
13526 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
13527 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
13528 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
13529 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
13530 (test-xfail-XOPEN2K8/signal.h/conform): Add.
13531 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
13532 (test-xfail-XOPEN2K8/regex.h/conform): Add.
13533 (test-xfail-XOPEN2K8/aio.h/conform): Add.
13534 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
13535 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
13536 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
13537 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
13538 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
13539 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
13540 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
13541 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
13542 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
13543 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
13544 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
13545 i386-gnu.
13546 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
13547 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
13548
13549 2018-04-18 Joseph Myers <joseph@codesourcery.com>
13550
13551 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
13552 --enable-obsolete for powerpc-linux-gnuspe.
13553
13554 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
13555
13556 * conform/data/sys/un.h-data: Allow sun_ prefix.
13557 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
13558 prototypes.
13559 * sysdeps/mach/include/mach.h: Likewise.
13560 * sysdeps/mach/include/mach/mig_support.h: Likewise.
13561 * sysdeps/mach/include/mach_error.h: Likewise.
13562
13563 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13564
13565 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
13566 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
13567 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
13568 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
13569
13570 2018-04-16 Andreas Schwab <schwab@suse.de>
13571
13572 [BZ #19527]
13573 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
13574
13575 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
13576
13577 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
13578 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
13579
13580 2018-04-12 DJ Delorie <dj@redhat.com>
13581
13582 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13583 version to 4.16.
13584
13585 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
13586
13587 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
13588 (struct kernel_sigaction): Use the same definition on 31bit as is used
13589 on 64bit.
13590
13591 2018-04-09 Florian Weimer <fweimer@redhat.com>
13592
13593 [BZ #23037]
13594 * resolv/res_send.c (send_dg): Use designated initializers instead
13595 of assignment to zero-initialize other fields of struct mmsghdr.
13596
13597 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13598
13599 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
13600 __READDIR_ALIAS): Undefine after usage.
13601 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
13602 __READDIR_R_ALIAS): Likewise.
13603 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
13604 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
13605 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
13606 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
13607 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
13608 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
13609 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
13610 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
13611 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
13612 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
13613 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
13614 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
13615 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
13616 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
13617 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
13618 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
13619 * sysdeps/unix/sysv/linux/readdir.c: New file.
13620 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
13621 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
13622 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
13623
13624 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
13625
13626 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
13627
13628 * manual/charset.texi (Converting a Character): Fix typo.
13629
13630 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13631
13632 * sysdeps/sparc/fpu/libm-test-ulps: Update.
13633
13634 * sysdeps/arm/libm-test-ulps: Update.
13635
13636 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
13637 as base implementation.
13638 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
13639 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
13640 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
13641 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
13642 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
13643 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
13644 remove unrequired definitions and update comments.
13645 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
13646 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
13647 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
13648 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
13649 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
13650 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
13651 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
13652 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
13653 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
13654 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
13655 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
13656 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
13657 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
13658 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
13659 and RESET_SA_RESTORER hooks.
13660
13661 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
13662
13663 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
13664
13665 2018-04-05 Florian Weimer <fweimer@redhat.com>
13666
13667 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
13668 integer overflow, memory leak on error, and indeterminate errno
13669 value. Add a null wide character to terminate the result string.
13670 * manual/charset.texi (Converting a Character): Mention embedded
13671 null bytes in the mbrtowc input string. Explain what happens in
13672 the -2 result case. Do not claim that mbrtowc is simple or
13673 obvious to use. Adjust the description of the code example. Use
13674 @code, not @var, for concrete variables.
13675
13676 2018-04-05 Florian Weimer <fweimer@redhat.com>
13677
13678 * manual/examples/mbstouwcs.c: New file.
13679 * manual/charset.texi (Converting a Character): Include it.
13680
13681 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
13682
13683 * include/dirent.h (dirfd): Add hidden proto.
13684 * dirent/dirfd.c (dirfd): Add hidden def.
13685 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
13686 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
13687
13688 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13689
13690 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
13691 sin, cos and sincos to 1 ULP.
13692
13693 2018-04-04 Maciej W. Rozycki <macro@mips.com>
13694
13695 [BZ #19818]
13696 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
13697 symbols.
13698 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
13699 * elf/tst-absolute-sym.c: New file.
13700 * elf/tst-absolute-sym-lib.c: New file.
13701 * elf/tst-absolute-sym-lib.lds: New file.
13702 * elf/Makefile (tests): Add `tst-absolute-sym'.
13703 (modules-names): Add `tst-absolute-sym-lib'.
13704 (LDLIBS-tst-absolute-sym-lib.so): New variable.
13705 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
13706 ($(objpfx)tst-absolute-sym): New dependency.
13707
13708 [BZ #19818]
13709 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
13710 parameter.
13711 (SYMBOL_ADDRESS): New macro.
13712 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
13713 SYMBOL_ADDRESS for symbol address calculation.
13714 * elf/dl-runtime.c (_dl_fixup): Likewise.
13715 (_dl_profile_fixup): Likewise.
13716 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
13717 * elf/rtld.c (dl_main): Likewise.
13718 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
13719 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
13720 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
13721 (elf_machine_rela): Likewise.
13722 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
13723 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
13724 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
13725 (elf_machine_rela): Likewise.
13726 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
13727 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
13728 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
13729 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
13730 Likewise.
13731 (elf_machine_reloc): Likewise.
13732 (elf_machine_got_rel): Likewise.
13733 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
13734 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
13735 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
13736 Likewise.
13737 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
13738 Likewise.
13739 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
13740 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
13741 Likewise.
13742 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
13743 Likewise.
13744 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
13745 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
13746 Likewise.
13747 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13748 Likewise.
13749 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
13750 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
13751
13752 2018-04-04 Zack Weinberg <zackw@panix.com>
13753
13754 * sysdeps/generic/internal-signals.h: Include signal.h,
13755 sigsetops.h, and stdbool.h.
13756 (__libc_signal_block_all): Actually block all signals.
13757 (__libc_signal_block_app): Likewise.
13758 (__libc_signal_restore_set): Actually restore the signal mask.
13759
13760 2018-04-04 Florian Weimer <fweimer@redhat.com>
13761
13762 inet: Actually build and run tst-deadline.
13763 * inet/Makefile (tests-internal): Add tst-deadline and do not
13764 overwrite the variable.
13765 (tests-static-internal): Remove variable.
13766
13767 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
13768
13769 [BZ #22947]
13770 * bits/uio-ext.h (RWF_APPEND): New.
13771 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
13772 * manual/llio.texi: Document RWF_APPEND.
13773 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
13774 (RWF_SUPPORTED): Add RWF_APPEND.
13775
13776 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13777
13778 [BZ #22391]
13779 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
13780 check for internal nptl signals.
13781 * nptl/sigaction.c (__sigaction): Likewise.
13782 * signal/sigaddset.c (sigaddset): Likewise.
13783 * signal/sigdelset.c (sigdelset): Likewise.
13784 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
13785 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
13786 value.
13787 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
13788 to filter out internal nptl signals.
13789 * signal/tst-sigset.c (do_test): Check ech signal indidually and
13790 also check realtime signals using standard macros.
13791 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
13792 __is_internal_signal, __libc_signal_block_all,
13793 __libc_signal_block_app, __libc_signal_restore_set): New functions.
13794 * sysdeps/nptl/sigfillset.c: Remove file.
13795 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
13796 Change return to bool.
13797 (__clear_internal_signals): Remove SIGTIMER clean since it is
13798 equal to SIGCANEL on Linux.
13799 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
13800 signal set was constructed using standard functions.
13801
13802 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
13803
13804 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
13805 ifname is too long.
13806 * hurd/hurdsig.c (interrupted_reply_port_location): Use
13807 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
13808 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
13809 hidden def.
13810 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
13811 * signal/sigaddset.c: Include <sigsetopts.h>.
13812 * signal/sigdelset.c: Likewise.
13813
13814 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13815
13816 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
13817 (__cos): Likewise.
13818 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
13819 logic as sin and cos.
13820
13821 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13822
13823 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
13824 inputs. Return correct sign.
13825 (do_sincos): Remove small input check before do_sin, let do_sin set
13826 the sign.
13827 (__sin): Likewise.
13828 (__cos): Likewise.
13829
13830 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13831
13832 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
13833 (do_cos_slow): Likewise.
13834 (do_sin_slow): Likewise.
13835 (reduce_and_compute): Likewise.
13836 (slow): Likewise.
13837 (slow1): Likewise.
13838 (slow2): Likewise.
13839 (sloww): Likewise.
13840 (sloww1): Likewise.
13841 (sloww2): Likewise.
13842 (bslow): Likewise.
13843 (bslow1): Likewise.
13844 (bslow2): Likewise.
13845 (cslow2): Likewise.
13846
13847 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13848
13849 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
13850 (do_cos): Remove corp parameter and calculations.
13851 (do_sin): Likewise.
13852 (do_sincos): Remove cor variable.
13853 (__sin): Use do_sincos for huge inputs.
13854 (__cos): Likewise.
13855 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13856 (reduce_and_compute_sincos): Remove unused function.
13857
13858 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13859
13860 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
13861 reduce_sincos, improve accuracy to 136 bits.
13862 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
13863 (__sin): Use improved reduction and simplified do_sincos calculation.
13864 (__cos): Likewise.
13865 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13866
13867 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13868
13869 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
13870 (do_sincos_2): Likewise.
13871 (__sin): Remove middle range reduction case.
13872 (__cos): Likewise.
13873 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
13874 reduction case.
13875
13876 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13877
13878 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
13879 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
13880 inputs.
13881 (__cos): Likewise.
13882 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
13883
13884 2018-04-03 Joseph Myers <joseph@codesourcery.com>
13885
13886 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13887 version to 4.16
13888
13889 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13890
13891 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
13892 Remove definitions.
13893 (opendir_oflags): Use O_DIRECTORY regardless.
13894 (__opendir, __opendirat): Remove need_isdir_precheck usage.
13895 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
13896
13897 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13898
13899 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
13900 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
13901 macros.
13902 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
13903 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
13904 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
13905 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
13906 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
13907 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
13908
13909 * htl/Makefile: Bump licence to LGPL 2.1+.
13910 * htl/alloca_cutoff.c: Likewise.
13911 * htl/cthreads-compat.c: Likewise.
13912 * htl/lockfile.c: Likewise.
13913 * htl/pt-alloc.c: Likewise.
13914 * htl/pt-cancel.c: Likewise.
13915 * htl/pt-cleanup.c: Likewise.
13916 * htl/pt-create.c: Likewise.
13917 * htl/pt-dealloc.c: Likewise.
13918 * htl/pt-detach.c: Likewise.
13919 * htl/pt-exit.c: Likewise.
13920 * htl/pt-getattr.c: Likewise.
13921 * htl/pt-initialize.c: Likewise.
13922 * htl/pt-internal.h: Likewise.
13923 * htl/pt-join.c: Likewise.
13924 * htl/pt-self.c: Likewise.
13925 * htl/pt-setcancelstate.c: Likewise.
13926 * htl/pt-setcanceltype.c: Likewise.
13927 * htl/pt-sigmask.c: Likewise.
13928 * htl/pt-spin-inlines.c: Likewise.
13929 * htl/pt-testcancel.c: Likewise.
13930 * htl/pt-yield.c: Likewise.
13931 * htl/tests/test-1.c: Likewise.
13932 * htl/tests/test-10.c: Likewise.
13933 * htl/tests/test-11.c: Likewise.
13934 * htl/tests/test-12.c: Likewise.
13935 * htl/tests/test-13.c: Likewise.
13936 * htl/tests/test-14.c: Likewise.
13937 * htl/tests/test-15.c: Likewise.
13938 * htl/tests/test-16.c: Likewise.
13939 * htl/tests/test-17.c: Likewise.
13940 * htl/tests/test-2.c: Likewise.
13941 * htl/tests/test-3.c: Likewise.
13942 * htl/tests/test-4.c: Likewise.
13943 * htl/tests/test-5.c: Likewise.
13944 * htl/tests/test-6.c: Likewise.
13945 * htl/tests/test-7.c: Likewise.
13946 * htl/tests/test-8.c: Likewise.
13947 * htl/tests/test-9.c: Likewise.
13948 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
13949 * sysdeps/htl/bits/cancelation.h: Likewise.
13950 * sysdeps/htl/bits/pthread-np.h: Likewise.
13951 * sysdeps/htl/bits/pthread.h: Likewise.
13952 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
13953 * sysdeps/htl/bits/semaphore.h: Likewise.
13954 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
13955 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
13956 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
13957 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
13958 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
13959 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
13960 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
13961 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
13962 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
13963 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
13964 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
13965 * sysdeps/htl/old_pt-atfork.c: Likewise.
13966 * sysdeps/htl/pt-atfork.c: Likewise.
13967 * sysdeps/htl/pt-attr-destroy.c: Likewise.
13968 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
13969 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
13970 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
13971 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
13972 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
13973 * sysdeps/htl/pt-attr-getscope.c: Likewise.
13974 * sysdeps/htl/pt-attr-getstack.c: Likewise.
13975 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
13976 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
13977 * sysdeps/htl/pt-attr-init.c: Likewise.
13978 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
13979 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
13980 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
13981 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
13982 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
13983 * sysdeps/htl/pt-attr-setscope.c: Likewise.
13984 * sysdeps/htl/pt-attr-setstack.c: Likewise.
13985 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
13986 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
13987 * sysdeps/htl/pt-attr.c: Likewise.
13988 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
13989 * sysdeps/htl/pt-barrier-init.c: Likewise.
13990 * sysdeps/htl/pt-barrier-wait.c: Likewise.
13991 * sysdeps/htl/pt-barrier.c: Likewise.
13992 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
13993 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
13994 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
13995 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
13996 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
13997 * sysdeps/htl/pt-cond-destroy.c: Likewise.
13998 * sysdeps/htl/pt-cond-init.c: Likewise.
13999 * sysdeps/htl/pt-cond-signal.c: Likewise.
14000 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
14001 * sysdeps/htl/pt-cond-wait.c: Likewise.
14002 * sysdeps/htl/pt-cond.c: Likewise.
14003 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
14004 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
14005 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
14006 * sysdeps/htl/pt-condattr-init.c: Likewise.
14007 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
14008 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
14009 * sysdeps/htl/pt-destroy-specific.c: Likewise.
14010 * sysdeps/htl/pt-equal.c: Likewise.
14011 * sysdeps/htl/pt-getconcurrency.c: Likewise.
14012 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
14013 * sysdeps/htl/pt-getschedparam.c: Likewise.
14014 * sysdeps/htl/pt-getspecific.c: Likewise.
14015 * sysdeps/htl/pt-init-specific.c: Likewise.
14016 * sysdeps/htl/pt-key-create.c: Likewise.
14017 * sysdeps/htl/pt-key-delete.c: Likewise.
14018 * sysdeps/htl/pt-key.h: Likewise.
14019 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
14020 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
14021 * sysdeps/htl/pt-mutex-init.c: Likewise.
14022 * sysdeps/htl/pt-mutex-lock.c: Likewise.
14023 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
14024 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
14025 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
14026 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
14027 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
14028 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
14029 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
14030 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
14031 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
14032 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
14033 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
14034 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
14035 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
14036 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
14037 * sysdeps/htl/pt-mutexattr.c: Likewise.
14038 * sysdeps/htl/pt-once.c: Likewise.
14039 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
14040 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
14041 * sysdeps/htl/pt-rwlock-init.c: Likewise.
14042 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
14043 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
14044 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
14045 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
14046 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
14047 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
14048 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
14049 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
14050 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
14051 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
14052 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
14053 * sysdeps/htl/pt-setconcurrency.c: Likewise.
14054 * sysdeps/htl/pt-setschedparam.c: Likewise.
14055 * sysdeps/htl/pt-setschedprio.c: Likewise.
14056 * sysdeps/htl/pt-setspecific.c: Likewise.
14057 * sysdeps/htl/pt-spin.c: Likewise.
14058 * sysdeps/htl/pt-startup.c: Likewise.
14059 * sysdeps/htl/pthread.h: Likewise.
14060 * sysdeps/htl/sem-close.c: Likewise.
14061 * sysdeps/htl/sem-destroy.c: Likewise.
14062 * sysdeps/htl/sem-getvalue.c: Likewise.
14063 * sysdeps/htl/sem-init.c: Likewise.
14064 * sysdeps/htl/sem-open.c: Likewise.
14065 * sysdeps/htl/sem-post.c: Likewise.
14066 * sysdeps/htl/sem-timedwait.c: Likewise.
14067 * sysdeps/htl/sem-trywait.c: Likewise.
14068 * sysdeps/htl/sem-unlink.c: Likewise.
14069 * sysdeps/htl/sem-wait.c: Likewise.
14070 * sysdeps/hurd/htl/pt-kill.c: Likewise.
14071 * sysdeps/i386/htl/pt-machdep.h: Likewise.
14072 * sysdeps/mach/htl/pt-block.c: Likewise.
14073 * sysdeps/mach/htl/pt-spin.c: Likewise.
14074 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
14075 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
14076 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
14077 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
14078 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
14079 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
14080 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
14081 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
14082 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
14083 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
14084 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
14085 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
14086 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
14087 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
14088 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
14089 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
14090 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
14091 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
14092 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
14093 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
14094 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
14095 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
14096 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
14097 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
14098 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
14099 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
14100 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
14101 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
14102 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
14103 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
14104 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
14105 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
14106 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
14107 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
14108 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
14109 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
14110 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
14111 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
14112 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
14113 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
14114 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
14115 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
14116 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
14117
14118 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
14119 * README: Remove the mention of out-of-tree patches needed for
14120 GNU/Hurd.
14121
14122 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
14123 (UTIME_NOW, UTIME_OMIT): Define macros.
14124
14125 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
14126 instead of pthread_detach.
14127 (__cthread_fork): Call __pthread_create instead of pthread_create.
14128 (__cthread_keycreate): Call __pthread_key_create instead of
14129 pthread_key_create.
14130 (__cthread_getspecific): Call __pthread_getspecific instead of
14131 pthread_getspecific.
14132 (__cthread_setspecific): Call __pthread_setspecific instead of
14133 pthread_setspecific.
14134 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
14135 __pthread_mutex_unlock instead of pthread_mutex_lock and
14136 pthread_mutex_unlock.
14137 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
14138 ___pthread_get_cleanup_stack.
14139 (__pthread_get_cleanup_stack): New strong alias.
14140 * htl/pt-create.c: Include <pthreadP.h>.
14141 (entry_point): Call __pthread_exit instead of pthread_exit.
14142 (pthread_create): Rename to __pthread_create.
14143 (pthread_create): New strong alias.
14144 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
14145 (pthread_detach): New strong alias.
14146 (__pthread_detach): Call __pthread_cond_broadcast instead of
14147 pthread_cond_broadcast.
14148 * htl/pt-exit.c: Include <pthreadP.h>.
14149 (__pthread_exit): Call __pthread_setcancelstate and
14150 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
14151 __pthread_get_cleanup_stack.
14152 * htl/pt-testcancel.c: Include <pthreadP.h>.
14153 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
14154 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
14155 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
14156 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
14157 pthread_attr_getstacksize.
14158 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
14159 Rename to __pthread_attr_getstackaddr.
14160 (pthread_attr_getstackaddr): New strong alias.
14161 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
14162 Rename to __pthread_attr_getstacksize.
14163 (pthread_attr_getstacksize): New strong alias.
14164 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
14165 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
14166 (pthread_attr_setstack): New strong alias.
14167 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
14168 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
14169 pthread_attr_getstacksize, pthread_attr_setstacksize and
14170 pthread_attr_setstackaddr.
14171 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
14172 Rename to __pthread_attr_setstackaddr.
14173 (pthread_attr_setstackaddr): New strong alias.
14174 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
14175 Rename to __pthread_attr_setstacksize.
14176 (pthread_attr_setstacksize): New strong alias.
14177 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
14178 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
14179 pthread_exit.
14180 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
14181 (__pthread_key_create): New hidden def.
14182 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
14183 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
14184 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
14185 __pthread_exit, __pthread_key_create, __pthread_getspecific,
14186 __pthread_setspecific, __pthread_setcancelstate,
14187 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
14188 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
14189 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
14190 declarations.
14191 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
14192 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
14193 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
14194 (pthread_attr_setstackaddr): New strong alias.
14195 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
14196 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
14197 (pthread_attr_setstacksize): New strong alias.
14198 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
14199 (call_exit): Call __pthread_exit instead of pthread_exit.
14200 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
14201 (_pthread_mutex_init): New hidden definition.
14202 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
14203 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
14204 instead of pthread_attr_init and pthread_attr_setstack.
14205
14206 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
14207 __vm_deallocate instead of vm_allocate and vm_deallocate.
14208 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
14209 setenv.
14210 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
14211 of geteuid.
14212 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
14213 strdup.
14214 * hurd/siginfo.c: Include <libioP.h>.
14215 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
14216 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
14217 munmap.
14218 * mach/devstream.c: Include <libioP.h>.
14219 (dealloc_ref): Call __mach_port_deallocate instead of
14220 mach_port_deallocate.
14221 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
14222 Call __mach_port_deallocate instead of mach_port_deallocate.
14223 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
14224 pathconf.
14225 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
14226 munmap.
14227 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
14228 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
14229 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
14230 of munmap.
14231 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
14232 of close.
14233 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
14234 instead of sysconf.
14235 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
14236 __clock_gettime instead of clock_gettime.
14237 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
14238 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
14239 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
14240 * sysdeps/unix/bsd/stty.c (stty): Likewise.
14241 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
14242 tcgetattr.
14243 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
14244 __clock_gettime and __nanosleep instead of clock_gettime and
14245 nanosleep.
14246 * hurd/catch-signal.c (hurd_catch_signal): Rename to
14247 __hurd_catch_signal.
14248 (hurd_catch_signal): New strong alias.
14249 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
14250 __hurd_catch_signal instead of hurd_catch_signal.
14251 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
14252 * hurd/hurdexec.c (_hurd_init): Add hidden def.
14253 * hurd/hurdinit.c (_hurd_init): Add hidden def.
14254 * hurd/hurdsig.c: Include <mach/mig_support.h>.
14255 (_hurd_thread_sigstate): Add hidden def.
14256 (_hurd_internal_post_signal): Use __mutex_unlock instead of
14257 mutex_unlock.
14258 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
14259 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
14260 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
14261 __hurd_file_name_path_lookup.
14262 (hurd_file_name_path_lookup): New strong alias.
14263 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
14264 hurd_file_name_path_lookup.
14265 * mach/errstring.c (mach_error_type): Add hidden def.
14266 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
14267 * mach/mutex-init.c (__mutex_init): Add hidden def.
14268 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
14269 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
14270 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
14271 * sysdeps/mach/hurd/getcwd.c
14272 (_hurd_canonicalize_directory_name_internal): Rename to
14273 __hurd_canonicalize_directory_name_internal.
14274 (_hurd_canonicalize_directory_name_internal): New strong alias.
14275 (__canonicalize_directory_name_internal, __getcwd): Call
14276 __hurd_canonicalize_directory_name_internal instead of
14277 _hurd_canonicalize_directory_name_internal.
14278 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
14279 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
14280 hidden defs.
14281 * sysdeps/hurd/include/hurd.h: New file.
14282 * sysdeps/hurd/include/hurd/fd.h: New file.
14283 * sysdeps/hurd/include/hurd/signal.h: New file.
14284 * sysdeps/mach/include/lock-intern.h: New file.
14285 * sysdeps/mach/include/mach.h: New file.
14286 * sysdeps/mach/include/mach/mig_support.h: New file.
14287 * sysdeps/mach/include/mach_error.h: New file.
14288 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
14289 prototype.
14290 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
14291 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
14292 _HEADER_H_HIDDEN_DEF macro.
14293 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
14294 _hurd_fd_error_signal): Add hidden prototype.
14295 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
14296 hidden def.
14297 * libio/iolibio.h (_IO_puts): New hidden prototype.
14298 * libio/ioputs.c (_IO_puts): New hidden def.
14299 * sysdeps/mach/hurd/localplt.data: New file.
14300
14301 2018-04-02 Agustina Arzille <avarzille@riseup.net>
14302 Amos Jeffries <squid3@treenet.co.nz>
14303 David Michael <fedora.dm0@gmail.com>
14304 Marco Gerards <marco@gnu.org>
14305 Marcus Brinkmann <marcus@gnu.org>
14306 Neal H. Walfield <neal@gnu.org>
14307 Pino Toscano <toscano.pino@tiscali.it>
14308 Richard Braun <rbraun@sceen.net>
14309 Roland McGrath <roland@gnu.org>
14310 Samuel Thibault <samuel.thibault@ens-lyon.org>
14311 Thomas DiModica <ricinwich@yahoo.com>
14312 Thomas Schwinge <tschwinge@gnu.org>
14313
14314 * htl: New directory.
14315 * sysdeps/htl: New directory.
14316 * sysdeps/hurd/htl: New directory.
14317 * sysdeps/i386/htl: New directory.
14318 * sysdeps/mach/htl: New directory.
14319 * sysdeps/mach/hurd/htl: New directory.
14320 * sysdeps/mach/hurd/i386/htl: New directory.
14321 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
14322 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
14323 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
14324
14325 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
14326
14327 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
14328 signals in thread created for runing timers.
14329
14330 2018-04-01 Florian Weimer <fweimer@redhat.com>
14331
14332 * support/support_format_addrinfo.c (support_format_addrinfo):
14333 Include unknown error number in formatted result.
14334
14335 2018-03-29 Florian Weimer <fweimer@redhat.com>
14336
14337 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
14338 capture SIGBUS.
14339
14340 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14341
14342 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
14343 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
14344 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
14345 (__ASSUME_CLONE_BACKWARDS): Define.
14346
14347 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
14348
14349 [BZ #23024]
14350 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
14351 early when linux sentinel value is set.
14352
14353 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
14354
14355 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
14356
14357 2018-03-27 Andreas Schwab <schwab@suse.de>
14358
14359 [BZ #23005]
14360 * resolv/res_send.c (__res_context_send): Return ENOMEM if
14361 allocation of private copy of nsaddr_list fails.
14362
14363 2018-03-26 Joseph Myers <joseph@codesourcery.com>
14364
14365 [BZ #16552]
14366 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
14367 * sysdeps/unix/sysv/linux/umount.c: ... here.
14368 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
14369 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
14370 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
14371 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
14372 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
14373 * sysdeps/unix/sysv/linux/umount.S: Likewise.
14374 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
14375
14376 2018-03-26 Andreas Schwab <schwab@suse.de>
14377
14378 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
14379 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
14380 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
14381 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
14382 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
14383 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
14384 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
14385 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
14386 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
14387 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
14388 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
14389 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
14390 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
14391 (R_RISCV_NUM): Define.
14392
14393 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
14394
14395 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
14396 TLS declaration of errno.
14397 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
14398 __libc_setup_tls.
14399 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
14400 (ARCH_SETUP_TLS): Likewise.
14401 * sysdeps/mach/hurd/libc-start.h: New file copied from
14402 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
14403 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
14404 instead of __libc_setup_tls.
14405 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
14406 __libc_setup_tls before initializing libpthread and running _hurd_init
14407 which starts the signal thread.
14408 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
14409 Declare function.
14410 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14411
14412 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
14413
14414 [BZ #22998]
14415 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
14416 after it is defined.
14417
14418 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
14419 Max Horn <max@quendi.de>
14420
14421 [BZ #22644]
14422 CVE-2017-18269
14423 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
14424 branch conditions.
14425 * string/test-memmove.c (do_test2): New testcase.
14426
14427 2018-03-22 Joseph Myers <joseph@codesourcery.com>
14428
14429 * sysdeps/generic/frame.h: Remove file.
14430 * sysdeps/arm/frame.h: Likewise.
14431 * sysdeps/hppa/frame.h: Likewise.
14432 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
14433 macro.
14434 (GET_FRAME): Likewise.
14435 (GET_STACK): Likewise.
14436 (CALL_SIGHANDLER): Likewise.
14437 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
14438 Likewise.
14439 (GET_FRAME): Likewise.
14440 (GET_STACK): Likewise.
14441 (CALL_SIGHANDLER): Likewise.
14442 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
14443 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14444 (GET_FRAME): Likewise.
14445 (GET_STACK): Likewise.
14446 (CALL_SIGHANDLER): Likewise.
14447 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
14448 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14449 (GET_FRAME): Likewise.
14450 (GET_STACK): Likewise.
14451 (ADVANCE_STACK_FRAME): Likewise.
14452 (CALL_SIGHANDLER): Likewise.
14453 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
14454 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14455 (GET_FRAME): Likewise.
14456 (GET_STACK): Likewise.
14457 (CALL_SIGHANDLER): Likewise.
14458 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
14459 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14460 (GET_FRAME): Likewise.
14461 (GET_STACK): Likewise.
14462 (CALL_SIGHANDLER): Likewise.
14463 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
14464 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14465 (GET_FRAME): Likewise.
14466 (GET_STACK): Likewise.
14467 (CALL_SIGHANDLER): Likewise.
14468 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
14469 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14470 (GET_FRAME): Likewise.
14471 (GET_STACK): Likewise.
14472 (CALL_SIGHANDLER): Likewise.
14473 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
14474 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14475 (GET_FRAME): Likewise.
14476 (GET_STACK): Likewise.
14477 (CALL_SIGHANDLER): Likewise.
14478 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
14479 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14480 (GET_FRAME): Likewise.
14481 (GET_STACK): Likewise.
14482 (CALL_SIGHANDLER): Likewise.
14483 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
14484 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14485 (GET_FRAME): Likewise.
14486 (GET_STACK): Likewise.
14487 (CALL_SIGHANDLER): Likewise.
14488 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
14489 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14490 (GET_FRAME): Likewise.
14491 (GET_STACK): Likewise.
14492 (CALL_SIGHANDLER): Likewise.
14493 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
14494 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14495 (GET_FRAME): Likewise.
14496 (GET_STACK): Likewise.
14497 (CALL_SIGHANDLER): Likewise.
14498 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
14499 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14500 (FIRST_FRAME_POINTER): Likewise.
14501 (ADVANCE_STACK_FRAME): Likewise.
14502 (GET_STACK): Likewise.
14503 (GET_FRAME): Likewise.
14504 (CALL_SIGHANDLER): Likewise.
14505 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
14506 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14507 (ADVANCE_STACK_FRAME): Likewise.
14508 (GET_STACK): Likewise.
14509 (GET_FRAME): Likewise.
14510 (CALL_SIGHANDLER): Likewise.
14511 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
14512 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14513 (GET_FRAME): Likewise.
14514 (GET_STACK): Likewise.
14515 (CALL_SIGHANDLER): Likewise.
14516 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
14517 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14518 (GET_FRAME): Likewise.
14519 (GET_STACK): Likewise.
14520 (CALL_SIGHANDLER): Likewise.
14521
14522 2018-03-21 Joseph Myers <joseph@codesourcery.com>
14523
14524 * sysdeps/x86_64/backtrace.c: Move to ....
14525 * debug/backtrace.c: ... here.
14526 * sysdeps/aarch64/backtrace.c: Remove file.
14527 * sysdeps/alpha/backtrace.c: Likewise.
14528 * sysdeps/hppa/backtrace.c: Likewise.
14529 * sysdeps/ia64/backtrace.c: Likewise.
14530 * sysdeps/mips/backtrace.c: Likewise.
14531 * sysdeps/nios2/backtrace.c: Likewise.
14532 * sysdeps/riscv/backtrace.c: Likewise.
14533 * sysdeps/sh/backtrace.c: Likewise.
14534 * sysdeps/tile/backtrace.c: Likewise.
14535
14536 2018-03-20 Joseph Myers <joseph@codesourcery.com>
14537
14538 [BZ #22987]
14539 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
14540 function.
14541 (fdimf): Likewise.
14542 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
14543
14544 [BZ #17343]
14545 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
14546 possibly overflowing computations.
14547
14548 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
14549
14550 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
14551 values from Linux-specific section now that it is in the GNU section.
14552 * sysdeps/gnu/errlist.c: Regenerate.
14553
14554 2018-03-20 Joseph Myers <joseph@codesourcery.com>
14555
14556 * math/Makefile (libm-narrow-fns): Add sub.
14557 (libm-test-funcs-narrow): Likewise.
14558 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
14559 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
14560 * math/gen-auto-libm-tests.c (test_functions): Add sub.
14561 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
14562 (NARROW_SUB_ROUND_TO_ODD): Likewise.
14563 (NARROW_SUB_TRIVIAL): Likewise.
14564 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
14565 macro.
14566 (__dsubl): Likewise.
14567 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
14568 dsub.
14569 (CFLAGS-nldbl-dsub.c): New variable.
14570 (CFLAGS-nldbl-fsub.c): Likewise.
14571 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
14572 __nldbl_dsubl.
14573 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
14574 prototype.
14575 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
14576 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
14577 * math/auto-libm-test-in: Add tests of sub.
14578 * math/auto-libm-test-out-narrow-sub: New generated file.
14579 * math/libm-test-narrow-sub.inc: New file.
14580 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
14581 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
14582 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
14583 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
14584 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
14585 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
14586 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
14587 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
14588 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
14589 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
14590 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
14591 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
14592 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
14593 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
14594 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
14595 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
14596 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
14597 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
14598 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14599 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14600 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14601 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14602 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14603 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14604 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14605 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14606 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14607 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14608 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14609 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14610 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14611 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14612 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14613 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
14614 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14615 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14616 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14617 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14618 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14619 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14620 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14621 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14622 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
14623 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
14624 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14625 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14626
14627 2018-03-19 Joseph Myers <joseph@codesourcery.com>
14628
14629 [BZ #20079]
14630 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
14631
14632 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
14633
14634 * benchtests/bench-timing.h (attribute_hidden): Undefine.
14635
14636 2018-03-18 Richard Braun <rbraun@sceen.net>
14637
14638 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
14639 thread reference.
14640
14641 2018-03-18 Agustina Arzille <avarzille@riseup.net>
14642
14643 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
14644 (__libc_cleanup_fct): Define function.
14645 (__libc_cleanup_region_start, __libc_cleanup_region_end,
14646 __libc_cleanup_end): Rewrite implementation using
14647 __attribute__ ((__cleanup__)).
14648 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
14649 * hurd/Makefile (routines): Add hurdlock.
14650 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
14651 interface.
14652 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
14653 * hurd/hurdpid.c: Include <lowlevellock.h>
14654 (_S_msg_proc_newids): Use lll_wait to synchronize.
14655 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
14656 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
14657 * mach/Makefile (lock-headers): Remove machine-lock.h.
14658 * mach/lock-intern.h: Include <lowlevellock.h> instead of
14659 <machine-lock.h>.
14660 (__spin_lock_t): New type.
14661 (__SPIN_LOCK_INITIALIZER): New macro.
14662 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
14663 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
14664 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
14665 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
14666 (__mutex_init): Initialize with lll.
14667 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
14668 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
14669 needing lll.
14670 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14671 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
14672 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
14673 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
14674 (__setpgid): Use lll for synchronization.
14675 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
14676 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
14677 instead of <cthreads.h>.
14678 (_IO_lock_inexpensive): New macro
14679 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
14680 (__libc_lock_self0): New declaration.
14681 (__libc_lock_owner_self): New macro.
14682 (__libc_key_t): Remove type.
14683 (_LIBC_LOCK_INITIALIZER): New macro.
14684 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
14685 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
14686 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
14687 __libc_lock_define_initialized_recursive,
14688 __rtld_lock_define_initialized_recursive,
14689 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
14690 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
14691 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
14692 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
14693 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
14694 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
14695 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
14696 New macros.
14697 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
14698 * hurd/hurdlock.c: New file.
14699 * hurd/hurdlock.h: New file.
14700 * mach/lowlevellock.h: New file
14701
14702 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
14703
14704 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
14705 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
14706 when opening a symlink with O_NOFOLLOW.
14707 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
14708 path when flags contains O_NOFOLLOW.
14709 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
14710 if flags contains O_DIRECTORY and the result is a directory.
14711 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
14712 oneself when the pointer given in D is nul (as set by ext2fs).
14713 * sysdeps/mach/hurd/mlockall.c: New file.
14714 * sysdeps/mach/hurd/munlockall.c: New file.
14715
14716 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
14717
14718 * hurd/hurdsig.c: Include <pthread.h>.
14719 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
14720 get the signal thread stack layout.
14721 * hurd/Makefile (headers): Remove threadvar.h.
14722 (inline-headers): Remove threadvar.h.
14723 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
14724 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
14725 __hurd_threadvar_max, __hurd_errno_location.
14726 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
14727 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
14728 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
14729 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
14730 unless TLS is not initialized yet, in which case we do not need a
14731 critical section yet anyway.
14732 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
14733 <machine-sp.h>.
14734 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
14735 declarations.
14736 (__hurd_threadvar_index): Remove enum.
14737 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
14738 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
14739 inlines.
14740 (__hurd_reply_port0): New variable declaration.
14741 (__hurd_local_reply_port): New macro.
14742 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
14743 (interrupted_reply_port_location): Add thread_t parameter. Use it
14744 with THREAD_TCB to access thread-local variables.
14745 (_hurdsig_abort_rpcs): Pass ss->thread to
14746 interrupted_reply_port_location.
14747 (_hurd_internal_post_signal): Likewise.
14748 (_hurdsig_init): Use presence of cthread_fork instead of
14749 __hurd_threadvar_stack_mask to start signal thread by hand.
14750 Remove signal thread threadvar initialization.
14751 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
14752 * hurd/sigunwind.c: Include <hurd/threadvar.h>
14753 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
14754 of threadvar.
14755 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
14756 __libc_lock_self0.
14757 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
14758 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
14759 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
14760 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
14761 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
14762 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
14763 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
14764 define variables.
14765 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
14766 <hurd/threadvar.h>.
14767 [IS_IN(rtld)] (rtld_errno): New variable.
14768 [IS_IN(rtld)] (__errno_location): New weak function.
14769 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
14770 * sysdeps/mach/hurd/errno.c: Remove file.
14771 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
14772 (__fork): Remove THREADVAR_SPACE macro and its use.
14773 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
14774 variable.
14775 (init): Do not initialize threadvar.
14776 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
14777 symbol.
14778 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
14779 __hurd_local_reply_port instead of threadvar.
14780 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
14781 _hurd_sigstate fields.
14782 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
14783 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
14784 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
14785 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
14786 instead of threadvar.
14787 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
14788 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
14789 (use_threadvar, global_reply_port): Remove variables.
14790 (__hurd_reply_port0): New variable.
14791 (__mig_get_reply_port): Use __hurd_local_reply_port and
14792 __hurd_reply_port0 instead of threadvar.
14793 (__mig_dealloc_reply_port): Likewise.
14794 (__mig_init): Do not initialize threadvar.
14795 * sysdeps/mach/hurd/profil.c: Fix comment.
14796 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
14797 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
14798 cthread_keycreate, cthread_getspecific, cthread_setspecific to
14799 __cthread_fork, __cthread_detach, __pthread_getattr_np,
14800 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
14801 __cthread_setspecific.
14802 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
14803 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
14804 __cthread_t instead of cthread_fork, cthread_detach,
14805 pthread_getattr_np, pthread_attr_getstack.
14806 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
14807 __cthread_keycreate.
14808 (cthread_getspecific): Rename to __cthread_getspecific.
14809 (cthread_setspecific): Rename to __cthread_setspecific.
14810 (__libc_getspecific): Use __cthread_getspecific instead of
14811 cthread_getspecific.
14812 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
14813 __cthread_keycreate instead of cthread_keycreate.
14814 (__libc_setspecific): Use __cthread_setspecific instead of
14815 cthread_setspecific.
14816 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
14817 Likewise.
14818 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
14819 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
14820 testing whether it is defined.
14821
14822 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
14823
14824 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
14825 Define macro.
14826 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
14827 * sysdeps/mach/i386/thread_state.h
14828 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
14829 i386_THREAD_STATE.
14830 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
14831 i386_THREAD_STATE.
14832 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
14833
14834 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
14835 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
14836
14837 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
14838 macros.
14839 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
14840 descriptor instead of creating a new one.
14841 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
14842
14843 * mach/setup-thread.c: Include <ldsodefs.h>.
14844 (__mach_setup_thread): Call _dl_allocate_tls, pass
14845 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
14846 MACHINE_THREAD_STATE_FLAVOR, before getting
14847 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
14848 MACHINE_THREAD_STATE_FLAVOR with the result.
14849 * hurd/hurdfault.c (_hurdsig_fault_init): Call
14850 MACHINE_THREAD_STATE_FIX_NEW.
14851 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
14852 too. Add original thread parameter.
14853
14854 2018-03-16 Joseph Myers <joseph@codesourcery.com>
14855
14856 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
14857 Remove inline function.
14858
14859 * sysdeps/i386/fpu/libm-test-ulps: Update.
14860 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
14861
14862 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
14863
14864 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
14865 commit.
14866
14867 2018-03-15 Joseph Myers <joseph@codesourcery.com>
14868
14869 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
14870 (__sincos_code): Remove define and undefine.
14871 [__FAST_MATH__] (__sincos): Remove inline function.
14872 [__FAST_MATH__] (__sincosf): Remove inline function.
14873 [__FAST_MATH__] (__sincosl): Remove inline function.
14874 (__atan2l): Remove inline functions.
14875 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
14876 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
14877 function.
14878 (floor): Remove inline function.
14879 (ceil): Likewise.
14880 [__FAST_MATH__] (__ldexp_code): Remove macro.
14881 [__FAST_MATH__] (ldexp): Remove inline function.
14882 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
14883 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
14884 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
14885 [__USE_ISOC99] (__lrint_code): Remove macro.
14886 [__USE_ISOC99] (__llrint_code): Likewise.
14887 [__USE_ISOC99] (lrintf): Remove inline function.
14888 [__USE_ISOC99] (lrint): Likewise.
14889 [__USE_ISOC99] (lrintl): Likewise.
14890 [__USE_ISOC99] (llrint): Likewise.
14891 [__USE_ISOC99] (llrintf): Likewise.
14892 [__USE_ISOC99] (llrintl): Likewise.
14893
14894 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14895
14896 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
14897 (__ieee754_sqrtf): Remove.
14898 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
14899 (__ieee754_sqrtf): Remove.
14900 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
14901 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14902 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
14903 (__ieee754_sqrtf): Remove.
14904 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
14905 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
14906 (sqrtf): Remove.
14907 (sqrtl): Remove.
14908 (__ieee754_sqrt): Remove.
14909 (__ieee754_sqrtf): Remove.
14910 (__ieee754_sqrtl): Remove.
14911 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14912 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
14913 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
14914 (__ieee754_sqrtf): Remove.
14915 (__ieee754_sqrtl): Remove.
14916
14917 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14918
14919 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
14920 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
14921 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
14922 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
14923 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
14924 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
14925 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
14926 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
14927 Likewise.
14928 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
14929 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
14930 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
14931 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
14932 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
14933 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
14934 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
14935 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
14936 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
14937 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
14938 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
14939 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
14940 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
14941 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
14942 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
14943 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
14944 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
14945 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
14946 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
14947 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
14948 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
14949 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
14950 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
14951 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
14952 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
14953 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
14954 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
14955 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
14956 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
14957 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
14958 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
14959 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
14960 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
14961 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
14962 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14963 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
14964 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
14965 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
14966 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
14967 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
14968
14969 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14970
14971 * include/math.h (sqrt): Declare with asm redirect.
14972 (sqrtf): Likewise.
14973 (sqrtl): Likewise.
14974 (sqrtf128): Likewise.
14975 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
14976 nonlib and libnldbl with -fmath-errno.
14977 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
14978 * math/w_sqrt_template.c: Likewise.
14979 * math/w_sqrtf_compat.c: Likewise.
14980 * math/w_sqrtl_compat.c: Likewise.
14981 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
14982 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
14983 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
14984 complex.h.
14985
14986 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14987
14988 * benchtests/Makefile: Define _ISOMAC.
14989 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
14990 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
14991 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
14992 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
14993 * benchtests/bench-timing.h: Define attribute_hidden.
14994
14995 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
14996
14997 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
14998 mov + lsr.
14999
15000 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
15001
15002 [BZ #22963]
15003 * localedata/locales/cs_CZ (mon): Rename to...
15004 (alt_mon): This.
15005 (mon): Import from CLDR (genitive case).
15006
15007 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
15008
15009 [BZ #22937]
15010 * localedata/locales/el_CY (abmon): Rename to...
15011 (ab_alt_mon): This.
15012 (abmon): Import from CLDR (abbreviated genitive case).
15013 * localedata/locales/el_GR (abmon): Rename to...
15014 (ab_alt_mon): This.
15015 (abmon): Import from CLDR (abbreviated genitive case).
15016
15017 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
15018
15019 [BZ #22932]
15020 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
15021
15022 2018-03-15 Robert Buj <robert.buj@gmail.com>
15023
15024 [BZ #22848]
15025 * localedata/locales/ca_ES (abmon): Rename to...
15026 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
15027 (mon): Rename to...
15028 (alt_mon): This.
15029 (abmon): Import from CLDR (genitive case, month names preceded by
15030 "de" or "d’").
15031 (mon): Likewise.
15032 (abday): Synchronize with CLDR.
15033 (d_t_fmt): Likewise.
15034 (d_fmt): Likewise.
15035 (am_pm): Likewise.
15036
15037 (LC_TIME): Improve indentation.
15038 (LC_TELEPHONE): Likewise.
15039 (LC_NAME): Likewise.
15040 (LC_ADDRESS): Likewise.
15041
15042 2018-03-14 Joseph Myers <joseph@codesourcery.com>
15043
15044 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
15045 (lrintf): Remove definitions used only with old GCC.
15046 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
15047 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
15048 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
15049 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
15050 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
15051 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
15052 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
15053 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
15054 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
15055 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
15056 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
15057 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
15058 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
15059 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
15060 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
15061 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
15062 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
15063 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
15064 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
15065 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
15066 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
15067 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
15068 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
15069 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
15070 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
15071 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
15072 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
15073 [__FAST_MATH__] (__M_SQRT2): Remove macro.
15074
15075 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
15076
15077 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
15078 instruction to unbreak builds with binutils 2.26 and older.
15079
15080 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
15081
15082 * sysdeps/aarch64/strncmp.S (count): New macro.
15083 (strncmp): Store misaligned length in SRC1 in COUNT.
15084 (mutual_align): Adjust.
15085 (misaligned8): Load dword at a time when it is safe.
15086
15087 2018-03-12 Zack Weinberg <zackw@panix.com>
15088
15089 [BZ #1190]
15090 [BZ #19476]
15091 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
15092 if the _IO_EOF_SEEN bit is already set; update commentary.
15093 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
15094 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
15095
15096 * support/support_openpty.c, support/tty.h: New files.
15097 * support/Makefile (libsupport-routines): Add support_openpty.
15098
15099 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
15100 New test cases.
15101 * libio/Makefile (tests): Add tst-fgetc-after-eof.
15102 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
15103
15104 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
15105
15106 * po/pt_BR.po: Update translations.
15107
15108 2018-03-12 David Michael <fedora.dm0@gmail.com>
15109
15110 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
15111 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
15112 get a port to the startup server.
15113
15114 2018-03-11 Zack Weinberg <zackw@panix.com>
15115
15116 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
15117 before nldbl-compat.h.
15118
15119 2018-03-10 Zack Weinberg <zackw@panix.com>
15120
15121 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
15122 math.h or math_private.h.
15123
15124 * sysdeps/alpha/fpu/s_isnan.c
15125 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
15126 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
15127 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
15128 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
15129 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
15130 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
15131 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
15132 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
15133 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
15134 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
15135 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
15136 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
15137 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
15138 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
15139 Include math_private.h.
15140
15141 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
15142 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
15143 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
15144 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
15145 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
15146 * sysdeps/powerpc/power7/fpu/s_logb.c:
15147 Include math.h and math_private.h.
15148
15149 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
15150 uses of $at in .set noat / .set at.
15151
15152 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
15153
15154 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
15155 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
15156 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
15157 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
15158 Likewise.
15159
15160 2018-03-09 Florian Weimer <fweimer@redhat.com>
15161
15162 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
15163 in comment.
15164
15165 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
15166
15167 [BZ #22919]
15168 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
15169 Add nop before __startcontext, add explaining comments.
15170
15171 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15172
15173 [BZ #22926]
15174 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
15175 empty for __SPE__.
15176 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
15177 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
15178 Do not build hardware transactional code for __SPE__.
15179 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
15180 (__lll_trylock_elision): Likewise.
15181 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
15182 (__lll_unlock_elision): Likewise.
15183
15184 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
15185 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
15186 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
15187 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
15188 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
15189 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
15190 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
15191 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
15192 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
15193 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
15194 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
15195 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
15196 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
15197 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
15198 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
15199 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
15200 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
15201 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
15202 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
15203 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
15204 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
15205 * sysdeps/unix/sysv/linux/arm/kernel-features.h
15206 (__ASSUME_CLONE_BACKWARDS): Define.
15207 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
15208 __clone2 if __NR_clone2 is defined.
15209 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
15210 (__ASSUME_CLONE_BACKWARDS): Likewise.
15211 * sysdeps/unix/sysv/linux/i386/kernel-features.h
15212 (__ASSUME_CLONE_BACKWARDS): Likewise.
15213 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
15214 (__ASSUME_CLONE2): Likewise.
15215 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
15216 (__ASSUME_CLONE_BACKWARDS3): Likewise.
15217 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
15218 variants and the define architecture can use.
15219 (__ASSUME_CLONE_DEFAULT): Define as default.
15220 * sysdeps/unix/sysv/linux/mips/kernel-features.h
15221 (__ASSUME_CLONE_BACKWARDS): Likewise.
15222 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
15223 (__ASSUME_CLONE_BACKWARDS): Likewise.
15224 * sysdeps/unix/sysv/linux/s390/kernel-features.h
15225 (__ASSUME_CLONE_BACKWARDS2): Likewise.
15226
15227 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
15228
15229 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
15230
15231 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
15232 time.
15233
15234 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
15235 (do_test_limit): Likewise.
15236
15237 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
15238 for every implementation.
15239 (do_test): Likewise.
15240
15241 * benchtests/bench-strncmp.c: Convert output to json.
15242
15243 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
15244
15245 * io/futimens.c: Add missing start-of-file descriptive comment.
15246 * io/utime.c: Likewise.
15247 * misc/futimesat.c: Likewise.
15248 * misc/utimes.c: Likewise.
15249 * sysdeps/mach/hurd/futimesat.c: Likewise.
15250 * sysdeps/mach/hurd/utimes.c: Likewise.
15251 * sysdeps/posix/utime.c: Likewise.
15252 * sysdeps/posix/utimes.c: Likewise.
15253 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
15254 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
15255 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
15256 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
15257
15258 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
15259
15260 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
15261 hurd_futimes.
15262 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
15263 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
15264 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
15265 (__futimens): Move implementation to...
15266 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
15267 utime_tvalue_from_tspec): ... new helper functions.
15268 (hurd_futimens): New function.
15269 * sysdeps/mach/hurd/futimesat.c: New file.
15270 * sysdeps/mach/hurd/utimensat.c: New file.
15271
15272 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
15273
15274 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
15275 UTIME_OMIT): New macros.
15276 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
15277 before reverting to converting time spec to time value and calling
15278 __file_utimes.
15279 * sysdeps/mach/hurd/utime-helper.c: New file.
15280 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
15281 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
15282 reverting to utime_tvalue_from_tval and __file_utimes.
15283 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
15284 (__lutimes): Just call hurd_futimens after lookup.
15285 * sysdeps/mach/hurd/utimes.c: Likewise.
15286
15287 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
15288
15289 * bits/sigaction.h: Add include guard.
15290 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
15291 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
15292 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
15293 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
15294 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
15295 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
15296 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
15297 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
15298 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
15299
15300 2018-03-05 Joseph Myers <joseph@codesourcery.com>
15301
15302 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
15303 -Wmaybe-uninitialized for -Os.
15304 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
15305 this disabling.
15306
15307 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15308
15309 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
15310 __INO_T_MATCHES_INO64_T is defined.
15311 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
15312 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
15313 of definition.
15314 * dirent/alphasort64.c: Likewise.
15315 * dirent/scandir.c: Likewise.
15316 * dirent/scandir64-tail.c: Likewise.
15317 * dirent/scandir64.c: Likewise.
15318 * dirent/scandirat.c: Likewise.
15319 * dirent/scandirat64.c: Likewise.
15320 * dirent/versionsort.c: Likewise.
15321 * dirent/versionsort64.c: Likewise.
15322 * include/dirent.h: Likewise.
15323
15324 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
15325 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
15326 for socketpair endpoint.
15327 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
15328 WRITE_BUFFER_SIZE as buffer size for sending socket.
15329 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
15330 issue on system where send is implemented with sendto syscall.
15331 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
15332 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
15333 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
15334 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
15335
15336 [BZ #21269]
15337 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
15338 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
15339 sa_restorer for vDSO case.
15340 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
15341
15342 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
15343
15344 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
15345 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
15346 * hurd/hurd/ioctl.h: Include <mach/port.h>
15347 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
15348 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
15349 <mach/mach_types.h> and <mach/message.h>.
15350 (headers): Move mach/param.h to bits/mach/param.h.
15351 * sysdeps/mach/i386/mach/param.h: Move file to ...
15352 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
15353 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
15354 of <mach/param.h>.
15355 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
15356 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
15357 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
15358 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
15359 trivial, for C++ conformity.
15360 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
15361 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
15362 Process mig output through $(migheadersed).
15363 * hurd/Makefile (migheadersed): Define variable.
15364 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
15365 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
15366 headers.
15367 * hurd/hurd.h: Include <bits/types/sigset_t.h>
15368 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
15369 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
15370 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
15371 <bits/types/sigset_t.h>.
15372 [!defined __USE_GNU]: Do not #error out.
15373 (struct hurd_sigstate): Use _NSIG instead of NSIG.
15374 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
15375 Include <stddef.h> and <bits/types/sigset_t.h>
15376 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
15377 instead of sighandler_t.
15378 * stdlib/errno.h (error_t): Move definition to...
15379 * bits/types/error_t.h: ... new header.
15380 * stdlib/Makefile (headers): Add bits/types/error_t.h.
15381 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
15382 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
15383 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
15384 * hurd/hurd.h: Include <bits/types/error_t.h>
15385 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
15386 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
15387 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
15388 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
15389 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
15390 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
15391 * sysdeps/mach/hurd/futimens.c: New file.
15392
15393 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
15394
15395 [BZ #22918]
15396 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
15397 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
15398 * nscd/gai.c (__nss_hosts_database): Readd definition.
15399 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
15400 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
15401 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
15402
15403 2018-03-02 Joseph Myers <joseph@codesourcery.com>
15404
15405 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
15406 (ifunc_one): Likewise.
15407
15408 2018-03-01 DJ Delorie <dj@delorie.com>
15409
15410 [BZ #22342]
15411 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
15412 key value.
15413
15414 2018-03-01 Maciej W. Rozycki <macro@mips.com>
15415
15416 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
15417 `match_pid' parameter.
15418 (td_ta_thr_iter): Update accordingly.
15419
15420 2018-03-01 Florian Weimer <fweimer@redhat.com>
15421
15422 * nptl/Makefile (install-lib-ldscripts): Remove.
15423 (install): Remove rule.
15424 ($(inst_libdir)/libpthread.so): Likewise.
15425
15426 2018-03-01 Mike FABIAN <mfabian@redhat.com>
15427
15428 [BZ #22896]
15429 * localedata/locales/an_ES: update month and day names,
15430 improve d_fmt, improve postal_fmt, add country_post,
15431 add country_isbn
15432
15433 2018-03-01 Mike FABIAN <mfabian@redhat.com>
15434
15435 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
15436 Ukrainian instead of Bulgarian.
15437
15438 2018-03-01 Florian Weimer <fweimer@redhat.com>
15439
15440 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
15441 reference.
15442
15443 2018-03-01 Florian Weimer <fweimer@redhat.com>
15444
15445 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
15446 * nptl/Makefile (routines): Add pthread_atfork.
15447 (static-only-routines): Set to pthread_atfork.
15448 (libpthread-routines): Remove pthread_atfork.
15449 (libpthread-static-only-routines): Remove.
15450 (install): Update comment.
15451 (libpthread.so): Do not install libpthread_nonshared.a.
15452 (tests): Do not link with libpthread_nonshared.a.
15453 (generated): Remove libpthread_nonshared.a.
15454 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
15455 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
15456 with libpthread_nonshared.a.
15457
15458 2018-02-28 Joseph Myers <joseph@codesourcery.com>
15459
15460 [BZ #22902]
15461 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
15462 (libc_feholdexcept_setroundf128): New macro.
15463 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
15464
15465 [BZ #15105]
15466 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
15467 libc_hidden_def.
15468 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
15469 * include/inttypes.h: New file.
15470
15471 2018-02-27 Joseph Myers <joseph@codesourcery.com>
15472
15473 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
15474 -Os in two more places.
15475
15476 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15477
15478 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
15479 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
15480 be sorted correctly at the moment because of a bug.
15481
15482 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15483
15484 [BZ #22550] - es_ES locale (and other es_* locales): collation should
15485 treat ñ as a primary different character, sync the collation
15486 for Spanish with CLDR.
15487 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
15488 * localedata/Makefile: Add new test files.
15489 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
15490 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
15491 collation order.
15492 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
15493 * localedata/am_ET.UTF-8.in: New test file.
15494 * localedata/az_AZ.UTF-8.in: Likewise.
15495 * localedata/be_BY.UTF-8.in: Likewise.
15496 * localedata/ber_DZ.UTF-8.in: Likewise.
15497 * localedata/ber_MA.UTF-8.in: Likewise.
15498 * localedata/bg_BG.UTF-8.in: Likewise.
15499 * localedata/br_FR.UTF-8.in: Likewise.
15500 * localedata/cmn_TW.UTF-8.in: Likewise.
15501 * localedata/crh_UA.UTF-8.in: Likewise.
15502 * localedata/csb_PL.UTF-8.in: Likewise.
15503 * localedata/cv_RU.UTF-8.in: Likewise.
15504 * localedata/cy_GB.UTF-8.in: Likewise.
15505 * localedata/dz_BT.UTF-8.in: Likewise.
15506 * localedata/eo.UTF-8.in: Likewise.
15507 * localedata/es_ES.UTF-8.in: Likewise.
15508 * localedata/fa_IR.UTF-8.in: Likewise.
15509 * localedata/fi_FI.UTF-8.in: Likewise.
15510 * localedata/fil_PH.UTF-8.in: Likewise.
15511 * localedata/fur_IT.UTF-8.in: Likewise.
15512 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
15513 * localedata/ha_NG.UTF-8.in: Likewise.
15514 * localedata/ig_NG.UTF-8.in: Likewise.
15515 * localedata/ik_CA.UTF-8.in: Likewise.
15516 * localedata/kk_KZ.UTF-8.in: Likewise.
15517 * localedata/ku_TR.UTF-8.in: Likewise.
15518 * localedata/ky_KG.UTF-8.in: Likewise.
15519 * localedata/ln_CD.UTF-8.in: Likewise.
15520 * localedata/mi_NZ.UTF-8.in: Likewise.
15521 * localedata/ml_IN.UTF-8.in: Likewise.
15522 * localedata/mn_MN.UTF-8.in: Likewise.
15523 * localedata/mr_IN.UTF-8.in: Likewise.
15524 * localedata/mt_MT.UTF-8.in: Likewise.
15525 * localedata/nb_NO.UTF-8.in: Likewise.
15526 * localedata/om_KE.UTF-8.in: Likewise.
15527 * localedata/os_RU.UTF-8.in: Likewise.
15528 * localedata/ps_AF.UTF-8.in: Likewise.
15529 * localedata/ro_RO.UTF-8.in: Likewise.
15530 * localedata/ru_RU.UTF-8.in: Likewise.
15531 * localedata/sc_IT.UTF-8.in: Likewise.
15532 * localedata/se_NO.UTF-8.in: Likewise.
15533 * localedata/sq_AL.UTF-8.in: Likewise.
15534 * localedata/sv_SE.UTF-8.in: Likewise.
15535 * localedata/szl_PL.UTF-8.in: Likewise.
15536 * localedata/tg_TJ.UTF-8.in: Likewise.
15537 * localedata/tk_TM.UTF-8.in: Likewise.
15538 * localedata/tt_RU.UTF-8.in: Likewise.
15539 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
15540 * localedata/ug_CN.UTF-8.in: Likewise.
15541 * localedata/uz_UZ.UTF-8.in: Likewise.
15542 * localedata/vi_VN.UTF-8.in: Likewise.
15543 * localedata/yi_US.UTF-8.in: Likewise.
15544 * localedata/yo_NG.UTF-8.in: Likewise.
15545 * localedata/zh_CN.UTF-8.in: Likewise.
15546 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
15547 file and fix bugs in the collation.
15548 * localedata/locales/az_AZ: Likewise.
15549 * localedata/locales/be_BY: Likewise.
15550 * localedata/locales/ber_DZ: Likewise.
15551 * localedata/locales/ber_MA: Likewise.
15552 * localedata/locales/bg_BG: Likewise.
15553 * localedata/locales/br_FR: Likewise.
15554 * localedata/locales/br_FR@euro: Likewise.
15555 * localedata/locales/ca_ES: Likewise.
15556 * localedata/locales/cns11643_stroke: Likewise.
15557 * localedata/locales/crh_UA: Likewise.
15558 * localedata/locales/cs_CZ: Likewise.
15559 * localedata/locales/csb_PL: Likewise.
15560 * localedata/locales/cv_RU: Likewise.
15561 * localedata/locales/cy_GB: Likewise.
15562 * localedata/locales/da_DK: Likewise.
15563 * localedata/locales/dz_BT: Likewise.
15564 * localedata/locales/en_CA: Likewise.
15565 * localedata/locales/eo: Likewise.
15566 * localedata/locales/es_CU: Likewise.
15567 * localedata/locales/es_EC: Likewise.
15568 * localedata/locales/es_ES: Likewise.
15569 * localedata/locales/es_US: Likewise.
15570 * localedata/locales/et_EE: Likewise.
15571 * localedata/locales/fa_IR: Likewise.
15572 * localedata/locales/fi_FI: Likewise.
15573 * localedata/locales/fil_PH: Likewise.
15574 * localedata/locales/fur_IT: Likewise.
15575 * localedata/locales/gez_ER@abegede: Likewise.
15576 * localedata/locales/ha_NG: Likewise.
15577 * localedata/locales/hr_HR: Likewise.
15578 * localedata/locales/hsb_DE: Likewise.
15579 * localedata/locales/hu_HU: Likewise.
15580 * localedata/locales/ig_NG: Likewise.
15581 * localedata/locales/ik_CA: Likewise.
15582 * localedata/locales/is_IS: Likewise.
15583 * localedata/locales/iso14651_t1_pinyin: Likewise.
15584 * localedata/locales/kk_KZ: Likewise.
15585 * localedata/locales/ku_TR: Likewise.
15586 * localedata/locales/ky_KG: Likewise.
15587 * localedata/locales/ln_CD: Likewise.
15588 * localedata/locales/lt_LT: Likewise.
15589 * localedata/locales/lv_LV: Likewise.
15590 * localedata/locales/mi_NZ: Likewise.
15591 * localedata/locales/ml_IN: Likewise.
15592 * localedata/locales/mn_MN: Likewise.
15593 * localedata/locales/mr_IN: Likewise.
15594 * localedata/locales/mt_MT: Likewise.
15595 * localedata/locales/nb_NO: Likewise.
15596 * localedata/locales/om_KE: Likewise.
15597 * localedata/locales/os_RU: Likewise.
15598 * localedata/locales/pl_PL: Likewise.
15599 * localedata/locales/ps_AF: Likewise.
15600 * localedata/locales/ro_RO: Likewise.
15601 * localedata/locales/ru_RU: Likewise.
15602 * localedata/locales/ru_UA: Likewise.
15603 * localedata/locales/sc_IT: Likewise.
15604 * localedata/locales/se_NO: Likewise.
15605 * localedata/locales/si_LK: Likewise.
15606 * localedata/locales/sq_AL: Likewise.
15607 * localedata/locales/sv_FI: Likewise.
15608 * localedata/locales/sv_FI@euro: Likewise.
15609 * localedata/locales/sv_SE: Likewise.
15610 * localedata/locales/szl_PL: Likewise.
15611 * localedata/locales/tg_TJ: Likewise.
15612 * localedata/locales/ti_ER: Likewise.
15613 * localedata/locales/tk_TM: Likewise.
15614 * localedata/locales/tl_PH: Likewise.
15615 * localedata/locales/tr_TR: Likewise.
15616 * localedata/locales/tt_RU: Likewise.
15617 * localedata/locales/tt_RU@iqtelif: Likewise.
15618 * localedata/locales/ug_CN: Likewise.
15619 * localedata/locales/uk_UA: Likewise.
15620 * localedata/locales/uz_UZ: Likewise.
15621 * localedata/locales/uz_UZ@cyrillic: Likewise.
15622 * localedata/locales/vi_VN: Likewise.
15623 * localedata/locales/yi_US: Likewise.
15624 * localedata/locales/yo_NG: Likewise.
15625
15626 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15627
15628 * gen-locales.mk: Make test files which contain @ modifiers in their
15629 name work.
15630 * localedata/gen-locale.sh: Likewise.
15631
15632 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15633
15634 * posix/tst-fnmatch.input: Fix results for range expressions
15635 for non C locales.
15636 * posix/tst-regexloc.c: Do not use a range expression for
15637 de_DE.ISO-8859-1 locale.
15638
15639 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15640
15641 * posix/bug-regex5.c: Fix test case because with the new
15642 iso14651_t1_common file, the da_DK locale now has 6 collating elements
15643 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
15644 file.
15645
15646 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15647
15648 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
15649 downloaded from ISO, the collation order of @-. and space has changed.
15650 Therefore, this test file needed to be adapted.
15651 * localedata/fr_CA.UTF-8.in: Likewise.
15652 * localedata/fr_FR.UTF-8.in: Likewise.
15653 * localedata/uk_UA.UTF-8.in: Likewise.
15654
15655 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15656
15657 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
15658 order of ȥ in the new iso14651_t1_common file.
15659 * localedata/pl_PL.UTF-8.in: Likewise.
15660
15661 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15662
15663 * localedata/locales/iso14651_t1_common: Add sections for various
15664 scripts to the iso14651_t1_common file.
15665
15666 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15667
15668 * localedata/locales/iso14651_t1_common: Use the code point of a
15669 character in the fourth collation level instead of IGNORE for all
15670 entries which have IGNORE on all 4 levels.
15671
15672 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15673
15674 * localedata/locales/iso14651_t1_common: Add some convenient collation
15675 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
15676 rules similar to those in CLDR.
15677
15678 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15679
15680 * localedata/locales/iso14651_t1_common: The new version of this
15681 file downloaded from ISO contained several syntax errors which
15682 are fixed by this patch.
15683
15684 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15685
15686 * localedata/locales/iso14651_t1_common: replace all <U.....>
15687 with <U000.....> because glibc understands only 4 digit or 8 digit
15688
15689 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15690
15691 * localedata/locales/iso14651_t1_common: Necessary changes
15692 to make the file downloaded from ISO usable by glibc.
15693
15694 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15695
15696 [BZ #14095]
15697 * localedata/locales/iso14651_t1_common: Update file to
15698 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
15699
15700 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
15701
15702 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
15703 of <nptl/pthreadP.h>
15704 (thread_attr_compare): Move function to...
15705 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
15706 * sysdeps/nptl/timer_routines.h: ... new header.
15707 * sysdeps/mach/hurd/gai_misc.h: New file.
15708
15709 2018-02-26 Joseph Myers <joseph@codesourcery.com>
15710
15711 * string/strcoll_l.c: Include <libc-diag.h>.
15712 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
15713 declarations of seq1 and seq2.
15714
15715 [BZ #15105]
15716 * stdlib/atoi.c (atoi): Use libc_hidden_def.
15717 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
15718
15719 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
15720
15721 [BZ #22433]
15722 [BZ #22807]
15723 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
15724 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
15725 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
15726 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
15727 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
15728 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
15729
15730 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15731
15732 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
15733 macros used in __ptrace_request.
15734
15735 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
15736
15737 [BZ #22792]
15738 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
15739 to $(CC).
15740 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
15741 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
15742 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
15743 <tcb-offsets.h>.
15744
15745 2018-02-23 Joseph Myers <joseph@codesourcery.com>
15746
15747 [BZ #15105]
15748 * ctype/ctype.c (tolower): Use libc_hidden_def.
15749 (toupper): Likewise.
15750 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
15751 [!_ISOMAC] (toupper): Likewise.
15752
15753 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15754
15755 * localedata/Makefile: Remove --quiet argument when
15756 installing locales
15757
15758 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15759
15760 [BZ #17438]
15761 * localedata/locales/pt_BR (LC_TIME): use / instead of -
15762 in d_fmt.
15763 * localedata/locales/pt_PT (LC_TIME): likewise
15764
15765 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15766
15767 [BZ #22646]
15768 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
15769 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
15770 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
15771
15772 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15773
15774 * sysdeps/sparc/fpu/libm-test-ulps: Update.
15775
15776 * nptl/Makefile (routines): Remove unregister-atfork.
15777 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
15778 (fork_handler_alloc): Remove function.
15779 (fork_handlers, fork_handler_init): New variables.
15780 (__fork_lock): Rename to atfork_lock.
15781 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
15782 to use a dynamic array to add/remove atfork handlers.
15783 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
15784 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
15785 Remove declaration.
15786 (fork_handler): Remove next, refcntr, and need_signal member.
15787 (__run_fork_handler_type): New enum.
15788 (__run_fork_handlers): New prototype.
15789 * nptl/register-atfork.c: Remove file.
15790 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
15791
15792 * sysdeps/nptl/nptl-signals.h: Move to ...
15793 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
15794 comments.
15795 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
15796 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
15797 unnecessary check for SIGTIMER.
15798 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
15799 remove unnecessary removal of SIGTIMER.
15800 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
15801 include-signals.h rename.
15802 * nptl/pthreadP.h: Likewise.
15803 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
15804 __is_internal_signal instead of __nptl_is_internal_signal.
15805
15806 2018-02-22 Andrew Waterman <andrew@sifive.com>
15807
15808 [BZ # 22884]
15809 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
15810 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
15811 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
15812 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
15813
15814 2018-02-22 DJ Delorie <dj@delorie.com>
15815
15816 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
15817
15818 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
15819
15820 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
15821 do_misaligned, not misaligned8.
15822
15823 2018-02-22 Steve Ellcey <sellcey@cavium.com>
15824
15825 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
15826 Add memcpy_thunderx2.
15827 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
15828 Increment to 4.
15829 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
15830 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
15831 and IS_THUNDERX2PA checks.
15832 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
15833 Use macro to set name appropriately.
15834 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
15835 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
15836 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
15837 New macro.
15838 (IS_THUNDERX2): New macro.
15839
15840 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
15841
15842 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15843
15844 2018-02-21 Zack Weinberg <zackw@panix.com>
15845
15846 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
15847 Define here, unconditionally.
15848 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
15849 * libio/libioP.h: Remove #if 0 blocks.
15850 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
15851 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
15852 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
15853
15854 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
15855 Assume weak_alias is always defined.
15856
15857 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
15858 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
15859 Remove #if 0 and #ifdef TODO blocks.
15860 Assume text_set_element is always defined.
15861
15862 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
15863 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
15864 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
15865
15866 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
15867 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
15868 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
15869 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
15870 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
15871 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
15872 Reformat bit flags for _flags field to make occupancy clearer.
15873 Update commentary.
15874 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
15875 Keep definitions consistent with those in libio/libio.h.
15876
15877 * libio/libio.h (_IO_file_flags): Remove macro.
15878 All uses changed to _flags.
15879
15880 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
15881 (__HAVE_COLUMN, _IO_BE): Don't define.
15882 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
15883 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
15884 * libio/libioP.h (EOF): Don't define.
15885 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
15886 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
15887 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
15888 testing _IO_UNIFIED_JUMPTABLES.
15889
15890 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
15891 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
15892 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
15893 (_IO_size_t): Delete; all uses changed to size_t.
15894 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
15895 (_IO_off_t): Delete; all uses changed to off_t.
15896 (_IO_off64_t): Delete; all uses changed to off64_t.
15897 (_IO_pid_t): Delete; all uses changed to pid_t.
15898 (_IO_uid_t): Delete; all uses changed to uid_t.
15899 (_IO_wint_t): Delete; all uses changed to wint_t.
15900 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
15901 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
15902 (_IO_cookie_io_functions_t): Delete; all uses changed to
15903 cookie_io_functions_t.
15904 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
15905 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
15906 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
15907 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
15908
15909 * libio/iofopncook.c: Remove unnecessary forward declarations.
15910 * libio/iolibio.h: Correct outdated commentary.
15911 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
15912 * stdio-common/fxprintf.c (__fxprintf_nocancel):
15913 Remove unnecessary casts.
15914 * stdio-common/getline.c: Use _IO_getdelim directly.
15915 Don't redefine ssize_t.
15916 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
15917 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
15918 Remove outdated comments.
15919 * stdio-common/vfscanf.c: Don't redefine va_list.
15920
15921 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
15922 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
15923 Remove preprocessor conditionals on _LIBC and __USE_GNU,
15924 which are always true, and __cplusplus, which is always false.
15925
15926 2018-02-21 Joseph Myers <joseph@codesourcery.com>
15927
15928 [BZ #15105]
15929 [BZ #19463]
15930 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
15931 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
15932 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
15933 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
15934 libc_hidden_proto.
15935 [!_ISOMAC] (putc_unlocked): Likewise.
15936 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
15937 define inline if [__USE_EXTERN_INLINES].
15938 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
15939 putc_unlocked.
15940
15941 [BZ #15105]
15942 [BZ #19463]
15943 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
15944 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
15945 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
15946 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
15947 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
15948 getc_unlocked.
15949 * time/tzfile.c (__tzfile_read): Likewise.
15950
15951 2018-02-21 Mike FABIAN <mfabian@redhat.com>
15952
15953 [BZ #22517]
15954 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
15955
15956 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
15957
15958 * io/fcntl.h: Fix a typo in a comment.
15959
15960 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
15961
15962 [BZ #22862]
15963 * include/features.h: Add _ISOC11_SOURCE to test for whether to
15964 define _DEFAULT_SOURCE.
15965 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
15966
15967 2018-02-21 Florian Weimer <fweimer@redhat.com>
15968
15969 [BZ #20890]
15970 * elf/cache.c (save_cache): Call fsync on temporary file before
15971 renaming it.
15972 (save_aux_cache): Call fdatasync on temporary file before renaming
15973 it.
15974
15975 2018-02-21 Florian Weimer <fweimer@redhat.com>
15976
15977 [BZ #22787]
15978 * include/caller.h: Remove file.
15979 * elf/dl-caller.c: Likewise.
15980 * elf/Makefile (dl-routines): Remove dl-caller.
15981 (shared-only-routines): Do not add dl-caller.
15982 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
15983 __check_caller.
15984 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
15985 member.
15986 (dl_open_worker): Do not call __check_caller.
15987 (_dl_open): Do not set caller_dl_open member.
15988 * elf/rtld.c (_rtld_global_ro): Do not initialize
15989 _dl_check_caller member.
15990 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
15991 _dl_check_caller member.
15992 (_dl_check_caller): Remove declaration.
15993 * sysdeps/unix/sysv/linux/dl-execstack.c
15994 (_dl_make_stack_executable): Do not call __check_caller.
15995
15996 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
15997
15998 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
15999 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
16000
16001 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
16002
16003 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
16004 description.
16005
16006 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
16007
16008 [BZ #16335]
16009 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
16010 of 199606L, 200112L, and 200809L.
16011 (_XOPEN_SOURCE): Document special values of 600 and 700.
16012 (_ISOC11_SOURCE): Document macro.
16013 (_ATFILE_SOURCE): Likewise.
16014 (_FORTIFY_SOURCE): Likewise.
16015
16016 2018-02-19 Joseph Myers <joseph@codesourcery.com>
16017
16018 [BZ #15105]
16019 [BZ #19463]
16020 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
16021 and define as weak alias of __ferror_unlocked. Use
16022 libc_hidden_weak.
16023 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
16024 libc_hidden_proto.
16025 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
16026 function if [__USE_EXTERN_INLINES].
16027 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
16028 ferror_unlocked.
16029
16030 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
16031
16032 [BZ #6889]
16033 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
16034
16035 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
16036
16037 [BZ #22818]
16038 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
16039 the GLIBC_2.1 version.
16040
16041 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
16042
16043 [BZ #21508]
16044 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
16045 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
16046 intl/tst-gettext-de.po from po/de.po by removing the
16047 POT-Creation-Date line.
16048 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
16049 ../po/de.po.
16050 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
16051 ../po/de.po.
16052
16053 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
16054
16055 * mach/Makefile (headers): Add mach/param.h.
16056 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
16057 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
16058 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
16059 (__ptsname_r): Move implementation to...
16060 (__ptsname_internal): ... new function. Add filling the STP
16061 structure.
16062
16063 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
16064
16065 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
16066 idouble to 1 ULP.
16067
16068 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
16069
16070 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
16071 syntax.
16072
16073 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
16074
16075 * nptl/Makefile (tst-mutex8-ENV): Delete.
16076 * nptl/tst-mutex8.c (check_type):
16077 Add runtime check if mutex will be elided.
16078
16079 2018-02-15 Joseph Myers <joseph@codesourcery.com>
16080
16081 [BZ #20980]
16082 [BZ #21234]
16083 * manual/install.texi (Configuring and compiling): Describe
16084 passing CC and CFLAGS on configure command line, not as
16085 environment variables. Use @code markup on those variables.
16086 Specify what options go in CC and what go in CFLAGS. Note the
16087 requirement to compile with optimization.
16088 * INSTALL: Regenerated.
16089
16090 [BZ #18124]
16091 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
16092 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
16093 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
16094 __sigprocmask instead of sigprocmask.
16095 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
16096 Likewise.
16097 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
16098 __sigsetjmp and sigprocmask.
16099
16100 [BZ #15105]
16101 * include/argz.h (argz_next): Use libc_hidden_proto.
16102 (__argz_next): Likewise.
16103 * string-argz-next.c (__argz_next): Use libc_hidden_def.
16104 (argz_next): Use libc_hidden_weak.
16105
16106 [BZ #15105]
16107 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
16108 libc_hidden_proto.
16109 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
16110 libc_hidden_def.
16111
16112 [BZ #15105]
16113 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
16114 libc_hidden_proto.
16115 * libio/iofputs.c (fputs): Use libc_hidden_weak.
16116
16117 [BZ #15105]
16118 [BZ #19463]
16119 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
16120 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
16121 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
16122 (__feof_unlocked): New declaration, and inline function if
16123 [__USE_EXTERN_INLINES].
16124 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
16125 instead of feof_unlocked.
16126 * intl/localealias.c [_LIBC] (FEOF): Likewise.
16127 * nss/nsswitch.c (nss_parse_file): Likewise.
16128 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
16129 Likewise.
16130 * time/getdate.c (__getdate_r): Likewise.
16131 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
16132 Define as macro to call __feof_unlocked.
16133
16134 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
16135
16136 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
16137
16138 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
16139
16140 * math/Makefile: Remove mpexp.c and mplog.c
16141 * sysdeps/i386/fpu/mpexp.c: Delete file.
16142 * sysdeps/i386/fpu/mplog.c: Likewise.
16143 * sysdeps/ia64/fpu/mpexp.c: Likewise.
16144 * sysdeps/ia64/fpu/mplog.c: Likewise.
16145 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
16146 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
16147 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
16148 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
16149 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
16150 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
16151 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
16152 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
16153 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
16154 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
16155 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
16156 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
16157 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
16158 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
16159 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
16160 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
16161
16162 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
16163
16164 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
16165
16166 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16167
16168 * sysdeps/sh/libm-test-ulps: Update.
16169
16170 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16171
16172 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
16173 idouble to 1 ULP.
16174
16175 2018-02-12 Zack Weinberg <zackw@panix.com>
16176
16177 [BZ #19239]
16178 * posix/sys/types.h: Don't include sys/sysmacros.h.
16179 * misc/sys/sysmacros.h: Remove the conditional deprecation
16180 warnings for the macros defined by this header.
16181
16182 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
16183
16184 * manual/probes.texi: Remove slowexp probes.
16185 * math/Makefile: Remove slowexp.
16186 * sysdeps/generic/math_private.h (__slowexp): Remove.
16187 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
16188 document error bounds.
16189 * sysdeps/i386/fpu/slowexp.c: Remove.
16190 * sysdeps/ia64/fpu/slowexp.c: Remove.
16191 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
16192 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
16193 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
16194 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
16195 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
16196 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
16197 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
16198 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
16199 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
16200 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
16201 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
16202
16203 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
16204
16205 [BZ #13932]
16206 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
16207 * benchtests/pow-inputs: Update comment for slow path cases.
16208 * manual/probes.texi (slowpow_p10): Delete removed probe.
16209 (slowpow_p10): Likewise.
16210 * math/Makefile: Remove halfulp.c and slowpow.c.
16211 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
16212 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
16213 (__halfulp): Remove.
16214 (__slowpow): Remove.
16215 * sysdeps/i386/fpu/halfulp.c: Delete file.
16216 * sysdeps/i386/fpu/slowpow.c: Likewise.
16217 * sysdeps/ia64/fpu/halfulp.c: Likewise.
16218 * sysdeps/ia64/fpu/slowpow.c: Likewise.
16219 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
16220 improve comments and add error analysis.
16221 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
16222 (power1): Remove function:
16223 (log1): Remove error argument, add error analysis.
16224 (my_log2): Remove function.
16225 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
16226 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
16227 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
16228 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
16229 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
16230 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
16231 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
16232 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
16233 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
16234 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
16235 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
16236 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
16237 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
16238 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
16239
16240 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
16241
16242 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
16243 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
16244
16245 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
16246
16247 [BZ #22433]
16248 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
16249 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
16250 and PTRACE_SETHBPREGS.
16251
16252 2018-02-10 Zack Weinberg <zackw@panix.com>
16253
16254 [BZ #22830]
16255 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
16256 correctly.
16257 * malloc/tst-malloc-stats-cancellation.c: New test case.
16258 * malloc/Makefile: Add new test case.
16259
16260 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
16261
16262 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
16263
16264 2018-02-10 Joseph Myers <joseph@codesourcery.com>
16265
16266 * math/Makefile (libm-narrow-fns): Add add.
16267 (libm-test-funcs-narrow): Likewise.
16268 * math/Versions (GLIBC_2.28): Add narrowing add functions.
16269 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
16270 * math/gen-auto-libm-tests.c (test_functions): Add add.
16271 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
16272 (NARROW_ADD_ROUND_TO_ODD): Likewise.
16273 (NARROW_ADD_TRIVIAL): Likewise.
16274 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
16275 macro.
16276 (__daddl): Likewise.
16277 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
16278 dadd.
16279 (CFLAGS-nldbl-dadd.c): New variable.
16280 (CFLAGS-nldbl-fadd.c): Likewise.
16281 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
16282 __nldbl_daddl.
16283 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
16284 prototype.
16285 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
16286 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
16287 * math/auto-libm-test-in: Add tests of add.
16288 * math/auto-libm-test-out-narrow-add: New generated file.
16289 * math/libm-test-narrow-add.inc: New file.
16290 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
16291 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
16292 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
16293 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
16294 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
16295 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
16296 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
16297 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
16298 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
16299 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
16300 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
16301 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
16302 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
16303 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
16304 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
16305 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
16306 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
16307 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
16308 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16309 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
16310 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
16311 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
16312 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
16313 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
16314 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
16315 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
16316 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
16317 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
16318 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
16319 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
16320 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
16321 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
16322 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
16323 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
16324 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
16325 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
16326 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16327 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
16328 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
16329 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
16330 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
16331 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
16332 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
16333 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
16334 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
16335 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
16336
16337 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
16338 (f128-pairs): New variable.
16339 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
16340 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
16341 to CFLAGS.
16342 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
16343 Also make tests add $(f128-loader-link) to gnulib-tests.
16344
16345 2018-02-09 DJ Delorie <dj@redhat.com>
16346
16347 [BZ #22827]
16348 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
16349 64-bit ELF type for 64-bit ELF objects.
16350
16351 2018-02-09 Joseph Myers <joseph@codesourcery.com>
16352
16353 * math/libm-test-driver.c (snan_tests_arg): New variable.
16354 * math/libm-test-support.h (snan_tests_arg): New declaration.
16355 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
16356
16357 * math/Makefile (test-type-pairs): New variable.
16358 (test-type-pairs-f64xf128-yes): Likewise.
16359 (tests): Add test-narrow-macros.
16360 (libm-test-funcs-narrow): New variable.
16361 (libm-test-c-narrow): Likewise.
16362 (generated): Add $(libm-test-c-narrow).
16363 (libm-tests-base-narrow): New variable.
16364 (libm-tests-narrow): Likewise.
16365 (libm-tests): Add $(libm-tests-narrow).
16366 (libm-tests-for-type): Handle $(libm-tests-narrow).
16367 (libm-test-c-narrow-obj): New variable.
16368 ($(libm-test-c-narrow-obj)): New rule.
16369 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
16370 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
16371 $(o-iterator) to set dependencies and CFLAGS.
16372 * math/gen-auto-libm-tests.c: Document use for narrowing
16373 functions.
16374 (output_for_one_input_case): Take argument NARROW.
16375 (generate_output): Likewise. Update call to
16376 output_for_one_input_case.
16377 (main): Take --narrow option. Update call to generate_output.
16378 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
16379 (apply_lit): Update call to _apply_lit.
16380 (apply_arglit): New function.
16381 (parse_args): Handle "a" arguments.
16382 (parse_auto_input): Handle format names using ":".
16383 * math/README.libm-test: Document "a" parameter type.
16384 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
16385 (ARG_TYPE_TRUE_MIN): Likewise.
16386 (ARG_TYPE_MAX): Likwise.
16387 (ARG_MIN_EXP): Likewise.
16388 (ARG_MAX_EXP): Likewise.
16389 (ARG_MANT_DIG): Likewise.
16390 (TEST_COND_arg_ibm128): Likewise.
16391 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
16392 (TEST_COND_arg_fmt): New macro.
16393 (init_max_error): Update prototype.
16394 * math/libm-test-support.c (test_ibm128): New variable.
16395 (init_max_error): Take argument testing_ibm128 and set test_ibm128
16396 instead of using [TEST_COND_ibm128] conditional.
16397 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
16398 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
16399 [TEST_NARROW] (TEST_MSG): New definition.
16400 (arg_plus_zero): New macro.
16401 (arg_minus_zero): Likewise.
16402 (arg_plus_infty): Likewise.
16403 (arg_minus_infty): Likewise.
16404 (arg_qnan_value_pl): Likewise.
16405 (arg_qnan_value): Likewise.
16406 (arg_snan_value_pl): Likewise.
16407 (arg_snan_value): Likewise.
16408 (arg_max_value): Likewise.
16409 (arg_min_value): Likewise.
16410 (arg_min_subnorm_value): Likewise.
16411 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
16412 (RUN_TEST_LOOP_aa_f): New macro.
16413 (TEST_SUFF): New macro.
16414 (TEST_SUFF_STR): Likewise.
16415 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
16416 (TEST_COND_any_ibm128): New macro.
16417 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
16418 this_func. Update call to init_max_error.
16419 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
16420 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
16421 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
16422 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
16423 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
16424 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
16425 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
16426 * math/test-math-scalar.h (TEST_NARROW): Likewise.
16427 * math/test-math-vector.h (TEST_NARROW): Likewise.
16428 * math/test-arg-double.h: New file.
16429 * math/test-arg-float128.h: Likewise.
16430 * math/test-arg-float32x.h: Likewise.
16431 * math/test-arg-float64.h: Likewise.
16432 * math/test-arg-float64x.h: Likewise.
16433 * math/test-arg-ldouble.h: Likewise.
16434 * math/test-math-narrow.h: Likewise.
16435 * math/test-narrow-macros.c: Likewise.
16436 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
16437 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
16438 test-narrow-macros-ldbl-64.
16439 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
16440
16441 * math/bits/mathcalls-narrow.h: New file.
16442 * include/bits/mathcalls-narrow.h: Likewise.
16443 * math/math-narrow.h: Likewise.
16444 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
16445 (__MATHCALL_NARROW_ARGS_2): Likewise.
16446 (__MATHCALL_NARROW_ARGS_3): Likewise.
16447 (__MATHCALL_NARROW_NORMAL): Likewise.
16448 (__MATHCALL_NARROW_REDIR): Likewise.
16449 (__MATHCALL_NARROW): Likewise.
16450 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
16451 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
16452 defined.
16453 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
16454 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
16455 (libm-narrow-fns): New variable.
16456 (libm-narrow-types-basic): Likewise.
16457 (libm-narrow-types-ldouble-yes): Likewise.
16458 (libm-narrow-types-float128-yes): Likewise.
16459 (libm-narrow-types-float128-alias-yes): Likewise.
16460 (libm-narrow-types): Likewise.
16461 (libm-routines): Add narrowing functions.
16462 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
16463 (libc_feholdexcept_setroundf128): New macro.
16464 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
16465 * sysdeps/ieee754/float128/float128_private.h: Include
16466 <math/math-narrow.h>.
16467 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
16468 Undefine and redefine.
16469 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
16470 (libm_alias_float_ldouble): Undefine and redefine.
16471 (libm_alias_double_ldouble): Likewise.
16472
16473 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
16474
16475 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
16476
16477 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
16478 FPCR/FPSR.
16479
16480 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
16481
16482 * manual/creature.texi: Convert references to gcc.info to gcc.
16483 * manual/stdio.texi: Likewise.
16484 * manual/string.texi: Likewise.
16485
16486 2018-02-07 Joseph Myers <joseph@codesourcery.com>
16487
16488 [BZ #17979]
16489 * posix/bits/types.h (__int_least8_t): New typedef.
16490 (__uint_least8_t): Likewise.
16491 (__int_least16_t): Likewise.
16492 (__uint_least16_t): Likewise.
16493 (__int_least32_t): Likewise.
16494 (__uint_least32_t): Likewise.
16495 (__int_least64_t): Likewise.
16496 (__uint_least64_t): Likewise.
16497 * sysdeps/generic/stdint.h (int_least8_t): Define using
16498 __int_least8_t.
16499 (int_least16_t): Define using __int_least16_t.
16500 (int_least32_t): Define using __int_least32_t.
16501 (int_least64_t): Define using __int_least64_t.
16502 (uint_least8_t): Define using __uint_least8_t.
16503 (uint_least16_t): Define using __uint_least16_t.
16504 (uint_least32_t): Define using __uint_least32_t.
16505 (uint_least64_t): Define using __uint_least64_t.
16506 * wcsmbs/uchar.h: Include <bits/types.h>.
16507 (char16_t): Define using __uint_least16_t conditional only on
16508 [!__USE_ISOCXX11].
16509 (char32_t): Define using __uint_least32_t conditional only on
16510 [!__USE_ISOCXX11].
16511 * wcsmbs/test-char-types.c: New file.
16512 * wcsmbs/Makefile (tests): Add test-char-types.
16513
16514 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
16515 version to 4.0.1.
16516
16517 2018-02-07 Zack Weinberg <zackw@panix.com>
16518
16519 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
16520 Delete all contents except for definitions of _G_HAVE_MMAP and
16521 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
16522 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
16523 sysdeps/unix/sysv/linux/_G_config.h. Make same content
16524 change as above.
16525
16526 * libio/libio.h: Don't include bits/_G_config.h here.
16527 Include stddef.h with __need_wchar_t defined. Include
16528 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
16529 Define _IO_iconv_t here, directly.
16530 Don't define _IO_HAVE_ST_BLKSIZE.
16531 * libio/libioP.h: Include _G_config.h here. Move include of
16532 shlib-compat.h up with rest of includes. Simplify conditionals
16533 controlling definition of _IO_JUMPS_OFFSET.
16534
16535 * csu/init.c: Remove always-true #if around entire file.
16536 Don't include stdio.h. Set _IO_stdin_used to hardwired
16537 constant 0x20001, and update commentary.
16538 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
16539 Replace all uses of _G_va_list with __gnuc_va_list.
16540 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
16541 instead of #if _IO_HAVE_ST_BLKSIZE.
16542 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
16543 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
16544 not #ifdef.
16545
16546 * libio/bits/libio.h: Move back to libio/libio.h and adjust
16547 multiple-include guard to match.
16548 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
16549 into this file.
16550 Remove preprocessor conditionals that are always true and/or
16551 redundant to other preprocessor conditionals in the same nest.
16552 Include shlib-compat.h unconditionally.
16553 Error out if _LIBC is not defined, or if _ISOMAC is defined,
16554 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
16555 defined after including stdio.h.
16556 Use __BEGIN_DECLS/__END_DECLS.
16557
16558 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
16559 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
16560 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
16561
16562 2018-02-07 Zack Weinberg <zackw@panix.com>
16563
16564 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
16565 New single-type headers split from _G_config.h.
16566 * libio/bits/types/cookie_io_functions_t.h
16567 * libio/bits/types/struct_FILE.h
16568 New single-type headers split from libio.h.
16569
16570 * libio/Makefile: Install the above new headers. Don't install
16571 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
16572 bits/libio-ldbl.h.
16573 * libio/_G_config.h, libio/libio.h: Delete file.
16574
16575 * libio/bits/libio.h: Remove improper-inclusion guard.
16576 Include stdio.h and don't repeat anything that it does.
16577 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
16578 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
16579 __io_read_fn as cookie_read_function_t,
16580 __io_write_fn as cookie_write_function_t,
16581 __io_seek_fn as cookie_seek_function_t,
16582 __io_close_fn as cookie_close_function_t,
16583 and _IO_cookie_io_functions_t as cookie_io_functions_t.
16584 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
16585 here, in the "compatibility defines" section. Remove an #if 0
16586 block. Use the "body" macros from bits/types/struct_FILE.h to
16587 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
16588 and _IO_ferror_unlocked.
16589 Move prototypes of __uflow and __overflow...
16590
16591 * libio/stdio.h: ...here. Don't include bits/libio.h.
16592 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
16593 directly from stdarg.h. Include bits/types/__fpos_t.h,
16594 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
16595 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
16596 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
16597 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
16598 cookie_io_functions_t, not _IO_cookie_io_functions_t;
16599 __ssize_t, not _IO_ssize_t. Unconditionally define
16600 BUFSIZ as 8192 and EOF as (-1).
16601
16602 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
16603 macros from bits/types/struct_FILE.h instead of _IO_* macros
16604 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
16605 instead of _IO_ssize_t.
16606 * libio/bits/stdio2.h: Similarly.
16607
16608 * libio/iolibio.h: Add multiple-include guard.
16609 Include bits/libio.h after stdio.h.
16610 * libio/libioP.h: Add multiple-include guard.
16611 Include stdio.h and bits/libio.h before iolibio.h.
16612
16613 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
16614 * include/bits/types/cookie_io_functions_t.h
16615 * include/bits/types/struct_FILE.h: New wrappers.
16616
16617 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
16618 Get definitions of _G_fpos_t and _G_fpos64_t from
16619 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
16620 respectively. Remove improper-inclusion guards.
16621
16622 * conform/data/stdio.h-data: Update expectations of va_list.
16623 * scripts/check-installed-headers.sh: Remove special case for
16624 libio.h and _G_config.h.
16625
16626 2018-02-07 Joseph Myers <joseph@codesourcery.com>
16627
16628 [BZ #15105]
16629 [BZ #19463]
16630 * include/sys/sysmacros.h [!_ISOMAC]
16631 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
16632 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
16633 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
16634 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
16635 libc_hidden_proto.
16636 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
16637 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
16638 Likewise.
16639 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
16640 Undefine and redefine to add use __gnu_dev_ prefix.
16641 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
16642 Likewise.
16643 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
16644 and define as hidden inline function.
16645 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
16646 Likewise.
16647 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
16648 Likewise.
16649 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
16650 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
16651 (gnu_dev_minor): Likewise.
16652 (gnu_dev_makedev): Likewise.
16653 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
16654 makedev.
16655 * posix/wordexp.c (exec_comm_child): Likewise.
16656 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
16657 instead of minor and __gnu_dev_major instead of major.
16658 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
16659 __gnu_dev_major instead of major.
16660 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
16661 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
16662 instead of gnu_dev_minor.
16663 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
16664 (SLAVE_P): Likewise.
16665 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
16666 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
16667 instead of major.
16668
16669 [BZ #21313]
16670 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
16671 in another place.
16672 * locale/weightwc.h (findidx): Likewise.
16673
16674 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
16675
16676 * manual/probes.texi (slowlog): Delete documentation of removed probe.
16677 (slowlog_inexact): Likewise
16678 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
16679 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
16680
16681 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
16682
16683 [BZ #22797]
16684 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
16685 missing second underscore to parameter name.
16686
16687 2018-02-06 Joseph Myers <joseph@codesourcery.com>
16688
16689 [BZ #14508]
16690 [BZ #15512]
16691 [BZ #17082]
16692 [BZ #20530]
16693 * bits/byteswap.h: Update file comment. Do not include
16694 <bits/byteswap-16.h>.
16695 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
16696 constant.
16697 (__bswap_16): Define as inline function.
16698 (__bswap_constant_32): Reformat definition.
16699 (__bswap_32): Always define as inline function, not macro, using
16700 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
16701 otherwise __bswap_constant_32.
16702 (__bswap_constant_64): Reformat definition. Do not use
16703 __extension__ here.
16704 (__bswap_64): Always define as inline function, not macro. Use
16705 __extension__ on function definition. Use __builtin_bswap64 if
16706 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
16707 * string/test-endian-file-scope.c: New file.
16708 * string/test-endian-sign-conversion.c: Likewise.
16709 * string/Makefile (headers): Remove bits/byteswap-16.h.
16710 (tests): Add test-endian-file-scope and
16711 test-endian-sign-conversion.
16712 (CFLAGS-test-endian-sign-conversion.c): New variable.
16713 * bits/byteswap-16.h: Remove file.
16714 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
16715 * sysdeps/ia64/bits/byteswap.h: Likewise.
16716 * sysdeps/m68k/bits/byteswap.h: Likewise.
16717 * sysdeps/s390/bits/byteswap-16.h: Likewise.
16718 * sysdeps/s390/bits/byteswap.h: Likewise.
16719 * sysdeps/tile/bits/byteswap.h: Likewise.
16720 * sysdeps/x86/bits/byteswap-16.h: Likewise.
16721 * sysdeps/x86/bits/byteswap.h: Likewise.
16722
16723 [BZ #17721]
16724 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
16725 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
16726 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
16727 199901L] (__restrict): Define to restrict.
16728
16729 [BZ #19667]
16730 * string/testcopy.c: Include <support/support.h>. Do not include
16731 <malloc.h>. Use <support/test-driver.c>.
16732 (main): Rename to do_test. Make static. Use xmalloc instead of
16733 malloc.
16734
16735 [BZ #13575]
16736 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
16737 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
16738 (SSIZE_MAX): Define to INT_MAX.
16739 * posix/test-ssize-max.c: New file.
16740 * posix/Makefile (tests): Add test-ssize-max.
16741
16742 [BZ #19668]
16743 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
16744 <support/support.h>. Do not include <malloc.h>.
16745 (query_auxv): Use xmalloc instead of malloc.
16746
16747 [BZ #14553]
16748 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
16749 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
16750 instead of loff_t.
16751
16752 2018-02-06 Florian Weimer <fweimer@redhat.com>
16753
16754 [BZ #18023]
16755 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
16756 Use scratch_buffer instead of extend_alloca.
16757
16758 2018-02-06 Zack Weinberg <zackw@panix.com>
16759
16760 * libio/stdio.h: Don't define getc or putc as macros.
16761 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
16762 not _IO_getc and _IO_putc.
16763
16764 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
16765 * stdio-common/tstgetln.c: Don't redefine ssize_t.
16766
16767 2018-02-06 Joseph Myers <joseph@codesourcery.com>
16768
16769 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
16770 (TCP_FASTOPEN_NO_COOKIE): Likewise.
16771
16772 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
16773
16774 [BZ #14890]
16775 * elf/elf.h (NT_PRFPREG): New macro.
16776 (NT_S390_VXRS_LOW): Likewise.
16777 (NT_S390_VXRS_HIGH): Likewise.
16778 (NT_S390_GS_CB): Likewise.
16779 (NT_S390_GS_BC): Likewise.
16780 (NT_S390_RI_CB): Likewise.
16781
16782 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
16783 (MAP_SYNC): New macro.
16784 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
16785 Likewise.
16786 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
16787 (MAP_SYNC): Likewise.
16788 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
16789 (MAP_SYNC): Likewise.
16790 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
16791 (MAP_SYNC): Likewise.
16792 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
16793 (MAP_SYNC): Likewise.
16794 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
16795 (MAP_SYNC): Likewise.
16796 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
16797 (MAP_SYNC): Likewise.
16798 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
16799 Likewise.
16800 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
16801 Likewise.
16802
16803 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
16804 (MAP_SHARED_VALIDATE): New macro.
16805 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16806 (MAP_SHARED_VALIDATE): Likewise.
16807
16808 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16809
16810 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
16811 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
16812 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
16813
16814 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16815
16816 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
16817 (DT_NUM): Updated to 35.
16818
16819 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16820
16821 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
16822 __builtin_expect with __glibc_likely and __glibc_unlikely.
16823 (elf_machine_rela): Likewise.
16824 (elf_machine_lazy_rel): Likewise.
16825
16826 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16827
16828 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
16829 __builtin_expect with __glibc_likely and __glibc_unlikely.
16830 (elf_machine_lazy_rel): Likewise.
16831
16832 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16833
16834 [BZ #22638]
16835 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
16836 SHARED.
16837 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
16838
16839 2018-02-05 Andreas Schwab <schwab@suse.de>
16840
16841 [BZ #22761]
16842 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
16843 string.
16844
16845 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
16846
16847 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
16848 not check against PTHREAD_STACK_MIN.
16849
16850 2018-02-02 Sean McKean <smckean83@gmail.com>
16851
16852 [BZ #22735]
16853 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
16854
16855 2018-02-02 Florian Weimer <fweimer@redhat.com>
16856
16857 [BZ #22753]
16858 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
16859 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
16860 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
16861 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
16862 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
16863 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
16864 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
16865 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
16866 * manual/llio.texi (Scatter-Gather): Mention offset -1.
16867 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
16868 * misc/tst-preadvwritev2.c (do_test): Call it.
16869 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
16870
16871 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
16872
16873 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
16874
16875 * benchtests/bench-memcmp.c: Print json instead of plain text.
16876
16877 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
16878 every test run.
16879
16880 2018-02-01 Joseph Myers <joseph@codesourcery.com>
16881
16882 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
16883 version to 4.15.
16884 (s390_sthyi): New syscall.
16885
16886 * sysdeps/generic/ldbl-classify-compat.h: New file.
16887 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
16888 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
16889 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
16890 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
16891 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
16892 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
16893 * sysdeps/ieee754/dbl-64/s_finite.c: Include
16894 <ldbl-classify-compat.h>.
16895 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16896 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
16897 <ldbl-classify-compat.h>.
16898 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16899 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
16900 <ldbl-classify-compat.h>.
16901 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16902 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
16903 <ldbl-classify-compat.h>.
16904 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16905 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
16906 <ldbl-classify-compat.h>.
16907 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16908 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
16909 <ldbl-classify-compat.h>.
16910 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16911 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
16912 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
16913 * sysdeps/m68k/coldfire/math_private.h: Remove file.
16914 * sysdeps/microblaze/math_private.h: Likewise.
16915 * sysdeps/nios2/math_private.h: Likewise.
16916 * sysdeps/sh/math_private.h: Likewise.
16917
16918 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
16919 * sysdeps/m68k/coldfire/math_private.h: ... here.
16920 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
16921 * sysdeps/tile/math_private.h: Likewise.
16922 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
16923 Remove macro.
16924 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
16925 Likewise.
16926
16927 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
16928 Remove macro.
16929 (libc_fetestexcept): Likewise.
16930 (libc_feupdateenv_test): Likewise.
16931 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
16932 (libc_fetestexcept): Likewise.
16933 (libc_feupdateenv_test): Likewise.
16934 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
16935 (libc_fetestexcept): Likewise.
16936 (libc_feupdateenv_test): Likewise.
16937 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
16938 (libc_fetestexcept): Likewise.
16939 (libc_feupdateenv_test): Likewise.
16940
16941 * sysdeps/generic/math_private.h
16942 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
16943 New inline function.
16944 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
16945 Likewise.
16946
16947 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
16948 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
16949 * sysdeps/generic/math_private.h
16950 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
16951 inline function.
16952 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
16953 Likewise.
16954 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
16955 Likewise.
16956 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
16957 Likewise.
16958 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
16959 Likewise.
16960 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
16961 Likewise.
16962 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
16963 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
16964 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
16965 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
16966 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
16967 (__fegetenv): Likewise.
16968 (fesetenv): Likewise.
16969 (__fesetenv): Likewise.
16970 (feupdateenv): Likewise.
16971 (__feupdateenv): Likewise.
16972 (fegetround): Likewise.
16973 (__fegetround): Likewise.
16974 (fesetround): Likewise.
16975 (__fesetround): Likewise.
16976
16977 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
16978 (feraiseexcept): New macro.
16979 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
16980 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
16981 Remove macro.
16982 (__feraiseexcept): Likewise.
16983 (feclearexcept): Likewise.
16984 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
16985 (__feraiseexcept): Likewise.
16986 (feclearexcept): Likewise.
16987 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
16988 (__feraiseexcept): Likewise.
16989 (feclearexcept): Likewise.
16990 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
16991 (__feraiseexcept): Likewise.
16992 (feclearexcept): Likewise.
16993 (fetestexcept): Likewise.
16994
16995 * sysdeps/m68k/coldfire/math-tests.h: New file.
16996
16997 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
16998 * sysdeps/m68k/bits/fenv.h: ... here.
16999 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
17000 not define.
17001 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
17002 Likewise.
17003 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
17004 Likewise.
17005 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
17006 Likewise.
17007 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
17008 Likewise.
17009 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
17010 Define to 0.
17011 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
17012 (__FE_UNDEFINED): New enum constant.
17013 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
17014 Do not define.
17015 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
17016 Likewise.
17017 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
17018 Likewise.
17019 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
17020 to match generic bits/fenv.h.
17021 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
17022 Do not define.
17023
17024 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
17025 packed on bits.
17026 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
17027 * soft-fp/half.h (union _FP_UNION_H): Likewise.
17028 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
17029 * soft-fp/single.h (union _FP_UNION_S): Likewise.
17030
17031 2018-02-01 Carlos O'Donell <carlos@redhat.com>
17032 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
17033 Joseph Myers <joseph@codesourcery.com>
17034
17035 [BZ #21314]
17036 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
17037 (__log1p): Disable -Wmaybe-uninitialized for -Os around
17038 computation using c.
17039 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
17040 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
17041 computation using c.
17042
17043 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
17044
17045 * version.h (RELEASE): Set to "development".
17046 (VERSION): Set to "2.27.9000".
17047 * NEWS (2.28): New section.
17048
17049 * version.h (RELEASE): Set to "stable".
17050 (VERSION): Set to "2.27".
17051 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
17052
17053 * NEWS: Add the list of bugs fixed in 2.27.
17054
17055 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17056
17057 * stdlib/test-atexit-race-common.c (do_test): Check stack size
17058 against PTHREAD_STACK_MIN.
17059
17060 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
17061
17062 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
17063 New entries.
17064 (Rafal Luzynski, Andreas Schwab): Update.
17065
17066 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
17067
17068 [BZ #10871]
17069 * NEWS: List the languages which actually use the alternative
17070 months feature in this release. Also explain that "alt_mon" and
17071 "ab_alt_mon" are optional.
17072
17073 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
17074
17075 [BZ #22765]
17076 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
17077
17078 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
17079
17080 * manual/install.texi (Tools for Compilation): Update the newest
17081 versions of gcc, binutils, texinfo, gawk, bison, and sed.
17082 * INSTALL: Regenerated.
17083
17084 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
17085
17086 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
17087 instead of __builtin_expect.
17088
17089 2018-01-30 Florian Weimer <fweimer@redhat.com>
17090
17091 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
17092 data.
17093 * nss/tst-nss-getpwent.c (do_test): Likewise.
17094
17095 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
17096
17097 [BZ #10871]
17098 * localedata/locales/hr_HR (mon): Rename to...
17099 (alt_mon): This.
17100 (mon): Import from CLDR (genitive case).
17101 (d_t_fmt): Update the comment.
17102
17103 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
17104
17105 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
17106 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
17107 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
17108
17109 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
17110
17111 * mach/Versions: Fix version when __mach_host_self_ was added.
17112 * hurd/Versions: Fix version when _hurd_exec_paths was added.
17113 * sysdeps/mach/hurd/i386/ld.abilist: New file.
17114 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
17115 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
17116 * sysdeps/mach/hurd/i386/libc.abilist: New file.
17117 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
17118 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
17119 * sysdeps/mach/hurd/i386/libm.abilist: New file.
17120 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
17121 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
17122 * sysdeps/mach/hurd/i386/librt.abilist: New file.
17123 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
17124 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
17125 || to respect codestyle.
17126 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
17127 (do_test_bz20181): Rename accordingly.
17128 * malloc/malloc.c: Include <assert.h>.
17129 (assert): Do not define.
17130 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
17131 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
17132 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
17133 * sysdeps/mach/hurd/hp-timing.h: New file.
17134 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
17135
17136 2018-01-29 Darius Rad <darius@bluespec.com>
17137
17138 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
17139
17140 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
17141
17142 * sysdeps/init_array/crti.S (.section .init_array): Add
17143 PREINIT_FUNCTION when defined.
17144 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
17145 * config.h.in: Regenerate.
17146 * manual/platform.texi: Add RISC-V documenation for
17147 __riscv_flush_icache.
17148 * sysdeps/riscv/__longjmp.S: New file.
17149 * sysdeps/riscv/backtrace.c: Likewise.
17150 * sysdeps/riscv/bits/endian.h: Likewise.
17151 * sysdeps/riscv/bits/setjmp.h: Likewise.
17152 * sysdeps/riscv/bits/wordsize.h: Likewise.
17153 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
17154 * sysdeps/riscv/bsd-setjmp.c: Likewise.
17155 * sysdeps/riscv/dl-trampoline.S: Likewise.
17156 * sysdeps/riscv/gccframe.h: Likewise.
17157 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
17158 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
17159 * sysdeps/riscv/machine-gmon.h: Likewise.
17160 * sysdeps/riscv/memusage.h: Likewise.
17161 * sysdeps/riscv/setjmp.S: Likewise.
17162 * sysdeps/riscv/sys/asm.h: Likewise.
17163 * sysdeps/riscv/tls-macros.h: Likewise.
17164 * sysdeps/riscv/dl-tls.h: New file.
17165 * sysdeps/riscv/libc-tls.c: Likewise.
17166 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
17167 * sysdeps/riscv/nptl/tls.h: Likewise.
17168 * sysdeps/riscv/stackinfo.h: Likewise.
17169 * sysdeps/riscv/bits/fenv.h: New file.
17170 * sysdeps/riscv/e_sqrtl.c: Likewise.
17171 * sysdeps/riscv/fpu_control.h: Likewise.
17172 * sysdeps/riscv/math-tests.h: Likewise.
17173 * sysdeps/riscv/nofpu/Implies: Likewise.
17174 * sysdeps/riscv/sfp-machine.h: Likewise.
17175 * sysdeps/riscv/tininess.h: Likewise.
17176 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
17177 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
17178 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
17179 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
17180 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
17181 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
17182 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
17183 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
17184 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
17185 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
17186 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
17187 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
17188 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
17189 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
17190 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
17191 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
17192 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
17193 * sysdeps/riscv/rvd/s_finite.c: Likewise.
17194 * sysdeps/riscv/rvd/s_fma.c: Likewise.
17195 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
17196 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
17197 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
17198 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
17199 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
17200 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
17201 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
17202 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
17203 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
17204 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
17205 * sysdeps/riscv/rvf/fegetround.c: Likewise.
17206 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
17207 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
17208 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
17209 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
17210 * sysdeps/riscv/rvf/fesetround.c: Likewise.
17211 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
17212 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
17213 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
17214 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
17215 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
17216 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
17217 * sysdeps/riscv/rvf/math_private.h: Likewise.
17218 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
17219 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
17220 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
17221 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
17222 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
17223 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
17224 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
17225 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
17226 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
17227 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
17228 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
17229 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
17230 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
17231 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
17232 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
17233 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
17234 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
17235 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
17236 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
17237 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
17238 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
17239 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
17240 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
17241 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
17242 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
17243 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
17244 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
17245 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
17246 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
17247 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
17248 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
17249 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
17250 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
17251 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
17252 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
17253 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
17254 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
17255 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
17256 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
17257 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
17258 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
17259 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
17260 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
17261 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
17262 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
17263 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
17264 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
17265 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
17266 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
17267 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
17268 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
17269 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
17270 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
17271 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
17272 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
17273 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
17274 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
17275 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
17276 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
17277 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
17278 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
17279 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
17280 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
17281 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
17282 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17283 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
17284 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
17285 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
17286 * sysdeps/riscv/Implies: New file.
17287 * sysdeps/riscv/Makefile: Likewise.
17288 * sysdeps/riscv/configure: Likewise.
17289 * sysdeps/riscv/configure.ac: Likewise.
17290 * sysdeps/riscv/nptl/Makefile: Likewise.
17291 * sysdeps/riscv/preconfigure: Likewise.
17292 * sysdeps/riscv/rv64/Implies-after: Likewise.
17293 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
17294 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
17295 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
17296 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
17297 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
17298 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
17299 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
17300 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
17301 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
17302 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
17303 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
17304 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
17305 (Config): Likewise.
17306
17307 2018-01-29 Florian Weimer <fweimer@redhat.com>
17308
17309 [BZ #22701]
17310 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
17311 libnsl_hidden_proto.
17312 * include/rpcsvc/yp.h (yp_xdrall): Declare with
17313 libnsl_hidden_proto.
17314 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
17315 * nis/Makefile (libnsl-routines): Add nss-default only for
17316 build-obsolete-nsl.
17317 * nis/nis_defaults.c (__nis_default_ttl): Add
17318 libnsl_hidden_nolink_def.
17319 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
17320 declaration.
17321 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
17322 * nis/ypclnt.c (yp_maplist): Likewise.
17323
17324 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
17325
17326 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
17327 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
17328
17329 2018-01-29 Joseph Myers <joseph@codesourcery.com>
17330
17331 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
17332 clean -dxfq for git updates when replacing sources.
17333
17334 * scripts/build-many-glibcs.py (Config.build_gcc): Use
17335 --disable-libcilkrts unconditionally, not just for the final GCC
17336 build for Hurd.
17337
17338 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
17339 version to 4.15.
17340
17341 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17342
17343 [BZ #10871]
17344 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
17345 case).
17346
17347 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17348
17349 [BZ #10871]
17350 * localedata/locales/be_BY (mon): Rename to...
17351 (alt_mon): This, then synchronize with CLDR (nominative case).
17352 (abmon): Rename to...
17353 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
17354 (mon): Import from CLDR (genitive case).
17355 (abmon): Likewise.
17356 * localedata/locales/be_BY@latin (mon): Rename to...
17357 (alt_mon): This.
17358 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
17359
17360 * localedata/locales/be_BY@latin (lang_name): Reworded to
17361 "biełaruskaja mova".
17362
17363 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17364
17365 [BZ #10871]
17366 * localedata/locales/el_CY (mon): Renamed to...
17367 (alt_mon): This.
17368 (mon): Import from CLDR (genitive case).
17369 * localedata/locales/el_GR: Likewise.
17370
17371 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17372
17373 [BZ #10871]
17374 * localedata/locales/ru_RU (mon): Rename to...
17375 (alt_mon): This.
17376 (abmon): Rename to...
17377 (ab_alt_mon): This.
17378 (mon): Import from CLDR (genitive case).
17379 (abmon): Copy from the old content except the 5th month which is
17380 now in the genitive case, even when abbreviated.
17381 * localedata/locales/ru_UA: Likewise.
17382 * time/tst-strptime.c (day_tests): Add an actual example of
17383 a difference between %b and %Ob in Russian.
17384
17385 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
17386
17387 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
17388 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
17389 a `c' variable.
17390 * resolv/res-close.c: Include <stdlib.h>.
17391 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
17392 <sys/wait.h>, <time.h>, <sys/uio.h>.
17393 (NOT_CANCEL_H): Add inclusion guard.
17394 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
17395 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
17396 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
17397 return 0.
17398 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
17399 vm_address_t * to ElfW(Addr) * for dl_main parameter.
17400 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
17401 instead of void *.
17402 * sysdeps/pthread/timer_create.c (timer_create): Do not use
17403 timer_ptr2id to cast struct timer_node * to void *.
17404 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
17405 --disable-libcilkrts to gcc configure.
17406 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
17407 and make them the default for now.
17408 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
17409 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
17410 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
17411 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
17412 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
17413 MACH_IPC_COMPAT.
17414 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
17415 __task_terminate would ever return successfully.
17416 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
17417 to global scope.
17418 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
17419 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
17420 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
17421 critical section to make code simpler and avoid warning.
17422 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
17423 critical section to make code simpler and avoid warning.
17424 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
17425 const char * instead of char *.
17426 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
17427 __hurd_file_name_split, hurd_file_name_split,
17428 __hurd_directory_name_split, hurd_directory_name_split,
17429 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
17430 hurd_file_name_path_lookup): Make lookup function parameter take a
17431 const char *name instead of char *name.
17432 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
17433 __hurd_directory_name_split): Likewise.
17434 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
17435 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
17436 * sysdeps/mach/hurd/check_native.c: New file.
17437 * sysdeps/mach/hurd/check_pf.c: New file.
17438 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
17439 (__freeifaddrs): Define macro to freeifaddrs.
17440 * sysdeps/mach/hurd/libhurduser.abilist: New file.
17441 * sysdeps/mach/libmachuser.abilist: New file.
17442 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
17443 (do_test_bz20181): Rename accordingly.
17444 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
17445 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
17446 <sys/mount.h>.
17447 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
17448 version only if __USE_EXTERN_INLINES is defined.
17449 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
17450 __hurd_sockfail): Likewise.
17451 (_hurd_fd_get): Always declare functions, and provide inline versions
17452 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
17453 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
17454 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
17455 _hurd_port_set): Always declare functions, and provide inline versions
17456 only if __USE_EXTERN_INLINES and _LIBC are defined and
17457 IS_IN(libc).
17458 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
17459 _hurd_critical_section_unlock): Likewise.
17460 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
17461 * __hurd_threadvar_location): Likewise.
17462 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
17463 _hurd_userlink_clear): Likewise.
17464 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
17465 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
17466 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
17467 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
17468 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
17469 __spin_lock_locked): Likewise.
17470 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
17471 __spin_lock_locked): Likewise.
17472 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
17473 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
17474 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
17475 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
17476 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
17477 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
17478 _POSIX_NO_TRUNC): Define to 0.
17479 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
17480 check size against PTHREAD_STACK_MIN.
17481 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
17482 IS_IN(libpthread)]: Include <sigsetops.h>.
17483 * mach/Makefile (user-interfaces): Add mach/gnumach.
17484 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
17485 * sysdeps/mach/configure (mach_interface_list): Regenerate.
17486 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
17487 instead of invalid -1.
17488 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
17489 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
17490 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
17491 <net/ppp_defs.h>.
17492
17493 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
17494
17495 * hurd/fcntl-internal.h: New file.
17496
17497 2018-01-27 James Clarke <jrtc27@jrtc27.com>
17498
17499 * sysdeps/hppa/fpu/libm-test-ulps: Update.
17500
17501 * sysdeps/alpha/fpu/libm-test-ulps: Update.
17502
17503 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
17504
17505 [BZ #22701]
17506 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
17507 Build only shared objects.
17508
17509 2018-01-26 Carlos O'Donell <carlos@redhat.com>
17510
17511 * README: Update for hppa.
17512
17513 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17514
17515 * sysdeps/sparc/fpu/libm-test-ulps: Update
17516 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
17517
17518 2018-01-26 Carlos O'Donell <carlos@redhat.com>
17519
17520 Revert:
17521
17522 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17523
17524 [BZ #22563]
17525 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17526 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
17527 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17528 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
17529 to feature_1.
17530
17531 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17532
17533 [BZ #22563]
17534 * bits/types/__cancel_jmp_buf_tag.h: New file.
17535 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
17536 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
17537 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
17538 * nptl/Makefile (headers): Add
17539 bits/types/__cancel_jmp_buf_tag.h.
17540 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
17541 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
17542 * sysdeps/nptl/pthread.h: Include
17543 <bits/types/__cancel_jmp_buf_tag.h>.
17544 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
17545 __cancel_jmp_buf.
17546 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
17547
17548 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
17549
17550 [BZ #10871]
17551 * localedata/locales/uk_UA (mon): Renamed to...
17552 (alt_mon): This.
17553 (alt_digits): "0" removed and then renamed to...
17554 (mon): This.
17555 (date_fmt): Definition changed not to use the alternative
17556 digits hack.
17557
17558 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
17559
17560 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
17561 FLAG_RISCV_FLOAT_ABI_DOUBLE.
17562 * elf/elf.h (EF_RISCV_RVC): New define.
17563 (EF_RISCV_FLOAT_ABI): Likewise.
17564 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
17565 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
17566 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
17567 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
17568 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
17569 define.
17570 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
17571
17572 2018-01-25 Andreas Schwab <schwab@suse.de>
17573
17574 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
17575 single quotes.
17576 * sysdeps/gnu/configure: Regenerate.
17577 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
17578 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
17579 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
17580 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
17581 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
17582 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
17583 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
17584 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
17585
17586 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
17587
17588 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
17589 URL, and run autoconf, make it the default for now.
17590
17591 2018-01-24 Joseph Myers <joseph@codesourcery.com>
17592
17593 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17594 soft-float ColdFire configuration.
17595
17596 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
17597 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
17598 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
17599
17600 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
17601 MicroBlaze file.
17602
17603 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
17604 ....
17605 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
17606 ... here.
17607 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
17608 New file.
17609
17610 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
17611 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
17612 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
17613 file.
17614
17615 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
17616
17617 [BZ #22742]
17618 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
17619 Rename to __reserved and add comment.
17620 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
17621 Rename to __reserved.
17622
17623 2018-01-24 Joseph Myers <joseph@codesourcery.com>
17624
17625 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17626 i686-gnu configurations.
17627 (Context.run_builds): Include mig, gnumach and hurd in components
17628 considered.
17629 (Context.checkout): Add mig, gnumach and hurd to components.
17630 (Context.checkout_tar): Add URL mappings for mig, gnumach and
17631 hurd.
17632 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
17633 (Config.build): Install gnumach headers, build mig and install
17634 hurd headers for 'gnu' OS.
17635 (Config.install_gnumach_headers): New function.
17636 (Config.install_hurd_headers): Likewise.
17637 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
17638 when building for 'gnu' OS.
17639
17640 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
17641
17642 * manual/tunables.texi (Hardware Capability Tunables): Fix
17643 spelling.
17644
17645 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
17646
17647 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
17648 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
17649 (ALTMON_11, ALTMON_12): Improve documentation.
17650 * manual/time.texi (strftime): Likewise.
17651
17652 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17653
17654 [BZ #10871]
17655 * localedata/locales/pl_PL: Alternative month names added,
17656 primary month names are genitive now.
17657 * time/tst-strptime.c (day_tests): Actually use a genitive case
17658 of a month name in Polish language.
17659
17660 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17661
17662 [BZ #10871]
17663 * manual/locale.texi: Document ALTMON_1..12 constants for
17664 nl_langinfo. Specify when to use ALTMON instead of MON.
17665 * manual/time.texi (strftime, strptime): Document GNU extension
17666 permitting O modifier with %B and %b. Specify when to use
17667 %OB instead of %B.
17668
17669 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17670
17671 [BZ #10871]
17672 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
17673 names, define them as the same as abbreviated month names explicitly.
17674 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
17675 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
17676 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
17677 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
17678 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
17679 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
17680 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
17681 _NL_WABALTMON_12): New enum constants.
17682 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
17683 wab_alt_mon, and ab_alt_mon_defined members.
17684 (time_output): Output ab_alt_mon and wab_alt_mon members.
17685 (time_read): Read them, initialize them as copies of abmon and wabmon
17686 respectively if they are missing, initialize ab_alt_mon_defined.
17687 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
17688 * locale/programs/locfile-kw.h: Regenerate.
17689 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
17690 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
17691 and ru_RU.UTF-8.
17692 * time/strftime_l.c (a_altmonth, aam_len): New macros.
17693 [!COMPILE_WIDE] (ABALTMON_1): New macro.
17694 (__strftime_internal): Handle %Ob and %Oh formats.
17695 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
17696 (__strptime_internal): Handle %Ob and %Oh formats.
17697 * time/tst-strptime.c (day_tests): Add more tests to parse different
17698 forms of month names including the new %Ob format specifier.
17699
17700 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17701
17702 [BZ #10871]
17703 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
17704 define them as the same as primary full month names explicitly.
17705 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
17706 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
17707 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
17708 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
17709 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
17710 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
17711 _NL_WALTMON_12): New enum constants.
17712 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
17713 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
17714 macros.
17715 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
17716 walt_mon, and alt_mon_defined members.
17717 (time_output): Output alt_mon and walt_mon members.
17718 (time_read): Read them, initialize them as copies of mon and wmon
17719 respectively if they are missing, initialize alt_mon_defined.
17720 * locale/programs/locfile-kw.gperf (alt_mon): Define.
17721 * locale/programs/locfile-kw.h: Regenerate.
17722 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
17723 * localedata/tst-langinfo.c (map): Add tests for the new constants
17724 ALTMON_1 .. ALTMON_12.
17725 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
17726 and pl_PL.UTF-8.
17727 * time/strftime_l.c (f_altmonth): New macro.
17728 (__strftime_internal): Handle %OB format.
17729 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
17730 (__strptime_internal): Handle %OB format.
17731 * time/tst-strptime.c (day_tests): Add tests to parse different forms
17732 of month names including the new %OB format specifier.
17733
17734 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17735
17736 [BZ #22685]
17737 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
17738 from ABORT_TRANSACTION.
17739 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
17740 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
17741 ABORT_TRANSACTION_IMPL): Likewise.
17742 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
17743 Linux code, but remove the code that aborts transactions.
17744
17745 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
17746
17747 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
17748
17749 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
17750
17751 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
17752 in date: "2004-14-09" should be "2004-09-14".
17753 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
17754 "2003-15-09" should be "2003-09-15".
17755
17756 2018-01-18 Arjun Shankar <arjun@redhat.com>
17757
17758 [BZ #22343]
17759 [BZ #22774]
17760 CVE-2018-6485
17761 CVE-2018-6551
17762 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
17763 after padding.
17764 (_int_memalign): check for integer overflow before calling
17765 _int_malloc.
17766 * malloc/tst-malloc-too-large.c: New test.
17767 * malloc/Makefile: Add tst-malloc-too-large.
17768
17769 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
17770
17771 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
17772 in date: "2017-24-07" should be "2017-07-24".
17773 * localedata/locales/mai_IN: Likewise.
17774 * localedata/locales/mai_NP: Likewise.
17775
17776 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
17777
17778 * po/ru.po: Update translations.
17779
17780 2018-01-17 Joseph Myers <joseph@codesourcery.com>
17781
17782 [BZ #22719]
17783 * sysdeps/hppa/backtrace.c: New file.
17784
17785 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
17786
17787 [BZ #22715]
17788 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
17789 align La_x86_64_retval to VEC_SIZE.
17790
17791 2018-01-16 Joseph Myers <joseph@codesourcery.com>
17792
17793 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
17794 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
17795
17796 2018-01-16 Florian Weimer <fweimer@redhat.com>
17797
17798 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
17799 Move tst-thread-exit-clobber ...
17800 [$(CXX)] (tests-unsupported): ... to here.
17801
17802 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
17803
17804 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
17805 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
17806 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17807 (_dl_aarch64_cap_flags): Update.
17808 (_DL_HWCAP_COUNT): Update.
17809
17810 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
17811
17812 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
17813 (_DL_HWCAP_LAST): Remove.
17814 (_DL_HWCAP_COUNT): Move to ...
17815 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17816 (_DL_HWCAP_COUNT): ... here.
17817
17818 2018-01-16 Florian Weimer <fweimer@redhat.com>
17819
17820 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
17821 mode with GNU extensions.
17822
17823 2018-01-15 Alan Hayward <alan.hayward@arm.com>
17824
17825 * elf/elf.h (NT_ARM_SVE): Define.
17826
17827 2018-01-15 Florian Weimer <fweimer@redhat.com>
17828
17829 [BZ #22636]
17830 * nptl/tst-minstack-throw.cc: New file.
17831 * nptl/Makefile (tests): Add tst-minstack-throw.
17832 (LDLIBS-tst-minstack-throw): Link with libstdc++.
17833 [!CXX] (tests-unsupported): Add tst-minstack-throw.
17834
17835 2018-01-15 Joseph Myers <joseph@codesourcery.com>
17836
17837 * scripts/build-many-glibcs.py (Context.checkout): Default
17838 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
17839 version to 1.1.0.
17840
17841 2018-01-13 Carlos O'Donell <carlos@redhat.com>
17842
17843 [BZ #22707]
17844 * elf/elf.h (DF_1_STUB): Define.
17845 (DF_1_PIE): Define.
17846
17847 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17848
17849 [BZ #22697]
17850 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
17851 Do not add 0.5 to integer or out-of-range arguments.
17852
17853 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
17854
17855 * po/bg.po: Update translations.
17856 * po/cs.po: Likewise.
17857 * po/de.po: Likewise.
17858 * po/ko.po: Likewise.
17859 * po/pl.po: Likewise.
17860 * po/sv.po: Likewise.
17861 * po/uk.po: Likewise.
17862 * po/vi.po: Likewise.
17863
17864 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
17865
17866 * aarch64/start.S (_start): Use __wrap_main.
17867 (__wrap_main): New local symbol.
17868
17869 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
17870
17871 [BZ #22679]
17872 CVE-2018-1000001
17873 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
17874 generic_getcwd if the path returned by getcwd syscall is not absolute.
17875 * io/tst-getcwd-abspath.c: New test.
17876 * io/Makefile (tests): Add tst-getcwd-abspath.
17877
17878 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
17879
17880 * malloc/malloc.c (malloc_consolidate): Add size check.
17881
17882 2018-01-12 Florian Weimer <fweimer@redhat.com>
17883
17884 * support/write_message.c (write_message): Preserve errno.
17885 * support/check.c (print_failure): Likewise.
17886 * support/support_test_verify_impl.c (support_test_verify_impl):
17887 Likewise.
17888 * support/support_test_compare_failure.c
17889 (support_test_compare_failure): Likewise.
17890
17891 2018-01-12 Florian Weimer <fweimer@redhat.com>
17892
17893 [BZ #22701]
17894 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
17895 Prevent installation of libnsl.so.
17896 (libnsl-inhibit-o): Do not build (or install) static libraries.
17897
17898 2018-01-12 Egmont Koblinger <egmont@gmail.com>
17899
17900 [BZ #22657]
17901 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
17902 before the day number which may produce a double space.
17903 (date_fmt): Likewise.
17904
17905 2018-01-12 Joseph Myers <joseph@codesourcery.com>
17906
17907 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
17908 instead of fegetenv.
17909
17910 2018-01-11 Joseph Myers <joseph@codesourcery.com>
17911
17912 [BZ #22702]
17913 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
17914 comment to say exceptions are discarded.
17915 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
17916 __fegetenv.
17917 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
17918 be enabled.
17919
17920 2018-01-11 Florian Weimer <fweimer@redhat.com>
17921
17922 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
17923 and error message.
17924
17925 2018-01-11 Florian Weimer <fweimer@redhat.com>
17926
17927 [BZ #22636]
17928 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
17929 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
17930
17931 2018-01-10 Joseph Myers <joseph@codesourcery.com>
17932
17933 [BZ #22693]
17934 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
17935 negative arguments in test for NaN or infinity argument.
17936
17937 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
17938
17939 * po/libc.pot: Regenerate.
17940
17941 2018-01-10 Florian Weimer <fweimer@redhat.com>
17942
17943 [BZ #22636]
17944 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
17945 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
17946
17947 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
17948
17949 * hurd/hurd/fd.h: Include <fcntl.h>
17950 (__hurd_at_flags): New function.
17951 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
17952 with call to __hurd_at_flags.
17953 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
17954 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
17955 __faccessat
17956 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
17957 (__access_noerrno): Use __faccessat_common instead of access_common.
17958 (__access): Likewise.
17959 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
17960 with a call to __faccessat.
17961 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
17962 (__faccessat_common): ... this. Move implementation of __access into it when
17963 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
17964 reauthenticate_cwdir_at helper to implement AT mechanism.
17965 (__faccessat_noerrno): New function, just calls __faccessat_common.
17966 (__faccessat): New function, just calls __faccessat_common.
17967 (faccessat): Define weak alias.
17968
17969 2018-01-10 Joseph Myers <joseph@codesourcery.com>
17970
17971 [BZ #22691]
17972 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
17973 (CFLAGS-s_fmaxmagl.c): New variable.
17974 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
17975
17976 [BZ #22690]
17977 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
17978 long int for arguments of possibly overflowing addition or
17979 subtraction.
17980 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
17981
17982 2018-01-09 Joseph Myers <joseph@codesourcery.com>
17983
17984 [BZ #22688]
17985 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
17986 (CFLAGS-e_remainderl.c): New variable.
17987
17988 [BZ #22687]
17989 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
17990 variable.
17991 (CFLAGS-s_cacoshl.c): Likewise.
17992 (CFLAGS-s_casinhl.c): Likewise.
17993 (CFLAGS-s_catanl.c): Likewise.
17994 (CFLAGS-s_catanhl.c): Likewise.
17995 (CFLAGS-s_cexpl.c): Likewise.
17996 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
17997 (CFLAGS-s_csinhl.c): Likewise.
17998 (CFLAGS-s_clogl.c): Likewise.
17999 (CFLAGS-s_clog10l.c): Likewise.
18000 (CFLAGS-s_csinl.c): Likewise.
18001 (CFLAGS-s_csqrtl.c): Likewise.
18002
18003 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
18004 2017-01-09 Svante Signell <svante.signell@gmail.com>
18005
18006 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
18007 (_hurd_exec_paths): New function.
18008 * hurd/hurd.h (_hurd_exec): Deprecate function.
18009 (_hurd_exec_paths): Declare function.
18010 * hurd/Versions: Export _hurd_exec_paths.
18011 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
18012 (__execve): Use __getcwd to build absolute path, and use
18013 _hurd_exec_paths instead of _hurd_exec.
18014 * sysdeps/mach/hurd/spawni.c: Likewise.
18015 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
18016 _hurd_exec.
18017
18018 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
18019
18020 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
18021 test instead of failing in case of ENOENT returned by posix_openpt.
18022
18023 2018-01-08 Florian Weimer <fweimer@redhat.com>
18024
18025 resolv: Support binary labels in test framework.
18026 * support/resolv_test.c (struct to_be_freed): Remove.
18027 (struct compressed_name): New.
18028 (allocate_compressed_name, ascii_tolower)
18029 (compare_compressed_name): New functions.
18030 (struct resolv_response_builder): Update type of
18031 compression_offsets for use with tsearch. Rempve to_be_freed.
18032 (response_push_pointer_to_free): Remove function.
18033 (resolv_response_add_name): Rewrite using struct compressed_name
18034 and tsearch instead of hsearch_r.
18035 (response_builder_allocate): Remove initialization of
18036 compression_offsets.
18037 (response_builder_free): Update for removal of to_be_freed. Use
18038 tdestroy instead of hdestroy_r.
18039 * resolv/Makefile (tests): Add tst-resolv-binary.
18040 (tst-resolv-binary): Link with -lresolv -lpthread.
18041
18042 2018-01-08 Florian Weimer <fweimer@redhat.com>
18043
18044 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
18045 time. Pass positive flag instead of negative flag to
18046 support_test_compare_failure.
18047 (support_test_compare_failure): Change negative parameter to
18048 positive.
18049 * support/support_test_compare_failure.c (report)
18050 (support_test_compare_failure): Likewise.
18051 * support/tst-test_compare.c (return_ssize_t, return_int): New.
18052 (do_test): Check int/size_t, ssize_t/size_t comparisons.
18053
18054 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
18055
18056 [BZ #22637]
18057 * nptl/descr.h (stackblock, stackblock_size): Update comments.
18058 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
18059 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
18060 stacksize.
18061 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
18062
18063 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
18064
18065 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18066 Add s_sincosf-sse2 and s_sincosf-fma.
18067 (CFLAGS-s_sincosf-fma.c): New.
18068 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
18069 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
18070 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
18071 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
18072 __sincosf is defined.
18073
18074 2018-01-08 Florian Weimer <fweimer@redhat.com>
18075
18076 * nptl/tst-thread-exit-clobber.cc: New file.
18077 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
18078 C++11 mode.
18079 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
18080 (tests): Add tst-thread-exit-clobber.
18081 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
18082
18083 2018-01-08 Florian Weimer <fweimer@redhat.com>
18084
18085 * support/check.h (support_static_assert): Define.
18086 (TEST_COMPARE): Use it.
18087
18088 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
18089
18090 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
18091 [!__RLIM_T_MATCHES_RLIM64_T]
18092 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
18093 __getrlimit64. Add libc_hidden_weak.
18094
18095 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
18096
18097 * elf/elf.h (R_RISCV_NONE): New define.
18098 (R_RISCV_32): Likewise.
18099 (R_RISCV_64): Likewise.
18100 (R_RISCV_RELATIVE): Likewise.
18101 (R_RISCV_COPY): Likewise.
18102 (R_RISCV_JUMP_SLOT): Likewise.
18103 (R_RISCV_TLS_DTPMOD32): Likewise.
18104 (R_RISCV_TLS_DTPMOD64): Likewise.
18105 (R_RISCV_TLS_DTPREL32): Likewise.
18106 (R_RISCV_TLS_DTPREL64): Likewise.
18107 (R_RISCV_TLS_TPREL32): Likewise.
18108 (R_RISCV_TLS_TPREL64): Likewise.
18109 * Makerules (make-link-multidir): Make directories before linking into
18110 them.
18111 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
18112 define.
18113 (VDSO_HASH_LINUX_4_15): Likewise.
18114 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
18115 in subdirectories of lib.
18116 * nptl/Makefile (/librt.so): Always depend on
18117 "$(shared-thread-library)".
18118
18119 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
18120
18121 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
18122 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
18123 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
18124 (___tls_get_addr).
18125 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
18126 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
18127 "-O2 -march=i686".
18128 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
18129 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
18130 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
18131 * sysdeps/gnu/glob-lstat-compat.c: New file.
18132 * sysdeps/gnu/glob64-lstat-compat.c: New file.
18133 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
18134
18135 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
18136
18137 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
18138 Reserve 16 chars to reloc_addr before calling _itoa_word.
18139
18140 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
18141
18142 [BZ #22678]
18143 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
18144 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
18145
18146 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
18147 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
18148
18149 * resource/tst-getrlimit.c: Add copyright header.
18150
18151 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
18152 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18153
18154 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
18155 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
18156 Define __GI_getrlimit64 as weak alias of __getrlimit64.
18157 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
18158 instead.
18159 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
18160 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
18161 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
18162 RLIM64_INFINITY): Fix values to match the kernel ones.
18163 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
18164 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
18165 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
18166 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
18167 getrlimit64@@GLIBC_2_27.
18168 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
18169 and setrlimit64.
18170 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
18171 getrlimit, setrlimit, getrlimit64 and setrlimit64.
18172 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
18173 setrlimit, getrlimit64 and setrlimit64.
18174
18175 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
18176
18177 [BZ #22648]
18178 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
18179 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
18180
18181 2018-01-04 Joseph Myers <joseph@codesourcery.com>
18182
18183 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
18184 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
18185 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
18186
18187 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18188
18189 [BZ #15479]
18190 [BZ #22666]
18191 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
18192 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
18193
18194 [BZ #15479]
18195 [BZ #22665]
18196 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
18197 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
18198 * sysdeps/alpha/fpu/s_floor.c: Likewise.
18199 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
18200
18201 2018-01-04 Florian Weimer <fweimer@redhat.com>
18202
18203 [BZ #22667]
18204 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
18205 Align the stack before calling exit.
18206 * stdlib/tst-makecontext-align.c: New file.
18207 * stdlib/Makefile (tests): Add tst-makecontext-align.
18208
18209 2018-01-04 Florian Weimer <fweimer@redhat.com>
18210
18211 Add support for calling dlvsym from libc.so.
18212 * include/dlfcn.h (__libc_dlvsym): Declare.
18213 * elf/Makefile (tests-static-internal): Add
18214 tst-libc_dlvsym-static.
18215 (tests-internal): Add tst-libc_dlvsym.
18216 (modules-names): Add tst-libc_dlvsym-dso.
18217 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
18218 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
18219 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
18220 object tst-libc_dlvsym-dso.so needs to be built before running
18221 these tests.
18222 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
18223 * elf/Versions: Export __libc_dlvsym.
18224 * elf/dl-libc.c (struct do_dlvsym_args): New.
18225 (do_dlvsym, __libc_dlvsym): New functions.
18226 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
18227 (_dl_open_hook2): New variable.
18228 (__libc_register_dl_open_hook): Set it.
18229 * elf/tst-libc_dlvsym-dso.c: New file.
18230 * elf/tst-libc_dlvsym-static.c: Likewise.
18231 * elf/tst-libc_dlvsym.c: Likewise.
18232 * elf/tst-libc_dlvsym.h: Likewise.
18233
18234 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
18235
18236 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
18237 include <sys/mount.h>.
18238
18239 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
18240
18241 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
18242 Add __NO_MATH_ERRNO__ check.
18243
18244 2018-01-02 Joseph Myers <joseph@codesourcery.com>
18245
18246 * sysdeps/mips/mips32/libm-test-ulps: Update.
18247 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
18248
18249 2018-01-02 Florian Weimer <fweimer@redhat.com>
18250
18251 * misc/tst-pselect.c: Add copyright header.
18252
18253 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
18254
18255 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
18256 comment.
18257 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
18258 comment.
18259 (settrlimit): Rename into setrlimit.
18260 (__sttrlimit): Rename into __setrlimit.
18261
18262 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
18263 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
18264 never defined in that case.
18265
18266 2018-01-02 Joseph Myers <joseph@codesourcery.com>
18267
18268 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
18269
18270 * sysdeps/arm/libm-test-ulps: Update.
18271
18272 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
18273 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
18274
18275 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18276
18277 * NEWS: Add cosf and sincosf to list of optimized functions.
18278
18279 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
18280
18281 [BZ #22660]
18282 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
18283 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
18284 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
18285 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
18286
18287 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
18288
18289 [BZ #22433]
18290 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
18291
18292 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
18293 making a copy of it.
18294
18295 2018-01-01 Joseph Myers <joseph@codesourcery.com>
18296
18297 * manual/texinfo.tex: Update to version 2017-12-26.21 with
18298 trailing whitespace removed.
18299 * scripts/config.guess: Update to version 2018-01-01.
18300 * scripts/config.sub: Update to version 2018-01-01.
18301 * scripts/move-if-change: Update from gnulib.
18302
18303 * NEWS: Update copyright dates.
18304 * catgets/gencat.c (print_version): Likewise.
18305 * csu/version.c (banner): Likewise.
18306 * debug/catchsegv.sh: Likewise.
18307 * debug/pcprofiledump.c (print_version): Likewise.
18308 * debug/xtrace.sh (do_version): Likewise.
18309 * elf/ldconfig.c (print_version): Likewise.
18310 * elf/ldd.bash.in: Likewise.
18311 * elf/pldd.c (print_version): Likewise.
18312 * elf/sotruss.sh: Likewise.
18313 * elf/sprof.c (print_version): Likewise.
18314 * iconv/iconv_prog.c (print_version): Likewise.
18315 * iconv/iconvconfig.c (print_version): Likewise.
18316 * locale/programs/locale.c (print_version): Likewise.
18317 * locale/programs/localedef.c (print_version): Likewise.
18318 * login/programs/pt_chown.c (print_version): Likewise.
18319 * malloc/memusage.sh (do_version): Likewise.
18320 * malloc/memusagestat.c (print_version): Likewise.
18321 * malloc/mtrace.pl: Likewise.
18322 * manual/libc.texinfo: Likewise.
18323 * nptl/version.c (banner): Likewise.
18324 * nscd/nscd.c (print_version): Likewise.
18325 * nss/getent.c (print_version): Likewise.
18326 * nss/makedb.c (print_version): Likewise.
18327 * posix/getconf.c (main): Likewise.
18328 * scripts/test-installation.pl: Likewise.
18329 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
18330
18331 * All files with FSF copyright notices: Update copyright dates
18332 using scripts/update-copyrights.
18333 * locale/programs/charmap-kw.h: Regenerated.
18334 * locale/programs/locfile-kw.h: Likewise.
18335
18336 2017-12-31 Zack Weinberg <zackw@panix.com>
18337
18338 * libio/bits/libio-ldbl.h: Correct check for improper
18339 inclusion. Add own multiple include guard.
18340
18341 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
18342 Dmitry V. Levin <ldv@altlinux.org>
18343
18344 [BZ #22625]
18345 CVE-2017-16997
18346 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
18347 string token expansion. Check for NULL pointer or empty string possibly
18348 returned by expand_dynamic_string_token.
18349 (decompose_rpath): Check for empty path after dynamic string
18350 token expansion.
18351
18352 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
18353
18354 [BZ #22433]
18355 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
18356
18357 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
18358 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
18359 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
18360 and PTRACE_SYSCALL.
18361 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
18362 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18363 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18364 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18365 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18366 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
18367
18368 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
18369 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
18370 __ptrace_peeksiginfo_flags, ptrace): Move to ...
18371 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
18372 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18373 bits/ptrace-shared.h.
18374 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
18375 <bits/ptrace-shared.h>.
18376 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
18377 __ptrace_peeksiginfo_flags, ptrace): Remove.
18378 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18379 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18380 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18381 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18382 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
18383
18384 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
18385
18386 [BZ #17804]
18387 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
18388 end of the loop. Improve comments.
18389
18390 2017-12-29 Zack Weinberg <zackw@panix.com>
18391
18392 [BZ #22615]
18393 * manual/errno.texi (Checking for Errors): Explicitly say that errno
18394 might be set on success.
18395
18396 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
18397
18398 [BZ #22611]
18399 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
18400 is unchanged on success.
18401
18402 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
18403
18404 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
18405 updated.
18406 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
18407 expand_dynamic_string_token): Likewise.
18408 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
18409 is_path argument.
18410
18411 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
18412 contains ':'.
18413
18414 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
18415 is set and name contains ':', and all code depending on these checks.
18416
18417 2017-12-24 Zack Weinberg <zackw@panix.com>
18418
18419 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
18420 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
18421 respectively.
18422 * libio/libio.h: Rename the original version of this file to
18423 libio/bits/libio.h. Error out if not included by stdio.h or the
18424 stub libio.h.
18425 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
18426 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
18427 if not included by bits/libio.h or the stub _G_config.h.
18428 * sysdeps/unix/sysv/linux/_G_config.h: Move to
18429 sysdeps/unix/sysv/linux/bits. Error out if not included by
18430 bits/libio.h or the stub _G_config.h.
18431 * libio/stdio.h: Include bits/libio.h, not libio.h.
18432 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
18433 well as libio.h and _G_config.h.
18434
18435 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
18436 * libio/strfile.h, stdio-common/vfscanf.c
18437 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
18438 Include stdio.h, not _G_config.h nor libio.h.
18439 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
18440 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
18441
18442 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
18443
18444 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
18445
18446 [BZ #22347]
18447 * stdlib/getrandom.c (getrandom): Fix comment.
18448 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
18449
18450 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
18451
18452 [BZ #21161]
18453 * manual/arith.texi (strtoul): Fix a typo.
18454
18455 [BZ #22596]
18456 * manual/arith.texi (finite): Fix the description of the return
18457 value.
18458
18459 2017-12-22 Eric Blake <ebb9@byu.net>
18460
18461 Avoid gcc warnings on cygwin
18462 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
18463 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
18464 Avoid unused variable.
18465
18466 2017-12-22 Florian Weimer <fweimer@redhat.com>
18467
18468 * io/Makefile (routines): Add copy_file_range.
18469 (tests): Add tst-copy_file_range.
18470 (tests-static, tests-internal): Add tst-copy_file_range-compat.
18471 * io/Versions (GLIBC_2.27): Export copy_file_range.
18472 * io/copy_file_range-compat.c: New file.
18473 * io/copy_file_range.c: Likewise.
18474 * io/tst-copy_file_range-compat.c: Likewise.
18475 * io/tst-copy_file_range.c: Likewise.
18476 * manual/llio.texi (Copying File Data): New section.
18477 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
18478 * support/Makefile (libsupport-routines): Add support-xfstat,
18479 xftruncate, xlseek.
18480 * support/support-xfstat.c: New file.
18481 * support/xftruncate.c: Likewise.
18482 * support/xlseek.c: Likewise.
18483 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
18484 * sysdeps/unix/sysv/linux/**.abilist: Update.
18485 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
18486
18487 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
18488
18489 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18490 disable-multi-arch variant to aarch64-linux-gnu.
18491
18492 2017-12-20 Joseph Myers <joseph@codesourcery.com>
18493
18494 * manual/texinfo.tex: Update to version 2017-12-18.20 with
18495 trailing whitespace removed.
18496 * scripts/config.guess: Update to version 2017-12-17.
18497 * scripts/config.sub: Update to version 2017-11-23.
18498 * scripts/install-sh: Update to version 2017-09-23.17.
18499 * scripts/move-if-change: Update to version 2017-09-13 06:45.
18500
18501 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18502
18503 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
18504 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
18505 * sysdeps/tile/_mcount.S (__mcount): Likewise.
18506 * sysdeps/tile/crti.S (_init, _fini): Likewise.
18507 * sysdeps/tile/crtn.S: Likewise.
18508 * sysdeps/tile/dl-start.S (_start): Likewise.
18509 * sysdeps/tile/dl-trampoline.S: Likewise.
18510 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
18511 * sysdeps/tile/start.S (_start): Likewise.
18512 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
18513 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
18514 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
18515 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
18516 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
18517 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
18518 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
18519
18520 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
18521 comment.
18522 * sysdeps/tile/preconfigure: Remove tilegx folder.
18523 * sysdeps/tile/tilegx/Implies: Move definitions to ...
18524 * sysdeps/tile/Implies: ... here.
18525 * sysdeps/tile/tilegx/Makefile: Move rules to ...
18526 * sysdeps/tile/Makefile: ... here.
18527 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
18528 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
18529 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
18530 * sysdeps/tile/bits/wordsize.h: ... here.
18531 * sysdeps/tile/tilegx/*: Move to ...
18532 * sysdeps/tile/*: ... here.
18533 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
18534 * sysdeps/tile/tilegx32/Implies: ... here.
18535 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
18536 * sysdeps/tile/tilegx64/Implies: ... here.
18537 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
18538 to ...
18539 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
18540 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
18541 * sysdeps/unix/sysv/linux/tile/*: ... here.
18542 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
18543 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
18544 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
18545 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
18546
18547 * README: Remove tilepro-*-linux-gnu from supported architecture.
18548 * scripts/build-many-glibcs.py: Likewise.
18549 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
18550 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
18551 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
18552 elf_machine_matches_host, elf_machine_dynamic,
18553 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
18554 howto, elf_machine_rela): Likewise.
18555 * sysdeps/tile/dl-start.S (_start): Likewise.
18556 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
18557 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
18558 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
18559 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
18560 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
18561 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
18562 Likewise.
18563 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
18564 * sysdeps/tile/preconfigure: Likewise.
18565 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
18566 POINTER_CHK_GUARD): Likewise.
18567 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
18568 * sysdeps/tile/start.S (_start): Likewise.
18569 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
18570 Likewise.
18571 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
18572 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
18573 CMOVNEZ): Remove.
18574 * sysdeps/unix/sysv/linux/tile/bits/environments.h
18575 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
18576 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
18577 Likewise.
18578 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
18579 * sysdeps/tile/tilepro/Implies: Remove file.
18580 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
18581 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
18582 * sysdeps/tile/tilepro/memchr.c: Likewise.
18583 * sysdeps/tile/tilepro/memcpy.S: Likewise.
18584 * sysdeps/tile/tilepro/memset.c: Likewise.
18585 * sysdeps/tile/tilepro/memusage.h: Likewise.
18586 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
18587 * sysdeps/tile/tilepro/strchr.c: Likewise.
18588 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
18589 * sysdeps/tile/tilepro/strlen.c: Likewise.
18590 * sysdeps/tile/tilepro/strrchr.c: Likewise.
18591 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
18592 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
18593 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
18594 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
18595 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
18596 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
18597 Likewise.
18598 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
18599 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18600 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
18601 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
18602 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18603 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
18604 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
18605 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
18606 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
18607 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
18608 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
18609 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
18610 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
18611 tilepro mention in comment.
18612
18613 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
18614 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
18615 * nptl/pthread_join_common.c: New file: common function used on
18616 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
18617 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
18618 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
18619 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
18620 (cleanup): Move definition to pthread_join_common.c.
18621 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
18622 Remove superflous checks.
18623 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
18624 Likewise.
18625
18626 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
18627
18628 * sysdeps/aarch64/libm-test-ulps: Update.
18629
18630 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18631
18632 * sysdeps/aarch64/memset.S (MEMSET): Define.
18633
18634 2017-12-20 Florian Weimer <fweimer@redhat.com>
18635
18636 [BZ #22635]
18637 nptl: Provide full implementation of pthread_self in libc.so.
18638 * nptl/Makefile (routines): Add pthread_self.
18639 (libpthread-routines): Replace pthread_self with
18640 compat-pthread_self.
18641 * nptl/forward.c (pthread_self): Remove.
18642 * nptl/nptl-init.c (pthread_functions): Do not initialize
18643 ptr_pthread_self.
18644 * nptl/pthread_self.c (pthread_self): Remove weak alias.
18645 * nptl/compat-pthread_self.c: New file.
18646 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
18647 Remove ptr_pthread_self.
18648
18649 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
18650
18651 * posix/regcomp.c: Fix spelling in comments.
18652 * posix/regex.h: Likewise.
18653 * posix/regex_internal.c: Likewise.
18654 * posix/regexec.c: Likewise.
18655
18656 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
18657
18658 [BZ #22377]
18659 * math/Makefile [C++] (tests): Add test for iseqsig.
18660 * math/math.h [C++] (iseqsig): New implementation, which does
18661 not rely on __MATH_TG/__builtin_types_compatible_p.
18662 * math/test-math-iseqsig.cc: New file.
18663 * sysdeps/powerpc/powerpc64le/Makefile
18664 (CFLAGS-test-math-iseqsig.cc): New variable.
18665
18666 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
18667
18668 * elf/dl-load.c (is_trusted_path): Remove.
18669 (fillin_rpath): Remove check_trusted argument and its use,
18670 all callers changed.
18671
18672 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18673
18674 [BZ #22630]
18675 * Makeconfig (link-pie-before-libc): Replace -pie with
18676 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
18677 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
18678 (tst-dlopen-aout-no-pie): New.
18679 (LDFLAGS-tst-prelink): Removed.
18680 (tst-prelink-no-pie): New.
18681 (LDFLAGS-tst-main1): Removed.
18682 (tst-main1-no-pie): New.
18683 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
18684 (tst-gmon-no-pie): New.
18685
18686 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18687
18688 * manual/install.texi: Document that --enable-static-pie
18689 implies PIE.
18690 * INSTALL: Regenerated.
18691
18692 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
18693
18694 [BZ #21309]
18695 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
18696 unsigned.
18697
18698 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18699
18700 Revert:
18701
18702 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18703
18704 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18705
18706 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18707
18708 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18709 <errno.h>. Include "eexp.tbl".
18710 (half): New constant.
18711 (one): Likewise.
18712 (__ieee754_exp): Rewrite.
18713 (__slowexp): Remove prototype.
18714 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18715 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18716 * sysdeps/i386/fpu/slowexp.c: Likewise.
18717 * sysdeps/ia64/fpu/slowexp.c: Likewise.
18718 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18719 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18720 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18721 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18722 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18723 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18724 comment.
18725 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18726 (CPPFLAGS-slowexp.c): Remove variable.
18727 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18728 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18729 (CFLAGS-slowexp-fma.c): Remove variable.
18730 (CFLAGS-slowexp-fma4.c): Likewise.
18731 (CFLAGS-slowexp-avx.c): Likewise.
18732 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18733 define as macro.
18734 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18735 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18736 * math/Makefile (type-double-routines): Remove slowexp.
18737 * manual/probes.texi (slowexp_p6): Remove.
18738 (slowexp_p32): Likewise.
18739
18740 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18741
18742 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
18743 arithmetic.
18744
18745 * lib/glob.c (glob): Do not pass NULL to mempcpy.
18746
18747 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18748
18749 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18750
18751 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18752
18753 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18754 <errno.h>. Include "eexp.tbl".
18755 (half): New constant.
18756 (one): Likewise.
18757 (__ieee754_exp): Rewrite.
18758 (__slowexp): Remove prototype.
18759 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18760 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18761 * sysdeps/i386/fpu/slowexp.c: Likewise.
18762 * sysdeps/ia64/fpu/slowexp.c: Likewise.
18763 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18764 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18765 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18766 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18767 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18768 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18769 comment.
18770 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18771 (CPPFLAGS-slowexp.c): Remove variable.
18772 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18773 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18774 (CFLAGS-slowexp-fma.c): Remove variable.
18775 (CFLAGS-slowexp-fma4.c): Likewise.
18776 (CFLAGS-slowexp-avx.c): Likewise.
18777 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18778 define as macro.
18779 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18780 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18781 * math/Makefile (type-double-routines): Remove slowexp.
18782 * manual/probes.texi (slowexp_p6): Remove.
18783 (slowexp_p32): Likewise.
18784
18785 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18786 James Clarke <jrtc27@jrtc27.com>
18787
18788 [BZ #22603]
18789 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
18790 addition.
18791
18792 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18793
18794 [BZ #22605]
18795 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
18796 code.
18797
18798 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18799
18800 [BZ #22563]
18801 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18802 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
18803 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18804 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
18805 to feature_1.
18806
18807 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18808
18809 [BZ #22563]
18810 * bits/types/__cancel_jmp_buf_tag.h: New file.
18811 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
18812 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
18813 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
18814 * nptl/Makefile (headers): Add
18815 bits/types/__cancel_jmp_buf_tag.h.
18816 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
18817 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
18818 * sysdeps/nptl/pthread.h: Include
18819 <bits/types/__cancel_jmp_buf_tag.h>.
18820 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
18821 __cancel_jmp_buf.
18822 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
18823
18824 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
18825
18826 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18827 --enable-static-pie variants to x86_64, x32 and i686.
18828
18829 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18830
18831 [BZ #22631]
18832 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
18833 argument for attrubutes. All callers changed.
18834 (__inline_mathop1): Likewise. All callers changed.
18835 (__inline_mathop): Likewise. All callers changed.
18836 [__USE_MISC] (scalbn): Use __inline_forward instead of
18837 __inline_forward_c.
18838 [__USE_ISOC99] (scalbln): Likewise.
18839 [__USE_ISOC99] (nearbyint): Likewise.
18840 [__USE_ISOC99] (lrint): Likewise.
18841 [__USE_MISC] (scalbnf): Likewise.
18842 [__USE_ISOC99] (scalblnf): Likewise.
18843 [__USE_ISOC99] (nearbyintf): Likewise.
18844 [__USE_ISOC99] (lrintf): Likewise.
18845 [__USE_MISC] (scalbnl): Likewise.
18846 [__USE_ISOC99] (scalblnl): Likewise.
18847 [__USE_ISOC99] (nearbyintl): Likewise.
18848 [__USE_ISOC99] (lrintl): Likewise.
18849 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
18850 __inline_mathop and __m81_defun changed.
18851
18852 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
18853 CPU or FPU for ARM hard-float configurations.
18854
18855 2017-12-18 Joseph Myers <joseph@codesourcery.com>
18856
18857 * nptl/tst-attr3.c: Include <libc-diag.h>.
18858 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
18859
18860 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
18861
18862 * string/tester.c (test_strncat): Also disable -Warray-bounds
18863 warnings for two tests.
18864
18865 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
18866
18867 [BZ #22614]
18868 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
18869 $(cc-pie-default) == yes.
18870 * config.make.in (cc-pie-default): New.
18871 * configure.ac (libc_cv_pie_default): Renamed to ...
18872 (libc_cv_cc_pie_default): This.
18873 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
18874 * configure: Regenerated.
18875
18876 2017-12-18 Florian Weimer <fweimer@redhat.com>
18877
18878 [BZ #20204]
18879 ld.so: Harden dl-libc/libdl hooks.
18880 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
18881 (rtld_active): New function.
18882 * dlfcn/dladdr.c (__dladdr): Call it.
18883 * dlfcn/dladdr1.c (__dladdr1): Likewise.
18884 * dlfcn/dlclose.c (__dlcose): Likewise.
18885 * dlfcn/dlerror.c (__dlerror): Likewise.
18886 * dlfcn/dlinfo.c (__dlinfo): Likewise.
18887 * dlfcn/dlmopen.c (__dlmopen): Likewise.
18888 * dlfcn/dlopen.c (__dlopen): Likewise.
18889 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
18890 * dlfcn/dlsym.c (__dlsym): Likewise.
18891 * dlfcn/dlvsym.c (__dlvsym): Likewise.
18892 * libio/vtables.c (_IO_vtable_check): Likewise.
18893 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
18894 (__libc_dlclose): Likewise.
18895 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
18896 assignment.
18897
18898 2017-12-18 Joseph Myers <joseph@codesourcery.com>
18899
18900 [BZ #22446]
18901 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
18902 buffers for readlink input and output.
18903
18904 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
18905
18906 [BZ #22624]
18907 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
18908 inhibit_stack_protector.
18909
18910 [BZ #22624]
18911 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
18912 inhibit_stack_protector.
18913
18914 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
18915
18916 [BZ #22627]
18917 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
18918 code and invocation.
18919
18920 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
18921
18922 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
18923
18924 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
18925
18926 [BZ #22505]
18927 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
18928
18929 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18930
18931 * sysdeps/s390/fpu/libm-test-ulps: Update.
18932
18933 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18934
18935 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18936
18937 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18938
18939 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
18940 constants to s_sincosf.h file.
18941 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
18942 * sysdeps/ieee754/flt-32/s_sincosf.c: New
18943 implementation.
18944 * sysdeps/ieee754/flt-32/s_sincosf.h:
18945 New file.
18946
18947 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18948
18949 [BZ #14681]
18950 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
18951 before mtrace.
18952
18953 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
18954
18955 [BZ #19574]
18956 * INSTALL: Regenerated.
18957 * Makeconfig (real-static-start-installed-name): New.
18958 (pic-default): Updated for --enable-static-pie.
18959 (pie-default): New for --enable-static-pie.
18960 (default-pie-ldflag): Likewise.
18961 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
18962 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
18963 Replace $(static-start-installed-name) with
18964 $(real-static-start-installed-name).
18965 (+prectorT): Updated for --enable-static-pie.
18966 (+postctorT): Likewise.
18967 (CFLAGS-.o): Add $(pie-default).
18968 (CFLAGS-.op): Likewise.
18969 * NEWS: Mention --enable-static-pie.
18970 * config.h.in (ENABLE_STATIC_PIE): New.
18971 * configure.ac (--enable-static-pie): New configure option.
18972 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
18973 (have-static-pie): Likewise.
18974 Enable static PIE if linker supports --no-dynamic-linker.
18975 (ENABLE_STATIC_PIE): New AC_DEFINE.
18976 (enable-static-pie): New LIBC_CONFIG_VAR.
18977 * configure: Regenerated.
18978 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
18979 gr$(start-installed-name) for --enable-static-pie.
18980 (extra-objs): Likewise.
18981 (install-lib): Likewise.
18982 (extra-objs): Add static-reloc.o and static-reloc.os
18983 ($(objpfx)$(start-installed-name)): Also depend on
18984 $(objpfx)static-reloc.o.
18985 ($(objpfx)r$(start-installed-name)): New.
18986 ($(objpfx)g$(start-installed-name)): Also depend on
18987 $(objpfx)static-reloc.os.
18988 ($(objpfx)gr$(start-installed-name)): New.
18989 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
18990 in libc.a.
18991 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
18992 initimage.
18993 * csu/static-reloc.c: New file.
18994 * elf/Makefile (routines): Add dl-reloc-static-pie.
18995 (elide-routines.os): Likewise.
18996 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
18997 (tst-tls1-static-non-pie-no-pie): New.
18998 * elf/dl-reloc-static-pie.c: New file.
18999 * elf/dl-support.c (_dl_get_dl_main_map): New function.
19000 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
19001 STATIC_PIE_BOOTSTRAP.
19002 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
19003 * gmon/Makefile (tests): Add tst-gmon-static-pie.
19004 (tests-static): Likewise.
19005 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
19006 (tst-gmon-static-no-pie): New.
19007 (CFLAGS-tst-gmon-static-pie.c): Likewise.
19008 (CRT-tst-gmon-static-pie): Likewise.
19009 (tst-gmon-static-pie-ENV): Likewise.
19010 (tests-special): Likewise.
19011 ($(objpfx)tst-gmon-static-pie.out): Likewise.
19012 (clean-tst-gmon-static-pie-data): Likewise.
19013 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
19014 * gmon/tst-gmon-static-pie.c: New file.
19015 * manual/install.texi: Document --enable-static-pie.
19016 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
19017 (_dl_get_dl_main_map): Likewise.
19018 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
19019 * sysdeps/x86_64/configure.ac: Likewise.
19020 * sysdeps/i386/configure: Regenerated.
19021 * sysdeps/x86_64/configure: Likewise.
19022 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
19023 (ASFLAGS-.op): Likewise.
19024
19025 2017-12-15 Joseph Myers <joseph@codesourcery.com>
19026
19027 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
19028 * posix/tst-mmap-offset.c (fname): Use /tmp.
19029 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
19030
19031 2017-12-15 Steve Ellcey <sellcey@cavium.com>
19032
19033 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
19034
19035 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
19036
19037 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
19038 errno.
19039
19040 2017-12-15 Joseph Myers <joseph@codesourcery.com>
19041
19042 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
19043 --with-float=hard for arm-linux-gnueabihf configurations.
19044
19045 [BZ #14121]
19046 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
19047 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
19048 ($(mo-installed)): Use $(objpfx)%.mo.
19049 (realclean): Remove rule.
19050
19051 * po/Makefile (linguas): Remove rule and dependencies.
19052 (linguas.mo): Likewise.
19053 (.PHONY): Do not depend on linguas and linguas.mo.
19054 (podir): Remove variable.
19055 (pofiles): Likewise.
19056 [$(pofiles)] (%.po): Remove rule.
19057
19058 * sysdeps/sparc/sparc32/Makefile
19059 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
19060 start-of-line whitespace in argument of echo.
19061 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
19062 with whitespace. Generate __wrap_.udiv alias.
19063 * sysdeps/sparc/sparc32/rem.S: Regenerated.
19064 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
19065 * sysdeps/sparc/sparc32/udiv.S: Likewise.
19066 * sysdeps/sparc/sparc32/urem.S: Likewise.
19067
19068 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19069
19070 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
19071 for aligned inputs.
19072
19073 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
19074
19075 * benchtests/bench-strcmp.c: Print output in JSON format.
19076
19077 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
19078
19079 2017-12-14 Florian Weimer <fweimer@redhat.com>
19080
19081 [BZ #22607]
19082 CVE-2017-1000409
19083 * elf/dl-load.c (_dl_init_paths): Compute number of components in
19084 the expanded path string.
19085
19086 2017-12-14 Florian Weimer <fweimer@redhat.com>
19087
19088 [BZ #22606]
19089 CVE-2017-1000408
19090 * elf/dl-load.c (system_dirs): Update comment.
19091 (nsystem_dirs_len): Use array_length.
19092 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
19093
19094 2017-12-14 Florian Weimer <fweimer@redhat.com>
19095
19096 Simplify compiling most of support/ outside of glibc.
19097 * support/check_addrinfo.c: Include <string.h>.
19098 * support/check_dns_packet.c: Likewise.
19099 * support/check_hostent.c: Likewise.
19100 * support/support_can_chroot.c: Include <support/xunistd.h>.
19101 * support/support_format_addrinfo.c: Include <stdlib.h>
19102 * support/support_format_dns_packet.c: Include <stdbool.h>.
19103 * support/support_format_hostent.c: Include <stdlib.h>.
19104 * support/support_format_netent.c: Likewise.
19105 * support/support_write_string.c: Include <support/xunistd.h>.
19106 * support/xdlfcn.c: Include <stddef.h>.
19107
19108 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
19109
19110 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
19111
19112 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
19113 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19114
19115 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
19116 (sysdeps_routines): Add memset-niagara7.
19117 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
19118 Likewise.
19119 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
19120 file.
19121 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
19122 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
19123 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
19124 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
19125 Add niagara7 option.
19126 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
19127 memset.
19128
19129 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
19130 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
19131 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
19132 Likewise.
19133 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
19134 New file.
19135 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
19136 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
19137 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
19138 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
19139 and __memmove_niagara7.
19140 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
19141 Add niagara7 option.
19142 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
19143 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
19144 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
19145 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
19146 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
19147
19148 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
19149
19150 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
19151 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
19152 * sysdeps/sparc/sparc64/memmove.S: Likewise.
19153 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
19154
19155 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
19156 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
19157 _dl_sparc_cap_flags array.
19158 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
19159
19160 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
19161
19162 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
19163 time whenever possible.
19164
19165 2017-12-12 Carlos O'Donell <carlos@redhat.com>
19166
19167 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
19168 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
19169
19170 2017-12-12 Joseph Myers <joseph@codesourcery.com>
19171
19172 * soft-fp/fmadf4.c: Move to ....
19173 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
19174 * soft-fp/fmasf4.c: Move to ....
19175 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
19176 * soft-fp/fmatf4.c: Move to ....
19177 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
19178 * sysdeps/ieee754/soft-fp/Makefile: New file.
19179 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
19180 * sysdeps/arm/preconfigure: Regenerated.
19181 * sysdeps/arm/nofpu/Implies: New file.
19182 * sysdeps/arm/s_fma.c: Remove file.
19183 * sysdeps/arm/s_fmaf.c: Likewise.
19184 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
19185 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
19186 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
19187 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
19188 * sysdeps/microblaze/s_fma.c: Remove file.
19189 * sysdeps/microblaze/s_fmaf.c: Likewise.
19190 * sysdeps/mips/mips32/nofpu/Implies: New file.
19191 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
19192 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
19193 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
19194 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
19195 * sysdeps/mips/ieee754/s_fma.c: Remove file.
19196 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
19197 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
19198 implementation.
19199 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
19200 * sysdeps/nios2/s_fma.c: Remove file.
19201 * sysdeps/nios2/s_fmaf.c: Likewise.
19202 * sysdeps/sh/nofpu/Implies: New file.
19203 * sysdeps/sh/s_fma.c: Remove file.
19204 * sysdeps/sh/s_fmaf.c: Likewise.
19205 * sysdeps/tile/Implies: Add ieee754/soft-fp.
19206 * sysdeps/tile/s_fma.c: Remove file.
19207 * sysdeps/tile/s_fmaf.c: Likewise.
19208
19209 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
19210
19211 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19212 Add s_cosf-sse2 and s_cosf-fma.
19213 (CFLAGS-s_cosf-fma.c): New.
19214 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
19215 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
19216 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
19217
19218 2017-12-12 Steve Ellcey <sellcey@cavium.com>
19219
19220 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
19221
19222 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19223
19224 * libio/Makefile (tests): Add tst-bz22415.
19225 (tst-bz22415-ENV): New rule.
19226 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
19227 (tests-special): Add tst-bz22415-mem.out.
19228 ($(objpfx)tst-bz22415-mem.out): New rule.
19229 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
19230 in case of a successful seek operation.
19231 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
19232 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
19233 buffer is required.
19234 * libio/tst-bz22415.c: New test.
19235
19236 * sysdeps/ia64/fpu/libm-test-ulps: Update.
19237
19238 2017-12-12 James Clarke <jrtc27@jrtc27.com>
19239
19240 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
19241 __IPC_64 to 0 to avoid IPC_64 being set.
19242
19243 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
19244
19245 [BZ #22593]
19246 * math/bits/mathcalls.h (nextafter): Remove const.
19247 (nexttoward): Likewise.
19248
19249 2017-12-12 Joseph Myers <joseph@codesourcery.com>
19250
19251 * configure.ac (--with-fp): Remove configure option.
19252 (with_fp_cond): New variable.
19253 (libc_cv_with_fp): New configure test. Use this variable instead
19254 of with_fp.
19255 * configure: Regenerated.
19256 * config.make.in (with-fp): Use @libc_cv_with_fp@.
19257 * manual/install.texi (Configuring and compiling): Remove
19258 --without-fp.
19259 * INSTALL: Regenerated.
19260 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
19261 * sysdeps/mips/preconfigure (with_fp_cond): Define.
19262 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
19263 * sysdeps/sh/preconfigure (with_fp_cond): Define.
19264 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
19265 use --without-fp to configure glibc.
19266
19267 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
19268
19269 * manual/locale.texi (nl_langinfo): Fix a typo.
19270
19271 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
19272
19273 [BZ #22588]
19274 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
19275
19276 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
19277
19278 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
19279 (CFLAGS-argp-parse.c): Likewise.
19280 (CFLAGS-argp-fmtstream.c): Likewise.
19281 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
19282 (CPPFLAGS-sha512-crypt.c): Likewise.
19283 (CPPFLAGS-md5-crypt.c): Likewise.
19284 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
19285 (CFLAGS-stack_chk_fail_local.c): Likewise.
19286 (CFLAGS-backtrace.c): Likewise.
19287 (CFLAGS-sprintf_chk.c): Likewise.
19288 (CFLAGS-snprintf_chk.c): Likewise.
19289 (CFLAGS-vsprintf_chk.c): Likewise.
19290 (CFLAGS-vsnprintf_chk.c): Likewise.
19291 (CFLAGS-asprintf_chk.c): Likewise.
19292 (CFLAGS-vasprintf_chk.c): Likewise.
19293 (CFLAGS-obprintf_chk.c): Likewise.
19294 (CFLAGS-dprintf_chk.c): Likewise.
19295 (CFLAGS-vdprintf_chk.c): Likewise.
19296 (CFLAGS-printf_chk.c): Likewise.
19297 (CFLAGS-fprintf_chk.c): Likewise.
19298 (CFLAGS-vprintf_chk.c): Likewise.
19299 (CFLAGS-vfprintf_chk.c): Likewise.
19300 (CFLAGS-gets_chk.c): Likewise.
19301 (CFLAGS-fgets_chk.c): Likewise.
19302 (CFLAGS-fgets_u_chk.c): Likewise.
19303 (CFLAGS-fread_chk.c): Likewise.
19304 (CFLAGS-fread_u_chk.c): Likewise.
19305 (CFLAGS-swprintf_chk.c): Likewise.
19306 (CFLAGS-vswprintf_chk.c): Likewise.
19307 (CFLAGS-wprintf_chk.c): Likewise.
19308 (CFLAGS-fwprintf_chk.c): Likewise.
19309 (CFLAGS-vwprintf_chk.c): Likewise.
19310 (CFLAGS-vfwprintf_chk.c): Likewise.
19311 (CFLAGS-fgetws_chk.c): Likewise.
19312 (CFLAGS-fgetws_u_chk.c): Likewise.
19313 (CFLAGS-read_chk.c): Likewise.
19314 (CFLAGS-pread_chk.c): Likewise.
19315 (CFLAGS-pread64_chk.c): Likewise.
19316 (CFLAGS-recv_chk.c): Likewise.
19317 (CFLAGS-recvfrom_chk.c): Likewise.
19318 (CFLAGS-tst-longjmp_chk.c): Likewise.
19319 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
19320 (CFLAGS-tst-longjmp_chk2.c): Likewise.
19321 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
19322 (CFLAGS-tst-longjmp_chk3.c): Likewise.
19323 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
19324 (CFLAGS-tst-chk1.c): Likewise.
19325 (CFLAGS-tst-chk2.c): Likewise.
19326 (CFLAGS-tst-chk3.c): Likewise.
19327 (CFLAGS-tst-chk4.cc): Likewise.
19328 (CFLAGS-tst-chk5.cc): Likewise.
19329 (CFLAGS-tst-chk6.cc): Likewise.
19330 (CFLAGS-tst-lfschk1.c): Likewise.
19331 (CFLAGS-tst-lfschk2.c): Likewise.
19332 (CFLAGS-tst-lfschk3.c): Likewise.
19333 (CFLAGS-tst-lfschk4.cc): Likewise.
19334 (CFLAGS-tst-lfschk5.cc): Likewise.
19335 (CFLAGS-tst-lfschk6.cc): Likewise.
19336 (CFLAGS-tst-ssp-1.c): Likewise.
19337 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
19338 (CFLAGS-scandir64.c): Likewise.
19339 (CFLAGS-scandir-tail.c): Likewise.
19340 (CFLAGS-scandir64-tail.c): Likewise.
19341 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
19342 (CFLAGS-dl-tunables.c): Likewise.
19343 (CFLAGS-dl-runtime.c): Likewise.
19344 (CFLAGS-dl-lookup.c): Likewise.
19345 (CFLAGS-dl-iterate-phdr.c): Likewise.
19346 (CFLAGS-vismain.c): Likewise.
19347 (CFLAGS-tst-linkall-static.c): Likewise.
19348 (CFLAGS-tst-linkall-static.c): Likewise.
19349 (CPPFLAGS-dl-load.c): Likewise.
19350 (CFLAGS-ldconfig.c): Likewise.
19351 (CFLAGS-dl-cache.c): Likewise.
19352 (CFLAGS-cache.c): Likewise.
19353 (CFLAGS-rtld.c): Likewise.
19354 (CFLAGS-multiload.c): Likewise.
19355 (CFLAGS-filtmod1.c): Likewise.
19356 (CFLAGS-tst-align.c): Likewise.
19357 (CFLAGS-tst-align2.c): Likewise.
19358 (CFLAGS-tst-alignmod.c): Likewise.
19359 (CFLAGS-tst-alignmod2.c): Likewise.
19360 (CPPFLAGS-tst-execstack.c): Likewise.
19361 (CFLAGS-tst-ptrguard1-static.c): Likewise.
19362 (CFLAGS-tst-latepthreadmod.c): Likewise.
19363 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
19364 (CFLAGS-getgrnam_r.c): Likewise.
19365 (CFLAGS-getgrent_r.c): Likewise.
19366 (CFLAGS-getgrent.c): Likewise.
19367 (CFLAGS-fgetgrent.c): Likewise.
19368 (CFLAGS-fgetgrent_r.c): Likewise.
19369 (CFLAGS-putgrent.c): Likewise.
19370 (CFLAGS-initgroups.c): Likewise.
19371 (CFLAGS-getgrgid.c): Likewise.
19372 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
19373 (CFLAGS-getsgent.c): Likewise.
19374 (CFLAGS-fgetsgent.c): Likewise.
19375 (CFLAGS-fgetsgent_r.c): Likewise.
19376 (CFLAGS-putsgent.c): Likewise.
19377 (CFLAGS-getsgnam.c): Likewise.
19378 (CFLAGS-getsgnam_r.c): Likewise.
19379 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
19380 (CFLAGS-iconv_charmap.c): Likewise.
19381 (CFLAGS-dummy-repertoire.c): Likewise.
19382 (CFLAGS-charmap.c): Likewise.
19383 (CFLAGS-linereader.c): Likewise.
19384 (CFLAGS-simple-hash.c): Likewise.
19385 (CFLAGS-gconv_conf.c): Likewise.
19386 (CFLAGS-iconvconfig.c): Likewise.
19387 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
19388 (CFLAGS-gethstbyad.c): Likewise.
19389 (CFLAGS-gethstbynm_r.c): Likewise.
19390 (CFLAGS-gethstbynm.c): Likewise.
19391 (CFLAGS-gethstbynm2_r.c): Likewise.
19392 (CFLAGS-gethstbynm2.c): Likewise.
19393 (CFLAGS-gethstent_r.c): Likewise.
19394 (CFLAGS-gethstent.c): Likewise.
19395 (CFLAGS-rcmd.c): Likewise.
19396 (CFLAGS-getnetbynm_r.c): Likewise.
19397 (CFLAGS-getnetbynm.c): Likewise.
19398 (CFLAGS-getnetbyad_r.c): Likewise.
19399 (CFLAGS-getnetbyad.c): Likewise.
19400 (CFLAGS-getnetent_r.c): Likewise.
19401 (CFLAGS-getnetent.c): Likewise.
19402 (CFLAGS-getaliasent_r.c): Likewise.
19403 (CFLAGS-getaliasent.c): Likewise.
19404 (CFLAGS-getrpcent_r.c): Likewise.
19405 (CFLAGS-getrpcent.c): Likewise.
19406 (CFLAGS-getservent_r.c): Likewise.
19407 (CFLAGS-getservent.c): Likewise.
19408 (CFLAGS-getprtent_r.c): Likewise.
19409 (CFLAGS-getprtent.c): Likewise.
19410 (CFLAGS-either_ntoh.c): Likewise.
19411 (CFLAGS-either_hton.c): Likewise.
19412 (CFLAGS-getnetgrent.c): Likewise.
19413 (CFLAGS-getnetgrent_r.c): Likewise.
19414 (CFLAGS-tst-checks-posix.c): Likewise.
19415 (CFLAGS-tst-sockaddr.c): Likewise.
19416 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
19417 (CFLAGS-tst-translit.c): Likewise.
19418 (CFLAGS-tst-gettext2.c): Likewise.
19419 (CFLAGS-tst-codeset.c): Likewise.
19420 (CFLAGS-tst-gettext3.c): Likewise.
19421 (CFLAGS-tst-gettext4.c): Likewise.
19422 (CFLAGS-tst-gettext5.c): Likewise.
19423 (CFLAGS-tst-gettext6.c): Likewise.
19424 * io/Makefile (CFLAGS-open.c): Likewise.
19425 (CFLAGS-open64.c): Likewise.
19426 (CFLAGS-creat.c): Likewise.
19427 (CFLAGS-creat64.c): Likewise.
19428 (CFLAGS-fcntl.c): Likewise.
19429 (CFLAGS-poll.c): Likewise.
19430 (CFLAGS-ppoll.c): Likewise.
19431 (CFLAGS-lockf.c): Likewise.
19432 (CFLAGS-statfs.c): Likewise.
19433 (CFLAGS-fstatfs.c): Likewise.
19434 (CFLAGS-statvfs.c): Likewise.
19435 (CFLAGS-fstatvfs.c): Likewise.
19436 (CFLAGS-fts.c): Likewise.
19437 (CFLAGS-fts64.c): Likewise.
19438 (CFLAGS-ftw.c): Likewise.
19439 (CFLAGS-ftw64.c): Likewise.
19440 (CFLAGS-lockf.c): Likewise.
19441 (CFLAGS-posix_fallocate.c): Likewise.
19442 (CFLAGS-posix_fallocate64.c): Likewise.
19443 (CFLAGS-fallocate.c): Likewise.
19444 (CFLAGS-fallocate64.c): Likewise.
19445 (CFLAGS-read.c): Likewise.
19446 (CFLAGS-write.c): Likewise.
19447 (CFLAGS-test-stat.c): Likewise.
19448 (CFLAGS-test-lfs.c): Likewise.
19449 * libio/Makefile (CFLAGS-fileops.c): Likewise.
19450 (CFLAGS-fputc.c): Likewise.
19451 (CFLAGS-fputwc.c): Likewise.
19452 (CFLAGS-freopen64.c): Likewise.
19453 (CFLAGS-freopen.c): Likewise.
19454 (CFLAGS-fseek.c): Likewise.
19455 (CFLAGS-fseeko64.c): Likewise.
19456 (CFLAGS-fseeko.c): Likewise.
19457 (CFLAGS-ftello64.c): Likewise.
19458 (CFLAGS-ftello.c): Likewise.
19459 (CFLAGS-fwide.c): Likewise.
19460 (CFLAGS-genops.c): Likewise.
19461 (CFLAGS-getc.c): Likewise.
19462 (CFLAGS-getchar.c): Likewise.
19463 (CFLAGS-getwc.c): Likewise.
19464 (CFLAGS-getwchar.c): Likewise.
19465 (CFLAGS-iofclose.c): Likewise.
19466 (CFLAGS-iofflush.c): Likewise.
19467 (CFLAGS-iofgetpos64.c): Likewise.
19468 (CFLAGS-iofgetpos.c): Likewise.
19469 (CFLAGS-iofgets.c): Likewise.
19470 (CFLAGS-iofgetws.c): Likewise.
19471 (CFLAGS-iofputs.c): Likewise.
19472 (CFLAGS-iofputws.c): Likewise.
19473 (CFLAGS-iofread.c): Likewise.
19474 (CFLAGS-iofsetpos64.c): Likewise.
19475 (CFLAGS-iofsetpos.c): Likewise.
19476 (CFLAGS-ioftell.c): Likewise.
19477 (CFLAGS-iofwrite.c): Likewise.
19478 (CFLAGS-iogetdelim.c): Likewise.
19479 (CFLAGS-iogetline.c): Likewise.
19480 (CFLAGS-iogets.c): Likewise.
19481 (CFLAGS-iogetwline.c): Likewise.
19482 (CFLAGS-ioputs.c): Likewise.
19483 (CFLAGS-ioseekoff.c): Likewise.
19484 (CFLAGS-ioseekpos.c): Likewise.
19485 (CFLAGS-iosetbuffer.c): Likewise.
19486 (CFLAGS-iosetvbuf.c): Likewise.
19487 (CFLAGS-ioungetc.c): Likewise.
19488 (CFLAGS-ioungetwc.c): Likewise.
19489 (CFLAGS-oldfileops.c): Likewise.
19490 (CFLAGS-oldiofclose.c): Likewise.
19491 (CFLAGS-oldiofgetpos64.c): Likewise.
19492 (CFLAGS-oldiofgetpos.c): Likewise.
19493 (CFLAGS-oldiofsetpos64.c): Likewise.
19494 (CFLAGS-oldiofsetpos.c): Likewise.
19495 (CFLAGS-peekc.c): Likewise.
19496 (CFLAGS-putc.c): Likewise.
19497 (CFLAGS-putchar.c): Likewise.
19498 (CFLAGS-putwc.c): Likewise.
19499 (CFLAGS-putwchar.c): Likewise.
19500 (CFLAGS-rewind.c): Likewise.
19501 (CFLAGS-wfileops.c): Likewise.
19502 (CFLAGS-wgenops.c): Likewise.
19503 (CFLAGS-oldiofopen.c): Likewise.
19504 (CFLAGS-iofopen.c): Likewise.
19505 (CFLAGS-iofopen64.c): Likewise.
19506 (CFLAGS-oldtmpfile.c): Likewise.
19507 (CFLAGS-tst_putwc.c): Likewise.
19508 * locale/Makefile (CFLAGS-md5.c): Likewise.
19509 (CFLAGS-charmap.c): Likewise.
19510 (CFLAGS-locfile.c): Likewise.
19511 (CFLAGS-charmap-dir.c): Likewise.
19512 * login/Makefile (CFLAGS-grantpt.c): Likewise.
19513 (CFLAGS-getpt.c): Likewise.
19514 (CFLAGS-pt_chown.c): Likewise.
19515 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
19516 (CFLAGS-obstack.c): Likewise.
19517 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
19518 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
19519 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
19520 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
19521 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
19522 (CFLAGS-test-tgmath.c): Likewise.
19523 (CFLAGS-test-tgmath2.c): Likewise.
19524 (CFLAGS-test-tgmath-ret.c): Likewise.
19525 (CFLAGS-test-powl.c): Likewise.
19526 (CFLAGS-test-snan.c): Likewise.
19527 (CFLAGS-test-signgam-finite.c): Likewise.
19528 (CFLAGS-test-signgam-finite-c99.c): Likewise.
19529 (CFLAGS-test-signgam-finite-c11.c): Likewise.
19530 (CFLAGS-test-signgam-uchar.c): Likewise.
19531 (CFLAGS-test-signgam-uchar-init.c): Likewise.
19532 (CFLAGS-test-signgam-uchar-static.c): Likewise.
19533 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
19534 (CFLAGS-test-signgam-uint.c): Likewise.
19535 (CFLAGS-test-signgam-uint-init.c): Likewise.
19536 (CFLAGS-test-signgam-uint-static.c): Likewise.
19537 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
19538 (CFLAGS-test-signgam-ullong.c): Likewise.
19539 (CFLAGS-test-signgam-ullong-init.c): Likewise.
19540 (CFLAGS-test-signgam-ullong-static.c): Likewise.
19541 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
19542 (CFLAGS-test-math-cxx11.cc): Likewise.
19543 (CFLAGS-test-math-isinff.cc): Likewise.
19544 (CFLAGS-test-math-iszero.cc): Likewise.
19545 (CFLAGS-test-math-issignaling.cc): Likewise.
19546 (CFLAGS-test-math-iscanonical.cc): Likewise.
19547 (CFLAGS-test-iszero-excess-precision.c): Likewise.
19548 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
19549 (CFLAGS-test-flt-eval-method.c): Likewise.
19550 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
19551 (CFLAGS-test-finite-macros.c): Likewise.
19552 * misc/Makefile (CFLAGS-select.c): Likewise.
19553 (CFLAGS-tsearch.c): Likewise.
19554 (CFLAGS-lsearch.c): Likewise.
19555 (CFLAGS-pselect.c): Likewise.
19556 (CFLAGS-readv.c): Likewise.
19557 (CFLAGS-writev.c): Likewise.
19558 (CFLAGS-preadv.c): Likewise.
19559 (CFLAGS-preadv64.c): Likewise.
19560 (CFLAGS-pwritev.c): Likewise.
19561 (CFLAGS-pwritev64.c): Likewise.
19562 (CFLAGS-preadv2.c): Likewise.
19563 (CFLAGS-preadv64v2.c): Likewise.
19564 (CFLAGS-pwritev2.c): Likewise.
19565 (CFLAGS-pwritev64v2.c): Likewise.
19566 (CFLAGS-usleep.c): Likewise.
19567 (CFLAGS-syslog.c): Likewise.
19568 (CFLAGS-error.c): Likewise.
19569 (CFLAGS-getpass.c): Likewise.
19570 (CFLAGS-mkstemp.c): Likewise.
19571 (CFLAGS-mkstemp64.c): Likewise.
19572 (CFLAGS-getsysstats.c): Likewise.
19573 (CFLAGS-getusershell.c): Likewise.
19574 (CFLAGS-err.c): Likewise.
19575 (CFLAGS-tst-tsearch.c): Likewise.
19576 (CFLAGS-msync.c): Likewise.
19577 (CFLAGS-fdatasync.c): Likewise.
19578 (CFLAGS-fsync.c): Likewise.
19579 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
19580 (CFLAGS-unwind.c): Likewise.
19581 (CFLAGS-unwind-forcedunwind.c): Likewise.
19582 (CFLAGS-pthread_cancel.c): Likewise.
19583 (CFLAGS-pthread_setcancelstate.c): Likewise.
19584 (CFLAGS-pthread_setcanceltype.c): Likewise.
19585 (CFLAGS-cancellation.c): Likewise.
19586 (CFLAGS-libc-cancellation.c): Likewise.
19587 (CFLAGS-pthread_exit.c): Likewise.
19588 (CFLAGS-forward.c): Likewise.
19589 (CFLAGS-pthread_testcancel.c): Likewise.
19590 (CFLAGS-pthread_join.c): Likewise.
19591 (CFLAGS-pthread_timedjoin.c): Likewise.
19592 (CFLAGS-pthread_once.c): Likewise.
19593 (CFLAGS-pthread_cond_wait.c): Likewise.
19594 (CFLAGS-sem_wait.c): Likewise.
19595 (CFLAGS-sem_timedwait.c): Likewise.
19596 (CFLAGS-fcntl.c): Likewise.
19597 (CFLAGS-lockf.c): Likewise.
19598 (CFLAGS-pread.c): Likewise.
19599 (CFLAGS-pread64.c): Likewise.
19600 (CFLAGS-pwrite.c): Likewise.
19601 (CFLAGS-pwrite64.c): Likewise.
19602 (CFLAGS-wait.c): Likewise.
19603 (CFLAGS-waitpid.c): Likewise.
19604 (CFLAGS-sigwait.c): Likewise.
19605 (CFLAGS-msgrcv.c): Likewise.
19606 (CFLAGS-msgsnd.c): Likewise.
19607 (CFLAGS-tcdrain.c): Likewise.
19608 (CFLAGS-open.c): Likewise.
19609 (CFLAGS-open64.c): Likewise.
19610 (CFLAGS-pause.c): Likewise.
19611 (CFLAGS-recv.c): Likewise.
19612 (CFLAGS-send.c): Likewise.
19613 (CFLAGS-accept.c): Likewise.
19614 (CFLAGS-sendto.c): Likewise.
19615 (CFLAGS-connect.c): Likewise.
19616 (CFLAGS-recvfrom.c): Likewise.
19617 (CFLAGS-recvmsg.c): Likewise.
19618 (CFLAGS-sendmsg.c): Likewise.
19619 (CFLAGS-close.c): Likewise.
19620 (CFLAGS-read.c): Likewise.
19621 (CFLAGS-write.c): Likewise.
19622 (CFLAGS-nanosleep.c): Likewise.
19623 (CFLAGS-sigsuspend.c): Likewise.
19624 (CFLAGS-msync.c): Likewise.
19625 (CFLAGS-fdatasync.c): Likewise.
19626 (CFLAGS-fsync.c): Likewise.
19627 (CFLAGS-pt-system.c): Likewise.
19628 (CFLAGS-tst-cleanup2.c): Likewise.
19629 (CFLAGS-tst-cleanupx2.c): Likewise.
19630 (CFLAGS-flockfile.c): Likewise.
19631 (CFLAGS-ftrylockfile.c): Likewise.
19632 (CFLAGS-funlockfile.c): Likewise.
19633 (CFLAGS-tst-initializers1.c): Likewise.
19634 (CFLAGS-tst-initializers1-c89.c): Likewise.
19635 (CFLAGS-tst-initializers1-c99.c): Likewise.
19636 (CFLAGS-tst-initializers1-c11.c): Likewise.
19637 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
19638 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
19639 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
19640 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
19641 (CFLAGS-nscd_getgr_r.c): Likewise.
19642 (CFLAGS-nscd_gethst_r.c): Likewise.
19643 (CFLAGS-nscd_getai.c): Likewise.
19644 (CFLAGS-nscd_initgroups.c): Likewise.
19645 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
19646 (CFLAGS-pause.c): Likewise.
19647 (CFLAGS-pread.c): Likewise.
19648 (CFLAGS-pread64.c): Likewise.
19649 (CFLAGS-pwrite.c): Likewise.
19650 (CFLAGS-pwrite64.c): Likewise.
19651 (CFLAGS-sleep.c): Likewise.
19652 (CFLAGS-wait.c): Likewise.
19653 (CFLAGS-waitid.c): Likewise.
19654 (CFLAGS-waitpid.c): Likewise.
19655 (CFLAGS-getopt.c): Likewise.
19656 (CFLAGS-wordexp.c): Likewise.
19657 (CFLAGS-sysconf.c): Likewise.
19658 (CFLAGS-pathconf.c): Likewise.
19659 (CFLAGS-fpathconf.c): Likewise.
19660 (CFLAGS-spawn.c): Likewise.
19661 (CFLAGS-spawnp.c): Likewise.
19662 (CFLAGS-spawni.c): Likewise.
19663 (CFLAGS-glob.c): Likewise.
19664 (CFLAGS-glob64.c): Likewise.
19665 (CFLAGS-getconf.c): Likewise.
19666 (CFLAGS-nanosleep.c): Likewise.
19667 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
19668 (CFLAGS-getpwent.c): Likewise.
19669 (CFLAGS-getpw.c): Likewise.
19670 (CFLAGS-fgetpwent_r.c): Likewise.
19671 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
19672 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
19673 (CFLAGS-mq_timedreceive.c): Likewise.
19674 (CFLAGS-mq_timedsend.c): Likewise.
19675 (CFLAGS-clock_nanosleep.c): Likewise.
19676 (CFLAGS-librt-cancellation.c): Likewise.
19677 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
19678 (CFLAGS-getspent.c): Likewise.
19679 (CFLAGS-fgetspent.c): Likewise.
19680 (CFLAGS-fgetspent_r.c): Likewise.
19681 (CFLAGS-putspent.c): Likewise.
19682 (CFLAGS-getspnam.c): Likewise.
19683 (CFLAGS-getspnam_r.c): Likewise.
19684 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
19685 (CFLAGS-sigsuspend.c): Likewise.
19686 (CFLAGS-sigtimedwait.c): Likewise.
19687 (CFLAGS-sigwait.c): Likewise.
19688 (CFLAGS-sigwaitinfo.c): Likewise.
19689 (CFLAGS-sigreturn.c): Likewise.
19690 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
19691 (CFLAGS-vfwprintf.c): Likewise.
19692 (CFLAGS-tmpfile.c): Likewise.
19693 (CFLAGS-tmpfile64.c): Likewise.
19694 (CFLAGS-tempname.c): Likewise.
19695 (CFLAGS-psignal.c): Likewise.
19696 (CFLAGS-vprintf.c): Likewise.
19697 (CFLAGS-cuserid.c): Likewise.
19698 (CFLAGS-errlist.c): Likewise.
19699 (CFLAGS-siglist.c): Likewise.
19700 (CFLAGS-scanf15.c): Likewise.
19701 (CFLAGS-scanf17.c): Likewise.
19702 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
19703 (CFLAGS-msort.c): Likewise.
19704 (CFLAGS-qsort.c): Likewise.
19705 (CFLAGS-system.c): Likewise.
19706 (CFLAGS-fmtmsg.c): Likewise.
19707 (CFLAGS-strfmon.c): Likewise.
19708 (CFLAGS-strfmon_l.c): Likewise.
19709 (CFLAGS-strfromd.c): Likewise.
19710 (CFLAGS-strfromf.c): Likewise.
19711 (CFLAGS-strfroml.c): Likewise.
19712 (CFLAGS-tst-bsearch.c): Likewise.
19713 (CFLAGS-tst-qsort.c): Likewise.
19714 (CFLAGS-tst-makecontext2.c): Likewise.
19715 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
19716 (CFLAGS-xnlm_prot.c): Likewise.
19717 (CFLAGS-xrstat.c): Likewise.
19718 (CFLAGS-xyppasswd.c): Likewise.
19719 (CFLAGS-xklm_prot.c): Likewise.
19720 (CFLAGS-xrex.c): Likewise.
19721 (CFLAGS-xsm_inter.c): Likewise.
19722 (CFLAGS-xmount.c): Likewise.
19723 (CFLAGS-xrusers.c): Likewise.
19724 (CFLAGS-xspray.c): Likewise.
19725 (CFLAGS-xnfs_prot.c): Likewise.
19726 (CFLAGS-xrquota.c): Likewise.
19727 (CFLAGS-xkey_prot.c): Likewise.
19728 (CFLAGS-auth_unix.c): Likewise.
19729 (CFLAGS-key_call.c): Likewise.
19730 (CFLAGS-pmap_rmt.c): Likewise.
19731 (CFLAGS-clnt_perr.c): Likewise.
19732 (CFLAGS-openchild.c): Likewise.
19733 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
19734 (CFLAGS-msgsnd.c): Likewise.
19735 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
19736 * time/Makefile (CFLAGS-tzfile.c): Likewise.
19737 (CFLAGS-tzset.c): Likewise.
19738 (CFLAGS-getdate.c): Likewise.
19739 (CFLAGS-test_time.c): Likewise.
19740 (CPPFLAGS-tst-tzname.c): Likewise.
19741 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
19742 (CFLAGS-zic.c): Likewise.
19743 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
19744 (CFLAGS-wcswidth.c): Likewise.
19745 (CFLAGS-wcstol.c): Likewise.
19746 (CFLAGS-wcstoul.c): Likewise.
19747 (CFLAGS-wcstoll.c): Likewise.
19748 (CFLAGS-wcstoull.c): Likewise.
19749 (CFLAGS-wcstod.c): Likewise.
19750 (CFLAGS-wcstold.c): Likewise.
19751 (CFLAGS-wcstof128.c): Likewise.
19752 (CFLAGS-wcstof.c): Likewise.
19753 (CFLAGS-wcstol_l.c): Likewise.
19754 (CFLAGS-wcstoul_l.c): Likewise.
19755 (CFLAGS-wcstoll_l.c): Likewise.
19756 (CFLAGS-wcstoull_l.c): Likewise.
19757 (CFLAGS-wcstod_l.c): Likewise.
19758 (CFLAGS-wcstold_l.c): Likewise.
19759 (CFLAGS-wcstof128_l.c): Likewise.
19760 (CFLAGS-wcstof_l.c): Likewise.
19761 (CPPFLAGS-tst-wchar-h.c): Likewise.
19762 (CPPFLAGS-wcstold_l.c): Likewise.
19763
19764 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
19765
19766 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
19767
19768 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
19769 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19770
19771 * manual/tunables.texi (Hardware Capability Tunables): Document
19772 glibc.tune.cached_memopt.
19773 * sysdeps/powerpc/cpu-features.c: New file.
19774 * sysdeps/powerpc/cpu-features.h: New file.
19775 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
19776 _dl_powerpc_cpu_features.
19777 * sysdeps/powerpc/dl-tunables.list: New file.
19778 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
19779 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
19780 (INIT_ARCH): Initialize use_aligned_memopt.
19781 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
19782 IS_IN(rtld))]: Restrict dl_platform_init availability and
19783 initialize CPU features used by tunables.
19784 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
19785 Add memcpy-power8-cached.
19786 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
19787 __memcpy_power8_cached.
19788 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
19789 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
19790 New file.
19791
19792 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
19793
19794 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
19795 (CFLAGS-noinl-tester.c): Likewise.
19796 (CFLAGS-tst-strlen.c): Likewise.
19797 (CFLAGS-stratcliff.c): Likewise.
19798 (CFLAGS-test-ffs.c): Likewise.
19799 (CFLAGS-tst-inlcall.c): Likewise.
19800 (CFLAGS-tst-xbzero-opt.c): Likewise.
19801 (CFLAGS-memcpy.c): Likewise.
19802 (CFLAGS-wordcopy.c): Likewise.
19803
19804 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
19805
19806 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
19807 Store r15 on stack and add cfi rule.
19808 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
19809 Likewise.
19810
19811 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
19812
19813 [BZ #22577]
19814 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
19815 call.
19816
19817 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
19818
19819 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19820 Add s_sinf-sse2 and s_sinf-fma.
19821 (CFLAGS-s_sinf-fma.c): New.
19822 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
19823 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
19824 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
19825
19826 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
19827
19828 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
19829
19830 2017-12-07 Joseph Myers <joseph@codesourcery.com>
19831
19832 [BZ #22568]
19833 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
19834 part of result to imaginary part of argument if it is zero and the
19835 real part of the argument is not finite.
19836 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
19837 of result to real part of argument if it is zero and the imaginary
19838 part of the argument is not finite.
19839
19840 2017-12-07 Mike FABIAN <mfabian@redhat.com>
19841
19842 [BZ #22524]
19843 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
19844 and to the list of locales to be built for testing.
19845 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
19846 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
19847 and build the collation rules upon that.
19848
19849 2017-12-07 Joseph Myers <joseph@codesourcery.com>
19850
19851 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
19852 * manual/math.texi (Mathematics): Document support for _Float32.
19853 * math/Makefile (test-types): Add float32.
19854 * math/Versions (GLIBC_2.27): Add _Float32 functions.
19855 * stdlib/Versions (GLIBC_2.27): Likewise.
19856 * wcsmbs/Versions (GLIBC_2.27): Likewise.
19857 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19858 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19859 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19860 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19861 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19862 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19863 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19864 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19865 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19866 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19867 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19868 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19869 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19870 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19871 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19872 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19873 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19874 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19875 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19876 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19877 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19878 Likewise.
19879 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19880 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19881 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19882 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19883 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19884 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19885 Likewise.
19886 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19887 Likewise.
19888 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19889 Likewise.
19890 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19891 Likewise.
19892
19893 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19894 Likewise.
19895 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19896 Likewise.
19897 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19898 Likewise.
19899 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19900 Likewise.
19901 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19902 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19903 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19904 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19905 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19906 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19907 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19908 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19909 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19910 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19911 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19912 Likewise.
19913 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19914 Likewise.
19915 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19916 Likewise.
19917 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19918 Likewise.
19919 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19920 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19921 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19922 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19923 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19924 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19925 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19926 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19927
19928 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19929
19930 * stdlib/strtof.c: Include <bits/floatn.h>
19931 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
19932 and later undefine as macro. Define as weak alias if
19933 [!USE_WIDE_CHAR].
19934 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
19935 and later undefine as macro. Define as weak alias if
19936 [USE_WIDE_CHAR].
19937 * stdlib/strtof_l.c: Include <bits/floatn.h>
19938 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
19939 and later undefine as macro. Define as weak alias if
19940 [!USE_WIDE_CHAR].
19941 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
19942 and later undefine as macro. Define as weak alias if
19943 [USE_WIDE_CHAR].
19944
19945 * stdlib/strfromf.c: Include <bits/floatn.h>.
19946 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
19947 and later undefine as macro and define as weak alias.
19948
19949 * math/test-float32.h: New file.
19950
19951 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
19952 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
19953 (libm_alias_float_other_r): Create f32 alias.
19954 (libm_alias_float_r): Use semicolon before call to
19955 libm_alias_float_other_r.
19956
19957 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
19958 second argument to libm_alias_float_other.
19959 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
19960 second argument to libm_alias_float_other.
19961 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
19962 argument to libm_alias_float_other.
19963
19964 [BZ #22561]
19965 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
19966 real part of result for argument 0 + i * NaN.
19967 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
19968 results for tests of 0 + i * NaN.
19969
19970 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19971
19972 * sysdeps/alpha/fpu/libm-test-ulps: Update.
19973
19974 2017-12-06 David S. Miller <davem@davemloft.net>
19975
19976 * sysdeps/sparc/fpu/libm-test-ulps: Update
19977 exp_{downward,towardzero,upward} ulps.
19978
19979 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19980
19981 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
19982 variables static.
19983
19984 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
19985 (Y0_2D): Likewise.
19986 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
19987 (Y0_2D): Likewise.
19988 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
19989 (Y0_2D): Likewise.
19990 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
19991 (Y0_2D): Likewise.
19992
19993 2017-12-06 Mike FABIAN <mfabian@redhat.com>
19994
19995 [BZ #22515]
19996 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
19997 and to the list of locales to be built for testing.
19998 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
19999 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
20000 and build the collation rules upon that.
20001
20002 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20003
20004 * NEWS: Add sinf to list of optimized functions.
20005
20006 2017-12-06 Joseph Myers <joseph@codesourcery.com>
20007
20008 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
20009 (__HAVE_FLOAT32X): Likewise.
20010 * manual/math.texi (Mathematics): Document support for _Float64
20011 and _Float32x.
20012 * math/Makefile (test-types): Add float64 and float32x.
20013 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
20014 functions.
20015 * stdlib/Versions (GLIBC_2.27): Likewise.
20016 * wcsmbs/Versions (GLIBC_2.27): Likewise.
20017 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
20018 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
20019 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
20020 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
20021 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
20022 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
20023 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
20024 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
20025 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
20026 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
20027 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
20028 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
20029 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
20030 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
20031 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
20032 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
20033 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
20034 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
20035 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
20036 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
20037 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
20038 Likewise.
20039 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
20040 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
20041 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
20042 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
20043 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
20044 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
20045 Likewise.
20046 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
20047 Likewise.
20048 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
20049 Likewise.
20050 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
20051 Likewise.
20052 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
20053 Likewise.
20054 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
20055 Likewise.
20056 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
20057 Likewise.
20058 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
20059 Likewise.
20060 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
20061 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
20062 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
20063 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
20064 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
20065 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
20066 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
20067 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
20068 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
20069 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
20070 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
20071 Likewise.
20072 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
20073 Likewise.
20074 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
20075 Likewise.
20076 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
20077 Likewise.
20078 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
20079 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
20080 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
20081 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
20082 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
20083 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
20084 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
20085 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
20086
20087 2017-12-05 Joseph Myers <joseph@codesourcery.com>
20088
20089 * bits/floatn-common.h: Include <bits/long-double.h>.
20090 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
20091 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
20092 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
20093 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
20094 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
20095 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
20096 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
20097 (__builtin_huge_valf64): Use __builtin_huge_vall.
20098 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
20099 (__builtin_inff64): Use __builtin_infl.
20100 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
20101 (__builtin_nanf64): Use __builtin_nanl.
20102 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
20103 (__builtin_nansf64): Use __builtin_nansl.
20104
20105 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
20106 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
20107 Carlos O'Donnell <carlos@redhat.com>
20108
20109 * elf/dl-tunables.list: Add elision parameters.
20110 * manual/tunables.texi: Add entries about elision tunable.
20111 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
20112 Add callback functions to dynamically enable/disable elision.
20113 Add multiple callbacks functions to set elision parameters.
20114 Deleted __libc_enable_secure check.
20115 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
20116 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
20117 * configure: Regenerated.
20118 * configure.ac: Option enable_lock_elision was deleted.
20119 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
20120 * config.make.in: Remove references to enable_lock_elision.
20121 * manual/install.texi: Elision configure option was removed.
20122 * INSTALL: Regenerated to remove enable_lock_elision.
20123 * nptl/Makefile:
20124 Disable elision so it can verify error case for destroying a mutex.
20125 * sysdeps/powerpc/nptl/elide.h:
20126 Cleanup ENABLE_LOCK_ELISION check.
20127 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
20128 * sysdeps/s390/configure: Regenerated.
20129 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
20130 * nptl/tst-mutex8.c:
20131 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
20132 * sysdeps/powerpc/powerpc32/sysdep.h:
20133 Deleted all ENABLE_LOCK_ELISION checks.
20134 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
20135 * sysdeps/powerpc/sysdep.h: Likewise.
20136 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
20137 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
20138 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
20139 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
20140 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
20141 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
20142 enable-lock-elision.
20143
20144 2017-12-05 Joseph Myers <joseph@codesourcery.com>
20145
20146 * stdlib/strtod.c: Include <bits/floatn.h>.
20147 (BUILD_DOUBLE): New macro.
20148 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
20149 (strtof64): Define and later undefine as macro. Define as weak
20150 alias if [!USE_WIDE_CHAR].
20151 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
20152 (wcstof64): Define and later undefine as macro. Define as weak
20153 alias if [USE_WIDE_CHAR].
20154 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
20155 (strtof32x): Define and later undefine as macro. Define as weak
20156 alias if [!USE_WIDE_CHAR].
20157 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
20158 (wcstof32x): Define and later undefine as macro. Define as weak
20159 alias if [USE_WIDE_CHAR].
20160 * stdlib/strtod_l.c: Include <bits/floatn.h>.
20161 (BUILD_DOUBLE): New macro.
20162 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
20163 (strtof64_l): Define and later undefine as macro. Define as weak
20164 alias if [!USE_WIDE_CHAR].
20165 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
20166 (wcstof64_l): Define and later undefine as macro. Define as weak
20167 alias if [USE_WIDE_CHAR].
20168 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
20169 (strtof32x_l): Define and later undefine as macro. Define as weak
20170 alias if [!USE_WIDE_CHAR].
20171 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
20172 (wcstof32x_l): Define and later undefine as macro. Define as weak
20173 alias if [USE_WIDE_CHAR].
20174
20175 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20176
20177 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
20178 (reduced): Use ones as double instead of integer.
20179
20180 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
20181
20182 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
20183
20184 2017-12-05 Joseph Myers <joseph@codesourcery.com>
20185
20186 * stdlib/strfromd.c: Include <bits/floatn.h>.
20187 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
20188 and later undefine as macro and define as weak alias.
20189 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
20190 Likewise.
20191
20192 * math/test-float32x.h: New file.
20193 * math/test-float64.h: Likewise.
20194
20195 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
20196 (libm_alias_double_other_r_f64): New macro.
20197 (libm_alias_double_other_r_f32x): Likewise.
20198 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
20199 libm_alias_double_other_r_f32x.
20200 (libm_alias_double_r): Use semicolon before call to
20201 libm_alias_double_other_r.
20202 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
20203 <bits/floatn.h>.
20204 (libm_alias_double_other_r_f64): New macro.
20205 (libm_alias_double_other_r_f32x): Likewise.
20206 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
20207 libm_alias_double_other_r_f32x.
20208
20209 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
20210
20211 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
20212 int.
20213 (SINF_FUNC): Likewise. Replace floor with simple casts.
20214
20215 2017-12-05 Mike FABIAN <mfabian@redhat.com>
20216
20217 [BZ #22517]
20218 * localedata/Makefile: Add et_EE.UTF-8 to test-input
20219 and to the list of locales to be built for testing.
20220 * localedata/et_EE.UTF-8.in: New file for testing the collation.
20221 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
20222 and build the collation rules upon that.
20223
20224 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
20225
20226 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
20227 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
20228 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
20229 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
20230 instead of __insn__xxx.
20231 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
20232 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
20233 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
20234 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
20235 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
20236 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
20237
20238 2017-12-05 Florian Weimer <fweimer@redhat.com>
20239
20240 Linux: Implement interfaces for memory protection keys
20241 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
20242 xsignal, xsysconf.
20243 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
20244 * support/xunistd.h (xsysconf): Declare.
20245 * support/xraise.c: New file.
20246 * support/xsigaction.c: Likewise.
20247 * support/xsignal.c: Likewise.
20248 * support/xsysconf.c: Likewise.
20249 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
20250 pkey_set, pkey_get, pkey_mprotect.
20251 [misc] (tests): Add tst-pkey.
20252 (tst-pkey): Link with -lpthread.
20253 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
20254 pkey_free, pkey_set, pkey_get, pkey_mprotect.
20255 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
20256 (PKEY_DISABLE_WRITE): Define.
20257 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
20258 Declare.
20259 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
20260 (SEGV_PKUERR): Add.
20261 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
20262 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
20263 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
20264 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
20265 Add.
20266 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
20267 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
20268 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
20269 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
20270 * sysdeps/unix/sysv/linux/**.abilist: Update.
20271
20272 2017-12-05 Florian Weimer <fweimer@redhat.com>
20273
20274 * support/tst-test_compare.c (subprocess): Use long long instead
20275 of long argument for consistent type width across 32-bit and
20276 64-bit architectures.
20277 (do_test): Adjust expected output.
20278
20279 2017-12-05 Joseph Myers <joseph@codesourcery.com>
20280
20281 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
20282 (cosf): Define using libm_alias_float.
20283 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
20284 (fabsf): Define using libm_alias_float.
20285 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
20286 (fmaf): Define using libm_alias_float.
20287 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
20288 (rintf): Define using libm_alias_float.
20289 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
20290 (sinf): Define using libm_alias_float.
20291 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
20292 <libm-alias-float.h>.
20293 (modff): Define using libm_alias_float.
20294 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
20295 <libm-alias-float.h>.
20296 (logbf): Define using libm_alias_float.
20297 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
20298 <libm-alias-float.h>.
20299 (ceilf): Define using libm_alias_float.
20300 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
20301 <libm-alias-float.h>.
20302 (copysignf): Define using libm_alias_float.
20303 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
20304 <libm-alias-float.h>.
20305 (floorf): Define using libm_alias_float.
20306 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
20307 <libm-alias-float.h>.
20308 (llrintf): Define using libm_alias_float.
20309 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
20310 <libm-alias-float.h>.
20311 (llroundf): Define using libm_alias_float.
20312 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
20313 <libm-alias-float.h>.
20314 (lrintf): Define using libm_alias_float.
20315 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
20316 <libm-alias-float.h>.
20317 (lroundf): Define using libm_alias_float.
20318 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
20319 <libm-alias-float.h>.
20320 (nearbyintf): Define using libm_alias_float.
20321 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
20322 <libm-alias-float.h>.
20323 (rintf): Define using libm_alias_float.
20324 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
20325 <libm-alias-float.h>.
20326 (roundf): Define using libm_alias_float.
20327 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
20328 <libm-alias-float.h>.
20329 (truncf): Define using libm_alias_float.
20330 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
20331 Include <libm-alias-float.h>.
20332 (ceilf): Define using libm_alias_float.
20333 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
20334 Include <libm-alias-float.h>.
20335 (copysignf): Define using libm_alias_float.
20336 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
20337 Include <libm-alias-float.h>.
20338 (floorf): Define using libm_alias_float.
20339 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
20340 Include <libm-alias-float.h>.
20341 (llrintf): Define using libm_alias_float.
20342 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
20343 Include <libm-alias-float.h>.
20344 (llroundf): Define using libm_alias_float.
20345 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
20346 Include <libm-alias-float.h>.
20347 (logbf): Define using libm_alias_float.
20348 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
20349 Include <libm-alias-float.h>.
20350 (lrintf): Define using libm_alias_float.
20351 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
20352 Include <libm-alias-float.h>.
20353 (lroundf): Define using libm_alias_float.
20354 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
20355 Include <libm-alias-float.h>.
20356 (modff): Define using libm_alias_float.
20357 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
20358 Include <libm-alias-float.h>.
20359 (roundf): Define using libm_alias_float.
20360 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
20361 Include <libm-alias-float.h>.
20362 (truncf): Define using libm_alias_float.
20363 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
20364 <libm-alias-float.h>.
20365 (llrintf): Define using libm_alias_float.
20366 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
20367 <libm-alias-float.h>.
20368 (llroundf): Define using libm_alias_float.
20369 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
20370 <libm-alias-float.h>.
20371 (ceilf): Define using libm_alias_float.
20372 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
20373 <libm-alias-float.h>.
20374 (floorf): Define using libm_alias_float.
20375 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
20376 <libm-alias-float.h>.
20377 (llroundf): Define using libm_alias_float.
20378 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
20379 <libm-alias-float.h>.
20380 (lroundf): Define using libm_alias_float.
20381 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
20382 <libm-alias-float.h>.
20383 (roundf): Define using libm_alias_float.
20384 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
20385 <libm-alias-float.h>.
20386 (truncf): Define using libm_alias_float.
20387 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
20388 <libm-alias-float.h>.
20389 (copysignf): Define using libm_alias_float.
20390 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
20391 <libm-alias-float.h>.
20392 (llrintf): Define using libm_alias_float.
20393 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
20394 <libm-alias-float.h>.
20395 (llroundf): Define using libm_alias_float.
20396 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
20397 <libm-alias-float.h>.
20398 (lrintf): Define using libm_alias_float.
20399 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
20400 <libm-alias-float.h>.
20401 (lroundf): Define using libm_alias_float.
20402 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
20403 <libm-alias-float.h>.
20404 (ceilf): Define using libm_alias_float.
20405 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
20406 <libm-alias-float.h>.
20407 (copysignf): Define using libm_alias_float.
20408 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
20409 <libm-alias-float.h>.
20410 (cosf): Define using libm_alias_float.
20411 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
20412 <libm-alias-float.h>.
20413 (floorf): Define using libm_alias_float.
20414 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
20415 <libm-alias-float.h>.
20416 (llrintf): Define using libm_alias_float.
20417 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
20418 <libm-alias-float.h>.
20419 (llroundf): Define using libm_alias_float.
20420 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
20421 <libm-alias-float.h>.
20422 (logbf): Define using libm_alias_float.
20423 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
20424 <libm-alias-float.h>.
20425 (modff): Define using libm_alias_float.
20426 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
20427 <libm-alias-float.h>.
20428 (roundf): Define using libm_alias_float.
20429 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
20430 <libm-alias-float.h>.
20431 (sinf): Define using libm_alias_float.
20432 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
20433 <libm-alias-float.h>.
20434 (truncf): Define using libm_alias_float.
20435 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
20436 <libm-alias-float.h>.
20437 (ceilf): Define using libm_alias_float.
20438 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
20439 <libm-alias-float.h>.
20440 (copysignf): Define using libm_alias_float.
20441 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
20442 <libm-alias-float.h>.
20443 (floorf): Define using libm_alias_float.
20444 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
20445 <libm-alias-float.h>.
20446 (llrintf): Define using libm_alias_float.
20447 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
20448 <libm-alias-float.h>.
20449 (llroundf): Define using libm_alias_float.
20450 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
20451 <libm-alias-float.h>.
20452 (nearbyintf): Define using libm_alias_float.
20453 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
20454 <libm-alias-float.h>.
20455 (rintf): Define using libm_alias_float.
20456 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
20457 <libm-alias-float.h>.
20458 (roundf): Define using libm_alias_float.
20459 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
20460 <libm-alias-float.h>.
20461 (truncf): Define using libm_alias_float.
20462 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
20463 <libm-alias-float.h>.
20464 (ceilf): Define using libm_alias_float.
20465 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
20466 <libm-alias-float.h>.
20467 (floorf): Define using libm_alias_float.
20468 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
20469 <libm-alias-float.h>.
20470 (llroundf): Define using libm_alias_float.
20471 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
20472 <libm-alias-float.h>.
20473 (roundf): Define using libm_alias_float.
20474 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
20475 <libm-alias-float.h>.
20476 (truncf): Define using libm_alias_float.
20477 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
20478 <libm-alias-float.h>.
20479 (copysignf): Define using libm_alias_float.
20480 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
20481 <libm-alias-float.h>.
20482 (llrintf): Define using libm_alias_float.
20483 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
20484 <libm-alias-float.h>.
20485 (llroundf): Define using libm_alias_float.
20486 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
20487 <libm-alias-float.h>.
20488 (cosf): Define using libm_alias_float.
20489 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
20490 <libm-alias-float.h>.
20491 (llrintf): Define using libm_alias_float.
20492 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
20493 <libm-alias-float.h>.
20494 (llroundf): Define using libm_alias_float.
20495 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
20496 <libm-alias-float.h>.
20497 (sinf): Define using libm_alias_float.
20498
20499 2017-12-04 Florian Weimer <fweimer@redhat.com>
20500
20501 * support/check.h (TEST_COMPARE): Define.
20502 (support_test_compare_failure): Declare.
20503 * support/Makefile (libsupport-routines): Add
20504 support_test_compare_failure.
20505 (tests): Add tst-test_compare.
20506 * support /support_test_compare_failure.c: New file.
20507 * support/tst-test_compare.c: Likewise.
20508
20509 2017-12-04 Mike FABIAN <mfabian@redhat.com>
20510
20511 [BZ #22527]
20512 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
20513 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
20514 available, this rewrite of the collation rules does reproduce
20515 the test file in the same order.
20516
20517 2017-12-04 Mike FABIAN <mfabian@redhat.com>
20518
20519 [BZ #10580]
20520 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
20521 digraphs in the month and day names. Using single code points for
20522 digraphs is deprecated. While there are dedicated Unicode
20523 codepoints, for the digraphs, these are included for backwards
20524 compatibility and modern texts use a sequence of Basic Latin
20525 characters. See: https://www.unicode.org/faq/ligature_digraph.html
20526 This makes the month and day names agree exactly with CLDR now,
20527 CLDR does not use the single code points for the digraphs either.
20528
20529 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
20530
20531 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
20532
20533 2017-12-04 Joseph Myers <joseph@codesourcery.com>
20534
20535 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
20536 of floor.
20537
20538 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
20539
20540 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
20541 Define only for libc.so.
20542
20543 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
20544
20545 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
20546 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
20547 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
20548 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
20549 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
20550
20551 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20552
20553 [BZ #5997]
20554 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
20555
20556 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
20557
20558 [BZ libc/19170]
20559 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
20560 PREINIT_FUNCTION_WEAK is nonzero.
20561 (gmon_initializer): New function. Put procedure label for it in
20562 .init_array section.
20563 (_init): Don't call PREINIT_FUNCTION.
20564 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
20565 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
20566 value when map argument is null.
20567
20568 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
20569 depi instruction from PIC pc-relative sequence.
20570 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
20571 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
20572 (elf_machine_load_address): Likewise.
20573 (elf_machine_runtime_setup): Likewise.
20574
20575 2017-12-02 Joseph Myers <joseph@codesourcery.com>
20576
20577 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
20578 <libm-alias-double.h>.
20579 (logb): Define using libm_alias_double.
20580 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
20581 <libm-alias-double.h>.
20582 (copysign): Define using libm_alias_double.
20583 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
20584 <libm-alias-double.h>.
20585 (llrint): Define using libm_alias_double.
20586 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
20587 <libm-alias-double.h>.
20588 (llround): Define using libm_alias_double.
20589 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
20590 <libm-alias-double.h>.
20591 (lrint): Define using libm_alias_double.
20592 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
20593 <libm-alias-double.h>.
20594 (lround): Define using libm_alias_double.
20595 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
20596 Include <libm-alias-double.h>.
20597 (copysign): Define using libm_alias_double.
20598 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
20599 Include <libm-alias-double.h>.
20600 (llrint): Define using libm_alias_double.
20601 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
20602 Include <libm-alias-double.h>.
20603 (llround): Define using libm_alias_double.
20604 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
20605 <libm-alias-double.h>.
20606 (logb): Define using libm_alias_double.
20607 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
20608 Include <libm-alias-double.h>.
20609 (lrint): Define using libm_alias_double.
20610 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
20611 Include <libm-alias-double.h>.
20612 (lround): Define using libm_alias_double.
20613 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
20614 <libm-alias-double.h>.
20615 (llrint): Define using libm_alias_double.
20616 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
20617 <libm-alias-double.h>.
20618 (llround): Define using libm_alias_double.
20619 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
20620 <libm-alias-double.h>.
20621 (llround): Define using libm_alias_double.
20622 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
20623 <libm-alias-double.h>.
20624 (lround): Define using libm_alias_double.
20625 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
20626 <libm-alias-double.h>.
20627 (copysign): Define using libm_alias_double.
20628 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
20629 <libm-alias-double.h>.
20630 (llrint): Define using libm_alias_double.
20631 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
20632 <libm-alias-double.h>.
20633 (llround): Define using libm_alias_double.
20634 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
20635 <libm-alias-double.h>.
20636 (lrint): Define using libm_alias_double.
20637 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
20638 <libm-alias-double.h>.
20639 (lround): Define using libm_alias_double.
20640 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
20641 <libm-alias-double.h>.
20642 (copysign): Define using libm_alias_double.
20643 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
20644 <libm-alias-double.h>.
20645 (llrint): Define using libm_alias_double.
20646 (lrint): Likewise.
20647 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
20648 <libm-alias-double.h>.
20649 (llround): Define using libm_alias_double.
20650 (lround): Likewise.
20651 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
20652 <libm-alias-double.h>.
20653 (logb): Define using libm_alias_double.
20654 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
20655 <libm-alias-double.h>.
20656 (copysign): Define using libm_alias_double.
20657 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
20658 <libm-alias-double.h>.
20659 (llrint): Define using libm_alias_double.
20660 (lrint): Likewise.
20661 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
20662 <libm-alias-double.h>.
20663 (llround): Define using libm_alias_double.
20664 (lround): Likewise.
20665 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
20666 <libm-alias-double.h>.
20667 (llround): Define using libm_alias_double.
20668 (lround): Likewise.
20669 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
20670 <libm-alias-double.h>.
20671 (copysign): Define using libm_alias_double.
20672 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
20673 <libm-alias-double.h>.
20674 (llrint): Define using libm_alias_double.
20675 (lrint): Likewise.
20676 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
20677 <libm-alias-double.h>.
20678 (llround): Define using libm_alias_double.
20679 (lround): Likewise.
20680 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
20681 <libm-alias-double.h>.
20682 (llrint): Define using libm_alias_double.
20683 (lrint): Likewise.
20684 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
20685 <libm-alias-double.h>.
20686 (llround): Define using libm_alias_double.
20687 (lround): Likewise.
20688
20689 2017-12-01 Joseph Myers <joseph@codesourcery.com>
20690
20691 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
20692 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
20693 compat symbol based on llround.
20694
20695 * sysdeps/powerpc/power7/fpu/s_logb.c
20696 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
20697 symbol based on __logb, not on logb.
20698 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
20699 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20700 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
20701 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20702
20703 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
20704 (rint): Define using libm_alias_double.
20705 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
20706 <libm-alias-double.h>.
20707 (modf): Define using libm_alias_double.
20708 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
20709 <libm-alias-double.h>.
20710 (ceil): Define using libm_alias_double.
20711 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
20712 <libm-alias-double.h>.
20713 (floor): Define using libm_alias_double.
20714 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
20715 <libm-alias-double.h>.
20716 (nearbyint): Define using libm_alias_double.
20717 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
20718 <libm-alias-double.h>.
20719 (rint): Define using libm_alias_double.
20720 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
20721 <libm-alias-double.h>.
20722 (round): Define using libm_alias_double.
20723 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
20724 <libm-alias-double.h>.
20725 (trunc): Define using libm_alias_double.
20726 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
20727 <libm-alias-double.h>.
20728 (ceil): Define using libm_alias_double.
20729 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
20730 Include <libm-alias-double.h>.
20731 (floor): Define using libm_alias_double.
20732 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
20733 <libm-alias-double.h>.
20734 (modf): Define using libm_alias_double.
20735 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
20736 Include <libm-alias-double.h>.
20737 (round): Define using libm_alias_double.
20738 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
20739 Include <libm-alias-double.h>.
20740 (trunc): Define using libm_alias_double.
20741 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
20742 <libm-alias-double.h>.
20743 (ceil): Define using libm_alias_double.
20744 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
20745 <libm-alias-double.h>.
20746 (floor): Define using libm_alias_double.
20747 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
20748 <libm-alias-double.h>.
20749 (round): Define using libm_alias_double.
20750 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
20751 <libm-alias-double.h>.
20752 (trunc): Define using libm_alias_double.
20753 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
20754 <libm-alias-double.h>.
20755 (ceil): Define using libm_alias_double.
20756 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
20757 <libm-alias-double.h>.
20758 (floor): Define using libm_alias_double.
20759 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
20760 <libm-alias-double.h>.
20761 (modf): Define using libm_alias_double.
20762 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
20763 <libm-alias-double.h>.
20764 (round): Define using libm_alias_double.
20765 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
20766 <libm-alias-double.h>.
20767 (trunc): Define using libm_alias_double.
20768 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
20769 <libm-alias-double.h>.
20770 (ceil): Define using libm_alias_double.
20771 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
20772 <libm-alias-double.h>.
20773 (floor): Define using libm_alias_double.
20774 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
20775 <libm-alias-double.h>.
20776 (nearbyint): Define using libm_alias_double.
20777 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
20778 <libm-alias-double.h>.
20779 (rint): Define using libm_alias_double.
20780 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
20781 <libm-alias-double.h>.
20782 (round): Define using libm_alias_double.
20783 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
20784 <libm-alias-double.h>.
20785 (trunc): Define using libm_alias_double.
20786 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
20787 <libm-alias-double.h>.
20788 (ceil): Define using libm_alias_double.
20789 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
20790 <libm-alias-double.h>.
20791 (floor): Define using libm_alias_double.
20792 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
20793 <libm-alias-double.h>.
20794 (round): Define using libm_alias_double.
20795 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
20796 <libm-alias-double.h>.
20797 (trunc): Define using libm_alias_double.
20798
20799 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
20800 (fabs): Define using libm_alias_double.
20801 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
20802 (fma): Define using libm_alias_double.
20803 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
20804 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
20805 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
20806 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
20807
20808 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20809
20810 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
20811
20812 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
20813 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
20814 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
20815
20816 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
20817 due redirect macro.
20818
20819 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
20820
20821 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
20822
20823 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20824
20825 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
20826 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
20827 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
20828 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
20829
20830 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20831 (libm-sysdep_routines): Add s_nearbyintf-generic and
20832 s_nearbyint-generic.
20833 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
20834 New file.
20835 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
20836 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
20837 Likewise.
20838 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
20839 Likewise.
20840 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
20841 file.
20842 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20843 Likewise.
20844
20845 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20846 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
20847 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
20848 file.
20849 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
20850 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
20851 Likewise.
20852 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
20853 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
20854 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
20855
20856 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20857 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
20858 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
20859 file.
20860 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
20861 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
20862 Likewise.
20863 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
20864 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
20865 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
20866
20867 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20868 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
20869 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
20870 file.
20871 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
20872 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
20873 Likewise.
20874 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
20875 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
20876 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
20877
20878 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20879 (sysdep_calls): New rule.
20880 (sysdep_routines): Use sysdep_calls as base.
20881 (libm-sysdep_routines): Add generic rule for symbols shared with
20882 libc. Add s_copysign-generic and s_copysign-generic objects.
20883 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
20884 New file.
20885 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
20886 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
20887 Likewise.
20888 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
20889 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
20890 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
20891
20892 2017-12-01 Mike FABIAN <mfabian@redhat.com>
20893
20894 [BZ #22519]
20895 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
20896 the list of locales to be built for testing.
20897 * localedata/is_IS.UTF-8.in: New file.
20898 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
20899 on iso14651_t1.
20900
20901 2017-12-01 Joseph Myers <joseph@codesourcery.com>
20902
20903 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
20904 <libm-alias-float.h>.
20905 (fabsf): Define using libm_alias_float.
20906
20907 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20908
20909 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
20910
20911 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20912
20913 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
20914 <libm-alias-float.h>.
20915 (fabsf): Define using libm_alias_float.
20916 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
20917 <libm-alias-float.h>.
20918 (lrintf): Define using libm_alias_float.
20919 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
20920 <libm-alias-float.h>.
20921 (rintf): Define using libm_alias_float.
20922
20923 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
20924 <libm-alias-double.h>.
20925 (fabs): Define using libm_alias_double.
20926 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
20927 <libm-alias-double.h>.
20928 (lrint): Define using libm_alias_double.
20929 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
20930 <libm-alias-double.h>.
20931 (rint): Define using libm_alias_double.
20932
20933 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
20934 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
20935 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
20936 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
20937 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
20938 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
20939 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
20940 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
20941 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
20942 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
20943 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
20944 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
20945 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
20946 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
20947 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
20948 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
20949 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
20950 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
20951 s_atan_template.c.
20952 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
20953 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
20954 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
20955 s_ceil_template.c.
20956 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
20957 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
20958 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
20959 s_cos_template.c.
20960 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
20961 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
20962 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
20963 s_expm1_template.c.
20964 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
20965 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
20966 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
20967 s_fabs_template.c.
20968 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
20969 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
20970 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
20971 s_floor_template.c.
20972 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
20973 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
20974 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
20975 s_frexp_template.c.
20976 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
20977 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
20978 s_lrint_template.c.
20979 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
20980 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
20981 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
20982 s_modf_template.c.
20983 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
20984 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
20985 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
20986 s_nearbyint_template.c.
20987 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
20988 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
20989 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
20990 s_remquo_template.c.
20991 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
20992 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
20993 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
20994 s_rint_template.c.
20995 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
20996 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
20997 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
20998 s_sin_template.c.
20999 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
21000 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
21001 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
21002 s_sincos_template.c.
21003 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
21004 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
21005 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
21006 s_tan_template.c.
21007 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
21008 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
21009 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
21010 s_tanh_template.c.
21011 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
21012 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
21013 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
21014 s_trunc_template.c.
21015 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
21016 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
21017 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
21018 s_atan.c instead of including s_atan.c.
21019 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
21020 s_atanf.c instead of including s_atanf.c.
21021 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
21022 s_atanl.c instead of including s_atanl.c.
21023 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
21024 instead of s_atan.c.
21025 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
21026 instead of s_atanf.c.
21027 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
21028 instead of s_atanl.c.
21029
21030 * scripts/update-copyrights: Do not handle intl/plural.c
21031 specially.
21032
21033 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
21034
21035 [BZ #22432]
21036 * configure.ac (BISON): Require to be present.
21037 * configure: Regenerated.
21038 * intl/Makefile (generated): Add plural.c.
21039 [$(BISON) != no]: Make code unconditional.
21040 (plural.c): Change rule to $(objpfx)plural.c.
21041 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
21042 * intl/plural.c: Remove.
21043 * manual/install.texi (Tools for Compilation): Document bison as
21044 required.
21045 * INSTALL: Regenerated.
21046
21047 2017-11-30 Joseph Myers <joseph@codesourcery.com>
21048
21049 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
21050 <libm-alias-double.h>.
21051 (llrint): Define using libm_alias_double.
21052 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
21053 <libm-alias-float.h>.
21054 (llrintf): Define using libm_alias_float.
21055 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
21056 <libm-alias-ldouble.h>.
21057 (llrintl): Define using libm_alias_ldouble.
21058
21059 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
21060 declare_mgen_alias instead of weak_alias.
21061 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
21062 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
21063 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
21064
21065 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21066
21067 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
21068 Add add_n-generic.
21069 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
21070 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
21071 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
21072
21073 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
21074 Add submul_1-generic.
21075 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
21076 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
21077 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
21078
21079 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
21080 Add addmul_1-generic.
21081 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
21082 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
21083 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
21084
21085 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
21086 Add sub_n-generic.
21087 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
21088 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
21089 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
21090
21091 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
21092 Add mul_1-generic.
21093 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
21094 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
21095 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
21096
21097 2017-11-30 Mike FABIAN <mfabian@redhat.com>
21098
21099 According to CLDR, collation rules for Serbian and Bosnian
21100 should be the same as for Croatian.
21101
21102 [BZ #22534]
21103 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
21104 and to the list of locales to be built for testing.
21105 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
21106 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
21107 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
21108 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
21109
21110 2017-11-30 Mike FABIAN <mfabian@redhat.com>
21111
21112 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
21113 to make test case pass.
21114 * localedata/hr_HR.UTF-8.in: Add more test strings.
21115
21116 2017-11-30 Mike FABIAN <mfabian@redhat.com>
21117
21118 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
21119
21120 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
21121
21122 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
21123 the list of locales to built for testing.
21124 * localedata/hr_HR.UTF-8.in: New file.
21125
21126 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
21127
21128 [BZ #10580]
21129 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
21130 iso14651_t1.
21131 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
21132 CLDR (except use ligatures for the digraphs, CLDR does not use
21133 the ligatures), add first_workday, some fixes in the date and time
21134 formats.
21135 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
21136 for Đ and đ.
21137 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
21138 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
21139 Add int_p_cs_precedes and int_n_cs_precedes.
21140 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
21141 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
21142 LC_MONETARY now).
21143 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
21144 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
21145 name_miss.
21146 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
21147 and lang_lib. Change postal_fmt.
21148
21149 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
21150
21151 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
21152 <setjmp.h>.
21153 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
21154 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
21155 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
21156 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
21157 * sysdeps/generic/setjmpP.h: New file.
21158 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
21159 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
21160 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
21161 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
21162 Add jmp_buf-ssp.sym.
21163 (tests): Add tst-saved_mask-1.
21164
21165 2017-11-30 Arjun Shankar <arjun@redhat.com>
21166
21167 [BZ #22375]
21168 CVE-2017-17426
21169 * malloc/malloc.c (__libc_malloc): Use checked_request2size
21170 instead of request2size.
21171
21172 2017-11-30 Joseph Myers <joseph@codesourcery.com>
21173
21174 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
21175 (__lllrint): Remove alias.
21176 (lllrint): Likewise.
21177 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
21178 (__lllrintf): Likewise.
21179 (lllrintf): Likewise.
21180
21181 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
21182 <libm-alias-float.h>.
21183 (copysignf): Define using libm_alias_float.
21184 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
21185 <libm-alias-float.h>.
21186 (fabsf): Define using libm_alias_float.
21187 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
21188 Include <libm-alias-float.h>.
21189 (copysignf): Define using libm_alias_float.
21190 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
21191 <libm-alias-float.h>.
21192 (fabsf): Define using libm_alias_float.
21193 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
21194 <libm-alias-float.h>.
21195 (fdimf): Define using libm_alias_float.
21196 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
21197 <libm-alias-float.h>.
21198 (fmaf): Define using libm_alias_float.
21199 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
21200 <libm-alias-float.h>.
21201 (llrintf): Define using libm_alias_float.
21202 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
21203 Include <libm-alias-float.h>.
21204 (nearbyintf): Define using libm_alias_float.
21205 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
21206 <libm-alias-float.h>.
21207 (rintf): Define using libm_alias_float.
21208 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
21209 <libm-alias-float.h>.
21210 (llrintf): Define using libm_alias_float.
21211 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
21212 <libm-alias-float.h>.
21213 (lrintf): Define using libm_alias_float.
21214 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
21215 <libm-alias-float.h>.
21216 (nearbyintf): Define using libm_alias_float.
21217 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
21218 <libm-alias-float.h>.
21219 (rintf): Define using libm_alias_float.
21220 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
21221 <libm-alias-float.h>.
21222 (ceilf): Define using libm_alias_float.
21223 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
21224 <libm-alias-float.h>.
21225 (floorf): Define using libm_alias_float.
21226 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
21227 <libm-alias-float.h>.
21228 (fmaf): Define using libm_alias_float.
21229 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
21230 <libm-alias-float.h>.
21231 (lrintf): Define using libm_alias_float.
21232 (llrintf): Likewise.
21233 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
21234 <libm-alias-float.h>.
21235 (nearbyintf): Define using libm_alias_float.
21236 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
21237 <libm-alias-float.h>.
21238 (rintf): Define using libm_alias_float.
21239 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
21240 <libm-alias-float.h>.
21241 (truncf): Define using libm_alias_float.
21242 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
21243 <libm-alias-float.h>.
21244 (copysignf): Define using libm_alias_float.
21245 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
21246 <libm-alias-float.h>.
21247 (fabsf): Define using libm_alias_float.
21248 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
21249 <libm-alias-float.h>.
21250 (lrintf): Define using libm_alias_float.
21251 (llrintf): Likewise.
21252 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
21253 <libm-alias-float.h>.
21254 (nearbyintf): Define using libm_alias_float.
21255 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
21256 <libm-alias-float.h>.
21257 (rintf): Define using libm_alias_float.
21258
21259 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21260
21261 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
21262 <libm-alias-double.h>.
21263 (copysign): Define using libm_alias_double.
21264 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
21265 <libm-alias-double.h>.
21266 (fabs): Define using libm_alias_double.
21267 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
21268 Include <libm-alias-double.h>.
21269 (copysign): Define using libm_alias_double.
21270 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
21271 <libm-alias-double.h>.
21272 (fabs): Define using libm_alias_double.
21273 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
21274 <libm-alias-double.h>.
21275 (fdim): Define using libm_alias_double.
21276 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
21277 <libm-alias-double.h>.
21278 (fma): Define using libm_alias_double.
21279 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
21280 <libm-alias-double.h>.
21281 (llrint): Define using libm_alias_double.
21282 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
21283 Include <libm-alias-double.h>.
21284 (nearbyint): Define using libm_alias_double.
21285 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
21286 <libm-alias-double.h>.
21287 (rint): Define using libm_alias_double.
21288 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
21289 <libm-alias-double.h>.
21290 (fabs): Define using libm_alias_double.
21291 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
21292 <libm-alias-double.h>.
21293 (llrint): Define using libm_alias_double.
21294 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
21295 <libm-alias-double.h>.
21296 (nearbyint): Define using libm_alias_double.
21297 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
21298 <libm-alias-double.h>.
21299 (rint): Define using libm_alias_double.
21300 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
21301 <libm-alias-double.h>.
21302 (ceil): Define using libm_alias_double.
21303 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
21304 <libm-alias-double.h>.
21305 (floor): Define using libm_alias_double.
21306 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
21307 <libm-alias-double.h>.
21308 (fma): Define using libm_alias_double.
21309 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
21310 <libm-alias-double.h>.
21311 (lrint): Define using libm_alias_double.
21312 (llrint): Likewise.
21313 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
21314 <libm-alias-double.h>.
21315 (nearbyint): Define using libm_alias_double.
21316 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
21317 <libm-alias-double.h>.
21318 (rint): Define using libm_alias_double.
21319 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
21320 <libm-alias-double.h>.
21321 (trunc): Define using libm_alias_double.
21322 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
21323 <libm-alias-double.h>.
21324 (copysign): Define using libm_alias_double.
21325 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
21326 <libm-alias-double.h>.
21327 (fabs): Define using libm_alias_double.
21328 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
21329 <libm-alias-double.h>.
21330 (lrint): Define using libm_alias_double.
21331 (llrint): Likewise.
21332 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
21333 <libm-alias-double.h>.
21334 (nearbyint): Define using libm_alias_double.
21335 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
21336 <libm-alias-double.h>.
21337 (rint): Define using libm_alias_double.
21338
21339 [BZ #22229]
21340 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
21341 <math_ldbl_opt.h>.
21342 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
21343
21344 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
21345 SPARC --disable-multi-arch glibc variants.
21346
21347 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
21348 <libm-alias-float.h>.
21349 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21350 if [SHARED].
21351 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
21352 <libm-alias-float.h>.
21353 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21354 if [SHARED].
21355 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
21356 <libm-alias-float.h>.
21357 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21358 if [SHARED].
21359 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
21360 <libm-alias-float.h>.
21361 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21362 if [SHARED].
21363 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
21364 <libm-alias-float.h>.
21365 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21366 if [SHARED].
21367 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
21368 <libm-alias-float.h>.
21369 (ceilf): Define using libm_alias_float.
21370 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
21371 <libm-alias-float.h>.
21372 (floorf): Define using libm_alias_float.
21373 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
21374 <libm-alias-float.h>.
21375 (fmaf): Define using libm_alias_float.
21376 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
21377 <libm-alias-float.h>.
21378 (nearbyintf): Define using libm_alias_float.
21379 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
21380 <libm-alias-float.h>.
21381 (rintf): Define using libm_alias_float.
21382 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
21383 <libm-alias-float.h>.
21384 (truncf): Define using libm_alias_float.
21385 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
21386 (copysignf): Define using libm_alias_float.
21387 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
21388 (cosf): Define using libm_alias_float.
21389 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
21390 (fabsf): Define using libm_alias_float.
21391 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21392 (fmaxf): Define using libm_alias_float.
21393 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
21394 (fminf): Define using libm_alias_float.
21395 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
21396 (llrintf): Define using libm_alias_float.
21397 [!__ILP32__] (lrintf): Likewise.
21398 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
21399 (sincosf): Define using libm_alias_float.
21400 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
21401 (sinf): Define using libm_alias_float.
21402 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
21403 (lrintf): Define using libm_alias_float.
21404
21405 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
21406 <libm-alias-double.h>.
21407 (atan): Define using libm_alias_double.
21408 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
21409 <libm-alias-double.h>.
21410 (ceil): Define using libm_alias_double.
21411 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
21412 <libm-alias-double.h>.
21413 (floor): Define using libm_alias_double.
21414 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
21415 <libm-alias-double.h>.
21416 (fma): Define using libm_alias_double.
21417 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
21418 <libm-alias-double.h>.
21419 (nearbyint): Define using libm_alias_double.
21420 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
21421 <libm-alias-double.h>.
21422 (rint): Define using libm_alias_double.
21423 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
21424 <libm-alias-double.h>.
21425 (sin): Define using libm_alias_double.
21426 (cos): Likewise.
21427 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
21428 <libm-alias-double.h>.
21429 (tan): Define using libm_alias_double.
21430 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
21431 <libm-alias-double.h>.
21432 (trunc): Define using libm_alias_double.
21433 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
21434 (copysign): Define using libm_alias_double.
21435 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
21436 (fabs): Define using libm_alias_double.
21437 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
21438 (fmax): Define using libm_alias_double.
21439 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
21440 (fmin): Define using libm_alias_double.
21441 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
21442 (llrint): Define using libm_alias_double.
21443 [!__ILP32__] (lrint): Likewise.
21444 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
21445 (lrint): Define using libm_alias_double.
21446
21447 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21448
21449 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21450 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
21451 objects.
21452 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
21453 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
21454 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
21455 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
21456 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
21457 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
21458
21459 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21460 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
21461 objects.
21462 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
21463 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
21464 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
21465 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
21466 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
21467 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
21468
21469 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21470 (libm-sysdep_routines): Add s_nearbyint-generic and
21471 s_nearbyintf-generic objects.
21472 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
21473 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
21474 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
21475 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
21476 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
21477 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
21478
21479 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21480 Add s_finitef-generic and s_finite-generic objects.
21481 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
21482 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
21483 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
21484 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
21485 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
21486 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
21487
21488 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21489 Add s_isinff-generic and s_isinf-generic objects.
21490 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
21491 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
21492 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
21493 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
21494 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
21495 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
21496
21497 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21498 Add s_isnanf-generic and s_isnan-generic objects.
21499 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
21500 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
21501 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
21502 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
21503 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
21504 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
21505
21506 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
21507 macro.
21508 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
21509 rule.
21510 (sysdep_routines): Use sysdep_calls as base.
21511 (libm-sysdep_routines): Add generic rule for symbols shared with
21512 libc. Add s_signbit-generic and s_signbitf-generic objects.
21513 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
21514 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
21515 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
21516 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
21517 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
21518 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
21519
21520 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21521
21522 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
21523 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
21524 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
21525 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
21526 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
21527 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
21528 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
21529 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
21530 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
21531 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
21532 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
21533 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
21534 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
21535 libm_alias_float_r.
21536 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
21537 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
21538 (logf): Likewise.
21539 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
21540 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
21541 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
21542 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
21543 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
21544 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
21545 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
21546 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
21547 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
21548 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
21549 libm_alias_float.
21550 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
21551 (cosf): Likewise.
21552 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
21553 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
21554 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
21555 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
21556 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
21557 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
21558 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
21559 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
21560 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
21561 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
21562 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
21563 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
21564 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
21565 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
21566 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
21567 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
21568 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
21569 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
21570 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
21571 libm_alias_float.
21572 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
21573 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
21574 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
21575 * sysdeps/ia64/fpu/w_lgammaf_main.c
21576 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
21577 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
21578
21579 2017-11-28 Mike FABIAN <mfabian@redhat.com>
21580 Alexandre Oliva <aoliva@redhat.com>
21581
21582 [BZ #17750]
21583 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
21584 * localedata/fr_CA.UTF-8.in: New file with test data for backward
21585 accents sorting.
21586 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
21587 sorting.
21588 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
21589 * localedata/locales/de_DE (LC_COLLATE): Likewise.
21590 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
21591 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
21592 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
21593 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
21594 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
21595 instead of “ifdef DIACRIT_BACKWARD”.
21596
21597 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21598
21599 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
21600 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
21601 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
21602 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
21603 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
21604 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
21605 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
21606 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
21607 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
21608 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
21609 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
21610 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
21611 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
21612 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
21613 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
21614 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
21615 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
21616 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
21617 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
21618 ($(have-as-vis3) == yes): Remove conditional.
21619 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
21620 Likewise.
21621 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
21622 file.
21623 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
21624 file.
21625 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
21626 file.
21627 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
21628 file.
21629 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
21630 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
21631 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
21632 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
21633 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
21634 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
21635 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
21636 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
21637
21638 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21639
21640 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
21641 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
21642 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
21643 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
21644 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
21645 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
21646 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
21647 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
21648 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
21649 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
21650 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
21651 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
21652 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
21653 libm_alias_double_r.
21654 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
21655 (log): Likewise.
21656 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
21657 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
21658 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
21659 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
21660 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
21661 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
21662 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
21663 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
21664 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
21665 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
21666 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
21667 libm_alias_double.
21668 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
21669 (cos): Likewise.
21670 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
21671 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
21672 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
21673 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
21674 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
21675 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
21676 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
21677 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
21678 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
21679 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
21680 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
21681 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
21682 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
21683 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
21684 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
21685 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
21686 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
21687 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
21688 libm_alias_double.
21689 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
21690 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
21691 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
21692 * sysdeps/ia64/fpu/w_lgamma_main.c
21693 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
21694 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
21695
21696 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
21697
21698 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
21699 address of $global$ into %dp register earlier. Use pc-relative
21700 instruction sequence for PIC case.
21701
21702 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21703
21704 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
21705 (asinhf): Define using libm_alias_float.
21706 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
21707 (atanf): Define using libm_alias_float.
21708 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
21709 (cbrtf): Define using libm_alias_float.
21710 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
21711 (ceilf): Define using libm_alias_float.
21712 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
21713 (copysignf): Define using libm_alias_float.
21714 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
21715 (expm1f): Define using libm_alias_float.
21716 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
21717 (fabsf): Define using libm_alias_float.
21718 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
21719 (floorf): Define using libm_alias_float.
21720 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21721 (fmaxf): Define using libm_alias_float.
21722 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
21723 (fminf): Define using libm_alias_float.
21724 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
21725 (frexpf): Define using libm_alias_float.
21726 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
21727 (llrintf): Define using libm_alias_float.
21728 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
21729 (logbf): Define using libm_alias_float.
21730 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
21731 (lrintf): Define using libm_alias_float.
21732 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
21733 (nearbyintf): Define using libm_alias_float.
21734 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
21735 (remquof): Define using libm_alias_float.
21736 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
21737 (rintf): Define using libm_alias_float.
21738 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
21739 (truncf): Define using libm_alias_float.
21740 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
21741 <libm-alias-float.h>.
21742 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21743 if [SHARED].
21744 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
21745 <libm-alias-float.h>.
21746 (expf): Define using libm_alias_float, or libm_alias_float_other
21747 if [SHARED].
21748 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
21749 <libm-alias-float.h>.
21750 (log2f): Define using libm_alias_float, or libm_alias_float_other
21751 if [SHARED].
21752 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
21753 <libm-alias-float.h>.
21754 (logf): Define using libm_alias_float, or libm_alias_float_other
21755 if [SHARED].
21756 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
21757 <libm-alias-float.h>.
21758 (powf): Define using libm_alias_float, or libm_alias_float_other
21759 if [SHARED].
21760 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
21761 <libm-alias-float.h>.
21762 (cosf): Define using libm_alias_float.
21763 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
21764 <libm-alias-float.h>.
21765 (sincosf): Define using libm_alias_float.
21766 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
21767 <libm-alias-float.h>.
21768 (sinf): Define using libm_alias_float.
21769 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21770 (fmaxf): Define using libm_alias_float.
21771 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
21772 (fminf): Define using libm_alias_float.
21773 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
21774 <libm-alias-float.h>.
21775 (fmaf): Define using libm_alias_float.
21776
21777 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
21778 (asinh): Define using libm_alias_double.
21779 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
21780 (atan): Define using libm_alias_double.
21781 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
21782 (cbrt): Define using libm_alias_double.
21783 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
21784 (ceil): Define using libm_alias_double.
21785 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
21786 (copysign): Define using libm_alias_double.
21787 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
21788 (expm1): Define using libm_alias_double.
21789 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
21790 (fabs): Define using libm_alias_double.
21791 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
21792 (fdim): Define using libm_alias_double.
21793 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
21794 (floor): Define using libm_alias_double.
21795 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
21796 (fmax): Define using libm_alias_double.
21797 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
21798 (fmin): Define using libm_alias_double.
21799 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
21800 (frexp): Define using libm_alias_double.
21801 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
21802 (llrint): Define using libm_alias_double.
21803 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
21804 (logb): Define using libm_alias_double.
21805 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
21806 (lrint): Define using libm_alias_double.
21807 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
21808 (nearbyint): Define using libm_alias_double.
21809 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
21810 (remquo): Define using libm_alias_double.
21811 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
21812 (rint): Define using libm_alias_double.
21813 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
21814 (trunc): Define using libm_alias_double.
21815 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
21816 (fmax): Define using libm_alias_double.
21817 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
21818 (fmin): Define using libm_alias_double.
21819 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
21820 (fma): Define using libm_alias_double.
21821
21822 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
21823
21824 [BZ #22370]
21825 * elf/dl-hwcaps.c (ROUND): Removed.
21826 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
21827 and ELF_NOTE_NEXT_OFFSET.
21828 * elf/dl-load.c (ROUND): Removed.
21829 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21830 * elf/readelflib.c (ROUND): Removed.
21831 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21832 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
21833 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
21834 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
21835
21836 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21837
21838 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
21839 [!__fmaf] (fmaf): Define using libm_alias_float.
21840
21841 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
21842 [!__fma] (fma): Define using libm_alias_double.
21843 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
21844
21845 2017-11-28 Mike FABIAN <mfabian@redhat.com>
21846
21847 [BZ #22336]
21848 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
21849 and implement the collation rules for cs from CLDR on top of that.
21850 * Makefile: Add cs_CZ.UTF-8 to test-input.
21851 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
21852
21853 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
21854
21855 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
21856
21857 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
21858 Icarus Sparry <icarus.w.sparry@intel.com>
21859
21860 * benchtests/Makefile:Add BENCHSET to allow subsets of
21861 benchmarks to be run.
21862 * benchtests/README: Add documentation for: Running subsets of
21863 benchmarks.
21864
21865 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
21866
21867 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
21868 range of tests names.
21869
21870 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
21871 result from property and remove "max", min" and "mean" from
21872 required properties based on benchtests/bench-skeleton.c.
21873
21874 2017-11-28 Florian Weimer <fweimer@redhat.com>
21875
21876 [BZ #20826]
21877 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
21878 due to Internet requirement.
21879 * posix/Makefile (tests): Remove tst-getaddrinfo4,
21880 tst-getaddrinfo5.
21881 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
21882
21883 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21884
21885 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21886 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
21887 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21888 (sysdep_routines): Add memset-ultra1.
21889 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
21890 file.
21891 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
21892 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
21893 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
21894 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
21895 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
21896 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
21897 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
21898 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
21899
21900 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
21901 file.
21902 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
21903 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
21904 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
21905 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
21906 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
21907 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
21908 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
21909 macro.
21910 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21911 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
21912 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21913 (sysdep_routines): Add memcpy-ultra1.
21914 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
21915 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
21916
21917 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21918
21919 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
21920 (cfloat_versions): Take function argument without trailing 'f'.
21921 Call libm_alias_float_other.
21922 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
21923 * sysdeps/alpha/fpu/cargf.c: Likewise.
21924 * sysdeps/alpha/fpu/cimagf.c: Likewise.
21925 * sysdeps/alpha/fpu/conjf.c: Likewise.
21926 * sysdeps/alpha/fpu/crealf.c: Likewise.
21927 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
21928 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
21929 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
21930 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
21931 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
21932 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
21933 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
21934 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
21935 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
21936 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
21937 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
21938 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
21939 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
21940 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
21941 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
21942 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
21943 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
21944 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
21945 (clog10f): Use libm_alias_float_other.
21946 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
21947 (ceilf): Define using libm_alias_float.
21948 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
21949 (copysignf): Define using libm_alias_float.
21950 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
21951 (fabsf): Define using libm_alias_float.
21952 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
21953 (floorf): Define using libm_alias_float.
21954 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
21955 (fmaxf): Define using libm_alias_float.
21956 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
21957 (fminf): Define using libm_alias_float.
21958 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
21959 (lrintf): Define using libm_alias_float.
21960 (llrintf): Likewise.
21961 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
21962 (lroundf): Define using libm_alias_float.
21963 (llroundf): Likewise.
21964 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
21965 (rintf): Define using libm_alias_float.
21966 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
21967 (truncf): Define using libm_alias_float.
21968
21969 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
21970 (ceilf): Define using libm_alias_float.
21971 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
21972 (floorf): Define using libm_alias_float.
21973 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
21974 (fmaf): Define using libm_alias_float.
21975 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
21976 (fmaxf): Define using libm_alias_float.
21977 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
21978 (fminf): Define using libm_alias_float.
21979 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
21980 (llrintf): Define using libm_alias_float.
21981 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
21982 (llroundf): Define using libm_alias_float.
21983 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
21984 (lrintf): Define using libm_alias_float.
21985 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
21986 (lroundf): Define using libm_alias_float.
21987 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
21988 <libm-alias-float.h>.
21989 (nearbyintf): Define using libm_alias_float.
21990 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
21991 (rintf): Define using libm_alias_float.
21992 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
21993 (roundf): Define using libm_alias_float.
21994 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
21995 (truncf): Define using libm_alias_float.
21996
21997 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
21998 (ceil): Define using libm_alias_double.
21999 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
22000 (copysign): Define using libm_alias_double.
22001 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
22002 (fabs): Define using libm_alias_double.
22003 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
22004 (floor): Define using libm_alias_double.
22005 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
22006 (fmax): Define using libm_alias_double.
22007 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
22008 (fmin): Define using libm_alias_double.
22009 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
22010 (lrint): Define using libm_alias_double.
22011 (llrint): Likewise.
22012 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
22013 (lround): Define using libm_alias_double.
22014 (llround): Likewise.
22015 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
22016 (rint): Define using libm_alias_double.
22017 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
22018 (trunc): Define using libm_alias_double.
22019
22020 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
22021 (libm_alias_double_r): Add semicolon after weak_alias call.
22022
22023 2017-11-27 Joseph Myers <joseph@codesourcery.com>
22024
22025 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
22026 (ceil): Define using libm_alias_double.
22027 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
22028 (floor): Define using libm_alias_double.
22029 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
22030 (fma): Define using libm_alias_double.
22031 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
22032 (fmax): Define using libm_alias_double.
22033 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
22034 (fmin): Define using libm_alias_double.
22035 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
22036 (llrint): Define using libm_alias_double.
22037 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
22038 (llround): Define using libm_alias_double.
22039 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
22040 (lrint): Define using libm_alias_double.
22041 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
22042 (lround): Define using libm_alias_double.
22043 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
22044 (nearbyint): Define using libm_alias_double.
22045 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
22046 (rint): Define using libm_alias_double.
22047 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
22048 (round): Define using libm_alias_double.
22049 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
22050 (trunc): Define using libm_alias_double.
22051
22052 2017-11-27 Florian Weimer <fweimer@redhat.com>
22053
22054 * sysdeps/unix/sysv/linux/mlock2.c: New file.
22055 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
22056 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
22057 (tests): Add tst-mlock2.
22058 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
22059 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
22060 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
22061 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
22062 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
22063 for mlock. Document mlock2.
22064
22065 2017-11-27 Joseph Myers <joseph@codesourcery.com>
22066
22067 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
22068 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
22069 Likewise.
22070 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
22071 Likewise.
22072 * sysdeps/x86/Makeconfig: New file.
22073 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
22074 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22075 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
22076 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22077 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
22078 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22079 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
22080 Likewise.
22081 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22082 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
22083 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22084 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
22085 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22086 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
22087 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22088 * manual/math.texi (Mathematics): Document support for _Float64x.
22089 * math/Versions (GLIBC_2.27): Add _Float64x functions.
22090 * stdlib/Versions (GLIBC_2.27): Likewise.
22091 * wcsmbs/Versions (GLIBC_2.27): Likewise.
22092 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
22093 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
22094 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
22095 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
22096 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
22097 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
22098 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
22099 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
22100 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
22101 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
22102 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
22103 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
22104 Likewise.
22105 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
22106 Likewise.
22107 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
22108 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
22109 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
22110 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
22111 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
22112 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
22113 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
22114 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
22115 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
22116 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
22117 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
22118 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
22119 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
22120 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
22121
22122 2017-11-27 Andreas Schwab <schwab@suse.de>
22123
22124 * elf/Makefile (dl-routines): Add dl-sort-maps.
22125 * elf/dl-sort-maps.c: New file.
22126 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
22127 (_dl_sort_maps): Declare.
22128 * elf/dl-fini.c (_dl_sort_fini): Remove.
22129 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
22130 * elf/dl-close.c (_dl_close_worker): Likewise.
22131 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
22132 open-coding it.
22133 * elf/dl-open.c (dl_open_worker): Likewise.
22134
22135 2017-11-24 Joseph Myers <joseph@codesourcery.com>
22136
22137 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
22138 using libm_alias_float128.
22139 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
22140 Likewise.
22141 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
22142 Likewise.
22143 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
22144 (setpayloadsigf128): Likewise.
22145 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
22146 Likewise.
22147 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
22148 Likewise.
22149
22150 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
22151 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
22152 -mfloat128 to CFLAGS.
22153 ($(foreach
22154 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
22155 Likewise.
22156 (CFLAGS-libm-test-support-float64x.c): New variable.
22157 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
22158 $(f128-loader-link) to gnulib-tests.
22159
22160 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
22161 (libm_alias_float128_other_r): If
22162 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
22163 alias.
22164 (libm_alias_float128_r): Add semicolon after weak_alias call.
22165 * sysdeps/generic/libm-alias-ldouble.h
22166 (libm_alias_ldouble_other_r_f128): New macro.
22167 (libm_alias_ldouble_other_r_f64x): Likewise.
22168 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
22169 and libm_alias_ldouble_other_r_f64x.
22170 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
22171 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
22172 (libm_alias_ldouble_other_r_f128): New macro.
22173 (libm_alias_ldouble_other_r_f64x): Likewise.
22174 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
22175 and libm_alias_ldouble_other_r_f64x.
22176
22177 * stdlib/strfroml.c: Always include <stdlib.h>.
22178 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
22179 undefine as macro and define as weak alias.
22180 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
22181 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
22182 <stdlib.h>.
22183 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
22184 Define and later undefine as macro and define as weak alias.
22185
22186 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
22187 Define and later undefine as macro. Define as weak alias if
22188 [!USE_WIDE_CHAR].
22189 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
22190 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
22191 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
22192 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
22193 Define and later undefine as macro. Define as weak alias if
22194 [!USE_WIDE_CHAR].
22195 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
22196 Define and later undefine as macro. Define as weak alias if
22197 [USE_WIDE_CHAR].
22198 * sysdeps/ieee754/float128/strtof128_l.c
22199 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
22200 Define and later undefine as macro. Define as weak alias if
22201 [!USE_WIDE_CHAR].
22202 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
22203 Define and later undefine as macro. Define as weak alias if
22204 [USE_WIDE_CHAR].
22205 * sysdeps/ieee754/ldbl-128/strtold_l.c
22206 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
22207 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
22208 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
22209 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
22210 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
22211 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
22212 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
22213 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
22214 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
22215 * sysdeps/ieee754/ldbl-96/strtold_l.c
22216 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
22217 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
22218 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
22219 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
22220
22221 * math/test-float64x.h: New file.
22222 * math/Makefile (type-float64x-yes): New variable.
22223 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
22224
22225 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
22226 function-like macro.
22227 (min_of_type_): Likewise.
22228 (min_of_type_l): Likewise.
22229 (min_of_type_f128): Likewise.
22230 (min_of_type): Pass () as last argument of __MATH_TG.
22231
22232 * stdlib/tst-strtod-round-skeleton.c
22233 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
22234 headers.
22235
22236 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
22237 for combinations of long double with _Float64 and _Float64x.
22238
22239 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
22240 (__DECL_SIMD_cosf32): Likewise.
22241 (__DECL_SIMD_cosf64): Likewise.
22242 (__DECL_SIMD_cosf32x): Likewise.
22243 (__DECL_SIMD_cosf64x): Likewise.
22244 (__DECL_SIMD_cosf128x): Likewise.
22245 (__DECL_SIMD_sinf16): Likewise.
22246 (__DECL_SIMD_sinf32): Likewise.
22247 (__DECL_SIMD_sinf64): Likewise.
22248 (__DECL_SIMD_sinf32x): Likewise.
22249 (__DECL_SIMD_sinf64x): Likewise.
22250 (__DECL_SIMD_sinf128x): Likewise.
22251 (__DECL_SIMD_sincosf16): Likewise.
22252 (__DECL_SIMD_sincosf32): Likewise.
22253 (__DECL_SIMD_sincosf64): Likewise.
22254 (__DECL_SIMD_sincosf32x): Likewise.
22255 (__DECL_SIMD_sincosf64x): Likewise.
22256 (__DECL_SIMD_sincosf128x): Likewise.
22257 (__DECL_SIMD_logf16): Likewise.
22258 (__DECL_SIMD_logf32): Likewise.
22259 (__DECL_SIMD_logf64): Likewise.
22260 (__DECL_SIMD_logf32x): Likewise.
22261 (__DECL_SIMD_logf64x): Likewise.
22262 (__DECL_SIMD_logf128x): Likewise.
22263 (__DECL_SIMD_expf16): Likewise.
22264 (__DECL_SIMD_expf32): Likewise.
22265 (__DECL_SIMD_expf64): Likewise.
22266 (__DECL_SIMD_expf32x): Likewise.
22267 (__DECL_SIMD_expf64x): Likewise.
22268 (__DECL_SIMD_expf128x): Likewise.
22269 (__DECL_SIMD_powf16): Likewise.
22270 (__DECL_SIMD_powf32): Likewise.
22271 (__DECL_SIMD_powf64): Likewise.
22272 (__DECL_SIMD_powf32x): Likewise.
22273 (__DECL_SIMD_powf64x): Likewise.
22274 (__DECL_SIMD_powf128x): Likewise.
22275
22276 * stdlib/Versions (libc): Move entries for wcstof128 and
22277 wcstof128_l to ....
22278 * wcsmbs/Versions (libc): ... here.
22279 Include <float128-abi.h>.
22280
22281 2017-11-24 Florian Weimer <fweimer@redhat.com>
22282
22283 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
22284 bits/mman-shared.h.
22285 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
22286 <bits/mman-shared.h>.
22287 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
22288 to ...
22289 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
22290 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
22291 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
22292 <bits/mman-shared.h>.
22293
22294 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22295
22296 [BZ #22457]
22297 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
22298 posix_memalign/free.
22299 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
22300
22301 2017-11-22 Mike FABIAN <mfabian@redhat.com>
22302
22303 [BZ #22469]
22304 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
22305 and implement the collation rules for pl from CLDR on top of that.
22306 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
22307 of locales to be built for testing.
22308 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
22309
22310 2017-11-23 Joseph Myers <joseph@codesourcery.com>
22311
22312 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
22313 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
22314 libm_alias_ldouble_other.
22315 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
22316 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
22317 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
22318 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
22319 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
22320 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
22321 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
22322 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
22323 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
22324 libm_alias_ldouble_r.
22325 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
22326 libm_alias_ldouble_other.
22327 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
22328 (log10l): Likewise.
22329 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
22330 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
22331 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
22332 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
22333 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
22334 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
22335 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
22336 (atan2l): Likewise.
22337 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
22338 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
22339 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
22340 libm_alias_ldouble.
22341 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
22342 (cosl): Likewise.
22343 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
22344 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
22345 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
22346 (expl): Likewise.
22347 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
22348 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
22349 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
22350 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
22351 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
22352 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
22353 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
22354 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
22355 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
22356 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
22357 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
22358 libm_alias_ldouble.
22359 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
22360 libm_alias_ldouble_other.
22361 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
22362 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
22363 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
22364 libm_alias_ldouble.
22365 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
22366 libm_alias_ldouble_other.
22367 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
22368 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
22369 * sysdeps/ia64/fpu/w_lgammal_main.c
22370 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
22371 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
22372
22373 2017-11-23 Florian Weimer <fweimer@redhat.com>
22374
22375 * malloc/malloc.c (tcache_thread_shutdown): Rename from
22376 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
22377 alike. Remove freeres marker.
22378 * malloc/arena.c (arena_thread_freeres): Call
22379 tcache_thread_shutdown.
22380
22381 2017-11-23 Florian Weimer <fweimer@redhat.com>
22382
22383 [BZ #22459]
22384 Export nscd hash function as __nss_hash.
22385 * include/nss.h (__nss_hash): Declare.
22386 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
22387 symbol.
22388 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
22389 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
22390 of __nscd_hash.
22391 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
22392 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
22393 * nss/Makefiles (routines): Add nss_hash.
22394 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
22395 * nss/nss_hash.c: Rename from nis/nis_hash.c.
22396 (__nss_hash): Rename from __nis_hash. Define hidden alias.
22397 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
22398
22399 2017-11-23 Florian Weimer <fweimer@redhat.com>
22400
22401 [BZ #22478]
22402 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
22403 Return error code, not -1.
22404 * signal/tst-sigwait-eintr.c: New file.
22405 * signal/Makefile (tests): Add tst-sigwait-eintr.
22406
22407 2017-11-23 Florian Weimer <fweimer@redhat.com>
22408
22409 Linux: Add memfd_create system call wrapper
22410 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
22411 tst-memfd_create.
22412 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
22413 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
22414 [__USE_GNU] (memfd_create): Declare.
22415 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
22416 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
22417 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
22418 * sysdeps/unix/sysv/linux/**.abilist: Update.
22419 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
22420
22421 2017-11-22 Joseph Myers <joseph@codesourcery.com>
22422
22423 * localedata/gen-locale.sh: Fix typo in variable name.
22424
22425 * resolv/res_debug.c (p_secstodate): Condition definition on
22426 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
22427 directly as __p_secstodate, and as a compat symbol. Do not use
22428 libresolv_hidden_def.
22429 * resolv/resolv.h (p_secstodate): Remove macro and function
22430 declaration.
22431 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
22432 using p_secstodate.
22433 * include/resolv.h (__p_secstodate): Do not use
22434 libresolv_hidden_proto.
22435 * resolv/Makefile (tests): Move tst-p_secstodate to ....
22436 (tests-internal): ... here.
22437 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
22438 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
22439 and declare and use __p_secstodate and use compat_symbol_reference
22440 in that case.
22441 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
22442 implementation returning 77.
22443
22444 [BZ #22463]
22445 * resolv/res_debug.c: Include <libc-diag.h>.
22446 (p_secstodate): Assert time_t at least as wide as u_long. On
22447 overflow, use integer seconds since the epoch as output, or use
22448 "<overflow>" as output and set errno to EOVERFLOW if integer
22449 seconds since the epoch would be 14 or more characters.
22450 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
22451 for sprintf call.
22452 * resolv/tst-p_secstodate.c: New file.
22453 * resolv/Makefile (tests): Add tst-p_secstodate.
22454 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
22455
22456 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
22457 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
22458 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
22459
22460 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
22461
22462 * posix/regcomp.c (init_word_char): Add comments.
22463
22464 2017-11-22 Joseph Myers <joseph@codesourcery.com>
22465
22466 [BZ #22447]
22467 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
22468 strlen to compute length of ut_user and set trailing NUL byte of
22469 result explicitly.
22470
22471 2017-11-21 Mike FABIAN <mfabian@redhat.com>
22472
22473 [BZ #15537]
22474 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
22475 using “copy "iso14651_t1"” and then implementing the
22476 collation rules for lv from CLDR on top of that.
22477 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
22478 of locales to be built for testing.
22479 * lv_LV.UTF-8.in: New file with test data to test the Latvian
22480 sorting.
22481
22482 2017-11-21 Joseph Myers <joseph@codesourcery.com>
22483
22484 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
22485 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
22486 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
22487 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
22488 [__USE_MISC] (MADV_HWPOISON): New macro.
22489 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
22490
22491 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22492
22493 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
22494 -Wmissing-braces on GCC 4.9.
22495
22496 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
22497
22498 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
22499 * sysdeps/s390/s390-32/start.S (_start): Likewise
22500 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
22501 (thread_start): Likewise.
22502 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
22503 (thread_start): Likewise.
22504 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
22505 (__makecontext_ret): Likewise.
22506 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
22507 (__makecontext_ret): Likewise.
22508
22509 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
22510
22511 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
22512 __wcschrnul): Remove attribute_hidden.
22513
22514 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
22515
22516 regex: don't assume uint64_t or uint32_t
22517 This avoids -Werror=overflow errors for 32-bit systems in
22518 the 64-bit case. Problem reported by Joseph Myers in:
22519 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
22520 Also, when this code is used in Gnulib it ports to platforms
22521 that lack uint64_t and uint32_t. The C standard doesn't guarantee
22522 them, and on some 32-bit compilers there is no uint64_t.
22523 Problem reported by Gianluigi Tiesi in:
22524 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
22525 * posix/regcomp.c (init_word_char): Don't assume that the types
22526 uint64_t and uint32_t exist. Adapted from Gnulib patch
22527 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
22528 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
22529
22530 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
22531
22532 * sysdeps/aarch64/memset-reg.h: New file.
22533 * sysdeps/aarch64/memset.S: Use it.
22534 (__memset): Rename to MEMSET macro.
22535 [ZVA_MACRO]: Use zva_macro.
22536 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
22537 Add memset_generic and memset_falkor.
22538 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
22539 (__libc_ifunc_impl_list): Add memset ifuncs.
22540 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
22541 local variable zva_size.
22542 * sysdeps/aarch64/multiarch/memset.c: New file.
22543 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
22544 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
22545 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
22546 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
22547 (DCZID_DZP_MASK): New macro.
22548 (DCZID_BS_MASK): Likewise.
22549 (init_cpu_features): Read and set zva_size.
22550 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
22551 (struct cpu_features): New member zva_size.
22552
22553 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
22554 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
22555 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
22556
22557 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
22558 backwards. Fix timing computation.
22559 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
22560 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
22561 on memset by N at a time. Fix timing computation.
22562
22563 2017-11-20 Florian Weimer <fweimer@redhat.com>
22564
22565 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
22566 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
22567
22568 2017-11-19 Florian Weimer <fweimer@redhat.com>
22569
22570 manual: Document mprotect
22571 * manual/memory.texi (Memory Protection): New section.
22572 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
22573 documentation of PROT_* flags and reference the Memory Protection
22574 section instead.
22575
22576 2017-11-19 Florian Weimer <fweimer@redhat.com>
22577
22578 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
22579 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
22580 (Scatter-Gather): ... to here. Remove misleading comment.
22581
22582 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
22583
22584 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
22585 style.
22586
22587 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
22588 when /proc/<pid>/setgroups does not exist.
22589
22590 2017-11-18 Florian Weimer <fweimer@redhat.com>
22591
22592 * sysdeps/unix/sysv/linux/tst-ttyname.c
22593 (become_root_in_mount_ns): Remove.
22594 (do_in_chroot_1): Call support_enter_mount_namespace.
22595 (do_in_chroot_2): Likewise.
22596 (do_test): Call support_become_root early.
22597
22598 2017-11-18 Florian Weimer <fweimer@redhat.com>
22599
22600 * support/namespace.h (support_enter_mount_namespace): Declare.
22601 * support/support_enter_mount_namespace.c: New file.
22602 * support/Makefile (libsupport-routines): Add
22603 support_enter_mount_namespace.
22604
22605 2017-11-18 Florian Weimer <fweimer@redhat.com>
22606
22607 * support/temp_file.c (support_create_temp_directory): Use
22608 test_dir and do not rely on the presence of the XXXXXX suffix.
22609 * support/temp_file.h (support_create_temp_directory): Update
22610 comment.
22611 * support/tst-xreadlink.c (do_test): Adjust.
22612 * support/support_chroot.c (support_chroot_create): Likewise.
22613
22614 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22615
22616 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
22617 macro.
22618 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
22619 htm-no-suspend.
22620
22621 2017-11-17 Joseph Myers <joseph@codesourcery.com>
22622
22623 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
22624 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
22625 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
22626 (ceill): Define using libm_alias_ldouble.
22627 * sysdeps/x86_64/fpu/s_copysignl.S: Include
22628 <libm-alias-ldouble.h>.
22629 (copysignl): Define using libm_alias_ldouble.
22630 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
22631 (fabsl): Define using libm_alias_ldouble.
22632 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
22633 (floorl): Define using libm_alias_ldouble.
22634 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22635 (fmaxl): Define using libm_alias_ldouble.
22636 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22637 (fminl): Define using libm_alias_ldouble.
22638 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
22639 (llrintl): Define using libm_alias_ldouble.
22640 (lrintl): Likewise.
22641 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
22642 <libm-alias-ldouble.h>.
22643 (nearbyintl): Define using libm_alias_ldouble.
22644 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
22645 (truncl): Define using libm_alias_ldouble.
22646 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
22647 <libm-alias-ldouble.h>.
22648 (lrintl): Define using libm_alias_ldouble.
22649
22650 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
22651 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
22652 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
22653 (asinhl): Define using libm_alias_ldouble.
22654 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
22655 (atanl): Define using libm_alias_ldouble.
22656 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
22657 (cbrtl): Define using libm_alias_ldouble.
22658 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
22659 (ceill): Define using libm_alias_ldouble.
22660 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
22661 (copysignl): Define using libm_alias_ldouble.
22662 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
22663 (fabsl): Define using libm_alias_ldouble.
22664 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
22665 (floorl): Define using libm_alias_ldouble.
22666 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22667 (fmaxl): Define using libm_alias_ldouble.
22668 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22669 (fminl): Define using libm_alias_ldouble.
22670 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
22671 (frexpl): Define using libm_alias_ldouble.
22672 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
22673 (llrintl): Define using libm_alias_ldouble.
22674 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
22675 (logbl): Define using libm_alias_ldouble.
22676 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
22677 (lrintl): Define using libm_alias_ldouble.
22678 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
22679 (nearbyintl): Define using libm_alias_ldouble.
22680 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
22681 (nextafterl): Define using libm_alias_ldouble.
22682 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
22683 (remquol): Define using libm_alias_ldouble.
22684 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
22685 (rintl): Define using libm_alias_ldouble.
22686 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
22687 (truncl): Define using libm_alias_ldouble.
22688 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22689 (fmaxl): Define using libm_alias_ldouble.
22690 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22691 (fminl): Define using libm_alias_ldouble.
22692
22693 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
22694 to C syntax instead of availability and properties of types.
22695 * bits/floatn.h [!__ASSEMBLER]: Likewise.
22696 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
22697 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
22698 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
22699 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
22700 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
22701
22702 2017-11-17 Florian Weimer <fweimer@redhat.com>
22703
22704 support_become_root: Enable file creation in namespaces.
22705 * support/support_become_root.c (setup_mapping): New function.
22706 (support_become_root): Call it.
22707
22708 2017-11-17 Joseph Myers <joseph@codesourcery.com>
22709
22710 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
22711 macro.
22712
22713 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22714
22715 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
22716 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
22717
22718 2017-11-16 Joseph Myers <joseph@codesourcery.com>
22719
22720 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
22721
22722 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
22723 version to 4.14.
22724
22725 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
22726
22727 * INSTALL: Fix botched up regeneration.
22728
22729 * NEWS: Update sourceare link to https.
22730 * configure.ac: Likewise.
22731 * crypt/md5test-giant.c: Likewise.
22732 * dlfcn/bug-atexit1.c: Likewise.
22733 * dlfcn/bug-atexit2.c: Likewise.
22734 * localedata/README: Likewise.
22735 * malloc/tst-mallocfork.c: Likewise.
22736 * manual/install.texi: Likewise.
22737 * nptl/tst-pthread-getattr.c: Likewise.
22738 * stdio-common/tst-fgets.c: Likewise.
22739 * stdio-common/tst-fwrite.c: Likewise.
22740 * sunrpc/Makefile: Likewise.
22741 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
22742 * wcsmbs/tst-mbrtowc2.c: Likewise.
22743 * configure: Regenerate.
22744 * INSTALL: Regenerate.
22745
22746 2017-11-15 Martin Sebor <msebor@redhat.com>
22747
22748 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
22749 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
22750 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
22751
22752 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
22753
22754 [BZ #22145]
22755 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
22756 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
22757
22758 [BZ #22145]
22759 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
22760 Defer is_pty check until end of the function.
22761 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
22762
22763 [BZ #22145]
22764 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
22765 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
22766 (ttyname): Likewise.
22767 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
22768 (__ttyname_r): Likewise.
22769
22770 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
22771 int to bool.
22772
22773 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
22774
22775 * manual/terminal.texi (Is It a Terminal):
22776 Mention ENODEV for ttyname and ttyname_r.
22777
22778 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22779
22780 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
22781 constant and macro.
22782
22783 * sysdeps/unix/sysv/linux/bits/mman-linux.h
22784 [__USE_MISC] (MADV_WIPEONFORK): New macro.
22785 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22786 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
22787 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
22788 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22789
22790 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22791
22792 * signal/sigrelse.c (sigrelse): Optimize implementation.
22793
22794 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
22795 (__sigpause): Rely on __sigsuspend to implement single thread
22796 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
22797
22798 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22799
22800 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
22801 kernel version to 4.14.
22802
22803 2017-11-15 Steve Ellcey <sellcey@cavium.com>
22804
22805 [BZ #22442]
22806 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
22807 Check if ifname is too long.
22808
22809 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
22810
22811 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
22812
22813 2017-11-15 Mike FABIAN <mfabian@redhat.com>
22814
22815 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
22816 was accidentally lost.
22817
22818 2017-11-15 Mike FABIAN <mfabian@redhat.com>
22819
22820 * localedata/locales/az_IR: Add standard copyright header.
22821
22822 2017-11-15 Florian Weimer <fweimer@redhat.com>
22823
22824 [BZ #22439]
22825 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
22826 not just the top one. Output a new "subheaps" statistic.
22827
22828 2017-11-15 Florian Weimer <fweimer@redhat.com>
22829
22830 [BZ #22408]
22831 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
22832 under the per-arena lock.
22833 * malloc/Makefile (tests): Add tst-malloc_info.
22834 (tst-malloc_info): Link with libpthread.
22835 * malloc/tst-malloc_info.c: New file.
22836
22837 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22838
22839 [BZ #21660]
22840 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
22841 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
22842 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
22843 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
22844 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
22845 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
22846 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
22847 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
22848 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
22849 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
22850 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
22851 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
22852 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
22853 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
22854 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
22855 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
22856 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
22857 (__floating_type): Likewise.
22858 (__real_integer_type): Likewise.
22859 (__complex_integer_type): Likewise.
22860 (__expr_is_real): Likewise.
22861 (__tgmath_real_type_sub): Likewise.
22862 (__tgmath_real_type): Likewise.
22863 (__tgmath_complex_type_sub): Likewise.
22864 (__tgmath_complex_type): Likewise.
22865 (__TGMATH_F128): Likewise.
22866 (__TGMATH_CF128): Likewise.
22867 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
22868 new macros.
22869 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
22870 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
22871 Likewise.
22872 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
22873 Likewise.
22874 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
22875 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
22876 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
22877 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
22878 Likewise.
22879 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
22880 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
22881 Likewise.
22882 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
22883 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
22884 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
22885 Likewise.
22886 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
22887 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
22888 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
22889 (cimag): Likewise.
22890 (creal): Likewise.
22891
22892 2017-11-14 Joseph Myers <joseph@codesourcery.com>
22893
22894 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
22895 for stpncpy calls for GCC 8.
22896 (test_strncat): Disable -Wstringop-truncation warning for strncat
22897 calls for GCC 8. Disable -Wstringop-overflow= warning for one
22898 strncat call for GCC 7.
22899 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
22900 calls for GCC 8.
22901 (test_memcmp): Use memcpy instead of strncpy for calls not copying
22902 trailing NUL.
22903
22904 * string/bug-strncat1.c: Include <libc-diag.h>.
22905 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
22906
22907 2017-11-13 Claude Paroz <claude@2xlibre.net>
22908
22909 [BZ #22387]
22910 * localedata/locales/aa_DJ: Improved readibility by replacing
22911 <Uxxxx> sequences in the ASCII printable range by their ASCII
22912 character equivalents.
22913 * localedata/locales/aa_ER: Likewise.
22914 * localedata/locales/aa_ER@saaho: Likewise.
22915 * localedata/locales/aa_ET: Likewise.
22916 * localedata/locales/af_ZA: Likewise.
22917 * localedata/locales/agr_PE: Likewise.
22918 * localedata/locales/ak_GH: Likewise.
22919 * localedata/locales/am_ET: Likewise.
22920 * localedata/locales/anp_IN: Likewise.
22921 * localedata/locales/ar_AE: Likewise.
22922 * localedata/locales/ar_BH: Likewise.
22923 * localedata/locales/ar_DZ: Likewise.
22924 * localedata/locales/ar_EG: Likewise.
22925 * localedata/locales/ar_IN: Likewise.
22926 * localedata/locales/ar_IQ: Likewise.
22927 * localedata/locales/ar_JO: Likewise.
22928 * localedata/locales/ar_KW: Likewise.
22929 * localedata/locales/ar_LB: Likewise.
22930 * localedata/locales/ar_LY: Likewise.
22931 * localedata/locales/ar_MA: Likewise.
22932 * localedata/locales/ar_OM: Likewise.
22933 * localedata/locales/ar_QA: Likewise.
22934 * localedata/locales/ar_SA: Likewise.
22935 * localedata/locales/ar_SD: Likewise.
22936 * localedata/locales/ar_SS: Likewise.
22937 * localedata/locales/ar_SY: Likewise.
22938 * localedata/locales/ar_TN: Likewise.
22939 * localedata/locales/ar_YE: Likewise.
22940 * localedata/locales/as_IN: Likewise.
22941 * localedata/locales/ast_ES: Likewise.
22942 * localedata/locales/ayc_PE: Likewise.
22943 * localedata/locales/az_AZ: Likewise.
22944 * localedata/locales/az_IR: Likewise.
22945 * localedata/locales/be_BY: Likewise.
22946 * localedata/locales/be_BY@latin: Likewise.
22947 * localedata/locales/bem_ZM: Likewise.
22948 * localedata/locales/ber_DZ: Likewise.
22949 * localedata/locales/ber_MA: Likewise.
22950 * localedata/locales/bg_BG: Likewise.
22951 * localedata/locales/bhb_IN: Likewise.
22952 * localedata/locales/bho_IN: Likewise.
22953 * localedata/locales/bi_VU: Likewise.
22954 * localedata/locales/bn_BD: Likewise.
22955 * localedata/locales/bn_IN: Likewise.
22956 * localedata/locales/bo_CN: Likewise.
22957 * localedata/locales/bo_IN: Likewise.
22958 * localedata/locales/br_FR: Likewise.
22959 * localedata/locales/brx_IN: Likewise.
22960 * localedata/locales/bs_BA: Likewise.
22961 * localedata/locales/byn_ER: Likewise.
22962 * localedata/locales/ca_AD: Likewise.
22963 * localedata/locales/ca_ES: Likewise.
22964 * localedata/locales/ca_FR: Likewise.
22965 * localedata/locales/ca_IT: Likewise.
22966 * localedata/locales/ce_RU: Likewise.
22967 * localedata/locales/chr_US: Likewise.
22968 * localedata/locales/cmn_TW: Likewise.
22969 * localedata/locales/crh_UA: Likewise.
22970 * localedata/locales/cs_CZ: Likewise.
22971 * localedata/locales/csb_PL: Likewise.
22972 * localedata/locales/cv_RU: Likewise.
22973 * localedata/locales/cy_GB: Likewise.
22974 * localedata/locales/da_DK: Likewise.
22975 * localedata/locales/de_AT: Likewise.
22976 * localedata/locales/de_BE: Likewise.
22977 * localedata/locales/de_CH: Likewise.
22978 * localedata/locales/de_DE: Likewise.
22979 * localedata/locales/de_IT: Likewise.
22980 * localedata/locales/de_LI: Likewise.
22981 * localedata/locales/de_LU: Likewise.
22982 * localedata/locales/doi_IN: Likewise.
22983 * localedata/locales/dv_MV: Likewise.
22984 * localedata/locales/dz_BT: Likewise.
22985 * localedata/locales/el_CY: Likewise.
22986 * localedata/locales/el_GR: Likewise.
22987 * localedata/locales/en_AG: Likewise.
22988 * localedata/locales/en_AU: Likewise.
22989 * localedata/locales/en_BW: Likewise.
22990 * localedata/locales/en_CA: Likewise.
22991 * localedata/locales/en_DK: Likewise.
22992 * localedata/locales/en_GB: Likewise.
22993 * localedata/locales/en_HK: Likewise.
22994 * localedata/locales/en_IE: Likewise.
22995 * localedata/locales/en_IL: Likewise.
22996 * localedata/locales/en_IN: Likewise.
22997 * localedata/locales/en_NG: Likewise.
22998 * localedata/locales/en_NZ: Likewise.
22999 * localedata/locales/en_PH: Likewise.
23000 * localedata/locales/en_SG: Likewise.
23001 * localedata/locales/en_US: Likewise.
23002 * localedata/locales/en_ZA: Likewise.
23003 * localedata/locales/en_ZM: Likewise.
23004 * localedata/locales/en_ZW: Likewise.
23005 * localedata/locales/eo: Likewise.
23006 * localedata/locales/es_AR: Likewise.
23007 * localedata/locales/es_BO: Likewise.
23008 * localedata/locales/es_CL: Likewise.
23009 * localedata/locales/es_CO: Likewise.
23010 * localedata/locales/es_CR: Likewise.
23011 * localedata/locales/es_CU: Likewise.
23012 * localedata/locales/es_DO: Likewise.
23013 * localedata/locales/es_EC: Likewise.
23014 * localedata/locales/es_ES: Likewise.
23015 * localedata/locales/es_GT: Likewise.
23016 * localedata/locales/es_HN: Likewise.
23017 * localedata/locales/es_MX: Likewise.
23018 * localedata/locales/es_NI: Likewise.
23019 * localedata/locales/es_PA: Likewise.
23020 * localedata/locales/es_PE: Likewise.
23021 * localedata/locales/es_PR: Likewise.
23022 * localedata/locales/es_PY: Likewise.
23023 * localedata/locales/es_SV: Likewise.
23024 * localedata/locales/es_US: Likewise.
23025 * localedata/locales/es_UY: Likewise.
23026 * localedata/locales/es_VE: Likewise.
23027 * localedata/locales/et_EE: Likewise.
23028 * localedata/locales/eu_ES: Likewise.
23029 * localedata/locales/eu_ES@euro: Likewise.
23030 * localedata/locales/fa_IR: Likewise.
23031 * localedata/locales/ff_SN: Likewise.
23032 * localedata/locales/fi_FI: Likewise.
23033 * localedata/locales/fil_PH: Likewise.
23034 * localedata/locales/fo_FO: Likewise.
23035 * localedata/locales/fr_BE: Likewise.
23036 * localedata/locales/fr_CA: Likewise.
23037 * localedata/locales/fr_CH: Likewise.
23038 * localedata/locales/fr_FR: Likewise.
23039 * localedata/locales/fr_LU: Likewise.
23040 * localedata/locales/fur_IT: Likewise.
23041 * localedata/locales/fy_DE: Likewise.
23042 * localedata/locales/fy_NL: Likewise.
23043 * localedata/locales/ga_IE: Likewise.
23044 * localedata/locales/gd_GB: Likewise.
23045 * localedata/locales/gez_ER: Likewise.
23046 * localedata/locales/gez_ET: Likewise.
23047 * localedata/locales/gl_ES: Likewise.
23048 * localedata/locales/gu_IN: Likewise.
23049 * localedata/locales/gv_GB: Likewise.
23050 * localedata/locales/ha_NG: Likewise.
23051 * localedata/locales/hak_TW: Likewise.
23052 * localedata/locales/he_IL: Likewise.
23053 * localedata/locales/hi_IN: Likewise.
23054 * localedata/locales/hif_FJ: Likewise.
23055 * localedata/locales/hne_IN: Likewise.
23056 * localedata/locales/hr_HR: Likewise.
23057 * localedata/locales/hsb_DE: Likewise.
23058 * localedata/locales/ht_HT: Likewise.
23059 * localedata/locales/hu_HU: Likewise.
23060 * localedata/locales/hy_AM: Likewise.
23061 * localedata/locales/i18n: Likewise.
23062 * localedata/locales/ia_FR: Likewise.
23063 * localedata/locales/id_ID: Likewise.
23064 * localedata/locales/ig_NG: Likewise.
23065 * localedata/locales/ik_CA: Likewise.
23066 * localedata/locales/is_IS: Likewise.
23067 * localedata/locales/it_CH: Likewise.
23068 * localedata/locales/it_IT: Likewise.
23069 * localedata/locales/iu_CA: Likewise.
23070 * localedata/locales/ja_JP: Likewise.
23071 * localedata/locales/ka_GE: Likewise.
23072 * localedata/locales/kk_KZ: Likewise.
23073 * localedata/locales/kl_GL: Likewise.
23074 * localedata/locales/kn_IN: Likewise.
23075 * localedata/locales/ko_KR: Likewise.
23076 * localedata/locales/kok_IN: Likewise.
23077 * localedata/locales/ks_IN: Likewise.
23078 * localedata/locales/ks_IN@devanagari: Likewise.
23079 * localedata/locales/ku_TR: Likewise.
23080 * localedata/locales/kw_GB: Likewise.
23081 * localedata/locales/ky_KG: Likewise.
23082 * localedata/locales/lb_LU: Likewise.
23083 * localedata/locales/lg_UG: Likewise.
23084 * localedata/locales/li_BE: Likewise.
23085 * localedata/locales/li_NL: Likewise.
23086 * localedata/locales/lij_IT: Likewise.
23087 * localedata/locales/ln_CD: Likewise.
23088 * localedata/locales/lo_LA: Likewise.
23089 * localedata/locales/lt_LT: Likewise.
23090 * localedata/locales/lv_LV: Likewise.
23091 * localedata/locales/lzh_TW: Likewise.
23092 * localedata/locales/mag_IN: Likewise.
23093 * localedata/locales/mai_IN: Likewise.
23094 * localedata/locales/mg_MG: Likewise.
23095 * localedata/locales/mhr_RU: Likewise.
23096 * localedata/locales/mi_NZ: Likewise.
23097 * localedata/locales/mk_MK: Likewise.
23098 * localedata/locales/ml_IN: Likewise.
23099 * localedata/locales/mn_MN: Likewise.
23100 * localedata/locales/mni_IN: Likewise.
23101 * localedata/locales/mr_IN: Likewise.
23102 * localedata/locales/ms_MY: Likewise.
23103 * localedata/locales/mt_MT: Likewise.
23104 * localedata/locales/my_MM: Likewise.
23105 * localedata/locales/nan_TW: Likewise.
23106 * localedata/locales/nan_TW@latin: Likewise.
23107 * localedata/locales/nb_NO: Likewise.
23108 * localedata/locales/nds_DE: Likewise.
23109 * localedata/locales/nds_NL: Likewise.
23110 * localedata/locales/ne_NP: Likewise.
23111 * localedata/locales/nhn_MX: Likewise.
23112 * localedata/locales/niu_NU: Likewise.
23113 * localedata/locales/niu_NZ: Likewise.
23114 * localedata/locales/nl_AW: Likewise.
23115 * localedata/locales/nl_BE: Likewise.
23116 * localedata/locales/nl_NL: Likewise.
23117 * localedata/locales/nn_NO: Likewise.
23118 * localedata/locales/nr_ZA: Likewise.
23119 * localedata/locales/nso_ZA: Likewise.
23120 * localedata/locales/oc_FR: Likewise.
23121 * localedata/locales/om_ET: Likewise.
23122 * localedata/locales/om_KE: Likewise.
23123 * localedata/locales/or_IN: Likewise.
23124 * localedata/locales/os_RU: Likewise.
23125 * localedata/locales/pa_IN: Likewise.
23126 * localedata/locales/pa_PK: Likewise.
23127 * localedata/locales/pap_AW: Likewise.
23128 * localedata/locales/pap_CW: Likewise.
23129 * localedata/locales/pl_PL: Likewise.
23130 * localedata/locales/ps_AF: Likewise.
23131 * localedata/locales/pt_BR: Likewise.
23132 * localedata/locales/pt_PT: Likewise.
23133 * localedata/locales/quz_PE: Likewise.
23134 * localedata/locales/raj_IN: Likewise.
23135 * localedata/locales/ro_RO: Likewise.
23136 * localedata/locales/ru_RU: Likewise.
23137 * localedata/locales/ru_UA: Likewise.
23138 * localedata/locales/rw_RW: Likewise.
23139 * localedata/locales/sa_IN: Likewise.
23140 * localedata/locales/sat_IN: Likewise.
23141 * localedata/locales/sc_IT: Likewise.
23142 * localedata/locales/sd_IN: Likewise.
23143 * localedata/locales/sd_IN@devanagari: Likewise.
23144 * localedata/locales/se_NO: Likewise.
23145 * localedata/locales/sgs_LT: Likewise.
23146 * localedata/locales/shs_CA: Likewise.
23147 * localedata/locales/si_LK: Likewise.
23148 * localedata/locales/sid_ET: Likewise.
23149 * localedata/locales/sk_SK: Likewise.
23150 * localedata/locales/sl_SI: Likewise.
23151 * localedata/locales/sm_WS: Likewise.
23152 * localedata/locales/so_DJ: Likewise.
23153 * localedata/locales/so_ET: Likewise.
23154 * localedata/locales/so_KE: Likewise.
23155 * localedata/locales/so_SO: Likewise.
23156 * localedata/locales/sq_AL: Likewise.
23157 * localedata/locales/sq_MK: Likewise.
23158 * localedata/locales/sr_ME: Likewise.
23159 * localedata/locales/sr_RS: Likewise.
23160 * localedata/locales/sr_RS@latin: Likewise.
23161 * localedata/locales/ss_ZA: Likewise.
23162 * localedata/locales/st_ZA: Likewise.
23163 * localedata/locales/sv_FI: Likewise.
23164 * localedata/locales/sv_SE: Likewise.
23165 * localedata/locales/sw_KE: Likewise.
23166 * localedata/locales/sw_TZ: Likewise.
23167 * localedata/locales/szl_PL: Likewise.
23168 * localedata/locales/ta_IN: Likewise.
23169 * localedata/locales/ta_LK: Likewise.
23170 * localedata/locales/tcy_IN: Likewise.
23171 * localedata/locales/te_IN: Likewise.
23172 * localedata/locales/tg_TJ: Likewise.
23173 * localedata/locales/th_TH: Likewise.
23174 * localedata/locales/the_NP: Likewise.
23175 * localedata/locales/ti_ER: Likewise.
23176 * localedata/locales/ti_ET: Likewise.
23177 * localedata/locales/tig_ER: Likewise.
23178 * localedata/locales/tk_TM: Likewise.
23179 * localedata/locales/tl_PH: Likewise.
23180 * localedata/locales/tn_ZA: Likewise.
23181 * localedata/locales/to_TO: Likewise.
23182 * localedata/locales/tpi_PG: Likewise.
23183 * localedata/locales/tr_CY: Likewise.
23184 * localedata/locales/tr_TR: Likewise.
23185 * localedata/locales/ts_ZA: Likewise.
23186 * localedata/locales/tt_RU: Likewise.
23187 * localedata/locales/tt_RU@iqtelif: Likewise.
23188 * localedata/locales/ug_CN: Likewise.
23189 * localedata/locales/uk_UA: Likewise.
23190 * localedata/locales/unm_US: Likewise.
23191 * localedata/locales/ur_IN: Likewise.
23192 * localedata/locales/ur_PK: Likewise.
23193 * localedata/locales/uz_UZ: Likewise.
23194 * localedata/locales/uz_UZ@cyrillic: Likewise.
23195 * localedata/locales/ve_ZA: Likewise.
23196 * localedata/locales/vi_VN: Likewise.
23197 * localedata/locales/wa_BE: Likewise.
23198 * localedata/locales/wae_CH: Likewise.
23199 * localedata/locales/wal_ET: Likewise.
23200 * localedata/locales/wo_SN: Likewise.
23201 * localedata/locales/xh_ZA: Likewise.
23202 * localedata/locales/yi_US: Likewise.
23203 * localedata/locales/yo_NG: Likewise.
23204 * localedata/locales/yue_HK: Likewise.
23205 * localedata/locales/yuw_PG: Likewise.
23206 * localedata/locales/zh_CN: Likewise.
23207 * localedata/locales/zh_HK: Likewise.
23208 * localedata/locales/zh_SG: Likewise.
23209 * localedata/locales/zh_TW: Likewise.
23210 * localedata/locales/zu_ZA: Likewise.
23211
23212 2017-11-13 Florian Weimer <fweimer@redhat.com>
23213
23214 * support/next_to_fault.h, support/next_to_fault.c: New files.
23215 * support/Makefile (libsupport-routines): Add next_to_fault.
23216 * resolv/tst-inet_pton.c (struct next_to_fault)
23217 (next_to_fault_allocate, next_to_fault_free): Remove.
23218 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
23219
23220 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
23221
23222 * elf/dl-support.c: Include <dl-procruntime.c>.
23223 * include/link.h: Include <link_map.h>.
23224 * sysdeps/generic/dl-procruntime.c: New file.
23225 * sysdeps/generic/link_map.h: Likewise.
23226 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
23227 the writable ld.so namespace.
23228
23229 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
23230
23231 timezone: pacify GCC -Wstringop-truncation
23232 Problem reported by Martin Sebor in:
23233 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
23234 * timezone/zic.c (writezone): Use memcpy, not strncpy.
23235
23236 2017-11-12 Florian Weimer <fweimer@redhat.com>
23237
23238 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
23239 tst-xreadlink.
23240 (tests): Add tst-xreadlink.
23241 * support/support.h (xstrndup): Declare.
23242 * support/xunistd.h (xunlink, xreadlink): Declare.
23243 * support/temp_file.h (support_create_temp_directory): Declare.
23244 * support/temp_file.c (support_create_temp_directory): New function.
23245 * support/support_chroot.c (support_chroot_create): Use it.
23246 * support/xreadlink.c: New file.
23247 * support/xstrndup.c: Likewise.
23248 * support/xunlink.c: Likewise.
23249 * support/tst-xreadlink.c: Likewise.
23250
23251 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
23252
23253 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
23254
23255 2017-11-11 Florian Weimer <fweimer@redhat.com>
23256
23257 [BZ #22409]
23258 [BZ #22412]
23259 * resolv/res_comp.c (printable_string, binary_hnok)
23260 (binary_leading_dash): New functions.
23261 (res_hnok): Reimplement using these functions and ns_name_pton.
23262 (res_ownok): Likewise.
23263 (res_mailok): Reimplement using printable_string, ns_name_pton and
23264 binary_hnok.
23265 (res_dnok): Reimplement using printable_string and ns_name_pton.
23266 * resolv/tst-res_hnok.c (tests): Add additional tests.
23267 (LETTERDIGITS, PRINTABLE): Define.
23268 (do_test): Adjust one_char results.
23269
23270 2017-11-11 Florian Weimer <fweimer@redhat.com>
23271
23272 [BZ #22413]
23273 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
23274 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
23275
23276 2017-11-11 Florian Weimer <fweimer@redhat.com>
23277
23278 * resolv/tst-ns_name_pton.c: New file.
23279 * resolv/Makefile (tests): Add tst-ns_name_pton.
23280 (tst-ns_name_pton): Link against libresolv.
23281
23282 2017-11-11 Florian Weimer <fweimer@redhat.com>
23283
23284 * resolv/tst-res_hnok.c: New file.
23285 * resolv/Makefile (tests): Add tst-res_hnok.
23286 (tst-res_hnok): Link against libresolv.
23287
23288 2017-11-11 Florian Weimer <fweimer@redhat.com>
23289
23290 * resolv/tst-resolv-network.c: Use test framework instead explicit
23291 main function.
23292
23293 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
23294
23295 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
23296 <jmp_buf-macros.h>.
23297 [!_ISOMAC] (STR_HELPER): New.
23298 [!_ISOMAC] (STR): Likewise.
23299 [!_ISOMAC] (TEST_SIZE): Likewise.
23300 [!_ISOMAC] (TEST_ALIGN): Likewise.
23301 [!_ISOMAC] (TEST_OFFSET): Likewise.
23302 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
23303 field offsets of jmp_buf as well as sigjmp_buf.
23304 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
23305 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
23306 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
23307 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
23308 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
23309 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
23310 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
23311 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
23312 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
23313 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
23314 Likewise.
23315 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
23316 Likewise.
23317 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
23318 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
23319 Likewise.
23320 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
23321 Likewise.
23322 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
23323 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
23324 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
23325 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
23326 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
23327 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
23328 Likewise.
23329 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
23330 Likewise.
23331 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
23332 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
23333 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
23334
23335 2017-11-07 Joseph Myers <joseph@codesourcery.com>
23336
23337 * include/float.h
23338 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23339 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
23340 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23341 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
23342 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23343 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
23344 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23345 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
23346 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23347 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
23348 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23349 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
23350 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23351 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
23352 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23353 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
23354 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23355 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
23356 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23357 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
23358 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23359 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
23360 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23361 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
23362 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23363 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
23364 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23365 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
23366 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23367 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
23368 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23369 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
23370 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23371 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
23372 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23373 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
23374 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23375 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
23376 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23377 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
23378 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23379 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
23380 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23381 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
23382 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23383 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
23384 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23385 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
23386 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23387 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
23388 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23389 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
23390 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23391 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
23392 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23393 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
23394 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23395 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
23396 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23397 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
23398 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23399 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
23400 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23401 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
23402 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23403 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
23404 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23405 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
23406 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23407 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
23408 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23409 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
23410 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23411 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
23412 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23413 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
23414 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23415 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
23416 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23417 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
23418 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23419 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
23420 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23421 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
23422 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23423 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
23424 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23425 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
23426
23427 * stdlib/tst-strtod.h (F16): New macro.
23428 (F32): Likewise.
23429 (F64): Likewise.
23430 (F32X): Likewise.
23431 (F64X): Likewise.
23432 (F128X): Likewise.
23433 (IF_FLOAT16): Likewise.
23434 (IF_FLOAT32): Likewise.
23435 (IF_FLOAT64): Likewise.
23436 (IF_FLOAT32X): Likewise.
23437 (IF_FLOAT64X): Likewise.
23438 (IF_FLOAT128X): Likewise.
23439 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
23440 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
23441 (STRTOD_TEST_FOREACH): Likewise.
23442 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
23443 (CHOOSE_f64): Likewise.
23444 (CHOOSE_f32x): Likewise.
23445 (CHOOSE_f64x): Likewise.
23446
23447 2017-11-07 Andreas Schwab <schwab@suse.de>
23448
23449 * nptl/Makefile (tests-internal): Remove tst-typesizes.
23450
23451 2017-11-07 Mike FABIAN <mfabian@redhat.com>
23452
23453 [BZ #22403]
23454 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
23455 to be escaped.
23456 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
23457 to be escaped.
23458
23459 2017-11-07 Claude Paroz <claude@2xlibre.net>
23460
23461 [BZ #22403]
23462 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
23463 to be escaped.
23464 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
23465 to be escaped.
23466 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
23467 to be escaped.
23468
23469 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23470
23471 [BZ #22298]
23472 * nptl/allocatestack.c (allocate_stack): Check if
23473 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
23474 __PTHREAD_MUTEX_HAVE_PREV is defined.
23475 * nptl/descr.h (pthread): Likewise.
23476 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
23477 Likewise.
23478 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
23479 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
23480 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
23481 * sysdeps/nptl/bits/thread-shared-types.h
23482 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
23483 defines.
23484 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
23485 of __WORDSIZE for internal layout.
23486 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
23487 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
23488 instead of __WORDSIZE whether to use an union for __spins and __list
23489 fields.
23490 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
23491 case.
23492 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
23493 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
23494 defines.
23495 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
23496 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23497 Likewise.
23498 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
23499 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23500 Likewise.
23501 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
23502 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23503 Likewise.
23504 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
23505 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23506 Likewise.
23507 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
23508 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23509 Likewise.
23510 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
23511 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23512 Likewise.
23513 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
23514 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23515 Likewise.
23516 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
23517 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23518 Likewise.
23519 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
23520 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23521 Likewise.
23522 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
23523 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23524 Likewise.
23525 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
23526 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23527 Likewise.
23528 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
23529 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23530 Likewise.
23531 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
23532 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23533 Likewise.
23534 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
23535 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23536 Likewise.
23537
23538 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
23539 New macros.
23540 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
23541 checks for expected input type size.
23542 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
23543 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
23544 Likewise.
23545 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
23546 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
23547 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
23548 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
23549 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
23550 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
23551 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
23552 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
23553 superflous runtime assert check.
23554 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
23555 Likewise.
23556 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
23557 Likewise.
23558 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
23559 Likewise.
23560 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
23561 Likewise.
23562 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
23563 Likewise.
23564 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
23565 Likewise.
23566 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
23567 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
23568 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
23569 Likewise.
23570 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
23571 Likewise.
23572 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
23573 Likewise.
23574 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
23575 Likewise.
23576 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
23577 Likewise.
23578 * nptl/pthread_attr_setinheritsched.c
23579 (__pthread_attr_setinheritsched): Likewise.
23580 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
23581 Likewise.
23582 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
23583 Likewise.
23584 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
23585 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
23586 __old_pthread_attr_setstack): Likewise.
23587 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
23588 Likewise.
23589 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
23590 Likewise.
23591 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
23592 Likewise.
23593 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
23594 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
23595 Likewise.
23596 * nptl/tst-typesizes.c: Remove file.
23597
23598 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
23599 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
23600 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
23601 checks for internal pthread_mutex_t offsets.
23602 * sysdeps/aarch64/nptl/pthread-offsets.h
23603 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
23604 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
23605 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
23606 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
23607 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
23608 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
23609 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
23610 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
23611 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
23612 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
23613 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
23614 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
23615 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
23616 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
23617 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
23618 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
23619 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
23620 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
23621
23622 2017-11-07 Florian Weimer <fweimer@redhat.com>
23623
23624 * bits/mman-linux.h: Move ...
23625 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
23626 comment.
23627 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
23628 outdated comment.
23629
23630 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23631
23632 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
23633 Redefine STRNLEN as __strnlen_power8.
23634
23635 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23636
23637 * signal/sighold.c (sighold): Optimize implementation.
23638
23639 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
23640 __NR_rt_sigqueueinfo.
23641
23642 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
23643 __sigtimedwait.
23644 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
23645 assume __NR_rt_sigtimedwait.
23646 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
23647 and add LIBC_CANCEL_HANDLED for cancellation marking.
23648 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
23649
23650 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
23651 (sysdeps_routines): Add memchr_noneon.
23652 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
23653 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
23654 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
23655 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
23656 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
23657 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
23658 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
23659
23660 * sysdeps/arm/arm-ifunc.h: New file.
23661 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
23662 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
23663 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
23664 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
23665 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
23666 (__memcpy_neon): Avoid create hidden alias.
23667 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
23668 (__memcpy_vfp): Likewise.
23669 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
23670 (sysdep_routines): Add memcpy_arm.
23671 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
23672
23673 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
23674
23675 [BZ #22362]
23676 * Makerules (make-link-multidir): New.
23677 * config.make.in (multidir): New.
23678 * configure.ac (libc_cv_multidir): New. AC_SUBST.
23679 * configure: Regenerated.
23680 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
23681 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
23682 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
23683 New target.
23684
23685 2017-11-06 Joseph Myers <joseph@codesourcery.com>
23686
23687 [BZ #22402]
23688 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
23689 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
23690
23691 2017-11-04 Mike FABIAN <mfabian@redhat.com>
23692
23693 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
23694 to be escaped.
23695
23696 2017-11-04 Florian Weimer <fweimer@redhat.com>
23697
23698 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
23699
23700 2017-11-03 Joseph Myers <joseph@codesourcery.com>
23701
23702 * math/math.h [__HAVE_DISTINCT_FLOAT16
23703 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23704 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23705 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23706 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
23707 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
23708 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
23709 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23710 (__MATH_TG_F32): New macro.
23711 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23712 (__MATH_TG_F64X): Likewise.
23713 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23714 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
23715
23716 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
23717
23718 * po/de.po: Update translations.
23719 * po/ru.po: Likewise.
23720
23721 2017-11-03 Florian Weimer <fweimer@redhat.com>
23722
23723 * manual/filesys.texi (Hard Links): Document linkat.
23724
23725 2017-11-03 Joseph Myers <joseph@codesourcery.com>
23726
23727 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
23728 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23729 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23730 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23731 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23732 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23733 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
23734 the same as _Float128.
23735 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23736 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23737 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
23738
23739 * stdlib/stdlib.h
23740 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
23741 Declare.
23742 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
23743 Likewise.
23744 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
23745 Likewise.
23746 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23747 (strtof32x): Likewise.
23748 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23749 (strtof64x): Likewise.
23750 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23751 (strtof128x): Likewise.
23752 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23753 (strfromf16): Likewise.
23754 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23755 (strfromf32): Likewise.
23756 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23757 (strfromf64): Likewise.
23758 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23759 (strfromf32x): Likewise.
23760 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23761 (strfromf64x): Likewise.
23762 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23763 (strfromf128x): Likewise.
23764 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
23765 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
23766 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
23767 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
23768 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
23769 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
23770
23771 2017-11-03 Richard Henderson <rth@twiddle.net>
23772
23773 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
23774
23775 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23776
23777 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
23778
23779 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23780
23781 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
23782 DT_TLSDESC_GOT initialization.
23783 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
23784 (_dl_tlsdesc_resolve_hold): Likewise.
23785 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
23786 (_dl_tlsdesc_resolve_hold): Likewise.
23787 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
23788 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23789
23790 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23791
23792 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
23793
23794 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23795
23796 [BZ #18572]
23797 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
23798 non-lazily for R_ARM_TLS_DESC.
23799
23800 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23801
23802 [BZ #17078]
23803 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
23804 R_ARM_TLS_DESC case.
23805 (elf_machine_lazy_rel): Remove the prelink check.
23806
23807 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23808
23809 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
23810 DT_TLSDESC_GOT initialization.
23811 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
23812 (_dl_tlsdesc_resolve_rela): Likewise.
23813 (_dl_tlsdesc_resolve_hold): Likewise.
23814 (_dl_tlsdesc_undefweak): Remove ldar.
23815 (_dl_tlsdesc_dynamic): Likewise.
23816 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
23817 (_dl_tlsdesc_resolve_rela): Likewise.
23818 (_dl_tlsdesc_resolve_hold): Likewise.
23819 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
23820 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23821 (_dl_tlsdesc_resolve_rela): Likewise.
23822 (_dl_tlsdesc_resolve_hold): Likewise.
23823
23824 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23825
23826 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
23827 binding and initialization non-lazily for R_AARCH64_TLSDESC.
23828
23829 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23830
23831 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
23832 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
23833
23834 2017-11-02 Joseph Myers <joseph@codesourcery.com>
23835
23836 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
23837 Declare.
23838 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
23839 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
23840 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
23841 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
23842 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
23843 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
23844 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
23845 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
23846 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
23847 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
23848 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
23849
23850 2017-11-02 Mike FABIAN <mfabian@redhat.com>
23851
23852 [BZ #22382]
23853 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
23854 * localedata/locales/tpi_PG: Add standard header.
23855
23856 2017-11-02 Florian Weimer <fweimer@redhat.com>
23857
23858 test-errno-linux: quotactl can fail with EPERM in containers.
23859 * sysdeps/unix/sysv/linux/test-errno-linux.c
23860 (LIST, LIST_FORWARD): New macros.
23861 (check_error_in_list): New function.
23862 (test_wrp_rv): Accept list of permitted error codes.
23863 (test_wrp_rv2): Remove.
23864 (test_wrp): Call test_wrp_rv with list of error codes.
23865 (test_wrp2): Accept list of error codes.
23866 (do_test): Adjust. Allow EPERM for quotactl.
23867
23868 2017-11-02 Florian Weimer <fweimer@redhat.com>
23869
23870 * stdio-common/bug16.c (do_test): Use array_length.
23871 * stdio-common/errlist.c (_sys_nerr): Likewise.
23872 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
23873 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
23874 * stdio-common/psiginfo.c (psiginfo): Use array_length.
23875 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
23876 (do_test): Use array_length.
23877 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
23878 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
23879 * stdio-common/tst-printf-round.c (do_test): Likewise.
23880 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
23881 (CHECK): Use array_length.
23882 * stdio-common/tstdiomisc.c (t3, F): Likewise.
23883 * stdio-common/tstscanf.c (main): Likewise.
23884 * stdio-common/vfprintf.c (process_string_arg): Likewise.
23885
23886 2017-11-02 Florian Weimer <fweimer@redhat.com>
23887
23888 Add array_length and array_end macros.
23889 * include/array_length.h: New file.
23890
23891 2017-11-02 Florian Weimer <fweimer@redhat.com>
23892
23893 [BZ #22332]
23894 * posix/tst-glob-tilde.c (do_noescape): New variable.
23895 (one_test): Process it.
23896 (do_test): Set do_noescape. Add unescaping test case.
23897
23898 2017-11-01 Joseph Myers <joseph@codesourcery.com>
23899
23900 * math/complex.h
23901 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
23902 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
23903 with appropriate macros defined and undefined.
23904 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
23905 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23906 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
23907 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23908 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
23909 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23910 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
23911 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23912 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
23913 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23914
23915 * math/complex.h
23916 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
23917 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
23918 that for long double. Do not condition define and undefine of
23919 _Mdouble_complex_ on [__CFLOAT128].
23920
23921 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
23922
23923 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23924 of <sysdeps/generic/sysdep.h>.
23925 (ALIGNARG): Removed.
23926 (ASM_SIZE_DIRECTIVE): Likewise.
23927 (ENTRY): Likewise.
23928 (END): Likewise.
23929 (ENTRY_CHK): Likewise.
23930 (END_CHK): Likewise.
23931 (syscall_error): Likewise.
23932 (mcount): Likewise.
23933 (PSEUDO_END): Likewise.
23934 (L): Likewise.
23935 (atom_text_section): Likewise.
23936 * sysdeps/x86/sysdep.h: New file.
23937 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23938 of <sysdeps/generic/sysdep.h>.
23939 (ALIGNARG): Removed.
23940 (ASM_SIZE_DIRECTIVE): Likewise.
23941 (ENTRY): Likewise.
23942 (END): Likewise.
23943 (ENTRY_CHK): Likewise.
23944 (END_CHK): Likewise.
23945 (syscall_error): Likewise.
23946 (mcount): Likewise.
23947 (PSEUDO_END): Likewise.
23948 (L): Likewise.
23949 (atom_text_section): Likewise.
23950
23951 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
23952
23953 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
23954 category of LC_CTYPE set to "i18n:2012".
23955 * localedata/locales/i18n_ctype: Regenerate.
23956
23957 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
23958
23959 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
23960 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
23961 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
23962 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
23963
23964 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
23965 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
23966 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
23967 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
23968
23969 2017-10-31 Joseph Myers <joseph@codesourcery.com>
23970
23971 * math/complex.h
23972 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
23973 New macro.
23974 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
23975 Likewise.
23976 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
23977 Likewise.
23978 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23979 (CMPLXF32X): Likewise.
23980 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23981 (CMPLXF64X): Likewise.
23982 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23983 (CMPLXF128X): Likewise.
23984
23985 * math/math.h
23986 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
23987 (__MATH_EVAL_FMT2): Define to add 0.0f.
23988
23989 2017-10-31 Alan Modra <amodra@gmail.com>
23990
23991 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
23992 include sysdep.h.
23993 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
23994 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
23995 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
23996 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
23997 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
23998 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
23999 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
24000 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
24001 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
24002 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
24003 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
24004 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
24005 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
24006 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
24007 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
24008 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
24009 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
24010 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
24011 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
24012 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
24013 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
24014 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
24015 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
24016 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
24017 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
24018 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
24019 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
24020 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
24021 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
24022 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
24023 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
24024 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
24025 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
24026 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
24027 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
24028 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
24029 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
24030 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
24031 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
24032 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
24033 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
24034 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
24035 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
24036 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
24037 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
24038 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
24039 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
24040 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
24041 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
24042 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
24043 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
24044 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
24045 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
24046 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
24047 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
24048 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
24049 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
24050 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
24051 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
24052 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
24053 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
24054 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
24055 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
24056 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
24057 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
24058 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
24059 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
24060 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
24061 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
24062
24063 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
24064 include sysdep.h and math_ldbl_opt.h.
24065
24066 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
24067 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
24068 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
24069 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
24070 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
24071 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
24072 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
24073 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
24074 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
24075 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
24076 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
24077 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
24078 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
24079 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
24080 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
24081 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
24082 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
24083 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
24084 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
24085 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
24086 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
24087 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
24088 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
24089 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
24090 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
24091 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
24092
24093 2017-10-31 Alan Modra <amodra@gmail.com>
24094
24095 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
24096 string/strncase_l.c, not string/strncase.c.
24097 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
24098 (libc_hidden_def): Redefine.
24099
24100 2017-10-31 Alan Modra <amodra@gmail.com>
24101
24102 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
24103 (__STRCMP, STRCMP, __strcasecmp_l): Define.
24104 (__strcasecmp): Don't define.
24105
24106 2017-10-31 Alan Modra <amodra@gmail.com>
24107
24108 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
24109 IS_IN (libc).
24110 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
24111 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
24112 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
24113
24114 2017-10-31 Alan Modra <amodra@gmail.com>
24115
24116 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
24117 USE_AS_STPNCPY.
24118
24119 2017-10-31 Alan Modra <amodra@gmail.com>
24120
24121 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
24122 Redefine only when SHARED.
24123
24124 2017-10-30 Joseph Myers <joseph@codesourcery.com>
24125
24126 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
24127 Include <bits/math-finite.h> with appropriate macros defined and
24128 undefined.
24129 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
24130 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
24131 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
24132 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
24133 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
24134
24135 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
24136 [!_Mlong_double_] (_Mlong_double_): Likewise.
24137 [!_Mfloat16_] (_Mfloat16_): Likewise.
24138 [!_Mfloat32_] (_Mfloat32_): Likewise.
24139 [!_Mfloat64_] (_Mfloat64_): Likewise.
24140 [!_Mfloat128_] (_Mfloat128_): Likewise.
24141 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
24142 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
24143 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
24144 (_Mdouble_): Define without indirection through those macros.
24145 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
24146 [!_Mfloat128_] (_Mfloat128_): Likewise.
24147 [_Mlong_double_] (_Mlong_double_): Likewise.
24148 (_Mdouble_): Define without indirection through those macros.
24149 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
24150 not add -D_Mlong_double_=double.
24151 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
24152 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
24153
24154 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
24155
24156 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
24157
24158 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
24159
24160 * sysdeps/x86/libc-start.c: Reformat.
24161
24162 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
24163
24164 [BZ #22353]
24165 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
24166 (1): Renamed to ...
24167 (L(Src0)): This.
24168 (L(Src1)): New.
24169 (L(Src2)): Likewise.
24170 (L(1)): Renamed to ...
24171 (L(Src3)): This.
24172
24173 2017-10-30 Joseph Myers <joseph@codesourcery.com>
24174
24175 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
24176 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
24177 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
24178 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
24179 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
24180 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
24181 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
24182 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
24183 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
24184 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
24185 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
24186 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
24187 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
24188 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
24189 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
24190 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
24191 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
24192 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
24193 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
24194 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
24195 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
24196 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
24197 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
24198 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
24199 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
24200 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
24201 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
24202 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
24203 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
24204 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
24205 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
24206 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
24207 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
24208 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
24209 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
24210 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
24211 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
24212 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
24213 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
24214 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
24215 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
24216 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
24217 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
24218 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
24219 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
24220 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
24221 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
24222 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
24223 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
24224 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
24225 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
24226 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
24227 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
24228 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
24229 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
24230 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
24231 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
24232 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
24233 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
24234 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
24235 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
24236 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
24237 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
24238 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
24239 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
24240 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
24241
24242 2017-10-30 Florian Weimer <fweimer@redhat.com>
24243
24244 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
24245 always defined.
24246 * io/tst-mkdirat.c (do_test): Likewise.
24247 * io/tst-mkfifoat.c (do_test): Likewise.
24248 * io/tst-mknodat.c (do_test): Likewise.
24249 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
24250 * locale/programs/locale.c (select_dirs): Likewise.
24251 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
24252 * posix/bug-glob2.c (my_readdir): Likewise.
24253 * posix/tst-dir.c (main): Likewise.
24254 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
24255 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
24256
24257 2017-10-30 Florian Weimer <fweimer@redhat.com>
24258
24259 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
24260 just __USE_GNU.
24261
24262 2017-10-30 Florian Weimer <fweimer@redhat.com>
24263
24264 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
24265 Convert to support/test-driver.c.
24266 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
24267 New macro parameters.
24268 (PRINTF): Remove macro. Use test_verbose conditionals instead.
24269 * posix/tst-gnuglob.c: New file.
24270 * posix/tst-gnuglob64.c: Likewise.
24271 * posix/Makefile (tests): Add tst-gnuglob64.
24272
24273 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
24274
24275 [BZ #19485]
24276 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
24277 and use a better translation for March in “mon”.
24278 * localedata/locales/csb_PL: Use more ASCII to improve the
24279 readability of the source.
24280
24281 2017-10-30 Mike FABIAN <mfabian@redhat.com>
24282
24283 [BZ #13953]
24284 * localedata/locales/km_KH: Use ASCII as much
24285 as possible for better readability of the source and
24286 remove useless comments.
24287 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
24288 was commented out and apparently wrong anyway because it was
24289 using Lao characters. If Buddhist era should be used
24290 for km_KH, a native speaker should write the correct formaat
24291 for Khmer.
24292 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
24293 (According to CLDR, the first weekday for Cambodia is Sunday).
24294 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
24295 (These were using Lao characters which must be wrong. If we get
24296 the correct data from a native speaker, we could add it back, until
24297 then it is better not to have name_mr and name_mrs at all than
24298 having it wrong).
24299
24300 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
24301
24302 * locale/loadlocale.c: Correct size of
24303 _nl_value_type_LC_<category> arrays.
24304
24305 2017-10-27 Joseph Myers <joseph@codesourcery.com>
24306
24307 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
24308 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
24309 with appropriate macros defined and undefined.
24310 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
24311 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
24312 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
24313 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
24314 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
24315
24316 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
24317
24318 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
24319 "-O2 -march=i586".
24320
24321 2017-10-27 Mike FABIAN <mfabian@redhat.com>
24322
24323 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
24324 with lowercase letters to make it agree with CLDR.
24325
24326 2017-10-27 Mike FABIAN <mfabian@redhat.com>
24327
24328 [BZ #15260]
24329 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
24330 first letters of yesstr and nostr in yesexpr and noexpr,
24331 not for the full words.
24332 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
24333 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
24334 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
24335 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
24336 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
24337 first letters of yesstr and nostr in yesexpr and noexpr,
24338 until now only English was matched in yesexpr and noexpr.
24339 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
24340 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
24341 fil but not for tl. As tl and fil are very similar, using fil
24342 is probably better than using English.
24343
24344 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
24345
24346 [BZ #21706]
24347 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
24348 in yesstr and nostr.
24349
24350 2017-10-26 Joseph Myers <joseph@codesourcery.com>
24351
24352 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
24353 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
24354 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
24355 Likewise.
24356 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
24357 Likewise.
24358 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
24359 Likewise.
24360 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
24361 Likewise.
24362 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24363 (SNANF128X): Likewise.
24364
24365 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
24366 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
24367 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24368 (HUGE_VAL_F32): Likewise.
24369 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24370 (HUGE_VAL_F64): Likewise.
24371 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24372 (HUGE_VAL_F32X): Likewise.
24373 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24374 (HUGE_VAL_F64X): Likewise.
24375 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24376 (HUGE_VAL_F128X): Likewise.
24377
24378 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
24379
24380 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
24381 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
24382 for the br_FR locale.
24383
24384 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
24385
24386 [BZ #21706]
24387 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
24388
24389 2017-10-25 Carlos O'Donell <carlos@redhat.com>
24390
24391 * locale/programs/record-status.h: Define globals, and function
24392 prototypes. Move function bodies...
24393 * locale/programs/record-status.c: ... to here. New file.
24394 * iconv/Makefile (iconv_prog-modules): Add record-status.
24395 * locale/Makefile (lib-modules): Likewise.
24396 * iconv/iconv_prog.c: Remove verbose.
24397 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
24398 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
24399 record a warning about ASCII compatibility.
24400 * locale/programs/ld-monetary.c (monetary_finish): If
24401 warn_int_curr_symbol is true then record a warning about the symbol
24402 not being in our ISO 4217 list.
24403 * locale/programs/locale.c: Include record-status.h. Remove verbose.
24404 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
24405 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
24406 (OPT_NO_WARN): Define.
24407 (OPT_WARN): Define.
24408 (options): Add entry for --no-warnings, and --warnings.
24409 (set_warnings): New function to enable/disable warnings.
24410 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
24411 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
24412 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
24413 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
24414 Pass flags to generate_locale.
24415 (generate_locale): Accept new flag argument and pass it to localedef
24416 invocation.
24417 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
24418 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
24419
24420 * localedata/Makefile (test-input-data): Use full file name.
24421 * localedata/da_DK.in: Rename to...
24422 * localedata/da_DK.ISO-8859-1.in: ...this.
24423 * localedata/de_DE.in: Rename to...
24424 * localedata/de_DE.ISO-8859-1.in: ...this.
24425 * localedata/en_US.in: Rename to...
24426 * localedata/en_US.ISO-8859-1.in: ...this.
24427 * localedata/fr_FR.in: Rename to...
24428 * localedata/fr_FR.UTF-8.in: ... this.
24429 * localedata/hr_HR.in: Rename to...
24430 * localedata/hr_HR.ISO-8859-2.in: ...this.
24431 * localedata/hu_HU.in: Rename to...
24432 * localedata/hu_HU.UTF-8.in: ...this.
24433 * localedata/si_LK.in: Rename to...
24434 * localedata/si_LK.UTF-8.in: ...this.
24435 * localedata/sv_SE.in: Rename to...
24436 * localedata/sv_SE.ISO-8859-1.in: ...this.
24437 * localedata/tr_TR.in: Rename to...
24438 * localedata/tr_TR.UTF-8.in: ...this.
24439 * localedata/uk_UA.in: Rename to...
24440 * localedata/uk_UA.UTF-8.in: ...this.
24441 * localedata/sort-test.sh: Test file is locale name with the
24442 suffix.
24443
24444 * localedata/unicode-gen/Makefile (check_i18n): Rename to
24445 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
24446 file.
24447 * localedata/locales/i18n_ctype: Regenerate.
24448 * localedata/locales/tr_TR: Likewise.
24449 * localedata/locales/translit_circle: Likewise.
24450 * localedata/locales/translit_cjk_compat: Likewise.
24451 * localedata/locales/translit_combining: Likewise.
24452 * localedata/locales/translit_compat: Likewise.
24453 * localedata/locales/translit_font: Likewise.
24454 * localedata/locales/translit_fraction: Likewise.
24455
24456 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24457
24458 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
24459 lxvd2x/stxvd2x with lvx/stvx.
24460 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
24461
24462 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
24463
24464 * include/alloc_buffer.h: Replace "if if " with "if " in
24465 comments.
24466 * sysdeps/mips/memcpy.S: Likkewise.
24467 * sysdeps/mips/memset.S: Likewise.
24468 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
24469 Likewise.
24470 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
24471 Likewise.
24472 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
24473 Likewise.
24474
24475 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24476
24477 [BZ #15261]
24478 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
24479 yesexpr and noexpr.
24480 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
24481 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
24482 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
24483 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
24484 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
24485 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
24486 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
24487
24488 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24489
24490 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
24491 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
24492 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
24493 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
24494 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
24495 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
24496 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
24497 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
24498 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
24499 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
24500 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
24501 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
24502
24503 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24504
24505 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
24506 as possible for better readability of the source.
24507 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
24508 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
24509 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
24510 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
24511 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
24512 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
24513 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
24514 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
24515 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
24516 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
24517 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
24518 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
24519 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
24520 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
24521 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
24522 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
24523 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
24524 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
24525 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
24526 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
24527 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
24528 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
24529 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
24530 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
24531 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
24532 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
24533 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
24534 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
24535 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
24536 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
24537 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
24538 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
24539 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
24540 * localedata/locales/en_US (LC_MESSAGES): Likewise.
24541 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
24542 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
24543 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
24544 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
24545 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
24546 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
24547 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
24548 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
24549 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
24550 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
24551 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
24552 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
24553 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
24554 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
24555 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
24556 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
24557 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
24558 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
24559 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
24560 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
24561 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
24562 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
24563 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
24564 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
24565 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
24566 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
24567 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
24568 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
24569 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
24570 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
24571 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
24572 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
24573 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
24574 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
24575 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
24576 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
24577 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
24578 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
24579 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
24580 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
24581 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
24582 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
24583 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
24584 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
24585 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
24586 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
24587 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
24588 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
24589 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
24590 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
24591 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
24592 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
24593 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
24594 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
24595 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
24596 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
24597 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
24598 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
24599 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
24600 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
24601 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
24602 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
24603 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
24604 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
24605 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
24606 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
24607 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
24608 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
24609 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
24610 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
24611 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
24612 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
24613 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
24614 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
24615 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
24616 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
24617 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
24618 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
24619 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
24620 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
24621 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
24622 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
24623 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
24624 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
24625 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
24626 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
24627 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
24628 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
24629 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
24630 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
24631 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
24632 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
24633 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
24634 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
24635 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
24636 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
24637 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
24638 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
24639 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
24640 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
24641 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
24642 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
24643 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
24644 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
24645 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
24646 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
24647 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
24648 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
24649 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
24650 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
24651 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
24652 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
24653 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
24654 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
24655 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
24656 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
24657 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
24658 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
24659 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
24660 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
24661 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
24662 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
24663 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
24664 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
24665 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
24666 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
24667 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
24668 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
24669 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
24670 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
24671 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
24672 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
24673 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
24674 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
24675 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
24676 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
24677 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
24678 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
24679 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
24680 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
24681
24682 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24683
24684 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
24685 (Use first letters of yesstr and nostr correctly instead of using
24686 full words).
24687
24688 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24689
24690 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
24691 (Use first letters of yesstr and nostr correctly).
24692
24693 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24694
24695 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
24696 also check for the first characters of yesstr and nostr.
24697 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
24698 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
24699
24700 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24701
24702 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
24703 also check for Chinese characters.
24704
24705 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24706
24707 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
24708 match also for the contents of yesstr and nostr. As the first letter
24709 of yesstr and nostr is equal, checking only for the first letter
24710 is not enough.
24711
24712 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24713
24714 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
24715 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
24716
24717 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24718
24719 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
24720 of main contributor.
24721
24722 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24723
24724 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
24725 instead of using English.
24726
24727 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24728
24729 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
24730 by including the first letters of nostr and yesexpr in the regexp.
24731 Also make it more readable by using ASCII where possible.
24732
24733 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24734
24735 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
24736 the first letter of nostr in the regexp. It agrees with CLDR now.
24737 Also make it more readable by using ASCII where possible.
24738
24739 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24740
24741 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
24742 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
24743 these strings contain a U+17D6 (which somewhat looks like a colon)
24744 instead of a real colon to separate the full words for “yes”
24745 and “no” from the single letter responses.
24746
24747 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24748
24749 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
24750 it agree with CLDR (include the first letter of yesstr).
24751 Also make it more readable by using ASCII where possible.
24752
24753 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24754
24755 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
24756 and improve yesexpr and noexpr. The yesstr and nostr apparently
24757 came from CLDR. And CLDR has a bug there: these strings contain
24758 a U+0903 (which looks like a colon) instead of a real colon
24759 to separate the full words for “yes” and “no” from the single
24760 letter responses.
24761
24762 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24763
24764 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
24765 letters of the full yesstr and nostr in yesexpr and noexpr.
24766
24767 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24768
24769 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
24770 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
24771 * localedata/locales/an_ES: Make source more readable by using ASCII
24772 where possible.
24773
24774 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24775
24776 [BZ #20952]
24777 * localedata/locales/yuw_PG: New file.
24778 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
24779 * locale/iso-639.def: Add Yau (Uruwa).
24780
24781 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
24782
24783 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
24784
24785 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
24786
24787 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
24788 (__libc_realloc): Likewise.
24789 (_mid_memalign): Likewise.
24790 (__libc_calloc): Likewise.
24791
24792 2017-10-23 Mike FABIAN <mfabian@redhat.com>
24793
24794 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
24795 by adding the generic +1 and -0 as in all other locales.
24796 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
24797 day names and make it more readable by using ASCII where possible.
24798
24799 2017-10-24 Joseph Myers <joseph@codesourcery.com>
24800
24801 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
24802 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
24803
24804 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24805
24806 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
24807 WNOHANG in waitpid call.
24808
24809 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
24810
24811 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
24812 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
24813
24814 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
24815 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
24816 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
24817 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
24818 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
24819 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
24820 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
24821 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
24822 variables.
24823
24824 2017-10-23 Michael Collison <michael.collison@arm.com>
24825
24826 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
24827 with __builtin_sqrt.
24828 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
24829 with __builtin_sqrtf.
24830 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
24831 with __builtin_ceil.
24832 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
24833 with __builtin_ceilf.
24834 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
24835 with __builtin_floor.
24836 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
24837 with __builtin_floorf.
24838 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
24839 with __builtin_fma.
24840 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
24841 with __builtin_fmaf.
24842 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
24843 with __builtin_fmax.
24844 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
24845 with __builtin_fmaxf.
24846 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
24847 with __builtin_fmin.
24848 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
24849 with __builtin_fminf.
24850 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
24851 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
24852 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
24853 with builtin_rint and conversion to int.
24854 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
24855 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
24856 with builtin_llround.
24857 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
24858 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
24859 with builtin_rint and conversion to long int.
24860 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
24861 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
24862 with builtin_lround.
24863 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
24864 with builtin_lroundf.
24865 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
24866 statements with __builtin_nearbyint.
24867 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
24868 statements with __builtin_nearbyintf.
24869 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
24870 with __builtin_rint.
24871 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
24872 with __builtin_rintf.
24873 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
24874 with __builtin_round.
24875 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
24876 with __builtin_roundf.
24877 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
24878 with __builtin_trunc.
24879 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
24880 with __builtin_truncf.
24881 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
24882 and s_l[l]round[f].c too.
24883
24884 2017-10-23 Alan Modra <amodra@gmail.com>
24885
24886 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
24887 Adjust stack after restoring regs. Add missing LR cfi_restore.
24888
24889 2017-10-23 Alan Modra <amodra@gmail.com>
24890
24891 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
24892 Move LR save and frame setup/teardown and LR restore to
24893 immediately around memset call. Provide cfi.
24894
24895 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24896
24897 * sysdeps/i386/fpu/e_powf.S: Removed.
24898 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
24899 * sysdeps/i386/fpu/w_powf.c: Likewise.
24900 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
24901 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24902 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24903 Add e_powf-sse2.
24904 (CFLAGS-e_powf-sse2.c): New.
24905 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
24906 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
24907
24908 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24909
24910 * sysdeps/i386/fpu/e_log2f.S: Removed.
24911 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
24912 * sysdeps/i386/fpu/w_log2f.c: Likewise.
24913 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
24914 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24915 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24916 Add e_log2f-sse2.
24917 (CFLAGS-e_log2f-sse2.c): New.
24918 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
24919 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
24920
24921 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24922
24923 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24924 Add e_powf-fma.
24925 (CFLAGS-e_powf-fma.c): New.
24926 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
24927 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
24928
24929 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24930
24931 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24932 Add e_log2f-fma.
24933 (CFLAGS-e_log2f-fma.c): New.
24934 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
24935 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
24936
24937 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24938
24939 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24940 Add e_logf-fma.
24941 (CFLAGS-e_logf-fma.c): New.
24942 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
24943 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
24944
24945 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24946
24947 * sysdeps/i386/fpu/e_logf.S: Removed.
24948 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
24949 * sysdeps/i386/fpu/w_logf.c: Likewise.
24950 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
24951 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
24952 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24953 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24954 Add e_logf-sse2.
24955 (CFLAGS-e_logf-sse2.c): New.
24956 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
24957 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
24958
24959 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24960
24961 * sysdeps/i386/fpu/e_exp2f.S: Removed.
24962 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
24963 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
24964 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24965 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24966 Add e_exp2f-sse2.
24967 (CFLAGS-e_exp2f-sse2.c): New.
24968 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
24969 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
24970
24971 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24972
24973 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24974 Add e_exp2f-fma.
24975 (CFLAGS-e_exp2f-fma.c): New.
24976 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
24977 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
24978
24979 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24980
24981 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
24982 * sysdeps/i386/fpu/e_expf.S: Likewise.
24983 * sysdeps/i386/fpu/math_errf.c: Likewise.
24984 * sysdeps/i386/fpu/w_expf.c: Likewise.
24985 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
24986 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
24987 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
24988 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
24989 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24990 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24991 Remove e_expf-ia32.
24992 (CFLAGS-e_expf-sse2.c): New.
24993 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
24994 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
24995
24996 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24997
24998 * sysdeps/x86_64/fpu/e_expf.S: Removed.
24999 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
25000 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
25001 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
25002 e_expf.c.
25003 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
25004 New.
25005 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
25006 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
25007 Renamed to ...
25008 (__redirect_expf): This.
25009 (SYMBOL_NAME): Changed to expf.
25010 (__ieee754_expf): Renamed to ...
25011 (__expf): This.
25012 (__GI___expf): This.
25013 (__ieee754_expf): Add strong_alias.
25014 (__expf_finite): Likewise.
25015 (__expf): New.
25016 Include <sysdeps/ieee754/flt-32/e_expf.c>.
25017
25018 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
25019
25020 [BZ #22332]
25021 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
25022 unescaping.
25023
25024 2017-10-21 Florian Weimer <fweimer@redhat.com>
25025
25026 * posix/Makefile (tests): Add tst-glob-tilde.
25027 (tests-special): Add tst-glob-tilde-mem.out
25028 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
25029 (tst-glob-tilde-mem.out): Add mtrace check.
25030 * posix/tst-glob-tilde.c: New file.
25031
25032 2017-10-20 Joseph Myers <joseph@codesourcery.com>
25033
25034 * bits/floatn-common.h: New file.
25035 * math/Makefile (headers): Add bits/floatn-common.h.
25036 * bits/floatn.h: Include <bits/floatn-common.h>.
25037 * sysdeps/ia64/bits/floatn.h: Likewise.
25038 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
25039 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
25040 * sysdeps/powerpc/bits/floatn.h: Likewise.
25041 * sysdeps/x86/bits/floatn.h: Likewise.
25042
25043 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25044
25045 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
25046 indicates whether compiler emits an warning for alias for
25047 functions with incompatible types.
25048
25049 [BZ #22273]
25050 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
25051 the auxiliary process is terminated by a signal before calling _exit
25052 or execve.
25053
25054 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
25055
25056 [BZ #21265]
25057 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
25058 New.
25059 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
25060 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
25061 and bit_arch_XSAVEC_Usable if needed.
25062 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
25063 and bit_arch_Use_dl_runtime_resolve_opt.
25064 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
25065 Removed.
25066 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
25067 (bit_arch_Prefer_No_AVX512): Updated.
25068 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
25069 (bit_arch_XSAVEC_Usable): New.
25070 (STATE_SAVE_OFFSET): Likewise.
25071 (STATE_SAVE_MASK): Likewise.
25072 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
25073 (cpu_features): Add xsave_state_size and xsave_state_full_size.
25074 (index_arch_Use_dl_runtime_resolve_opt): Removed.
25075 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
25076 (index_arch_XSAVEC_Usable): New.
25077 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
25078 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
25079 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
25080 is enabled.
25081 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
25082 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
25083 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
25084 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
25085 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
25086 _dl_runtime_resolve_xsavec.
25087 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
25088 Removed.
25089 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
25090 instead of VEC_SIZE.
25091 (REGISTER_SAVE_BND0): Removed.
25092 (REGISTER_SAVE_BND1): Likewise.
25093 (REGISTER_SAVE_BND3): Likewise.
25094 (REGISTER_SAVE_RAX): Always defined to 0.
25095 (VMOV): Removed.
25096 (_dl_runtime_resolve_avx): Likewise.
25097 (_dl_runtime_resolve_avx_slow): Likewise.
25098 (_dl_runtime_resolve_avx_opt): Likewise.
25099 (_dl_runtime_resolve_avx512): Likewise.
25100 (_dl_runtime_resolve_avx512_opt): Likewise.
25101 (_dl_runtime_resolve_sse): Likewise.
25102 (_dl_runtime_resolve_sse_vex): Likewise.
25103 (USE_FXSAVE): New.
25104 (_dl_runtime_resolve_fxsave): Likewise.
25105 (USE_XSAVE): Likewise.
25106 (_dl_runtime_resolve_xsave): Likewise.
25107 (USE_XSAVEC): Likewise.
25108 (_dl_runtime_resolve_xsavec): Likewise.
25109 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
25110 Removed.
25111 (_dl_runtime_resolve_avx512_opt): Likewise.
25112 (_dl_runtime_resolve_avx): Likewise.
25113 (_dl_runtime_resolve_avx_opt): Likewise.
25114 (_dl_runtime_resolve_sse): Likewise.
25115 (_dl_runtime_resolve_sse_vex): Likewise.
25116 (_dl_runtime_resolve_fxsave): New.
25117 (_dl_runtime_resolve_xsave): Likewise.
25118 (_dl_runtime_resolve_xsavec): Likewise.
25119
25120 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
25121
25122 [BZ #22320]
25123 CVE-2017-15670
25124 * posix/glob.c (__glob): Fix one-byte overflow.
25125
25126 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
25127
25128 * malloc/malloc.c (sysdep-cancel.h): Add include.
25129
25130 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
25131
25132 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
25133
25134 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
25135
25136 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
25137 (tests): Remove $(objpfx)ga_test depdendency.
25138 * resolv/ga_test.c: Remove file.
25139
25140 2017-10-20 Mike FABIAN <mfabian@redhat.com>
25141
25142 [BZ #18812]
25143 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
25144 * localedata/locales/kab_DZ: New file.
25145
25146 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
25147
25148 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
25149 _dl_relocate_static_pie instead of _dl_start to compute load
25150 address in static PIE.
25151
25152 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
25153
25154 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
25155
25156 2017-10-20 Mike FABIAN <mfabian@redhat.com>
25157
25158 [BZ #13605]
25159 * localedata/SUPPORTED: Add shn_MM/UTF-8.
25160 * localedata/locales/shn_MM: New file.
25161
25162 2017-10-20 Florian Weimer <fweimer@redhat.com>
25163
25164 [BZ #22321]
25165 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
25166 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
25167 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
25168 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
25169 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
25170 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
25171
25172 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
25173
25174 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
25175
25176 2017-10-19 Joseph Myers <joseph@codesourcery.com>
25177
25178 * sysdeps/mips/ieee754/bits/floatn.h: New file.
25179
25180 [BZ #22322]
25181 * sysdeps/mips/bits/long-double.h: Move to ....
25182 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
25183
25184 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
25185
25186 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
25187
25188 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
25189 H.J. Lu <hongjiu.lu@intel.com>
25190
25191 [BZ #22299]
25192 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
25193 GLRO(dl_platform) to NULL.
25194 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
25195 (modules-names): Add tst-platformmod-1 and
25196 x86_64/tst-platformmod-2.
25197 (CFLAGS-tst-platform-1.c): New.
25198 (CFLAGS-tst-platformmod-1.c): Likewise.
25199 (CFLAGS-tst-platformmod-2.c): Likewise.
25200 (LDFLAGS-tst-platformmod-2.so): Likewise.
25201 ($(objpfx)tst-platform-1): Likewise.
25202 ($(objpfx)tst-platform-1.out): Likewise.
25203 (tst-platform-1-ENV): Likewise.
25204 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
25205 * sysdeps/x86_64/tst-platform-1.c: New file.
25206 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
25207 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
25208
25209 2017-10-19 Mike FABIAN <mfabian@redhat.com>
25210
25211 [BZ #13994]
25212 * locale/iso-639.def: Add Karbi.
25213 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
25214 * localedata/locales/mjw_IN: New file.
25215
25216 2017-10-18 Joseph Myers <joseph@codesourcery.com>
25217
25218 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
25219 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
25220 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
25221 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
25222 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
25223 (libm_alias_ldouble_other_r): Also create _Float128 alias.
25224 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
25225 <bits/floatn.h>.
25226 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
25227 (libm_alias_ldouble_other_r): Also create _Float128 alias.
25228 * manual/math.texi (Mathematics): Document additional architecture
25229 support for _Float128.
25230 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
25231 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
25232 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
25233 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25234 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25235 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
25236 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
25237 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
25238 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25239 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
25240 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25241 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
25242 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25243 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
25244 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25245
25246 2017-10-18 Renlin Li <renlin.li@arm.com>
25247
25248 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
25249 _DYNAMIC symbol to calculate load address.
25250
25251 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
25252
25253 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
25254 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
25255 summary bits.
25256 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
25257 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
25258
25259 2017-10-18 Mike FABIAN <mfabian@redhat.com>
25260
25261 [BZ #16777]
25262 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
25263 and improve readability by using more ASCII.
25264 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
25265 and improve readability by using more ASCII.
25266
25267 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
25268
25269 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
25270 not all targets support atomics on bool.
25271
25272 2017-10-17 Joseph Myers <joseph@codesourcery.com>
25273
25274 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
25275 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
25276 __f128.
25277 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
25278 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
25279 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
25280 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
25281 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
25282 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
25283
25284 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25285
25286 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
25287 defines.
25288
25289 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
25290
25291 [BZ #22159]
25292 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
25293 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
25294 (do_check_remalloced_chunk): Fix build bug.
25295 (do_check_malloc_state): Add assert that checks arena->top.
25296 (malloc_consolidate): Remove initialization.
25297 (int_mallinfo): Remove call to malloc_consolidate.
25298 (__libc_mallopt): Clarify why malloc_consolidate is needed.
25299
25300 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
25301
25302 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
25303 (have_fastchunks): Remove.
25304 (clear_fastchunks): Remove.
25305 (set_fastchunks): Remove.
25306 (malloc_state): Add have_fastchunks.
25307 (malloc_init_state): Use have_fastchunks.
25308 (do_check_malloc_state): Remove incorrect invariant checks.
25309 (_int_malloc): Use have_fastchunks.
25310 (_int_free): Likewise.
25311 (malloc_consolidate): Likewise.
25312
25313 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
25314
25315 * malloc/malloc.c (tcache_put): Inline.
25316 (tcache_get): Inline.
25317
25318 2017-10-17 Jordi Mallach <jordi@gnu.org>
25319
25320 Aurelien Jarno <aurelien@aurel32.net>
25321 [BZ #2522]
25322 * localedata/locales/ca_ES@valencia: New file.
25323 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
25324
25325 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
25326
25327 [BZ #22296]
25328 * math/math.h: Let signbit use the builtin in C++ mode with gcc
25329 < 6.x
25330
25331 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25332
25333 * scripts/build-many-glibcs.py (Context.add_all_configs):
25334 Add arm-linux-gnueabihf multiarch extra_glibcs.
25335
25336 * sysdeps/generic/ifunc-init.h: New file.
25337 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
25338
25339 2017-10-17 Mike FABIAN <mfabian@redhat.com>
25340
25341 [BZ #22019]
25342 * localedata/locales/el_GR: Set n_cs_precedes to 0.
25343 * localedata/locales/el_CY: copy "el_GR" because it is identical.
25344 * stdlib/tst-strfmon_l.c: adapt test case.
25345
25346 2017-10-16 Joseph Myers <joseph@codesourcery.com>
25347
25348 * sysdeps/generic/float128-abi.h: New file.
25349 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
25350 non-__prefixed symbols to ....
25351 * math/Versions: ... here. Include <float128-abi.h>.
25352 * stdlib/Versions ... and here. Include <float128-abi.h>
25353
25354 2017-10-16 Florian Weimer <fweimer@redhat.com>
25355
25356 * version.h (VERSION): Switch to ".9000" as the development
25357 version suffix.
25358
25359 2017-10-16 Florian Weimer <fweimer@redhat.com>
25360
25361 [BZ #22050]
25362 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
25363 compat_symbol_reference to access non-default version.
25364
25365 2017-10-16 Florian Weimer <fweimer@redhat.com>
25366
25367 * malloc/Makefile (others-extras): Set to mcheck-init.o.
25368
25369 2017-10-16 Carlos O'Donell <carlos@redhat.com>
25370
25371 * include/shlib-compat.h (compat_symbol_reference): Update
25372 comment.
25373
25374 2017-10-16 Joseph Myers <joseph@codesourcery.com>
25375
25376 * math/Makefile (test-types): Add
25377 $(type-float128-$(float128-alias-fcts)).
25378 * math/test-float128.h (TYPE_STR): Define conditional on
25379 [FLT128_MANT_DIG == LDBL_MANT_DIG].
25380 (ULP_IDX): Likewise.
25381 (ULP_I_IDX): Likewise.
25382
25383 * stdlib/strtold.c: Include <bits/floatn.h>
25384 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
25385 and later undefine as macro. Define as weak alias if
25386 [!USE_WIDE_CHAR].
25387 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
25388 and later undefine as macro. Define as weak alias if
25389 [USE_WIDE_CHAR].
25390 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
25391 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
25392 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
25393 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
25394 Define and later undefine as macro. Define as weak alias if
25395 [USE_WIDE_CHAR].
25396 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
25397 <bits/floatn.h>.
25398 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
25399 Define and later undefine as macro. Define as weak alias if
25400 [!USE_WIDE_CHAR].
25401 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
25402 Define and later undefine as macro. Define as weak alias if
25403 [USE_WIDE_CHAR].
25404
25405 2017-10-15 Carlos O'Donell <carlos@redhat.com>
25406
25407 * localedata/collate-test.c (allocate_arrays): Don't use \n in
25408 record_verbose messages.
25409
25410 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
25411
25412 [BZ #22052]
25413 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
25414 to silence -O3 -Wall warning with GCC 7.
25415
25416 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
25417
25418 * Makeconfig (+link-static-before-libc): Use the first of
25419 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
25420 * gmon/Makefile (tests): Add tst-gmon-static.
25421 (tests-static): Likewise.
25422 (CFLAGS-tst-gmon-static.c): New.
25423 (CRT-tst-gmon-static): Likewise.
25424 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
25425 (tst-gmon-static-ENV): Likewise.
25426 (tests-special): Likewise.
25427 ($(objpfx)tst-gmon-static.out): Likewise.
25428 (clean-tst-gmon-static-data): Likewise.
25429 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
25430 * gmon/tst-gmon-static-gprof.sh: New file.
25431 * gmon/tst-gmon-static.c: Likewise.
25432
25433 2017-10-13 Carlos O'Donell <carlos@redhat.com>
25434
25435 [BZ #22295]
25436 * locale/programs/linereader.c (get_string): Don't warn on
25437 non-symbolic character.
25438
25439 [BZ #22294]
25440 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
25441 int_curr_symbol.
25442
25443 [BZ #22292]
25444 * locale/programs/record-status.h: New file
25445 * locale/programs/locale.c: Add comment.
25446 * locale/programs/charmap-dir.c: Don't include error.h.
25447 (charmap_opendir): Use record_error.
25448 * locale/programs/charmap.c: Don't include error.h.
25449 (charmap_read): Use record_error, and record_warning.
25450 (parse_charmap): Likewise.
25451 * locale/programs/ld-address.c: Don't include error.h.
25452 (address_finish): Use record_error, and record_warning.
25453 * locale/programs/ld-collate.c: Don't include error.h.
25454 (collate_finish): Use record_error, and record_error_at_line.
25455 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
25456 (ctype_class_new): Likewise.
25457 (ctype_map_new): Likewise.
25458 (set_one_default): Likewise.
25459 (set_class_defaults): Likewise.
25460 (translit_flatten): Likewise.
25461 (allocate_arrays): Use record_error, and record_verbose.
25462 * locale/programs/ld-identification.c: Don't include error.h.
25463 (indentation_finish): Use record_error and record_warning.
25464 * locale/programs/ld-measurement.c: Don't include error.h.
25465 (measurement_finish): Use record_error.
25466 * locale/programs/ld-messages.c
25467 (message_finish): Likewise.
25468 * locale/programs/ld-monetary.c
25469 (monetary_finish): Likewise.
25470 * locale/programs/ld-name.c (name_finish): Use record_error
25471 and record_warning.
25472 * locale/programs/ld-numeric.c
25473 (numeric_finish): Use record_error.
25474 * locale/programs/ld-paper.c: Don't include error.h.
25475 (paper_finish): Use record_error.
25476 * locale/programs/ld-telephone.c: Don't include error.h.
25477 (telephone_finish): Use record_error.
25478 * locale/programs/ld-time.c (time_finish): Likewise.
25479 * locale/programs/linereader.h (lr_error): Make inline func.
25480 * locale/programs/localedef.c: Define recorded_warning_count,
25481 and recorded_error_count.
25482 (main): Use record_error. Use recorded_error_count and
25483 recorded_warning_count to issue correct error returns.
25484 (add_to_readlist): Use record_error.
25485 (find_locale): Likewise.
25486 (load_locale): Likewise.
25487 * locale/programs/localedef.h: Remove be_quiet
25488 and WITH_CUR_LOCALE.
25489 * locale/programs/locarchive.c (compare_from_file): Use
25490 record_error.
25491 * locale/programs/locfile.c (write_locale_data): Use
25492 record_error.
25493 * locale/programs/repertoire.c: Dont include error.h.
25494 (repertoire_complain): Use record_error.
25495 * localedata/tst-fmon.sh: Expect failures from localedef.
25496 * localedata/tst-locale.sh: Likewise.
25497 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
25498
25499 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
25500 (REPORTS): Likewise.
25501 (check): Likewise.
25502 (i18n): Rename to...
25503 (i18n_ctype): ...this.
25504 (i18n-report): Rename to...
25505 (i18n_ctype-report): ...this.
25506 * localedata/locales/i18n_ctype: Regenerate.
25507 * localedata/locales/i18n: copy i18n_ctype.
25508
25509 2017-10-13 Joseph Myers <joseph@codesourcery.com>
25510
25511 * stdlib/strfroml.c: Include <bits/floatn.h>.
25512 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
25513 Define before include of <stdlib.h> and undefine afterwards, then
25514 define as weak alias.
25515
25516 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
25517 Undefine and restore default definition. Use
25518 libm_alias_ldouble_other.
25519
25520 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
25521
25522 [BZ #22153]
25523 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
25524 in coredumps.
25525
25526 2017-10-13 James Clarke <jrtc27@jrtc27.com>
25527
25528 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
25529 Assign sym_map to be map for local symbols, as TLS relocations
25530 use sym_map to determine whether the symbol is defined and to
25531 extract the TLS information.
25532 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
25533 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
25534
25535 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
25536
25537 [BZ #22189]
25538 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
25539 (math_force_eval): Add powerpc version.
25540
25541 [BZ #22142]
25542 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
25543 -DBL_MAX.
25544 (do_test): Likewise.
25545 * stdio-common/tst-printf.sh: Likewise.
25546 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
25547 ifdef clause in order to set the carry bit right. Replace r0 by
25548 0 without changing the behavior.
25549
25550 2017-10-13 Joseph Myers <joseph@codesourcery.com>
25551
25552 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
25553 <libm-alias-ldouble.h>.
25554 (fabsl): Define using libm_alias_ldouble.
25555 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
25556 <libm-alias-ldouble.h>.
25557 (fabsl): Define using libm_alias_ldouble.
25558
25559 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
25560 Remove conditional code.
25561
25562 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
25563 Rename to __clog10_internal_l.
25564 (__clog10_internal_l): Define aliases using
25565 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
25566 with __clog10.
25567
25568 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25569
25570 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
25571 * benchtests/sincosf-inputs: New file.
25572 * benchtests/cosf-inputs: New file.
25573 * benchtests/sinf-inputs: New file.
25574
25575 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
25576
25577 * posix/tst-spawn.c (do_test): Wait for both children.
25578
25579 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
25580
25581 [BZ #22284]
25582 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
25583 tests-pie): Add tst-gmon-pie.
25584 (CFLAGS-tst-gmon-pie.c): New.
25585 (CRT-tst-gmon-pie): Likewise.
25586 (tst-gmon-pie-ENV): Likewise.
25587 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
25588 ($(objpfx)tst-gmon-pie.out): Likewise.
25589 (clean-tst-gmon-pie-data): Likewise.
25590 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
25591 * gmon/gmon.c [PIC]: Include <link.h>.
25592 [PIC] (callback): New function.
25593 (write_hist): Add an argument for load address. Subtract load
25594 address from PCs.
25595 (write_call_graph): Likewise.
25596 (write_gmon): Call __dl_iterate_phdr to get load address, pass
25597 it to write_hist and write_call_graph.
25598 * gmon/tst-gmon-pie.c: New file.
25599
25600 2017-10-11 Joseph Myers <joseph@codesourcery.com>
25601
25602 * math/Makefile (test-types-basic): New variable.
25603 (test-types): Likewise.
25604 (libm-test-support): Use $(test-types) instead of $(types).
25605 (libm-tests-base-normal): Likewise.
25606 (libm-tests-base-finite): Likewise.
25607 (libm-tests-base-inline): Likewise.
25608 (generated): Likewise.
25609 ($(objpfx)libm-test-support-$(t).c): Likewise.
25610 (libm-tests-for-type iterator): Likewise.
25611 (libm-test-support iterator): Likewise.
25612 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
25613 (ulp_idx): Use ULP_IDX.
25614 * math/test-ldouble.h: Include <float.h>.
25615 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
25616 (ULP_IDX): New macro.
25617 (ULP_I_IDX): Likewise.
25618 * math/test-double.h (ULP_IDX): Likewise.
25619 (ULP_I_IDX): Likewise.
25620 * math/test-float.h (ULP_IDX): Likewise.
25621 (ULP_I_IDX): Likewise.
25622 * math/test-float128.h (ULP_IDX): Likewise.
25623 (ULP_I_IDX): Likewise.
25624
25625 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25626
25627 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
25628 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
25629 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
25630 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
25631 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
25632 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
25633 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
25634 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
25635 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
25636 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
25637 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
25638 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
25639 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
25640 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
25641 (SINGLE_THREAD_BY_GLOBAL): Define.
25642 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25643 Likewise.
25644 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25645 Likewise.
25646 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25647 Likewise.
25648 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25649 Likewise.
25650 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
25651 (SINGLE_THREAD_BY_GLOBAL): Likewise.
25652 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25653 Likewise.
25654
25655 2017-10-11 Andreas Schwab <schwab@suse.de>
25656
25657 * nis/Makefile (aux): Remove.
25658 * nscd/Makefile (aux): Add nscd_hash.
25659 (nscd-modules): Likewise.
25660 ($(objpfx)nscd): Don't depend on libnsl.
25661 * nscd/nscd_hash.c: New file.
25662 * nscd/nscd_hash.h: Likewise.
25663 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
25664 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
25665 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
25666 instead of <nis/rpcsvc/nis.h>.
25667 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
25668
25669 2017-10-11 Florian Weimer <fweimer@redhat.com>
25670
25671 [BZ #22078]
25672 Avoid large NSS buffers with many addresses, aliases.
25673 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
25674 using dynarrays and struct alloc_buffer.
25675 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
25676 (tst-nss-files-hosts-multi): Link with -ldl.
25677 * nss/tst-nss-files-hosts-multi.c: New file.
25678
25679 2017-10-11 Florian Weimer <fweimer@redhat.com>
25680
25681 [BZ #18023]
25682 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
25683 scratch_buffer. Eliminate gotos.
25684
25685 2017-10-11 Joseph Myers <joseph@codesourcery.com>
25686
25687 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
25688 libm_alias_ldouble_other.
25689 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
25690 undefine and redefine.
25691 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
25692 (exp10l): Do not define here.
25693 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
25694 (weak_alias): Undefine and redefine.
25695 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
25696 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
25697 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
25698 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
25699
25700 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
25701 [!__fma] (fma): Define using libm_alias_double.
25702 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
25703 [!__fmaf] (fmaf): Define using libm_alias_float.
25704 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
25705 (fmal): Define using libm_alias_ldouble.
25706
25707 2017-10-10 Joseph Myers <joseph@codesourcery.com>
25708
25709 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
25710 New macro.
25711 (libm_alias_double_other): Likewise.
25712 (libm_alias_double_r): Use libm_alias_double_other_r.
25713 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
25714 New macro.
25715 (libm_alias_float_other): Likewise.
25716 (libm_alias_float_r): Use libm_alias_float_other_r.
25717 * sysdeps/generic/libm-alias-float128.h
25718 (libm_alias_float128_other_r): New macro.
25719 (libm_alias_float128_other): Likewise.
25720 (libm_alias_float128_r): Use libm_alias_float128_other_r.
25721 * sysdeps/generic/libm-alias-ldouble.h
25722 (libm_alias_ldouble_other_r): New macro.
25723 (libm_alias_ldouble_other): Likewise.
25724 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25725 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
25726 (libm_alias_double_other_r): New macro.
25727 (libm_alias_double_other): Likewise.
25728 (libm_alias_double_r): Use libm_alias_double_other_r.
25729 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
25730 (libm_alias_ldouble_other_r): New macro.
25731 (libm_alias_ldouble_other): Likewise.
25732 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25733 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
25734 [!USE_AS_COMPAT]: Use libm_alias_double_other.
25735 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
25736 [!USE_AS_COMPAT]: Use libm_alias_float_other.
25737 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
25738 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
25739 * math/w_exp2f.c: Use libm_alias_float_other.
25740 * math/w_expf.c: Likewise.
25741 * math/w_log2f.c: Likewise.
25742 * math/w_logf.c: Likewise.
25743 * math/w_powf.c: Likewise.
25744 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
25745 [!__exp2f]: Use libm_alias_float_other.
25746 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
25747 [!__expf]: Use libm_alias_float_other.
25748 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
25749 [!__log2f]: Use libm_alias_float_other.
25750 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
25751 [!__logf]: Use libm_alias_float_other.
25752 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
25753 [!__powf]: Use libm_alias_float_other.
25754
25755 2017-10-10 Florian Weimer <fweimer@redhat.com>
25756
25757 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
25758 function.
25759 (_nss_files_gethostbyname3_r): Call it.
25760
25761 2017-10-09 Joseph Myers <joseph@codesourcery.com>
25762
25763 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
25764 error. Remove default definition of declare_mgen_alias.
25765 [!declare_mgen_alias_r]: Likewise.
25766 * sysdeps/generic/math-type-macros-double.h
25767 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
25768 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
25769 (declare_mgen_alias_r): Likewise.
25770 * sysdeps/generic/math-type-macros-float128.h
25771 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25772 * sysdeps/generic/math-type-macros-ldouble.h
25773 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25774 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
25775 macro.
25776 (declare_mgen_alias_r_s): Likewise.
25777 (declare_mgen_alias_r): Likewise.
25778 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
25779 (lgamma_r): Define using libm_alias_double_r.
25780 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
25781 (lgammaf_r): Define using libm_alias_float_r.
25782 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
25783 (lgammal_r): Define using libm_alias_ldouble_r.
25784 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
25785 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
25786
25787 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25788
25789 * lib/glob.c (__glob_pattern_type): Remove now-spurious
25790 extern declaration.
25791
25792 2017-10-09 Joseph Myers <joseph@codesourcery.com>
25793
25794 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
25795
25796 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
25797
25798 [BZ #21326]
25799 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
25800 [__cplusplus >= 201103] (__USE_ISOC99): Define.
25801 * math/Makefile (test-math-cxx11): New test.
25802 * math/test-math-cxx11.cc: New file.
25803
25804 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
25805
25806 * login/openpty.c (openpty): Close slave pty file descriptor on error.
25807
25808 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
25809 call to allocate the slave pty file descriptor.
25810
25811 2017-10-06 Joseph Myers <joseph@codesourcery.com>
25812
25813 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
25814 [!__fma] (fma): Define using libm_alias_double.
25815 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
25816 [!__fma] (fma): Define using libm_alias_double.
25817
25818 * sysdeps/ieee754/float128/float128_private.h: Include
25819 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
25820 (libm_alias_ldouble_r): Undefine and redefine.
25821 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
25822 <libm-alias-ldouble.h>.
25823 (asinhl): Define using libm_alias_ldouble.
25824 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
25825 <libm-alias-ldouble.h>.
25826 (atanl): Define using libm_alias_ldouble.
25827 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
25828 <libm-alias-ldouble.h>.
25829 (cbrtl): Define using libm_alias_ldouble.
25830 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
25831 <libm-alias-ldouble.h>.
25832 (ceill): Define using libm_alias_ldouble.
25833 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
25834 <libm-alias-ldouble.h>.
25835 (copysignl): Define using libm_alias_ldouble.
25836 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
25837 <libm-alias-ldouble.h>.
25838 (cosl): Define using libm_alias_ldouble.
25839 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
25840 <libm-alias-ldouble.h>.
25841 (erfl): Define using libm_alias_ldouble.
25842 (erfcl): Likewise.
25843 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
25844 <libm-alias-ldouble.h>.
25845 (expm1l): Define using libm_alias_ldouble.
25846 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
25847 <libm-alias-ldouble.h>.
25848 (fabsl): Define using libm_alias_ldouble.
25849 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
25850 <libm-alias-ldouble.h>.
25851 (floorl): Define using libm_alias_ldouble.
25852 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
25853 <libm-alias-ldouble.h>.
25854 (fmal): Define using libm_alias_ldouble.
25855 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
25856 <libm-alias-ldouble.h>.
25857 (frexpl): Define using libm_alias_ldouble.
25858 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
25859 libm_alias_ldouble.
25860 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
25861 <libm-alias-ldouble.h>.
25862 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
25863 libm_alias_ldouble.
25864 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
25865 <libm-alias-ldouble.h>.
25866 (getpayloadl): Define using libm_alias_ldouble.
25867 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
25868 <libm-alias-ldouble.h>.
25869 (llrintl): Define using libm_alias_ldouble.
25870 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
25871 <libm-alias-ldouble.h>.
25872 (llroundl): Define using libm_alias_ldouble.
25873 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
25874 <libm-alias-ldouble.h>.
25875 (logbl): Define using libm_alias_ldouble.
25876 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
25877 <libm-alias-ldouble.h>.
25878 (lrintl): Define using libm_alias_ldouble.
25879 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
25880 <libm-alias-ldouble.h>.
25881 (lroundl): Define using libm_alias_ldouble.
25882 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
25883 <libm-alias-ldouble.h>.
25884 (modfl): Define using libm_alias_ldouble.
25885 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
25886 <libm-alias-ldouble.h>.
25887 (nearbyintl): Define using libm_alias_ldouble.
25888 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
25889 <libm-alias-ldouble.h>.
25890 (nextafterl): Define using libm_alias_ldouble.
25891 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
25892 <libm-alias-ldouble.h>.
25893 (nextupl): Define using libm_alias_ldouble.
25894 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
25895 <libm-alias-ldouble.h>.
25896 (remquol): Define using libm_alias_ldouble.
25897 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
25898 <libm-alias-ldouble.h>.
25899 (rintl): Define using libm_alias_ldouble.
25900 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
25901 <libm-alias-ldouble.h>.
25902 (roundevenl): Define using libm_alias_ldouble.
25903 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
25904 <libm-alias-ldouble.h>.
25905 (roundl): Define using libm_alias_ldouble.
25906 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
25907 using libm_alias_ldouble.
25908 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
25909 <libm-alias-ldouble.h>.
25910 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
25911 Define using libm_alias_ldouble.
25912 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
25913 <libm-alias-ldouble.h>.
25914 (sincosl): Define using libm_alias_ldouble.
25915 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
25916 <libm-alias-ldouble.h>.
25917 (sinl): Define using libm_alias_ldouble.
25918 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
25919 <libm-alias-ldouble.h>.
25920 (tanhl): Define using libm_alias_ldouble.
25921 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
25922 <libm-alias-ldouble.h>.
25923 (tanl): Define using libm_alias_ldouble.
25924 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
25925 <libm-alias-ldouble.h>.
25926 (totalorderl): Define using libm_alias_ldouble.
25927 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
25928 <libm-alias-ldouble.h>.
25929 (totalordermagl): Define using libm_alias_ldouble.
25930 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
25931 <libm-alias-ldouble.h>.
25932 (truncl): Define using libm_alias_ldouble.
25933 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
25934 libm_alias_ldouble.
25935 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
25936 libm_alias_ldouble.
25937 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
25938 <libm-alias-ldouble.h>.
25939 (weak_alias): Do not undefine and redefine.
25940 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25941 (copysignl): Define with long_double_symbol only if [IS_IN
25942 (libc)].
25943 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
25944 <libm-alias-ldouble.h>.
25945 (weak_alias): Do not undefine and redefine.
25946 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25947 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
25948 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
25949 <libm-alias-ldouble.h>.
25950 (weak_alias): Do not undefine and redefine.
25951 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25952 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
25953 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
25954 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
25955 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
25956 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
25957 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
25958 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
25959 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
25960 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
25961 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
25962 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
25963 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
25964 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
25965 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
25966 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
25967 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
25968 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
25969 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
25970 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
25971 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
25972 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
25973 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
25974 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
25975 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
25976 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
25977
25978 2017-10-06 Carlos O'Donell <carlos@redhat.com>
25979
25980 [BZ #22111]
25981 * malloc/malloc.c (tcache_shutting_down): Use bool type.
25982 (tcache_thread_freeres): Set tcache_shutting_down before
25983 freeing the tcache.
25984 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
25985 * malloc/tst-malloc-tcache-leak.c: New file.
25986
25987 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25988
25989 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
25990 back to powerpc32 file.
25991 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
25992 (memrchr): Add __memrchr_power8 to ifunc list.
25993 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
25994 extra bytes for unaligned inputs.
25995
25996 2017-10-06 Joseph Myers <joseph@codesourcery.com>
25997
25998 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
25999 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
26000 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
26001 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
26002 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
26003
26004 2017-10-05 Joseph Myers <joseph@codesourcery.com>
26005
26006 * sysdeps/arm/libm-test-ulps: Update.
26007
26008 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
26009 <libm-alias-ldouble.h>.
26010 (asinhl): Define using libm_alias_ldouble.
26011 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
26012 <libm-alias-ldouble.h>.
26013 (cbrtl): Define using libm_alias_ldouble.
26014 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
26015 <libm-alias-ldouble.h>.
26016 (copysignl): Define using libm_alias_ldouble.
26017 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
26018 <libm-alias-ldouble.h>.
26019 (cosl): Define using libm_alias_ldouble.
26020 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
26021 <libm-alias-ldouble.h>.
26022 (erfl): Define using libm_alias_ldouble.
26023 (erfcl): Likewise.
26024 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
26025 <libm-alias-ldouble.h>.
26026 (fmal): Define using libm_alias_ldouble.
26027 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
26028 <libm-alias-ldouble.h>.
26029 (frexpl): Define using libm_alias_ldouble.
26030 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
26031 libm_alias_ldouble.
26032 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
26033 <libm-alias-ldouble.h>.
26034 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
26035 libm_alias_ldouble.
26036 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
26037 <libm-alias-ldouble.h>.
26038 (getpayloadl): Define using libm_alias_ldouble.
26039 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
26040 <libm-alias-ldouble.h>.
26041 (llrintl): Define using libm_alias_ldouble.
26042 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
26043 <libm-alias-ldouble.h>.
26044 (llroundl): Define using libm_alias_ldouble.
26045 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
26046 <libm-alias-ldouble.h>.
26047 (lrintl): Define using libm_alias_ldouble.
26048 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
26049 <libm-alias-ldouble.h>.
26050 (lroundl): Define using libm_alias_ldouble.
26051 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
26052 <libm-alias-ldouble.h>.
26053 (modfl): Define using libm_alias_ldouble.
26054 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
26055 <libm-alias-ldouble.h>.
26056 (nextupl): Define using libm_alias_ldouble.
26057 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
26058 <libm-alias-ldouble.h>.
26059 (remquol): Define using libm_alias_ldouble.
26060 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
26061 <libm-alias-ldouble.h>.
26062 (roundevenl): Define using libm_alias_ldouble.
26063 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
26064 <libm-alias-ldouble.h>.
26065 (roundl): Define using libm_alias_ldouble.
26066 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
26067 using libm_alias_ldouble.
26068 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
26069 <libm-alias-ldouble.h>.
26070 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
26071 <libm-alias-ldouble.h>.
26072 (setpayloadsigl): Define using libm_alias_ldouble.
26073 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
26074 <libm-alias-ldouble.h>.
26075 (sincosl): Define using libm_alias_ldouble.
26076 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
26077 <libm-alias-ldouble.h>.
26078 (sinl): Define using libm_alias_ldouble.
26079 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
26080 <libm-alias-ldouble.h>.
26081 (tanhl): Define using libm_alias_ldouble.
26082 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
26083 <libm-alias-ldouble.h>.
26084 (tanl): Define using libm_alias_ldouble.
26085 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
26086 <libm-alias-ldouble.h>.
26087 (totalorderl): Define using libm_alias_ldouble.
26088 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
26089 <libm-alias-ldouble.h>.
26090 (totalordermagl): Define using libm_alias_ldouble.
26091 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
26092 libm_alias_ldouble.
26093 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
26094 libm_alias_ldouble.
26095
26096 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
26097
26098 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
26099 memmove_falkor.
26100 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
26101 (__libc_ifunc_impl_list): Likewise.
26102 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
26103 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
26104
26105 * benchtests/bench-memmove-walk.c: New file.
26106 * benchtests/Makefile (string-benchset): Add it.
26107
26108 * benchtests/bench-memset-walk.c: New file.
26109 * benchtests/Makefile (string-benchset): Add it.
26110
26111 * benchtests/bench-memcpy-walk.c: New file.
26112 * benchtests/Makefile (string-benchset): Add it.
26113
26114 2017-10-05 Florian Weimer <fweimer@redhat.com>
26115
26116 nscd: Eliminate compilation time dependency in the build output.
26117 * nscd/nscd_stat.c (STATDATA_VERSION)
26118 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
26119 (STATDATA_VERSION_FULL): New macro definitions.
26120 (compilation): Remove.
26121 (struct statdata): Adjust version member.
26122 (send_stats): Set version from STATDATA_VERSION_FULL.
26123 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
26124
26125 2017-10-05 Joseph Myers <joseph@codesourcery.com>
26126
26127 * configure.ac (--enable-add-ons): Remove option.
26128 (machine): Do not mention add-ons in comment.
26129 (LIBC_PRECONFIGURE): Likewise.
26130 (add_ons): Remove variable and sanity checks and logic to locate
26131 add-ons.
26132 (add_ons_automatic): Remove variable.
26133 (configured_add_ons): Likewise.
26134 (add_ons_sfx): Likewise.
26135 (add_ons_pfx): Likewise.
26136 (add_on_subdirs): Likewise.
26137 (sysnames_add_ons): Likewise. Remove loop over add-ons and
26138 consideration of add-ons in Implies handling.
26139 (sysdeps_add_ons): Likewise.
26140 * configure: Regenerated.
26141 * libidn/configure.ac: Remove.
26142 * libidn/configure: Likewise.
26143 * sysdeps/unix/inet/configure.ac: New file.
26144 * sysdeps/unix/inet/configure: New generated file.
26145 * sysdeps/unix/inet/Subdirs: Add libidn.
26146 * Makeconfig (sysdeps-srcdirs): Remove variable.
26147 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
26148 ($(common-objpfx)config.status): Do not depend on add-on files.
26149 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
26150 comment.
26151 (all-subdirs): Do not include $(add-on-subdirs).
26152 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
26153 * config.make.in (add-ons): Remove variable.
26154 (add-on-subdirs): Likewise.
26155 (sysdeps-add-ons): Likewise.
26156 * manual/Makefile (add-chapters): Remove.
26157 ($(objpfx)texis): Do not depend on $(add-chapters).
26158 (nonexamples): Do not handle $(add-chapters).
26159 (examples): Do not handle $(add-ons).
26160 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
26161 libc-texinfo.sh.
26162 * manual/install.texi (Installation): Do not mention add-ons.
26163 (--enable-add-ons): Do not document configure option.
26164 * INSTALL: Regenerated.
26165 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
26166 * manual/maint.texi (Hierarchy Conventions): Do not mention
26167 add-ons.
26168 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
26169 --enable-add-ons.
26170 * scripts/gen-sorted.awk: Do not handle Subdirs files from
26171 add-ons.
26172 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
26173 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
26174
26175 2017-10-05 Andreas Schwab <schwab@suse.de>
26176
26177 [BZ #15142]
26178 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
26179 (_IO_flush_all_lockp): Always lock list_all_lock.
26180 (_IO_flush_all_linebuffered): Likewise.
26181 (_IO_unbuffer_all): Likewise.
26182
26183 2017-10-05 Florian Weimer <fweimer@redhat.com>
26184
26185 [BZ #15436]
26186 Do not flush stdio streams on abort.
26187 * stdlib/abort.c (fflush): Remove macro definition.
26188 (abort): Remove stages related to stdio flushing.
26189
26190 2017-10-05 Florian Weimer <fweimer@redhat.com>
26191
26192 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
26193
26194 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
26195
26196 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
26197
26198 2017-10-05 Florian Weimer <fweimer@redhat.com>
26199
26200 * support/support_format_hostent.c (support_format_hostent): Add
26201 more error information for NETDB_INTERNAL.
26202
26203 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
26204
26205 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
26206 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
26207 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
26208 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
26209 AC_DEFINE if multi-arch is enabled.
26210 * sysdeps/i386/configure: Regenerated.
26211
26212 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
26213
26214 * Makeconfig (+link-static-before-libc): Use
26215 $(DEFAULT-LDFLAGS-$(@F)).
26216 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
26217 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
26218 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
26219
26220 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
26221
26222 * elf/Makefile (tests): Add tst-main1.
26223 (modules-names): Add tst-main1mod.
26224 ($(objpfx)tst-main1): New.
26225 (CRT-tst-main1): Likewise.
26226 (LDFLAGS-tst-main1): Likewise.
26227 (LDLIBS-tst-main1): Likewise.
26228 (tst-main1mod.so-no-z-defs): Likewise.
26229 * elf/tst-main1.c: New file.
26230 * elf/tst-main1mod.c: Likewise.
26231
26232 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
26233
26234 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
26235
26236 2017-10-04 Joseph Myers <joseph@codesourcery.com>
26237
26238 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
26239 (fma): Define using libm_alias_double.
26240 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
26241 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
26242 <math_ldbl_opt.h>.
26243 (fmal): Do not define as compat symbol here.
26244 * sysdeps/alpha/fpu/s_fma.c: New file.
26245
26246 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
26247
26248 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
26249
26250 2017-10-04 Joseph Myers <joseph@codesourcery.com>
26251
26252 [BZ #22229]
26253 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
26254 <math_ldbl_opt.h>
26255 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
26256 and libc.
26257 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
26258 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
26259 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
26260 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
26261 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
26262 Include <math_ldbl_opt.h>
26263 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
26264 and libc.
26265 (compat_symbol): Undefine and redefine.
26266 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
26267 <math_ldbl_opt.h>
26268 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
26269 (compat_symbol): Undefine and redefine.
26270 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
26271 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
26272 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
26273 GLIBC_2_1 for libm.
26274 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
26275 GLIBC_2.0 copysignl symbol.
26276 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
26277 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
26278
26279 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
26280
26281 2017-10-04 Florian Weimer <fweimer@redhat.com>
26282
26283 * scripts/check-local-headers.sh: Ignore nspr4 header file
26284 directory in addition to nspr.
26285
26286 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
26287
26288 [BZ #17956]
26289 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
26290 * configure: Regenerate.
26291 * crypt/Makefile (nss-cpp-flags): New variable.
26292 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
26293 (CPPFLAGS-md5-crypt.c): Use it.
26294 * scripts/check-local-headers.sh: Ignore nspr header file
26295 directory.
26296
26297 2017-10-04 Andreas Schwab <schwab@suse.de>
26298
26299 * nis/Makefile (services): Remove compat.
26300 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
26301 ($(objpfx)libnss_compat.so): Remove rule.
26302 * nis/Versions (libnss_compat): Remove.
26303 * nss/Makefile (services): Add compat.
26304 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
26305 * nss/Versions (libnss_compat): Define.
26306 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
26307 Don't include <rpc/types.h>. Replace bool_t by bool.
26308 * nss/nss_compat/compat-initgroups.c: Likewise.
26309 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
26310 instead of <rpcsrv/ypclnt.h>.
26311 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
26312 yp_get_default_domain.
26313 * nss/nss_compat/compat-pwd.c: Likewise.
26314 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
26315 yp_get_default_domain.
26316 * nss/nss_compat/nisdomain.c: New file.
26317 * nss/nss_compat/nisdomain.h: Likewise.
26318
26319 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
26320
26321 [BZ #22244]
26322 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
26323 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
26324
26325 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
26326
26327 [BZ #22243]
26328 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
26329 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
26330
26331 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26332
26333 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
26334 "movl main@GOTOFF(%ebx), %eax".
26335
26336 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26337
26338 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
26339 allow undefined _DYNAMIC in PIE libc.a.
26340 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
26341 Likewse.
26342
26343 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26344
26345 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
26346 check _DYNAMIC.
26347
26348 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26349
26350 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
26351 check _DYNAMIC.
26352
26353 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26354
26355 * math/test-math-iscanonical.cc (error): Replace bool with int.
26356
26357 2017-10-03 Joseph Myers <joseph@codesourcery.com>
26358
26359 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
26360 (modf): Define using libm_alias_double, only if [!__modf].
26361 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
26362 <libm-alias-double.h>.
26363 (modf): Define using libm_alias_double, only if [!__modf].
26364 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
26365 compat symbol here.
26366 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
26367 (weak_alias): Do not undefine and redefine.
26368 (strong_alias): Likewise.
26369 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
26370 (weak_alias): Likewise.
26371 (strong_alias): Likewise.
26372
26373 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
26374 (logb): Define using libm_alias_double, only if [!__logb].
26375 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
26376 <libm-alias-double.h>.
26377 (logb): Define using libm_alias_double, only if [!__logb].
26378 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
26379 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
26380 (weak_alias): Do not undefine and redefine.
26381 (strong_alias): Likewise.
26382 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
26383 (weak_alias): Likewise.
26384 (strong_alias): Likewise.
26385
26386 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26387
26388 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
26389 Check SHARED instead PIC.
26390
26391 2017-10-03 Joseph Myers <joseph@codesourcery.com>
26392
26393 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
26394 [!__fmaf] (fmaf): Define using libm_alias_float.
26395
26396 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
26397 (frexp): Define using libm_alias_double.
26398 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
26399 <libm-alias-double.h>.
26400 (frexp): Define using libm_alias_double.
26401 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
26402 compat symbol here.
26403
26404 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26405
26406 [BZ #22235]
26407 * math/math.h: Trivial fix for unbalanced parentheses in comment.
26408 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
26409 (CFLAGS-test-math-iscanonical.cc): New variable.
26410 * math/test-math-iscanonical.cc: New file.
26411 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
26412 Provide a C++ implementation based on function overloading,
26413 rather than using __MATH_TG, which uses C-only builtins.
26414 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
26415 Likewise.
26416 * sysdeps/powerpc/powerpc64le/Makefile
26417 (CFLAGS-test-math-iscanonical.cc): New variable.
26418
26419 2017-10-03 Joseph Myers <joseph@codesourcery.com>
26420
26421 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
26422 (ceil): Define using libm_alias_double.
26423 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
26424 (floor): Define using libm_alias_double.
26425 * sysdeps/ieee754/dbl-64/s_llround.c: Include
26426 <libm-alias-double.h>.
26427 (llround): Define using libm_alias_double.
26428 * sysdeps/ieee754/dbl-64/s_lround.c: Include
26429 <libm-alias-double.h>.
26430 (lround): Define using libm_alias_double.
26431 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
26432 <libm-alias-double.h>.
26433 (nearbyint): Define using libm_alias_double.
26434 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
26435 <libm-alias-double.h>.
26436 (remquo): Define using libm_alias_double.
26437 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
26438 (rint): Define using libm_alias_double.
26439 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
26440 (round): Define using libm_alias_double.
26441 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
26442 (trunc): Define using libm_alias_double.
26443 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
26444 <libm-alias-double.h>.
26445 (ceil): Define using libm_alias_double.
26446 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
26447 <libm-alias-double.h>.
26448 (floor): Define using libm_alias_double.
26449 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
26450 <libm-alias-double.h>.
26451 (llround): Define using libm_alias_double.
26452 [_LP64] (lround): Likewise.
26453 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
26454 <libm-alias-double.h>.
26455 [!_LP64] (lround): Define using libm_alias_double.
26456 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
26457 <libm-alias-double.h>.
26458 (nearbyint): Define using libm_alias_double.
26459 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
26460 <libm-alias-double.h>.
26461 (remquo): Define using libm_alias_double.
26462 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
26463 <libm-alias-double.h>.
26464 (rint): Define using libm_alias_double.
26465 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
26466 <libm-alias-double.h>.
26467 (round): Define using libm_alias_double.
26468 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
26469 <libm-alias-double.h>.
26470 (trunc): Define using libm_alias_double.
26471 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
26472 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
26473 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
26474 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
26475 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
26476 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
26477 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
26478 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
26479 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
26480
26481 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
26482
26483 * math/w_remainder.c: New file.
26484 * math/w_remainderf.c: New file.
26485 * math/w_remainderl.c: New file.
26486
26487 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26488
26489 * elf/rtld.c (BOOTSTRAP_MAP): New.
26490 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
26491 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26492 Likewise.
26493 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26494 Likewise.
26495 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26496 Likewise.
26497
26498 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
26499
26500 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
26501 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
26502 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
26503 rtld_hidden_data_ver): Define to empty.
26504 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
26505 __assert_perror_fail): Likewise.
26506 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26507 (__rewinddir): Likewise.
26508 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26509 (__profile_frequency): Likewise.
26510 * include/setjmp.h (__sigsetjmp): Likewise.
26511 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
26512 __libc_sigaction): Likewise.
26513 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
26514 not set hidden attribute.
26515 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
26516 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
26517 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
26518 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
26519 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
26520 __fxstatat64): Likewise.
26521 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26522 (__uname): Likewise.
26523 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26524 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
26525 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
26526 (NO_RTLD_HIDDEN): Set.
26527 * sysdeps/mach/hurd/configure: Refresh.
26528 * config.h.in: Refresh.
26529
26530 2017-10-02 Joseph Myers <joseph@codesourcery.com>
26531
26532 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
26533 (atan): Define using libm_alias_double.
26534 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
26535 (tan): Define using libm_alias_double.
26536 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
26537 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
26538
26539 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
26540 define as weak alias of __atan. Do not define any aliases if
26541 [__atan].
26542 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
26543 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
26544 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
26545 as weak alias of __tan. Do not define any aliases if [__tan].
26546 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
26547 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
26548 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
26549 __atan.
26550 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
26551 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
26552 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
26553 and define as weak alias of __atan.
26554 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
26555 __atan.
26556 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
26557 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
26558 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
26559 define as weak alias of __tan.
26560
26561 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26562
26563 * math/w_lgamma.c: New file.
26564 * math/w_lgammaf.c: New file.
26565 * math/w_lgammal.c: New file.
26566
26567 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26568
26569 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
26570 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
26571 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
26572 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
26573 * sysdeps/ieee754/flt-32/w_logf.c: New file.
26574 * sysdeps/ieee754/flt-32/w_powf.c: New file.
26575 * sysdeps/i386/fpu/w_log2f.c: New file.
26576 * sysdeps/i386/fpu/w_logf.c: New file.
26577 * sysdeps/i386/fpu/w_powf.c: New file.
26578 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
26579 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
26580 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
26581
26582 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26583 H.J. Lu <hongjiu.lu@intel.com>
26584
26585 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
26586 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
26587 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
26588 * sysdeps/ieee754/flt-32/w_expf.c: New file.
26589 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
26590 the new expf code.
26591 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
26592 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
26593 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
26594 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
26595 * sysdeps/i386/fpu/w_exp2f.c: New file.
26596 * sysdeps/i386/fpu/w_expf.c: New file.
26597 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
26598 * sysdeps/x86_64/fpu/w_expf.c: New file.
26599
26600 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26601
26602 * math/Versions (logf): New libm symbol at GLIBC_2.27.
26603 (log2f): Likewise.
26604 (powf): Likewise.
26605 * math/w_log2f.c: New file.
26606 * math/w_logf.c: New file.
26607 * math/w_powf.c: New file.
26608 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
26609 * math/w_logf_compat.c (__logf_compat): Likewise.
26610 * math/w_powf_compat.c (__powf_compat): Likewise.
26611 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
26612 * sysdeps/ia64/fpu/e_logf.S: Likewise.
26613 * sysdeps/ia64/fpu/e_powf.S: Likewise.
26614 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
26615 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26616 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
26617 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
26618 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
26619 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
26620 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
26621 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
26622 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
26623 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
26624 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26625 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
26626 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
26627 Likewise.
26628 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
26629 Likewise.
26630 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
26631 Likewise.
26632 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
26633 Likewise.
26634 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26635 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26636 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
26637 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26638 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26639 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
26640 Likewise.
26641 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
26642 Likewise.
26643 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
26644 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
26645 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
26646
26647 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26648
26649 * sysdeps/powerpc/powerpc64/multiarch/Makefile
26650 (sysdep_routines): Add memrchr_power8.
26651 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
26652 (memrchr): Add __memrchr_power8 to list of memrchr functions.
26653 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
26654 New file.
26655 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
26656 (memrchr): Add __memrchr_power8 to ifunc list.
26657 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
26658
26659 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26660
26661 [BZ #18822]
26662 * sysdeps/unix/sysv/linux/posix_fadvise64.c
26663 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
26664 libc_hidden_def.
26665 * sysdeps/unix/sysv/linux/posix_fallocate64.c
26666 (__posix_fallocate64_l64): Likewise.
26667
26668 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26669
26670 [BZ #18822]
26671 * sysdeps/unix/sysv/linux/sched_setaffinity.c
26672 (__sched_setaffinity_new): Add libc_hidden_proto and
26673 libc_hidden_def.
26674
26675 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26676
26677 [BZ #18822]
26678 * include/glob.h (__glob64): Add libc_hidden_proto.
26679 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
26680 libc_hidden_def.
26681
26682 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26683
26684 [BZ #18822]
26685 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
26686 attribute_hidden.
26687
26688 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26689
26690 [BZ #18822]
26691 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
26692
26693 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26694
26695 [BZ #18822]
26696 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
26697 libc_hidden_def.
26698
26699 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26700
26701 [BZ #18822]
26702 * csu/version.c (__libc_print_version): Add attribute_hidden.
26703
26704 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26705
26706 [BZ #18822]
26707 * include/libc-internal.h (__init_misc): Add attribute_hidden.
26708
26709 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26710
26711 [BZ #18822]
26712 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
26713
26714 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26715
26716 [BZ #18822]
26717 * nscd/nscd_helper.c (__nis_hash): New prototype.
26718
26719 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26720
26721 [BZ #18822]
26722 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
26723 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
26724 libc_hidden_def.
26725 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
26726 * termios/tcgetattr.c (__tcgetattr): Likewise.
26727
26728 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26729
26730 [BZ #18822]
26731 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
26732 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
26733 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
26734 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
26735 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
26736
26737 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26738
26739 [BZ #18822]
26740 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
26741
26742 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26743
26744 [BZ #18822]
26745 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
26746 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
26747
26748 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26749
26750 [BZ #18822]
26751 * intl/hash-string.h (__hash_string): Add attribute_hidden.
26752
26753 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26754
26755 [BZ #18822]
26756 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
26757 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
26758
26759 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26760
26761 [BZ #18822]
26762 * include/ifreq.h: New file.
26763 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
26764 (__ifreq): Likewise.
26765 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
26766 (__ifreq): Likewise.
26767
26768 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26769
26770 [BZ #18822]
26771 * include/idna.h: New file.
26772 * inet/getnameinfo.c: Include <idna.h> instead of
26773 <libidn/idna.h>.
26774 (__idna_to_unicode_lzlz): Removed.
26775 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
26776 <libidn/idna.h>.
26777 (__idna_to_ascii_lz): Removed.
26778 (__idna_to_unicode_lzlz): Likewise.
26779
26780 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26781
26782 [BZ #18822]
26783 * include/plural-exp.h: New file.
26784 * intl/plural-exp.c: Include <plural-exp.h> instead of
26785 "plural-exp.h".
26786
26787 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26788
26789 [BZ #18822]
26790 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
26791 "getsourcefilter.h".
26792 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
26793 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
26794 "getsourcefilter.h".
26795 (__get_sol): Removed.
26796
26797 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26798
26799 [BZ #18822]
26800 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
26801 to ...
26802 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
26803
26804 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26805
26806 [BZ #18822]
26807 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
26808 attribute_hidden.
26809
26810 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26811
26812 [BZ #18822]
26813 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
26814
26815 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26816
26817 [BZ #18822]
26818 * include/search.h (__tdestroy): Add libc_hidden_proto.
26819 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
26820
26821 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26822
26823 [BZ #18822]
26824 * include/assert.h (__assert_fail_base): Add attribute_hidden.
26825
26826 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26827
26828 [BZ #18822]
26829 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
26830 attribute_hidden.
26831
26832 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26833
26834 [BZ #18822]
26835 * include/signal.h (__kill): Add libc_hidden_proto.
26836 (__sigblock): Likewise.
26837 (__sigprocmask): Likewise.
26838 (__sigaltstack): Likewise.
26839 * signal/kill.c (__kill): Add libc_hidden_def.
26840 * signal/sigblock.c (__sigblock): Likewise.
26841 * signal/sigprocmask.c (__sigprocmask): Likewise.
26842 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
26843 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
26844 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
26845 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
26846 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
26847 Likewise.
26848 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
26849 Likewise.
26850 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
26851 (__sigprocmask): Likewise.
26852 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
26853 Likewise.
26854 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
26855 (__sigprocmask): Likewise.
26856 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
26857 Likewise.
26858
26859 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26860
26861 [BZ #18822]
26862 * include/string.h (__strsep): Add libc_hidden_proto.
26863 * string/strsep.c (__strsep): Add libc_hidden_def.
26864
26865 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26866
26867 [BZ #18822]
26868 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
26869 attribute_hidden.
26870 (__spawni): Likewise.
26871
26872 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26873
26874 [BZ #18822]
26875 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
26876 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
26877 libc_hidden_def.
26878
26879 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26880
26881 [BZ #18822]
26882 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
26883
26884 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26885
26886 [BZ #18822]
26887 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
26888 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
26889 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
26890 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
26891 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
26892 Likewise.
26893 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
26894 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
26895
26896 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26897
26898 [BZ #18822]
26899 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
26900 (__dcigettext): Likewise.
26901
26902 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26903
26904 [BZ #18822]
26905 * include/sys/sysinfo.h (__get_nprocs_conf): Add
26906 libc_hidden_proto.
26907 (__get_nprocs): Likewise.
26908 (__get_phys_pages): Likewise.
26909 (__get_avphys_pages): Likewise.
26910 (__get_child_max): Add attribute_hidden.
26911 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
26912 (__get_nprocs): Likewise.
26913 (__get_phys_pages): Likewise.
26914 (__get_avphys_pages): Likewise.
26915 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
26916 libc_hidden_def.
26917 (__get_nprocs): Likewise.
26918 (__get_phys_pages): Likewise.
26919 (__get_avphys_pages): Likewise.
26920 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
26921 libc_hidden_def.
26922 (__get_nprocs_conf): Likewise.
26923 (__get_phys_pages): Likewise.
26924 (__get_avphys_pages): Likewise.
26925
26926 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26927
26928 [BZ #18822]
26929 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
26930 attribute_hidden.
26931 (__netlink_close): Likewise.
26932 (__netlink_free_handle): Likewise.
26933 (__netlink_request): Likewise.
26934
26935 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26936
26937 [BZ #18822]
26938 * include/rpc/rpc.h (__rpc_thread_variables): Add
26939 attribute_hidden.
26940 (__rpc_thread_svc_cleanup): Likewise.
26941 (__rpc_thread_clnt_cleanup): Likewise.
26942 (__rpc_thread_key_cleanup): Likewise.
26943
26944 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26945
26946 [BZ #18822]
26947 * include/sys/uio.h (__readv): Add libc_hidden_proto.
26948 (__writev): Likewise.
26949 * misc/readv.c (__readv): Add libc_hidden_def.
26950 * misc/writev.c (__writev): Likewise.
26951 * sysdeps/posix/readv.c (__readv): Likewise.
26952 * sysdeps/posix/writev.c (__writev): Likewise.
26953 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
26954 (__readv): Likewise.
26955 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
26956 (__writev): Likewise.
26957
26958 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26959
26960 [BZ #18822]
26961 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
26962 (__regcomp): Add libc_hidden_proto.
26963 (__regexec): Likewise.
26964 (__regfree): Likewise.
26965 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
26966 (__regfree): Likewise.
26967 * posix/regexec.c (__regexec): Likewise.
26968
26969 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26970
26971 [BZ #18822]
26972 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
26973 (__getutent): Likewise.
26974 (__getutid): Likewise.
26975 (__getutline): Likewise.
26976 (__pututline): Likewise.
26977 (__getutent_r): Likewise.
26978 (__getutid_r): Likewise.
26979 (__getutline_r): Likewise.
26980 (__utmpname): Add attribute_hidden.
26981 (__setutent): Likewise.
26982 (__endutent): Likewise.
26983 * login/getutent.c (__getutent): Add libc_hidden_def.
26984 * login/getutent_r.c (__getutent_r): Likewise.
26985 (__pututline): Likewise.
26986 * login/getutid.c (__getutid): Likewise.
26987 * login/getutid_r.c (__getutid_r): Likewise.
26988 * login/getutline.c (__getutline): Likewise.
26989 * login/getutline_r.c (__getutline_r): Likewise.
26990 * login/updwtmp.c (__updwtmp): Likewise.
26991
26992 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26993
26994 [BZ #18822]
26995 * include/dirent.h (__opendir): Always add attribute_hidden.
26996 (__fdopendir): Likewise.
26997 (__closedir): Likewise.
26998 (__readdir): Likewise.
26999 (__readdir64): Add libc_hidden_proto.
27000 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
27001 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
27002 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
27003 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
27004 New alias.
27005
27006 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27007
27008 [BZ #18822]
27009 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
27010 * include/netdb.h (__gethostbyaddr_r): Likewise.
27011 (__gethostbyname_r): Likewise.
27012 (__gethostbyname2_r): Likewise.
27013 (__getnetbyaddr_r): Likewise.
27014 (__getnetbyname_r): Likewise.
27015 (__getservbyname_r): Likewise.
27016 (__getservbyport_r): Likewise.
27017 (__getprotobyname_r): Likewise.
27018 (__getprotobynumber_r): Likewise.
27019 (__getnetgrent_r): Likewise.
27020 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
27021 (__getrpcbynumber_r): Likewise.
27022 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
27023
27024 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27025
27026 [BZ #18822]
27027 * include/stdio.h (__fcloseall): Add attribute_hidden.
27028 (__getline): Likewise.
27029 (__path_search): Likewise.
27030 (__gen_tempname): Likewise.
27031 (__libc_message): Likewise.
27032 (__flockfile): Likewise.
27033 (__funlockfile): Likewise.
27034 (__fxprintf): Likewise.
27035 (__fxprintf_nocancel): Likewise.
27036
27037 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27038
27039 [BZ #18822]
27040 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
27041 (__sgetsgent_r): Likewise.
27042
27043 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27044
27045 [BZ #18822]
27046 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
27047 (__statfs64): Likewise.
27048 (__fstatfs64): Likewise.
27049 * include/sys/statvfs.h (__statvfs64): Likewise.
27050 (__fstatvfs64): Likewise.
27051 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
27052 (__statfs_filesize_max): Likewise.
27053 (__statfs_symlinks): Likewise.
27054 (__statfs_chown_restricted): Likewise.
27055
27056 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27057
27058 [BZ #18822]
27059 * include/time.h (__tzstring): Add attribute_hidden.
27060 (__tzfile_read): Likewise.
27061 (__tzfile_compute): Likewise.
27062 (__tzfile_default): Likewise.
27063 (__tzset_parse_tz): Likewise.
27064 (__offtime): Likewise.
27065 (__asctime_r): Likewise.
27066 (__tzset): Likewise.
27067 (__tz_convert): Likewise.
27068 (__getdate_r): Likewise.
27069 (__getclktck): Likewise.
27070
27071 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27072
27073 [BZ #18822]
27074 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
27075 (__nscd_unmap): Likewise.
27076 (__nscd_cache_search): Likewise.
27077 (__nscd_get_nl_timestamp): Likewise.
27078 (__nscd_getpwnam_r): Likewise.
27079 (__nscd_getpwuid_r): Likewise.
27080 (__nscd_getgrnam_r): Likewise.
27081 (__nscd_getgrgid_r): Likewise.
27082 (__nscd_gethostbyname_r): Likewise.
27083 (__nscd_gethostbyname2_r): Likewise.
27084 (__nscd_gethostbyaddr_r): Likewise.
27085 (__nscd_getai): Likewise.
27086 (__nscd_getgrouplist): Likewise.
27087 (__nscd_getservbyname_r): Likewise.
27088 (__nscd_getservbyport_r): Likewise.
27089 (__nscd_innetgr): Likewise.
27090 (__nscd_setnetgrent): Likewise.
27091
27092 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27093
27094 [BZ #18822]
27095 * include/gmp.h: Declare internal functions only if _ISOMAC is
27096 undefined.
27097 (__mpn_extract_double): Add attribute_hidden.
27098 (__mpn_extract_long_double): Likewise.
27099 (__mpn_extract_float128): Likewise.
27100 (__mpn_construct_float): Likewise.
27101 (__mpn_construct_double): Likewise.
27102 (__mpn_construct_long_double): Likewise.
27103 (__mpn_construct_float128): Likewise.
27104 (mpn_add_1): Likewise.
27105 (mpn_addmul_1): Likewise.
27106 (mpn_add_n): Likewise.
27107 (mpn_cmp): Likewise.
27108 (mpn_divrem): Likewise.
27109 (mpn_lshift): Likewise.
27110 (mpn_mul): Likewise.
27111 (mpn_mul_1): Likewise.
27112 (mpn_rshift): Likewise.
27113 (mpn_sub_1): Likewise.
27114 (mpn_submul_1): Likewise.
27115 (mpn_sub_n): Likewise.
27116
27117 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27118
27119 [BZ #18822]
27120 * include/wchar.h (__wcsnlen): Add attribute_hidden.
27121 (__wcscat): Likewise.
27122 (__btowc): Likewise.
27123 (__wcrtomb): Likewise.
27124 (__mbsrtowcs): Likewise.
27125 (__wcsrtombs): Likewise.
27126 (__mbsnrtowcs): Likewise.
27127 (__wcsnrtombs): Likewise.
27128 (__wcsncpy): Likewise.
27129 (__wcpncpy): Likewise.
27130 (__wmemcpy): Likewise.
27131 (__wmempcpy): Likewise.
27132 (__wmemmove): Likewise.
27133 (__wcschrnul): Likewise.
27134 (__vfwscanf): Likewise.
27135 (__vswprintf): Likewise.
27136 (__fwprintf): Likewise.
27137 (__vfwprintf): Likewise.
27138
27139 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27140
27141 [BZ #18822]
27142 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
27143 (__getgrgid_r): Likewise.
27144 (__getgrnam_r): Likewise.
27145 * include/pwd.h (__getpwuid_r): Likewise.
27146 (__getpwnam_r): Likewise.
27147 (__fgetpwent_r): Likewise.
27148 * include/shadow.h (__getspnam_r): Likewise.
27149 (__sgetspent_r): Likewise.
27150 (__fgetspent_r): Likewise.
27151
27152 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27153
27154 [BZ #18822]
27155 * include/unistd.h (__access): Add attribute_hidden.
27156 (__lseek64): Likewise.
27157 (__libc_pread64): Likewise.
27158 (__pipe2): Likewise.
27159 (__sleep): Likewise.
27160 (__chdir): Likewise.
27161 (__fchdir): Likewise.
27162 (__getcwd): Likewise.
27163 (__rmdir): Likewise.
27164 (__execvpe): Likewise.
27165 (__execve): Likewise.
27166 (__setsid): Likewise.
27167 (__getuid): Likewise.
27168 (__geteuid): Likewise.
27169 (__getgid): Likewise.
27170 (__getegid): Likewise.
27171 (__getgroups): Likewise.
27172 (__group_member): Likewise.
27173 (__ttyname_r): Likewise.
27174 (__isatty): Likewise.
27175 (__readlink): Likewise.
27176 (__unlink): Likewise.
27177 (__gethostname): Likewise.
27178 (__profil): Likewise.
27179 (__getdtablesize): Likewise.
27180 (__brk): Likewise.
27181 (__ftruncate): Likewise.
27182 (__ftruncate64): Likewise.
27183
27184 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27185
27186 [BZ #18822]
27187 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
27188 * argp/argp-fs-xinl.c: Likewise.
27189 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
27190 * argp/argp-parse.c: Include <argp.h>.
27191 * argp/argp-xinl.c: Likewise.
27192 * include/argp-fmtstream.h: New file.
27193 * include/argp.h (__argp_error): Add attribute_hidden.
27194 (__argp_failure): Likewise.
27195 (__argp_input): Likewise.
27196 (__argp_state_help): Likewise.
27197
27198 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27199
27200 [BZ #18822]
27201 * include/wchar.h (____wcstof_l_internal): New prototype.
27202 (____wcstod_l_internal): Likewise.
27203 (____wcstold_l_internal): Likewise.
27204 (____wcstol_l_internal): Likewise.
27205 (____wcstoul_l_internal): Likewise.
27206 (____wcstoll_l_internal): Likewise.
27207 (____wcstoull_l_internal): Likewise.
27208 (____wcstof128_l_internal): Likewise.
27209 * sysdeps/ieee754/float128/wcstof128.c
27210 (____wcstof128_l_internal): Removed.
27211 * sysdeps/ieee754/float128/wcstof128_l.c
27212 (____wcstof128_l_internal): Likewise.
27213 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
27214 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
27215 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
27216 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
27217 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
27218 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
27219 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
27220 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
27221 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
27222 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
27223
27224 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27225
27226 [BZ #18822]
27227 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
27228 instead of <sys/statvfs.h>.
27229 (__internal_statvfs): Removed.
27230 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
27231 instead of <sys/statvfs.h>.
27232 (__internal_statvfs64): Removed.
27233 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
27234 "internal_statvfs.h" instead of <sys/statvfs.h>.
27235 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
27236 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
27237 instead of <sys/statvfs.h>.
27238 (__internal_statvfs): Removed.
27239 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
27240 instead of <sys/statvfs.h>.
27241 (__internal_statvfs64): Removed.
27242
27243 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27244
27245 [BZ #18822]
27246 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
27247 (__gconv_close): Likewise.
27248 (__gconv): Likewise.
27249 (__gconv_find_transform): Likewise.
27250 (__gconv_lookup_cache): Likewise.
27251 (__gconv_compare_alias_cache): Likewise.
27252 (__gconv_load_cache): Likewise.
27253 (__gconv_get_path): Likewise.
27254 (__gconv_close_transform): Likewise.
27255 (__gconv_release_cache): Likewise.
27256 (__gconv_find_shlib): Likewise.
27257 (__gconv_release_shlib): Likewise.
27258 (__gconv_get_builtin_trans): Likewise.
27259 (__gconv_compare_alias): Likewise.
27260 * include/dlfcn.h (_dlerror_run): Likewise.
27261 * include/stdio.h (__fortify_fail_abort): Likewise.
27262 * include/time.h (__tz_compute): Likewise.
27263 (__strptime_internal): Likewise.
27264 * intl/gettextP.h (_nl_find_domain): Likewise.
27265 (_nl_load_domain): Likewise.
27266 (_nl_find_msg): Likewise.
27267 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
27268 (EXTRACT_PLURAL_EXPRESSION): Likewise.
27269 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
27270 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
27271 (__gai_find_request): Likewise.
27272 (__gai_remove_request): Likewise.
27273 (__gai_notify): Likewise.
27274 (__gai_notify_only): Likewise.
27275 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
27276 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
27277 (_dl_non_dynamic_init): Likewise.
27278 (_dl_aux_init): Likewise.
27279 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
27280 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
27281 Likewise.
27282 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
27283 (__wcsmbs_clone_conv): Likewise.
27284 (__wcsmbs_named_conv): Likewise.
27285
27286 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27287
27288 [BZ #18822]
27289 * include/stdlib.h (__random): Add attribute_hidden.
27290 (__random_r): Likewise.
27291 (__srandom_r): Likewise.
27292 (__initstate_r): Likewise.
27293 (__setstate_r): Likewise.
27294 (__erand48_r): Likewise.
27295 (__nrand48_r): Likewise.
27296 (__jrand48_r): Likewise.
27297 (__srand48_r): Likewise.
27298 (__seed48_r): Likewise.
27299 (__lcong48_r): Likewise.
27300 (__drand48_iterate): Likewise.
27301 (__setenv): Likewise.
27302 (__unsetenv): Likewise.
27303 (__clearenv): Likewise.
27304 (__ptsname_r): Likewise.
27305 (__posix_openpt): Likewise.
27306 (__add_to_environ): Likewise.
27307 (__realpath): Add libc_hidden_proto.
27308 (__ecvt_r): Likewise.
27309 (__fcvt_r): Likewise.
27310 (__qecvt_r): Likewise.
27311 (__qfcvt_r): Likewise.
27312 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
27313 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
27314
27315 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27316
27317 [BZ #18822]
27318 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
27319 * include/time.h (__mktime_internal): Likewise.
27320 * libio/iolibio.h (__fopen_internal): Likewise.
27321
27322 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
27323
27324 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
27325 pointer in frame.
27326 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
27327 Correct offset used to restore PIC register.
27328
27329 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
27330
27331 [BZ libc/22165]
27332 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
27333 code to load address of __getcontext_ret when generating PIC code.
27334
27335 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
27336
27337 * elf/Makefile (tests-static-internal): Add
27338 tst-tls1-static-non-pie.
27339 (LDFLAGS-tst-tls1-static-non-pie): New.
27340 * elf/tst-tls1-static-non-pie.c: New file.
27341
27342 2017-09-29 Joseph Myers <joseph@codesourcery.com>
27343
27344 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
27345 (asinh): Define using libm_alias_double.
27346 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
27347 (cbrt): Define using libm_alias_double.
27348 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
27349 <libm-alias-double.h>.
27350 (copysign): Define using libm_alias_double.
27351 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
27352 (erf): Define using libm_alias_double.
27353 (erfc): Likewise.
27354 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
27355 (expm1): Define using libm_alias_double.
27356 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
27357 (fabs): Define using libm_alias_double.
27358 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
27359 libm_alias_double.
27360 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
27361 <libm-alias-double.h>.
27362 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
27363 libm_alias_double.
27364 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
27365 <libm-alias-double.h>.
27366 (getpayload): Define using libm_alias_double.
27367 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
27368 <libm-alias-double.h>.
27369 (llrint): Define using libm_alias_double.
27370 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
27371 (lrint): Define using libm_alias_double.
27372 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
27373 <libm-alias-double.h>.
27374 (nextup): Define using libm_alias_double.
27375 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
27376 <libm-alias-double.h>.
27377 (roundeven): Define using libm_alias_double.
27378 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
27379 libm_alias_double.
27380 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
27381 <libm-alias-double.h>.
27382 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
27383 using libm_alias_double.
27384 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
27385 (cos): Define using libm_alias_double.
27386 (sin): Likewise.
27387 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
27388 <libm-alias-double.h>.
27389 (sincos): Define using libm_alias_double.
27390 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
27391 (tanh): Define using libm_alias_double.
27392 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
27393 <libm-alias-double.h>.
27394 (totalorder): Define using libm_alias_double.
27395 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
27396 <libm-alias-double.h>.
27397 (totalordermag): Define using libm_alias_double.
27398 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
27399 libm_alias_double.
27400 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
27401 libm_alias_double.
27402 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
27403 <libm-alias-double.h>.
27404 (getpayload): Define using libm_alias_double.
27405 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
27406 <libm-alias-double.h>.
27407 (roundeven): Define using libm_alias_double.
27408 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
27409 <libm-alias-double.h>.
27410 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
27411 <libm-alias-double.h>.
27412 (totalorder): Define using libm_alias_double.
27413 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
27414 <libm-alias-double.h>.
27415 (totalordermag): Define using libm_alias_double.
27416 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
27417 libc compat symbol here.
27418 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
27419 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
27420 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
27421 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
27422 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
27423 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
27424 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
27425 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
27426 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
27427 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
27428
27429 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27430
27431 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
27432 _dl_relocate_static_pie instead of _dl_start to compute load
27433 address in static PIE. Return 0 if _DYNAMIC is undefined for
27434 static executable.
27435
27436 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27437
27438 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
27439 _DYNAMIC is undefined for static executable.
27440
27441 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27442
27443 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
27444
27445 2017-09-29 Joseph Myers <joseph@codesourcery.com>
27446
27447 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27448
27449 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
27450
27451 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
27452 (__ieee754_lgamma_r): Use fabs rather than __fabs.
27453 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
27454 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
27455 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
27456 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
27457 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
27458 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
27459 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
27460 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
27461 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
27462 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
27463 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
27464 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
27465 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
27466 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
27467 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
27468
27469 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
27470
27471 * math/bits/cmathcalls.h (cimag): Remove inline.
27472 (creal): Remove inline.
27473 (conj): Remove inline.
27474
27475 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27476
27477 * math/Makefile (type-float-routines): Add e_powf_log2_data.
27478 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
27479 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
27480 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
27481 (issignalingf_inline): Likewise.
27482 (POWF_LOG2_TABLE_BITS): Likewise.
27483 (POWF_LOG2_POLY_ORDER): Likewise.
27484 (POWF_SCALE_BITS): Likewise.
27485 (POWF_SCALE): Likewise.
27486 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
27487 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
27488 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
27489
27490 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27491
27492 * math/Makefile (type-float-routines): Add e_log2f_data.
27493 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
27494 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
27495 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
27496 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
27497 * sysdeps/i386/fpu/e_log2f_data.c: New file.
27498 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
27499 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
27500
27501 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27502
27503 * math/Makefile (type-float-routines): Add e_logf_data.
27504 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
27505 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
27506 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
27507 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
27508 * sysdeps/i386/fpu/e_logf_data.c: New file.
27509 * sysdeps/ia64/fpu/e_logf_data.c: New file.
27510 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
27511
27512 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
27513
27514 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
27515 undefined _DYNAMIC in PIE libc.a.
27516 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
27517 Likewse.
27518
27519 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
27520
27521 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
27522 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
27523 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
27524 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
27525 (__signbit): Remove.
27526 (__signbitl): Remove.
27527 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
27528 (__signbit): Remove.
27529 (__signbitl): Remove.
27530 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
27531 (__signbit): Remove.
27532 (__signbitl): Remove.
27533 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
27534 (__signbit): Remove.
27535 (__signbitl): Remove.
27536 * sysdeps/tile/bits/mathinline.h: Delete file.
27537 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
27538 (__signbit): Remove.
27539 (__signbitl): Remove.
27540
27541 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
27542
27543 * math/math.h: Improve handling of C99 isgreater macros.
27544 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
27545 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
27546 * sysdeps/powerpc/bits/mathinline.h: Likewise.
27547 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
27548 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
27549
27550 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
27551
27552 * sysdeps/aarch64/libm-test-ulps: Update.
27553
27554 2017-09-28 Joseph Myers <joseph@codesourcery.com>
27555
27556 [BZ #22225]
27557 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
27558 math_opt_barrier on argument when doing arithmetic on it.
27559 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
27560 Likewise. Use math_force_eval not math_opt_barrier after
27561 arithmetic.
27562 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
27563 math_opt_barrier on argument when doing arithmetic on it.
27564 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
27565 Likewise.
27566
27567 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
27568
27569 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
27570 libc_hidden_def.
27571 (__freeifaddrs): Likewise.
27572
27573 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
27574
27575 * include/dirent.h (__dirfd): New declaration.
27576 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
27577 alias.
27578 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
27579 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
27580 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
27581 * include/unistd.h (__revoke): New declaration.
27582 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
27583 alias.
27584 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
27585 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
27586 revoke.
27587 * include/dirent.h (__seekdir): New declaration.
27588 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
27589 redefine as weak alias.
27590 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
27591 of seekdir.
27592 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
27593 and use libc_hidden_def on them.
27594 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
27595 them.
27596 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
27597 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
27598 instead of getifaddrs and freeifaddrs.
27599
27600 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
27601
27602 [BZ #18822]
27603 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
27604 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
27605 (__dso_handle): Remove declaration.
27606 * dlfcn/tstatexit.c (__dso_handle): Removed.
27607 (main): Don't check __dso_handle.
27608 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
27609 (main): Don't check __dso_handle.
27610 * include/dso_handle.h: New file.
27611 * malloc/mtrace.c: Include <dso_handle.h>.
27612 (mtrace): Pass __dso_handle directly.
27613 * nptl/pthread_atfork.c: Include <dso_handle.h>.
27614 (__dso_handle): Remove declaration.
27615 (__pthread_atfork): Pass __dso_handle directly.
27616 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
27617 (__dso_handle): Removed.
27618 * posix/wordexp-test.c: Include <dso_handle.h>.
27619 (__dso_handle): Remove declaration.
27620 (__app_register_atfork): Pass __dso_handle directly.
27621 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
27622 (__dso_handle): Remove declaration.
27623 (at_quick_exit): Pass __dso_handle directly.
27624 * stdlib/atexit.c: Include <dso_handle.h>.
27625 (__dso_handle): Remove declaration.
27626 (atexit): Pass __dso_handle directly.
27627 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
27628 (__dso_handle): Removed.
27629
27630 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27631
27632 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
27633 using VDSO.
27634
27635 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
27636
27637 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
27638 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
27639 values to correct default value for given type.
27640
27641 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
27642
27643 [BZ #22101]
27644 * elf/Makefile (tests): Add tst-debug1.
27645 ($(objpfx)tst-debug1): New.
27646 ($(objpfx)tst-debug1.out): Likewise.
27647 ($(objpfx)tst-debug1mod1.so): Likewise.
27648 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
27649 with p_filesz == 0.
27650 * elf/tst-debug1.c: New file.
27651
27652 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27653
27654 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
27655 Define using __ifunc.
27656
27657 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27658
27659 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
27660 exp2f() values.
27661
27662 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27663
27664 [BZ #22156]
27665 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
27666
27667 2017-09-26 Florian Weimer <fweimer@redhat.com>
27668
27669 * resolv/Makefile (tests-internal): Fix typo in comment.
27670
27671 2017-09-26 Florian Weimer <fweimer@redhat.com>
27672
27673 * resolv/nss_dns/dns-host.c: Fix typo in comment.
27674
27675 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27676
27677 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
27678 Use an union instead of a max_align_t array for __space,
27679 so that __space is the same size on all platforms.
27680 * malloc/scratch_buffer_grow_preserve.c
27681 (__libc_scratch_buffer_grow_preserve): Likewise.
27682
27683 [BZ #22183]
27684 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
27685 version to 2.
27686 * posix/Makefile (routines): Add glob-lstat-compat and
27687 glob64-lstat-compat.
27688 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
27689 * posix/glob-lstat-compat.c: New file.
27690 * posix/glob64-lstat-compat.c: Likewise.
27691 * posix/tst-glob_lstat_compat.c: Likewise.
27692 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
27693 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
27694 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
27695 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
27696 Likewise.
27697 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
27698 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
27699 * posix/glob.c (glob_lstat): New function.
27700 (glob): Rename to __glob and add versioned symbol to 2.27.
27701 (glob_in_dir): Use glob_lstat.
27702 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
27703 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
27704 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
27705 2.27.
27706 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
27707 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
27708 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
27709 gl_lstat on glob call.
27710 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
27711 and glob64 symbols.
27712 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27713 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
27714 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
27715 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
27716 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
27717 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
27718 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
27719 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
27720 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
27721 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27722 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27723 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
27724 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
27725 Likewise.
27726 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
27727 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
27728 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27729 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27730 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
27731 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27732 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27733 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
27734 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
27735 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
27736 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
27737 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
27738
27739 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
27740
27741 * configure.ac (AS): Require binutils 2.25 or later.
27742 * configure: Regenerated.
27743
27744 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
27745
27746 [BZ #22207]
27747 * stdlib/test-atexit-race-common.c (do_test): Minimize required
27748 VM size.
27749
27750 2017-09-25 DJ Delorie <dj@redhat.com>
27751
27752 [BZ #22161]
27753 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
27754 resetting timeout.
27755
27756 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
27757
27758 * sysdeps/ieee754/dbl-64/sincos32.h
27759 [SINCCOS32_H]: Remove define.
27760 [SINCOS32_H]: Define.
27761
27762 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27763
27764 * math/Versions (expf): New libm symbol at GLIBC_2.27.
27765 (exp2f): Likewise.
27766 * math/w_exp2f.c: New file.
27767 * math/w_expf.c: New file.
27768 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
27769 * math/w_expf_compat.c (__expf_compat): Likewise.
27770 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
27771 * sysdeps/ia64/fpu/e_expf.S: Likewise.
27772 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
27773 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27774 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
27775 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
27776 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
27777 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
27778 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
27779 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
27780 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
27781 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
27782 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27783 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
27784 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
27785 Likewise.
27786 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
27787 Likewise.
27788 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
27789 Likewise.
27790 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
27791 Likewise.
27792 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27793 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27794 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
27795 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27796 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27797 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
27798 Likewise.
27799 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
27800 Likewise.
27801 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
27802 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
27803 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
27804
27805 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27806
27807 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
27808 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
27809 (roundtoint, converttoint): Likewise.
27810 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
27811 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
27812 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
27813 * sysdeps/ieee754/flt-32/math_config.h: New file.
27814 * sysdeps/ieee754/flt-32/math_errf.c: New file.
27815 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
27816 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
27817 * sysdeps/i386/fpu/math_errf.c: New file.
27818 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
27819 * sysdeps/ia64/fpu/math_errf.c: New file.
27820 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
27821 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
27822
27823 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
27824
27825 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
27826 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
27827 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
27828 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
27829 to make sure that these symbols are defined.
27830 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
27831 of <limits.h>
27832 (__need_NULL): Do not define.
27833 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
27834 alignment.
27835 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
27836 CMGROUP_MAX, cmsgcred): Do not define.
27837 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
27838 NULL.
27839 * bits/socket.h: Likewise.
27840 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
27841 __gettimeofday instead of gettimeofday.
27842 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
27843 instead of settimeofday.
27844
27845 2017-09-22 Joseph Myers <joseph@codesourcery.com>
27846
27847 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
27848 (asinhf): Define using libm_alias_float.
27849 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
27850 (atanf): Define using libm_alias_float.
27851 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
27852 (cbrtf): Define using libm_alias_float.
27853 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
27854 (ceilf): Define using libm_alias_float.
27855 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
27856 <libm-alias-float.h>.
27857 (copysignf): Define using libm_alias_float.
27858 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
27859 (cosf): Define using libm_alias_float.
27860 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
27861 (erff): Define using libm_alias_float.
27862 (erfcf): Likewise.
27863 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
27864 (expm1f): Define using libm_alias_float.
27865 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
27866 (fabsf): Define using libm_alias_float.
27867 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
27868 (floorf): Define using libm_alias_float.
27869 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
27870 (frexpf): Define using libm_alias_float.
27871 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
27872 libm_alias_float.
27873 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
27874 <libm-alias-float.h>.
27875 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
27876 libm_alias_float.
27877 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
27878 <libm-alias-float.h>.
27879 (getpayloadf): Define using libm_alias_float.
27880 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
27881 <libm-alias-float.h>.
27882 (llrintf): Define using libm_alias_float.
27883 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
27884 <libm-alias-float.h>.
27885 (llroundf): Define using libm_alias_float.
27886 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
27887 (logbf): Define using libm_alias_float.
27888 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
27889 (lrintf): Define using libm_alias_float.
27890 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
27891 (lroundf): Define using libm_alias_float.
27892 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
27893 (modff): Define using libm_alias_float.
27894 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
27895 <libm-alias-float.h>.
27896 (nearbyintf): Define using libm_alias_float.
27897 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
27898 <libm-alias-float.h>.
27899 (nextafterf): Define using libm_alias_float.
27900 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
27901 <libm-alias-float.h>.
27902 (nextupf): Define using libm_alias_float.
27903 * sysdeps/ieee754/flt-32/s_remquof.c: Include
27904 <libm-alias-float.h>.
27905 (remquof): Define using libm_alias_float.
27906 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
27907 (rintf): Define using libm_alias_float.
27908 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
27909 <libm-alias-float.h>.
27910 (roundevenf): Define using libm_alias_float.
27911 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
27912 (roundf): Define using libm_alias_float.
27913 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
27914 using libm_alias_float.
27915 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
27916 <libm-alias-float.h>.
27917 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
27918 Define using libm_alias_float.
27919 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
27920 <libm-alias-float.h>.
27921 (sincosf): Define using libm_alias_float.
27922 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
27923 (sinf): Define using libm_alias_float.
27924 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
27925 (tanf): Define using libm_alias_float.
27926 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
27927 (tanhf): Define using libm_alias_float.
27928 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
27929 <libm-alias-float.h>.
27930 (totalorderf): Define using libm_alias_float.
27931 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
27932 <libm-alias-float.h>.
27933 (totalordermagf): Define using libm_alias_float.
27934 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
27935 (truncf): Define using libm_alias_float.
27936 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
27937 libm_alias_float.
27938 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
27939 libm_alias_float.
27940
27941 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27942
27943 [BZ #22146]
27944 math/math.h: Let fpclassify use the builtin in C++ mode, even
27945 when optimazing for size.
27946
27947 2017-09-22 Joseph Myers <joseph@codesourcery.com>
27948
27949 * csu/Makefile (generated): Do not add version-info.h.
27950 (before-compile): Likewise.
27951 (all-Banner-files): Remove variable.
27952 ($(objpfx)version-info.h): Remove rule.
27953 * csu/version.c (banner): Do not include "version-info.h".
27954 * libidn/Banner: Remove.
27955 * manual/contrib.texi (Simon Josefsson): New entry.
27956
27957 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27958
27959 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
27960 Remove conditionals on LDBL_MANT_DIG.
27961 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
27962 (__ieee754_lgammal_r): Likewise.
27963
27964 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27965
27966 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
27967 _Float128 and L().
27968 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
27969 _Float128 and L(). Replace _Float128 with long double and L(x)
27970 with xL, throughout the file.
27971 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
27972 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
27973 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
27974 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
27975
27976 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27977
27978 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
27979 sysdeps/ieee754/ldbl-128ibm.
27980 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
27981 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
27982 of including it. Keep _Float128 and L() intact. These will be
27983 reviewed by a separate patch.
27984 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
27985 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
27986 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
27987 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
27988
27989 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27990
27991 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
27992 (__finitef128): Define to __redirect___finitef128.
27993 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
27994 (__isinff128): Define to __redirect___isinff128.
27995 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
27996 (__isnanf128): Define to __redirect___isnanf128.
27997
27998 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27999
28000 * sysdeps/powerpc/powerpc64le/Makefile
28001 (CFLAGS-tst-strtod-nan-locale.c): New variable.
28002 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
28003
28004 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
28005 Carlos O'Donell <carlos@redhat.com>
28006
28007 [BZ #22180]
28008 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
28009 * stdlib/test-dlclose-exit-race.c: New file.
28010 * stdlib/test-dlclose-exit-race-helper.c: New file.
28011 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
28012
28013 2017-09-21 Joseph Myers <joseph@codesourcery.com>
28014
28015 * crypt/Banner: Remove file.
28016 * nptl/Banner: Likewise.
28017 * resolv/Banner: Likewise.
28018 * soft-fp/Banner: Likewise.
28019 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
28020 ($(objpfx)version.d): Remove dependency on banner.h.
28021 ($(objpfx)version.os): Likewise.
28022 * nptl/version.c (banner): Do not include banner.h.
28023 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
28024 Jelinek and BIND code.
28025
28026 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
28027 Carlos O'Donell <carlos@redhat.com>
28028
28029 * support/xdlfcn.h: New file.
28030 * support/xdlfcn.c: New file.
28031 * support/Makefile (libsupport-routines): Add xdlfcn.
28032 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
28033
28034 2017-09-20 Joseph Myers <joseph@codesourcery.com>
28035
28036 [BZ #20142]
28037 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
28038 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
28039 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
28040 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
28041 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
28042 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
28043 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
28044 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
28045
28046 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
28047 Ricky Zhou <rickyz@google.com>
28048 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
28049
28050 [BZ #14333]
28051 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
28052 Remove atomics.
28053 (__new_exitfn): Fail registration when we finished at_exit processing.
28054 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
28055 * stdlib/on_exit.c (__on_exit): Likewise.
28056 * stdlib/exit.c (__exit_funcs_done): New variable.
28057 (__run_exit_handlers): Use __exit_funcs_lock.
28058 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
28059 declarations.
28060 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
28061 (test-cxa_atexit-race, test-on_exit-race): New tests.
28062 * stdlib/test-atexit-race-common.c: New file.
28063 * stdlib/test-atexit-race.c: New file.
28064 * stdlib/test-at_quick_exit-race.c: New file.
28065 * stdlib/test-cxa_atexit-race.c: New file.
28066 * stdlib/test-on_exit-race.c: New file.
28067
28068 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
28069
28070 * benchtests/Makefile: Add exp2f and log2f benchmarks.
28071 * benchtests/exp2f-inputs: Copy of expf-inputs.
28072 * benchtests/log2f-inputs: Copy of logf-inputs.
28073
28074 2017-09-19 Joseph Myers <joseph@codesourcery.com>
28075
28076 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
28077 Explicitly take address of first element of array arguments in
28078 call to INLINE_SYSCALL.
28079
28080 2017-09-19 Andreas Schwab <schwab@suse.de>
28081
28082 [BZ #22134]
28083 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
28084 execveat first.
28085 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
28086 unimplemented.
28087 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
28088 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
28089 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
28090 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
28091 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
28092 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
28093 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
28094 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
28095 * posix/Makefile (tests): Add tst-fexecve.
28096 * posix/tst-fexecve.c: New file.
28097
28098 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
28099
28100 * benchtests/Makefile: Add logf benchmark.
28101 * benchtests/logf-inputs: Add reduced trace from wrf_r.
28102
28103 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
28104
28105 * benchtests/Makefile: Add expf benchmark.
28106 * benchtests/expf-inputs: Add reduced trace from wrf_r.
28107
28108 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
28109
28110 * csu/Makefile: Add -funwind-tables to libc-start.c.
28111 * debug/Makefile: Add -funwind-tables to backtrace.c.
28112 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
28113 * sysdeps/arm/Makefile: Likewise.
28114 * sysdeps/i386/Makefile: Likewise.
28115 * sysdeps/m68k/Makefile: Likewise.
28116 * sysdeps/mips/Makefile: Likewise.
28117 * sysdeps/nios2/Makefile: Likewise.
28118 * sysdeps/sh/Makefile: Likewise.
28119 * sysdeps/sparc/Makefile: Likewise.
28120
28121 2017-09-19 Joseph Myers <joseph@codesourcery.com>
28122
28123 * benchtests/Makefile (bench-math): Add trunc and truncf.
28124 (CFLAGS-bench-trunc.c): New variable.
28125 (CFLAGS-bench-truncf.c): Likewise.
28126 * benchtests/trunc-inputs: New file.
28127 * benchtests/truncf-inputs: Likewise.
28128
28129 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
28130
28131 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
28132
28133 2017-09-18 Joseph Myers <joseph@codesourcery.com>
28134
28135 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
28136 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
28137 redefine.
28138 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
28139 (exp10l): Define as weak alias.
28140 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
28141 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
28142 and redefine.
28143 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
28144 (remainderl): Define as weak alias.
28145
28146 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
28147 (fmal): Define using libm_alias_ldouble.
28148 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
28149 (acoshl): Define using libm_alias_ldouble.
28150 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
28151 (acosl): Define using libm_alias_ldouble.
28152 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
28153 (asinl): Define using libm_alias_ldouble.
28154 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
28155 (atan2l): Define using libm_alias_ldouble.
28156 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
28157 (atanhl): Define using libm_alias_ldouble.
28158 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
28159 (coshl): Define using libm_alias_ldouble.
28160 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
28161 (exp10l): Define using libm_alias_ldouble.
28162 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
28163 (exp2l): Define using libm_alias_ldouble.
28164 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
28165 (expl): Define using libm_alias_ldouble.
28166 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
28167 (fmodl): Define using libm_alias_ldouble.
28168 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
28169 (hypotl): Define using libm_alias_ldouble.
28170 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
28171 (j0l): Define using libm_alias_ldouble.
28172 (y0l): Likewise.
28173 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
28174 (j1l): Define using libm_alias_ldouble.
28175 (y1l): Likewise.
28176 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
28177 (jnl): Define using libm_alias_ldouble.
28178 (ynl): Likewise.
28179 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
28180 (log10l): Define using libm_alias_ldouble.
28181 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
28182 (log2l): Define using libm_alias_ldouble.
28183 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
28184 (logl): Define using libm_alias_ldouble.
28185 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
28186 (powl): Define using libm_alias_ldouble.
28187 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
28188 (remainderl): Define using libm_alias_ldouble.
28189 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
28190 (sinhl): Define using libm_alias_ldouble.
28191 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
28192 (sqrtl): Define using libm_alias_ldouble.
28193 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
28194 (tgammal): Define using libm_alias_ldouble.
28195 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
28196 (exp10l): Do not use long_double_symbol here.
28197 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
28198 [LIBM_SVID_COMPAT] (remainderl): Likewise.
28199 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
28200 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
28201 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
28202 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
28203 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
28204 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
28205 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
28206 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
28207 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
28208 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
28209 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
28210 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
28211 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
28212 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
28213 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
28214 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
28215 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
28216 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
28217 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
28218 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
28219
28220 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
28221
28222 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
28223 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
28224
28225 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
28226
28227 * io/read.c (read): Add libc_hidden_weak.
28228 * sysdeps/mach/hurd/read.c (read): Likewise.
28229 * io/write.c (write): Likewise.
28230 * sysdeps/mach/hurd/write.c (write): Likewise.
28231 * io/pread64.c (__pread64): Likewise.
28232 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
28233 * posix/pread64.c (__pread64): Add libc_hidden_def.
28234
28235 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
28236
28237 * benchtests/scripts/compare_strings.py: New option -g.
28238 (draw_graph): Print a message that a graph is being generated.
28239 (process_results): Generate graph only if -g is passed.
28240 (main): Process option -g.
28241
28242 * benchtests/scripts/compare_strings.py (process_results):
28243 Better spacing for output.
28244
28245 * benchtests/scripts/compare_strings.py: Use argparse.
28246 * benchtests/README: Document existence of compare_strings.py.
28247
28248 2017-09-15 Joseph Myers <joseph@codesourcery.com>
28249
28250 * math/s_fma.c: Include <libm-alias-double.h>.
28251 (fma): Define using libm_alias_double.
28252 * math/s_nextafter.c: Include <libm-alias-double.h>.
28253 (nextafter): Define using libm_alias_double.
28254 * math/w_acos_compat.c: Include <libm-alias-double.h>.
28255 (acos): Define using libm_alias_double.
28256 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
28257 (aocsh): Define using libm_alias_double.
28258 * math/w_asin_compat.c: Include <libm-alias-double.h>.
28259 (asin): Define using libm_alias_double.
28260 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
28261 (atan2): Define using libm_alias_double.
28262 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
28263 (atanh): Define using libm_alias_double.
28264 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
28265 (cosh): Define using libm_alias_double.
28266 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
28267 (exp10): Define using libm_alias_double.
28268 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
28269 (exp2): Define using libm_alias_double.
28270 * math/w_exp_compat.c: Include <libm-alias-double.h>.
28271 (exp): Define using libm_alias_double.
28272 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
28273 (fmod): Define using libm_alias_double.
28274 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
28275 (hypot): Define using libm_alias_double.
28276 * math/w_j0_compat.c: Include <libm-alias-double.h>.
28277 (j0): Define using libm_alias_double.
28278 (y0): Likewise.
28279 * math/w_j1_compat.c: Include <libm-alias-double.h>.
28280 (j1): Define using libm_alias_double.
28281 (y1): Likewise.
28282 * math/w_jn_compat.c: Include <libm-alias-double.h>.
28283 (jn): Define using libm_alias_double.
28284 (yn): Likewise.
28285 * math/w_log10_compat.c: Include <libm-alias-double.h>.
28286 (log10): Define using libm_alias_double.
28287 * math/w_log2_compat.c: Include <libm-alias-double.h>.
28288 (log2): Define using libm_alias_double.
28289 * math/w_log_compat.c: Include <libm-alias-double.h>.
28290 (log): Define using libm_alias_double.
28291 * math/w_pow_compat.c: Include <libm-alias-double.h>.
28292 (pow): Define using libm_alias_double.
28293 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
28294 (remainder): Define using libm_alias_double.
28295 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
28296 (sinh): Define using libm_alias_double.
28297 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
28298 (sqrt): Define using libm_alias_double.
28299 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
28300 (tgamma): Define using libm_alias_double.
28301 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
28302 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
28303 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
28304 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
28305 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
28306 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
28307 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
28308 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
28309 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
28310 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
28311 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
28312 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
28313 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
28314 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
28315 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
28316 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
28317 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
28318 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
28319 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
28320 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
28321 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
28322 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
28323 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
28324 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
28325 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
28326
28327 * math/e_acoshl.c: Remove.
28328 * math/e_acosl.c: Likewise.
28329 * math/e_asinl.c: Likewise.
28330 * math/e_atan2l.c: Likewise.
28331 * math/e_atanhl.c: Likewise.
28332 * math/e_coshl.c: Likewise.
28333 * math/e_expl.c: Likewise.
28334 * math/e_fmodl.c: Likewise.
28335 * math/e_gammal_r.c: Likewise.
28336 * math/e_hypotl.c: Likewise.
28337 * math/e_j0l.c: Likewise.
28338 * math/e_j1l.c: Likewise.
28339 * math/e_jnl.c: Likewise.
28340 * math/e_lgammal_r.c: Likewise.
28341 * math/e_log10l.c: Likewise.
28342 * math/e_log2l.c: Likewise.
28343 * math/e_logl.c: Likewise.
28344 * math/e_powl.c: Likewise.
28345 * math/e_rem_pio2l.c: Likewise.
28346 * math/e_sinhl.c: Likewise.
28347 * math/e_sqrtf128.c: Likewise.
28348 * math/e_sqrtl.c: Likewise.
28349 * math/k_cosl.c: Likewise.
28350 * math/k_sinl.c: Likewise.
28351 * math/k_tanl.c: Likewise.
28352 * math/s_asinhl.c: Likewise.
28353 * math/s_atanl.c: Likewise.
28354 * math/s_cbrtl.c: Likewise.
28355 * math/s_erfl.c: Likewise.
28356 * math/s_expm1l.c: Likewise.
28357 * math/s_log1pl.c: Likewise.
28358 * math/s_tanhl.c: Likewise.
28359
28360 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
28361
28362 [BZ #21745]
28363 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
28364 [$(subdir) = math] (sysdep_calls): New variable. Has the
28365 previous contents of sysdep_routines, but re-sorted..
28366 [$(subdir) = math] (sysdep_routines): Re-use the contents from
28367 sysdep_calls.
28368 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
28369 defined in sysdep_calls and replace by the respective m_* names.
28370 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
28371 (compat_symbol): Undefine to avoid duplicated compat symbols in
28372 libc.
28373
28374 2017-09-15 Joseph Myers <joseph@codesourcery.com>
28375
28376 * math/s_fmaf.c: Include <libm-alias-float.h>.
28377 (fmaf): Define using libm_alias_float.
28378 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
28379 (acosf): Define using libm_alias_float.
28380 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
28381 (acoshf): Define using libm_alias_float.
28382 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
28383 (asinf): Define using libm_alias_float.
28384 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
28385 (atan2f): Define using libm_alias_float.
28386 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
28387 (atanhf): Define using libm_alias_float.
28388 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
28389 (coshf): Define using libm_alias_float.
28390 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
28391 (exp10f): Define using libm_alias_float.
28392 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
28393 (fmodf): Define using libm_alias_float.
28394 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
28395 (hypotf): Define using libm_alias_float.
28396 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
28397 (j0f): Define using libm_alias_float.
28398 (y0f): Likewise.
28399 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
28400 (j1f): Define using libm_alias_float.
28401 (y1f): Likewise.
28402 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
28403 (jnf): Define using libm_alias_float.
28404 (ynf): Likewise.
28405 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
28406 (log10f): Define using libm_alias_float.
28407 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
28408 (log2f): Define using libm_alias_float.
28409 * math/w_logf_compat.c: Include <libm-alias-float.h>.
28410 (logf): Define using libm_alias_float.
28411 * math/w_powf_compat.c: Include <libm-alias-float.h>.
28412 (powf): Define using libm_alias_float.
28413 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
28414 (remainderf): Define using libm_alias_float.
28415 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
28416 (sinhf): Define using libm_alias_float.
28417 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
28418 (sqrtf): Define using libm_alias_float.
28419 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
28420 (tgammaf): Define using libm_alias_float.
28421
28422 2017-09-14 Joseph Myers <joseph@codesourcery.com>
28423
28424 * include/math.h (roundeven): Change hidden_proto call to
28425 __roundeven.
28426 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
28427 alias.
28428 [NO_LONG_DOUBLE] (__j0l): New strong alias.
28429 (y0): Rename to __y0 and define as weak alias.
28430 [NO_LONG_DOUBLE] (__y0l): New strong alias.
28431 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
28432 alias.
28433 (y0f): Rename to __y0f and define as weak alias.
28434 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
28435 alias.
28436 [NO_LONG_DOUBLE] (__j1l): New strong alias.
28437 (y1): Rename to __y1 and define as weak alias.
28438 [NO_LONG_DOUBLE] (__y1l): New strong alias.
28439 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
28440 alias.
28441 (y1f): Rename to __y1f and define as weak alias.
28442 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
28443 alias.
28444 [NO_LONG_DOUBLE] (__jnl): New strong alias.
28445 (yn): Rename to __yn and define as weak alias.
28446 [NO_LONG_DOUBLE] (__ynl): New strong alias.
28447 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
28448 alias.
28449 (ynf): Rename to __ynf and define as weak alias.
28450 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
28451 (fromfp): Define as weak alias.
28452 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
28453 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
28454 (fromfpx): Define as weak alias.
28455 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
28456 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
28457 __getpayload and define as weak alias.
28458 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
28459 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
28460 __roundeven and define as weak alias.
28461 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
28462 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
28463 __setpayload.
28464 (setpayload): Define as weak alias.
28465 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
28466 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
28467 __setpayloadsig.
28468 (setpayloadsig): Define as weak alias.
28469 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
28470 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
28471 __totalorder and define as weak alias.
28472 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
28473 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
28474 to __totalordermag and define as weak alias.
28475 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
28476 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
28477 (ufromfp): Define as weak alias.
28478 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
28479 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
28480 __ufromfpx.
28481 (ufromfpx): Define as weak alias.
28482 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
28483 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
28484 Rename to __getpayload and define as weak alias.
28485 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
28486 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
28487 Rename to __roundeven and define as weak alias.
28488 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
28489 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
28490 Rename to __totalorder and define as weak alias.
28491 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
28492 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
28493 (totalordermag): Rename to __totalordermag and define as weak
28494 alias.
28495 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
28496 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
28497 macro.
28498 (__roundevenl): Likewise.
28499 (__totalorderl): Likewise.
28500 (__totalordermagl): Likewise
28501 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
28502 __fromfpf128.
28503 (fromfpf128): Define as weak alias.
28504 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
28505 __fromfpxf128.
28506 (fromfpxf128): Define as weak alias.
28507 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
28508 __setpayloadf128.
28509 (setpayloadf128): Define as weak alias.
28510 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
28511 __setpayloadsigf128.
28512 (setpayloadsigf128): Define as weak alias.
28513 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
28514 __ufromfpf128.
28515 (ufromfpf128): Define as weak alias.
28516 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
28517 __ufromfpxf128.
28518 (ufromfpxf128): Define as weak alias.
28519 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
28520 (fromfpf): Define as weak alias.
28521 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
28522 __fromfpxf.
28523 (fromfpxf): Define as weak alias.
28524 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
28525 __getpayloadf and define as weak alias.
28526 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
28527 __roundevenf and define as weak alias.
28528 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
28529 __setpayloadf.
28530 (setpayloadf): Define as weak alias.
28531 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
28532 __setpayloadsigf.
28533 (setpayloadsigf): Define as weak alias.
28534 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
28535 __totalorderf and define as weak alias.
28536 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
28537 Rename to __totalordermagf and define as weak alias.
28538 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
28539 __ufromfpf.
28540 (ufromfpf): Define as weak alias.
28541 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
28542 __ufromfpxf.
28543 (ufromfpxf): Define as weak alias.
28544 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
28545 __fromfpl.
28546 (fromfpl): Define as weak alias.
28547 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
28548 __fromfpxl.
28549 (fromfpxl): Define as weak alias.
28550 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
28551 to __getpayloadl and define as weak alias.
28552 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
28553 __roundevenl and define as weak alias.
28554 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
28555 __setpayloadl.
28556 (setpayloadl): Define as weak alias.
28557 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
28558 __setpayloadsigl.
28559 (setpayloadsigl): Define as weak alias.
28560 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
28561 to __totalorderl and define as weak alias.
28562 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
28563 Rename to __totalordermagl and define as weak alias.
28564 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
28565 __ufromfpl.
28566 (ufromfpl): Define as weak alias.
28567 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
28568 __ufromfpxl.
28569 (ufromfpxl): Define as weak alias.
28570 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
28571 __fromfpl.
28572 (fromfpl): Define as weak alias.
28573 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
28574 __fromfpxl.
28575 (fromfpxl): Define as weak alias.
28576 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
28577 Rename to __getpayloadl and define as weak alias.
28578 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
28579 to __roundevenl and define as weak alias. Call __roundeven
28580 instead of roundeven.
28581 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
28582 __setpayloadl.
28583 (setpayloadl): Define as weak alias.
28584 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
28585 __setpayloadsigl.
28586 (setpayloadsigl): Define as weak alias.
28587 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
28588 Rename to __totalorderl and define as weak alias.
28589 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
28590 Rename to __totalordermagl and define as weak alias.
28591 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
28592 __ufromfpl.
28593 (ufromfpl): Define as weak alias.
28594 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
28595 __ufromfpxl.
28596 (ufromfpxl): Define as weak alias.
28597 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
28598 __fromfpl.
28599 (fromfpl): Define as weak alias.
28600 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
28601 __fromfpxl.
28602 (fromfpxl): Define as weak alias.
28603 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
28604 __getpayloadl and define as weak alias.
28605 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
28606 __roundevenl and define as weak alias.
28607 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
28608 __setpayloadl.
28609 (setpayloadl): Define as weak alias.
28610 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
28611 __setpayloadsigl.
28612 (setpayloadsigl): Define as weak alias.
28613 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
28614 __totalorderl and define as weak alias.
28615 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
28616 Rename to __totalordermagl and define as weak alias.
28617 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
28618 __ufromfpl.
28619 (ufromfpl): Define as weak alias.
28620 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
28621 __ufromfpxl.
28622 (ufromfpxl): Define as weak alias.
28623
28624 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
28625
28626 * benchtests/bench-string.h (realloc_bufs): New function.
28627 (test_init): Call it.
28628 * benchtests/bench-memset-large.c (do_test): Likewise.
28629 * benchtests/bench-memset.c (do_test): Likewise.
28630
28631 * benchtests/bench-memset-large.c: Print output in JSON
28632 format.
28633 * benchtests/bench-memset.c: Likewise.
28634
28635 2017-09-14 Mike FABIAN <mfabian@redhat.com>
28636
28637 [BZ #21084]
28638 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
28639 * iconvdata/Makefile: Add IBM858.
28640 * iconvdata/gconv-modules: Likewise.
28641 * iconvdata/tst-tables.sh: Likewise.
28642 * iconvdata/ibm858.c: New file.
28643 * localedata/charmaps/IBM858: Likewise.
28644
28645 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
28646
28647 [BZ #22023]
28648 * locales/niu_NZ (LC_TIME): copy "niu_NU".
28649 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
28650
28651 2017-09-14 Mike FABIAN <mfabian@redhat.com>
28652
28653 [BZ #22112]
28654 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
28655 and add tel_int_fmt.
28656
28657 2017-09-14 Joseph Myers <joseph@codesourcery.com>
28658
28659 * sysdeps/generic/libm-alias-float128.h: New file.
28660 * sysdeps/generic/math-type-macros-float128.h: Include
28661 <libm-alias-float128.h>.
28662 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28663
28664 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28665
28666 * sysdeps/generic/libm-alias-ldouble.h: New file.
28667 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
28668 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
28669 * sysdeps/generic/math-type-macros-ldouble.h: Include
28670 <libm-alias-ldouble.h>.
28671 [!declare_mgen_alias] (declare_mgen_alias): Define to use
28672 libm_alias_ldouble.
28673
28674 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
28675
28676 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
28677 * math/w_exp_compat.c: ... here.
28678 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
28679 * math/w_expf_compat.c: ... here.
28680 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
28681 * math/w_expl_compat.c: ... here.
28682 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
28683 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
28684 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
28685 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
28686
28687 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28688
28689 * math/w_scalbln_template.c (strong_alias): Do not undefine and
28690 redefine.
28691 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
28692 macro.
28693 (ldexpl): Only define as compat symbol for libc, not libm.
28694 (scalbnl): Define as compat symbol for libc here.
28695 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
28696 define for [IS_IN (libc)].
28697 (__ldexpl_2): Remove alias.
28698 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
28699 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
28700 name in long_double_symbol call.
28701 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
28702 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
28703 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
28704 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
28705 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
28706 Remove macro.
28707 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
28708 Define as compat symbol.
28709
28710 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28711
28712 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
28713 * sysdeps/unix/sysv/linux/alpha/Makefile
28714 [$(subdir) = csu] (sysdep_routines): Remove rule.
28715
28716 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28717
28718 * sysdeps/generic/libm-alias-double.h: New file.
28719 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
28720 * sysdeps/generic/math-type-macros-double.h: Include
28721 <libm-alias-double.h>.
28722 [declare_mgen_alias] (declare_mgen_alias): Define to use
28723 libm_alias_double.
28724 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
28725 (M_LIBM_NEED_COMPAT): Remove macro.
28726 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
28727 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
28728 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
28729 code.
28730 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28731 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28732 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28733 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28734 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28735 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28736 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28737 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28738 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28739 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28740 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28741 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28742 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28743 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28744 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28745 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28746 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28747 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28748 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28749 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28750 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28751 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28752 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28753 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28754 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28755 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28756 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28757 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
28758 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
28759 macro.
28760 (declare_mgen_alias): New macro.
28761 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
28762 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
28763 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
28764 (M_LIBM_NEED_COMPAT): Remove macro.
28765 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
28766 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
28767 <first-versions.h>.
28768 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
28769 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
28770
28771 2017-09-12 Joseph Myers <joseph@codesourcery.com>
28772
28773 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
28774 (declare_mgen_alias_2): Remove.
28775 * sysdeps/generic/math-type-macros-double.h
28776 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
28777 Likewise.
28778 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
28779 alias.
28780 (ldexp): Define with declare_mgen_alias.
28781 (scalbn): Likewise.
28782
28783 2017-09-12 Steve Ellcey <sellcey@cavium.com>
28784
28785 * grp/initgroups.c: Include config.h.
28786 (DEFAULT_CONFIG): New macro.
28787 (internal_getgrouplist): Use DEFAULT_CONFIG.
28788 * nscd/initgrcache.c (addinitgroupsX): Likewise.
28789 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
28790 (DEFAULT_DEFCONFIG): New macro.
28791 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
28792 * nss/grp-lookup.c: Include config.h
28793 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
28794 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
28795 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
28796 * manual/nss.texi: Update default values section.
28797
28798 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
28799
28800 [BZ #21967]
28801 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
28802 New.
28803 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
28804 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
28805 Handle MathVec_Prefer_No_AVX512.
28806 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
28807 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
28808 is set.
28809
28810 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
28811
28812 * posix/sched_primax.c (__sched_get_priority_max): Add
28813 libc_hidden_def.
28814 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
28815 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
28816 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
28817 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
28818 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
28819 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
28820 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
28821 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
28822 Add aliases.
28823
28824 2017-09-11 Joseph Myers <joseph@codesourcery.com>
28825
28826 * sysdeps/generic/libm-alias-float.h: New file.
28827 * sysdeps/generic/math-type-macros-float.h: Include
28828 <libm-alias-float.h>.
28829 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28830
28831 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
28832
28833 [BZ #22093]
28834 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
28835 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
28836 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
28837 (HWCAP_IMPORTANT): Likewise.
28838 (HWCAP_X86_64): New enum.
28839 (HWCAP_X86_AVX512_1): Updated.
28840 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
28841 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
28842 (modules-names): Add x86_64/tst-x86_64mod-1.
28843 (LDFLAGS-tst-x86_64mod-1.so): New.
28844 ($(objpfx)tst-x86_64-1): Likewise.
28845 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
28846 (tst-x86_64-1-clean): Likewise.
28847 * sysdeps/x86_64/tst-x86_64-1.c: New file.
28848 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
28849
28850 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
28851
28852 * po/sv.po: Update translations.
28853 * po/fr.po: Likewise.
28854
28855 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
28856
28857 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
28858 seconds.
28859 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
28860 seconds.
28861 * elf/rtld-Rules: Fix $(error) use.
28862
28863 2017-09-09 Mike FABIAN <mfabian@redhat.com>
28864
28865 [BZ #14925]
28866 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
28867 * locale/iso-639.def: Change “Bengali” to “Bangla”.
28868 * localedata/locales/bn_BD: “Bengali” was still used in some
28869 comments. Change it to “Bangla”.
28870
28871 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
28872
28873 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
28874
28875 2017-09-08 Steve Ellcey <sellcey@cavium.com>
28876
28877 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
28878 thunderx2t99p1 to list of cpu names.
28879 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
28880 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
28881
28882 2017-09-08 Steve Ellcey <sellcey@cavium.com>
28883
28884 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
28885 Use strcmp instead of tunable_is_name.
28886
28887 2017-09-08 Joseph Myers <joseph@codesourcery.com>
28888
28889 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28890 (F_GET_RW_HINT): New macro.
28891 [__USE_GNU] (F_SET_RW_HINT): Likewise.
28892 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
28893 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
28894 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
28895 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
28896 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
28897 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
28898 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
28899 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
28900
28901 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28902 (F_ADD_SEALS): New macro.
28903 [__USE_GNU] (F_GET_SEALS): Likewise.
28904 [__USE_GNU] (F_SEAL_SEAL): Likewise.
28905 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
28906 [__USE_GNU] (F_SEAL_GROW): Likewise.
28907 [__USE_GNU] (F_SEAL_WRITE): Likewise.
28908
28909 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28910
28911 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
28912 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
28913 * posix/glob_internal.h (__glob_pattern_type):
28914 * posix/glob.c (glob):
28915 * posix/glob_pattern_p.c (__glob_pattern_p):
28916 Use them.
28917
28918 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
28919 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
28920 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
28921 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
28922 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
28923 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
28924 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
28925 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
28926 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
28927 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
28928 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
28929 * sysdeps/wordsize-64/glob.c: Likewise.
28930 * sysdeps/wordsize-64/glob64.c: Likewise.
28931 * sysdeps/wordsize-64/globfree.c: Likewise.
28932 * sysdeps/wordsize-64/globfree64.c: Likewise.
28933 * sysdeps/unix/sysv/linux/glob.c: New file.
28934 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
28935 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
28936 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
28937 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
28938 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
28939 adds !GLOB_NO_OLD_VERSION as an extra condition.
28940 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
28941 using relative path instead of absolute one.
28942 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
28943 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
28944 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
28945 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
28946 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
28947 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
28948
28949 [BZ #1062]
28950 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
28951 (glob): Use the same scratch buffer for both getlogin_r and
28952 getpwnam_r. Don’t require preallocation of the login name. This
28953 simplifies storage allocation, and corrects the handling of
28954 long login names.
28955
28956 [BZ #1062]
28957 * posix/glob.c (glob): Port recent patches to platforms
28958 lacking getpwnam_r.
28959 (glob): Fix longstanding misuse of errno after getpwnam_r, which
28960 returns an error number rather than setting errno.
28961
28962 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
28963 instead of GCC extension.
28964 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
28965 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
28966 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
28967
28968 [BZ #866]
28969 [BZ #1062]
28970 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
28971 * posix/bug-glob1.c: Remove file.
28972 * posix/tst-glob_symlinks.c: New file.
28973 * posix/glob.c (__lstat64): New macro.
28974 (is_dir): New function.
28975 (glob, glob_in_dir): Match symlinks even if they are dangling.
28976 (link_stat, link_exists_p): Remove. All uses removed.
28977
28978 [BZ #1062]
28979 [BZ #19971]
28980 * posix/glob.c (struct readdir_result): Remove skip_entry member.
28981 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
28982 All uses removed.
28983
28984 [BZ #1062]
28985 CVE-2017-15671
28986 * posix/Makefile (routines): Add globfree, globfree64, and
28987 glob_pattern_p.
28988 * posix/flexmember.h: New file.
28989 * posix/glob_internal.h: Likewise.
28990 * posix/glob_pattern_p.c: Likewise.
28991 * posix/globfree.c: Likewise.
28992 * posix/globfree64.c: Likewise.
28993 * sysdeps/gnu/globfree64.c: Likewise.
28994 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
28995 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
28996 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
28997 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
28998 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
28999 * sysdeps/wordsize-64/globfree.c: Likewise.
29000 * sysdeps/wordsize-64/globfree64.c: Likewise.
29001 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
29002 [NDEBUG): Remove comments.
29003 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
29004 (dirent_type): New type. Use uint_fast8_t not
29005 uint8_t, as C99 does not require uint8_t.
29006 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
29007 (struct readdir_result): Use dirent_type. Do not define skip_entry
29008 unless it is needed; this saves a byte on platforms lacking d_ino.
29009 (readdir_result_type, readdir_result_skip_entry):
29010 New functions, replacing ...
29011 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
29012 these functions, which were removed. This makes the callers
29013 easier to read. All callers changed.
29014 (D_INO_TO_RESULT): Now empty if there is no d_ino.
29015 (size_add_wrapv, glob_use_alloca): New static functions.
29016 (glob, glob_in_dir): Check for size_t overflow in several places,
29017 and fix some size_t checks that were not quite right.
29018 Remove old code using SHELL since Bash no longer
29019 uses this.
29020 (glob, prefix_array): Separate MS code better.
29021 (glob_in_dir): Remove old Amiga and VMS code.
29022 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
29023 separate files.
29024 (glob_in_dir): Do not rely on undefined behavior in accessing
29025 struct members beyond their bounds. Use a flexible array member
29026 instead
29027 (link_stat): Rename from link_exists2_p and return -1/0 instead of
29028 0/1. Caller changed.
29029 (glob): Fix memory leaks.
29030 * posix/glob64 (globfree64): Move to separate file.
29031 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
29032 (globfree64): Remove hidden alias.
29033 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
29034 oldglob.
29035 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
29036 separate file.
29037 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
29038 define.
29039 Move compat code to separate file.
29040 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
29041 separate file.
29042
29043 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
29044
29045 * resolv/tst-resolv-qtypes.c (domain): Changed to
29046 "const char domain[] =".
29047
29048 2017-09-07 Joseph Myers <joseph@codesourcery.com>
29049
29050 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
29051 version to 3.1.6.
29052
29053 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
29054 (TCP_MD5SIG_EXT): Likewise.
29055 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
29056 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
29057 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
29058
29059 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
29060
29061 2017-09-07 Mike FABIAN <mfabian@redhat.com>
29062
29063 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
29064
29065 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
29066
29067 [BZ #22100]
29068 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
29069
29070 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
29071
29072 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
29073 before assuming that the file is empty. Avoid testing buffer content
29074 when nread == 0.
29075
29076 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29077
29078 [BZ #18858]
29079 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
29080 Remove define.
29081 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
29082 Likewise.
29083 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
29084 Likewise.
29085 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
29086 Likewise.
29087 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
29088 Likewise.
29089 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
29090 Likewise.
29091 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
29092 Likewise.
29093
29094 2017-09-06 Florian Weimer <fweimer@redhat.com>
29095
29096 * malloc/dynarray_emplace_enlarge.c
29097 (__libc_dynarray_emplace_enlarge): Add missing else.
29098
29099 2017-09-06 Florian Weimer <fweimer@redhat.com>
29100
29101 [BZ #22096]
29102 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
29103 case of failure to obtain the global conf object.
29104
29105 2017-09-06 Florian Weimer <fweimer@redhat.com>
29106
29107 [BZ #22095]
29108 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
29109 dynarray allocation failure.
29110
29111 2017-09-06 Florian Weimer <fweimer@redhat.com>
29112
29113 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
29114 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
29115 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
29116 New functions.
29117 (response): Call them. Add 'p', '6' flag processing.
29118 (test_reverse): New function.
29119 (test_get2_any): Call it.
29120 (test_no_inet6): Add 'p' test.
29121 (test_inet6): Likewise.
29122
29123 2017-09-06 Florian Weimer <fweimer@redhat.com>
29124
29125 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
29126 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
29127 the QNAME.
29128 (test_gai): Adjust query names. Add additional tests.
29129 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
29130 test_get2. Adjust query names. Add additional tests.
29131 (test_no_inet6): New function, extracted from threadfunc.
29132 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
29133 Add additional tests.
29134
29135 2017-09-06 Mike FABIAN <mfabian@redhat.com>
29136
29137 [BZ #22070]
29138 * localedata/unicode-gen/utf8_gen.py: Set the width for
29139 characters with Prepended_Concatenation_Mark property to 1
29140 * localedata/charmaps/UTF-8: Updated using the improved script.
29141
29142 2017-09-06 Mike FABIAN <mfabian@redhat.com>
29143
29144 [BZ #21750]
29145 * localedata/unicode-gen/utf8_gen.py: Improve the script to
29146 use the range notation for all ranges of neighbouring characters
29147 with the same width.
29148
29149 2017-09-05 Joseph Myers <joseph@codesourcery.com>
29150
29151 * sysdeps/generic/math-type-macros-double.h: Include
29152 <math-svid-compat.h>.
29153 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
29154 * sysdeps/generic/math-type-macros-float.h: Include
29155 <math-svid-compat.h>.
29156 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
29157 * sysdeps/generic/math-type-macros-ldouble.h: Include
29158 <math-svid-compat.h>.
29159 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
29160 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
29161 condition.
29162 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
29163 * math/w_acosf_compat.c: Likewise.
29164 * math/w_acosh_compat.c: Likewise.
29165 * math/w_acoshf_compat.c: Likewise.
29166 * math/w_acoshl_compat.c: Likewise.
29167 * math/w_acosl_compat.c: Likewise.
29168 * math/w_asin_compat.c: Likewise.
29169 * math/w_asinf_compat.c: Likewise.
29170 * math/w_asinl_compat.c: Likewise.
29171 * math/w_atan2_compat.c: Likewise.
29172 * math/w_atan2f_compat.c: Likewise.
29173 * math/w_atan2l_compat.c: Likewise.
29174 * math/w_atanh_compat.c: Likewise.
29175 * math/w_atanhf_compat.c: Likewise.
29176 * math/w_atanhl_compat.c: Likewise.
29177 * math/w_cosh_compat.c: Likewise.
29178 * math/w_coshf_compat.c: Likewise.
29179 * math/w_coshl_compat.c: Likewise.
29180 * math/w_exp10_compat.c: Likewise.
29181 * math/w_exp10f_compat.c: Likewise.
29182 * math/w_exp10l_compat.c: Likewise.
29183 * math/w_exp2_compat.c: Likewise.
29184 * math/w_exp2f_compat.c: Likewise.
29185 * math/w_exp2l_compat.c: Likewise.
29186 * math/w_fmod_compat.c: Likewise.
29187 * math/w_fmodf_compat.c: Likewise.
29188 * math/w_fmodl_compat.c: Likewise.
29189 * math/w_hypot_compat.c: Likewise.
29190 * math/w_hypotf_compat.c: Likewise.
29191 * math/w_hypotl_compat.c: Likewise.
29192 * math/w_j0_compat.c: Likewise.
29193 * math/w_j0f_compat.c: Likewise.
29194 * math/w_j0l_compat.c: Likewise.
29195 * math/w_j1_compat.c: Likewise.
29196 * math/w_j1f_compat.c: Likewise.
29197 * math/w_j1l_compat.c: Likewise.
29198 * math/w_jn_compat.c: Likewise.
29199 * math/w_jnf_compat.c: Likewise.
29200 * math/w_jnl_compat.c: Likewise.
29201 * math/w_lgamma_r_compat.c: Likewise.
29202 * math/w_lgammaf_r_compat.c: Likewise.
29203 * math/w_lgammal_r_compat.c: Likewise.
29204 * math/w_log10_compat.c: Likewise.
29205 * math/w_log10f_compat.c: Likewise.
29206 * math/w_log10l_compat.c: Likewise.
29207 * math/w_log2_compat.c: Likewise.
29208 * math/w_log2f_compat.c: Likewise.
29209 * math/w_log2l_compat.c: Likewise.
29210 * math/w_log_compat.c: Likewise.
29211 * math/w_logf_compat.c: Likewise.
29212 * math/w_logl_compat.c: Likewise.
29213 * math/w_pow_compat.c: Likewise.
29214 * math/w_powf_compat.c: Likewise.
29215 * math/w_powl_compat.c: Likewise.
29216 * math/w_remainder_compat.c: Likewise.
29217 * math/w_remainderf_compat.c: Likewise.
29218 * math/w_remainderl_compat.c: Likewise.
29219 * math/w_sinh_compat.c: Likewise.
29220 * math/w_sinhf_compat.c: Likewise.
29221 * math/w_sinhl_compat.c: Likewise.
29222 * math/w_sqrt_compat.c: Likewise.
29223 * math/w_sqrtf_compat.c: Likewise.
29224 * math/w_sqrtl_compat.c: Likewise.
29225 * math/w_tgamma_compat.c: Likewise.
29226 * math/w_tgammaf_compat.c: Likewise.
29227 * math/w_tgammal_compat.c: Likewise.
29228 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
29229 [LIBM_SVID_COMPAT].
29230 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
29231 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
29232 [LIBM_SVID_COMPAT].
29233 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
29234 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
29235 [LIBM_SVID_COMPAT].
29236 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
29237 * sysdeps/i386/fpu/w_sqrt.c: New file.
29238 * sysdeps/ia64/fpu/w_acos.c: Likewise.
29239 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
29240 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
29241 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
29242 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
29243 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
29244 * sysdeps/ia64/fpu/w_asin.c: Likewise.
29245 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
29246 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
29247 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
29248 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
29249 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
29250 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
29251 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
29252 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
29253 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
29254 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
29255 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
29256 * sysdeps/ia64/fpu/w_exp.c: Likewise.
29257 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
29258 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
29259 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
29260 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
29261 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
29262 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
29263 * sysdeps/ia64/fpu/w_expf.c: Likewise.
29264 * sysdeps/ia64/fpu/w_expl.c: Likewise.
29265 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
29266 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
29267 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
29268 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
29269 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
29270 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
29271 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
29272 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
29273 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
29274 * sysdeps/ia64/fpu/w_log.c: Likewise.
29275 * sysdeps/ia64/fpu/w_log10.c: Likewise.
29276 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
29277 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
29278 * sysdeps/ia64/fpu/w_log2.c: Likewise.
29279 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
29280 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
29281 * sysdeps/ia64/fpu/w_logf.c: Likewise.
29282 * sysdeps/ia64/fpu/w_logl.c: Likewise.
29283 * sysdeps/ia64/fpu/w_pow.c: Likewise.
29284 * sysdeps/ia64/fpu/w_powf.c: Likewise.
29285 * sysdeps/ia64/fpu/w_powl.c: Likewise.
29286 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
29287 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
29288 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
29289 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
29290 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
29291 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
29292 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
29293 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
29294 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
29295 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
29296 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
29297 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
29298 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
29299 [LIBM_SVID_COMPAT].
29300 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
29301 * sysdeps/ieee754/k_standard.c: Likewise.
29302 * sysdeps/ieee754/k_standardf.c: Likewise.
29303 * sysdeps/ieee754/k_standardl.c: Likewise.
29304 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
29305 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
29306 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
29307 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
29308 long_double_symbol call on [LIBM_SVID_COMPAT].
29309 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
29310 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
29311 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
29312 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
29313 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
29314 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
29315 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
29316 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
29317 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
29318 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
29319 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
29320 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
29321 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
29322 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
29323 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
29324 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
29325 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
29326 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
29327 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
29328 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
29329 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
29330 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
29331
29332 2017-09-05 Steve Ellcey <sellcey@cavium.com>
29333
29334 * include/shlib-compat.h (TEST_COMPAT): New Macro.
29335 * malloc/tst-mallocstate.c: Convert from test-skeleton
29336 to test-driver. Ifdef code using TEST_COMPAT macro.
29337 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
29338 * math/test-matherr.c: Likewise.
29339
29340 2017-09-05 Joseph Myers <joseph@codesourcery.com>
29341
29342 [BZ #22086]
29343 * debug/pcprofiledump.c (main): Use byte-swapped mask when
29344 comparing word with byte-swapped constant.
29345
29346 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
29347
29348 [BZ #20498]
29349 * locale/iso-639.def: add Miskito.
29350 * localedata/SUPPORTED: Add miq_NI/UTF-8.
29351 * localedata/locales/miq_NI: New file.
29352
29353 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
29354
29355 [BZ #18822]
29356 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
29357 (__mkdir): Likewise.
29358 * io/chmod.c (__chmod): Add libc_hidden_def.
29359 * io/mkdir.c (__mkdir): Likewise.
29360 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
29361 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
29362 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
29363 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
29364
29365 2017-09-04 Joseph Myers <joseph@codesourcery.com>
29366
29367 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
29368 version to 4.13.
29369
29370 [BZ #22082]
29371 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
29372 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
29373
29374 2017-09-04 Florian Weimer <fweimer@redhat.com>
29375
29376 * math/math.h: Issue warning if log is defined.
29377
29378 2017-09-04 Joseph Myers <joseph@codesourcery.com>
29379
29380 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
29381 kernel version to 4.13.
29382
29383 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
29384
29385 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
29386 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
29387 parameter.
29388 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
29389 just <bits/types.h>.
29390 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
29391 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
29392 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
29393 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
29394 * misc/preadv2.c: Include <errno.h>.
29395 * misc/preadv64v2.c: Include <errno.h>.
29396 * misc/pwritev2.c: Include <errno.h>.
29397 * misc/pwritev64v2.c: Include <errno.h>.
29398 * sysdeps/posix/preadv2.c: Include <errno.h>.
29399 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
29400 Fix <unistd.h> inclusion.
29401 * sysdeps/posix/pwritev2.c: Include <errno.h>.
29402 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
29403 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
29404 __strtoul_internal): New functions.
29405 * sysdeps/posix/pause.c: Include <sigsetops.h>.
29406 * sysdeps/posix/system.c: Include <sigsetops.h>.
29407 * sysdeps/mach/hurd/i386/Makefile
29408 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
29409 [$(subdir) = csu] (sysdep-only-routines): Likewise.
29410 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
29411 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
29412 __feraiseexcept_renamed to feraiseexcept instead of
29413 __GI_feraiseexcept.
29414 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
29415 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
29416 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
29417 RWF_NOWAIT): Define to 0 if undefined already.
29418 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
29419 boils down to 0.
29420 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
29421 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
29422
29423 2017-09-01 Joseph Myers <joseph@codesourcery.com>
29424
29425 * manual/math.texi (pow10): Do not document.
29426 (pow10f): Likewise.
29427 (pow10l): Likewise.
29428 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
29429 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
29430 * math/libm-test-exp10.inc (pow10_test): Remove.
29431 (do_test): Do not call pow10.
29432 * math/w_exp10_compat.c (pow10): Make into compat symbol.
29433 [NO_LONG_DOUBLE] (pow10l): Likewise.
29434 * math/w_exp10f_compat.c (pow10f): Likewise.
29435 * math/w_exp10l_compat.c (pow10l): Likewise.
29436 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
29437 (pow10): Make into compat symbol.
29438 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
29439 (pow10f): Make into compat symbol.
29440 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
29441 (pow10l): Make into compat symbol.
29442 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
29443 pow10.
29444 (CFLAGS-nldbl-pow10.c): Remove variable..
29445 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
29446 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
29447 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
29448 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
29449 Undefine and redefine.
29450 (pow10l): Make into compat symbol.
29451 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
29452 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
29453 * sysdeps/arm/libm-test-ulps: Likewise.
29454 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
29455 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
29456 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29457 * sysdeps/microblaze/libm-test-ulps: Likewise.
29458 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
29459 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
29460 * sysdeps/nios2/libm-test-ulps: Likewise.
29461 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
29462 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
29463 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
29464 * sysdeps/sh/libm-test-ulps: Likewise.
29465 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
29466 * sysdeps/tile/libm-test-ulps: Likewise.
29467 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29468
29469 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
29470
29471 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
29472
29473 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29474
29475 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
29476 "../ChangeLog.old/ChangeLog.8".
29477 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
29478 "../ChangeLog.old/ChangeLog.14".
29479
29480 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29481
29482 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
29483 Threads Library.
29484
29485 2017-09-01 Joseph Myers <joseph@codesourcery.com>
29486
29487 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
29488
29489 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29490
29491 * csu/version.c (banner): Remove "by Roland McGrath et al.".
29492 * nptl/Banner: Remove "by Ulrich Drepper et al.".
29493
29494 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
29495
29496 * stdlib/tst-atexit-common.c (do_test): Test support for at least
29497 32 atexit handlers.
29498
29499 2017-09-01 Zack Weinberg <zackw@panix.com>
29500
29501 * math/math.h (HUGE_VAL): Improve commentary.
29502
29503 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29504 Andreas Schwab <schwab@suse.de>
29505
29506 [BZ #21530]
29507 * include/stdio.h (__gen_tempfd): New function.
29508 * stdio-common/Makefile (routines): Add gentempfd.
29509 * stdio-common/gentempfd.c: New file.
29510 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
29511 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
29512 unnamed file first.
29513
29514 2017-09-01 Florian Weimer <fweimer@redhat.com>
29515
29516 [BZ #21915]
29517 [BZ #21922]
29518 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
29519 result to determine success or failure, not the errno value.
29520 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
29521 (tst-nss-files-hosts-erange): Link with -ldl.
29522 * nss/tst-nss-files-hosts-erange.c: New file.
29523 * nss/tst-resolv-basic.c (response): Handle nodata.example.
29524 (do_test): Add NO_DATA tests.
29525 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
29526 (do_test): Call it.
29527
29528 2017-09-01 Florian Weimer <fweimer@redhat.com>
29529
29530 [BZ #21922]
29531 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
29532 coming from gethostbyname2_r.
29533
29534 2017-09-01 Florian Weimer <fweimer@redhat.com>
29535
29536 * support/namespace.h (struct support_chroot_configuration): Add
29537 hosts, host_conf.
29538 (struct support_chroot): Add path_hosts, path_host_conf.
29539 * support/support_chroot.c (write_file): New function.
29540 (support_chroot_create): Call it to process /etc/resolv.conf,
29541 /etc/hosts, /etc/host.conf.
29542 (support_chroot_free): Update.
29543
29544 2017-09-01 Florian Weimer <fweimer@redhat.com>
29545
29546 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
29547 status indicates it is set.
29548
29549 2017-09-01 Florian Weimer <fweimer@redhat.com>
29550
29551 [BZ #20532]
29552 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
29553 function lookup failures more reliable.
29554
29555 2017-09-01 Florian Weimer <fweimer@redhat.com>
29556
29557 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
29558 (getcanonname): Likewise.
29559 (gaih_inet): Likewise.
29560
29561 2017-09-01 Florian Weimer <fweimer@redhat.com>
29562
29563 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
29564 (getcanonname): Likewise.
29565 (gaih_inet): Likewise.
29566
29567 2017-08-31 Steve Ellcey <sellcey@cavium.com>
29568 Richard Henderson <rth@twiddle.net>
29569
29570 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
29571 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
29572 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
29573 (IREG_SIZE, OREG_SIZE): New macros.
29574 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
29575 (IREG_SIZE, OREG_SIZE): New macros.
29576 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
29577 (IREG_SIZE): New macro.
29578 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
29579 (IREG_SIZE): New macro.
29580 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
29581 New includes.
29582 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
29583 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
29584 (__CONCATX): Handle exceptions correctly on large values that may
29585 set FE_INVALID.
29586 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
29587 Initialize if not already set.
29588 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
29589
29590 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29591
29592 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
29593 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
29594 Likewise.
29595 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
29596 Likewise.
29597 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
29598 Likewise.
29599 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
29600 Likewise.
29601 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
29602 Likewise.
29603 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
29604 Likewise.
29605 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
29606 Likewise.
29607 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
29608 (NO_CANCELLATION): Likewise.
29609 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
29610 Likewise.
29611 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
29612 Likewise.
29613 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
29614 Likewise.
29615 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
29616 (NO_CANCELLATION): Likewise.
29617 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
29618 (NO_CANCELLATION): Likewise.
29619 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
29620 Likewise
29621 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
29622 Likewise.
29623 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
29624 Likewise.
29625 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
29626 Likewise.
29627 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
29628 hidden prototype.
29629 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
29630 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
29631
29632 2017-08-31 Steve Ellcey <sellcey@cavium.com>
29633
29634 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
29635 in resolver call.
29636
29637 2017-08-31 Florian Weimer <fweimer@redhat.com>
29638
29639 * include/libc-symbols.h (internal_function): Remove.
29640
29641 2017-08-31 Florian Weimer <fweimer@redhat.com>
29642
29643 * stdlib/fmtmsg.c (internal_addseverity): Remove
29644 internal_function.
29645
29646 2017-08-31 Florian Weimer <fweimer@redhat.com>
29647
29648 * stdio-common/printf_fp.c (group_number): Remove
29649 internal_function.
29650 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
29651
29652 2017-08-31 Florian Weimer <fweimer@redhat.com>
29653
29654 * posix/fnmatch.c (internal_function): Remove definition.
29655 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
29656 * posix/regcomp.c (peek_token, init_word_char)
29657 (duplicate_node_closure, fetch_token, peek_token)
29658 (peek_token_bracket, build_range_exp, build_collating_symbol):
29659 Likewise.
29660 * posix/regex_internal.c (re_string_construct_common)
29661 (create_ci_newstate, create_cd_newstate, re_string_allocate)
29662 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
29663 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
29664 (re_string_translate_buffer, re_string_reconstruct)
29665 (re_string_peek_byte_case, re_string_fetch_byte_case)
29666 (re_string_destruct, re_string_context_at, re_node_set_alloc)
29667 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
29668 (re_node_set_add_intersect, re_node_set_init_union)
29669 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
29670 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
29671 (re_dfa_add_node, calc_state_hash, re_acquire_state)
29672 (re_acquire_state_context): Likewise.
29673 * posix/regex_internal.h (internal_function): Remove definition.
29674 (re_string_realloc_buffers, build_wcs_buffer)
29675 (build_wcs_upper_buffer, build_upper_buffer)
29676 (re_string_translate_buffer, re_string_context_at)
29677 (re_string_char_size_at, re_string_wchar_at)
29678 (re_string_elem_size_at): Likewise.
29679 * posix/regexec.c (match_ctx_init, match_ctx_clean)
29680 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
29681 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
29682 (re_search_internal, re_search_2_stub, re_search_stub)
29683 (re_copy_regs, prune_impossible_nodes, check_matching)
29684 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
29685 (free_fail_stack_return, sift_states_iter_mb)
29686 (sift_states_backward, build_sifted_states)
29687 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
29688 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
29689 (check_subexp_limits, sift_states_bkref, merge_state_array)
29690 (find_recover_state, transit_state, merge_state_with_log)
29691 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
29692 (transit_state_mb, transit_state_bkref, get_subexp)
29693 (get_subexp_sub, find_subexp_node, check_arrival)
29694 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
29695 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
29696 (check_node_accept_bytes, find_collation_sequence_value)
29697 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
29698 (acquire_init_state_context, check_halt_node_context)
29699 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
29700 (sub_epsilon_src_nodes): Likewise.
29701 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
29702 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
29703 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
29704 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
29705 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
29706 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
29707 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
29708 * sysdeps/posix/ttyname.c (getttyname): Likewise.
29709 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
29710 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
29711 (PREADV): Likewise.
29712 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
29713 (PREADV): Likewise.
29714 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
29715 (PWRITEV): Likewise.
29716 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
29717 (PWRITEV): Likewise.
29718 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
29719 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
29720
29721 2017-08-31 Florian Weimer <fweimer@redhat.com>
29722
29723 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
29724 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
29725 Remove internal_function.
29726 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
29727 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
29728 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
29729 (__deallocate_stack, __libc_pthread_init)
29730 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
29731 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
29732 (__libc_disable_asynccancel, __librt_disable_asynccancel):
29733 Likewise.
29734 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
29735 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
29736 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
29737 Likewise.
29738 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
29739 (__pthread_mutex_unlock_usercnt): Likewise.
29740
29741 2017-08-31 Florian Weimer <fweimer@redhat.com>
29742
29743 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
29744 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
29745 (fts_safe_changedir): Remove internal_function.
29746 * io/ftw.c (internal_function): Remove definition.
29747 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
29748
29749 2017-08-31 Florian Weimer <fweimer@redhat.com>
29750
29751 * inet/deadline.c (__deadline_current_time)
29752 (__deadline_from_timeval, __deadline_to_ms): Remove
29753 internal_function.
29754 * inet/getnameinfo.c (nrl_domainname): Likewise.
29755 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
29756 * inet/inet6_option.c (add_pad): Likewise.
29757 * inet/net-internal.h (__deadline_current_time)
29758 (__deadline_from_timeval, __deadline_to_ms): Likewise.
29759 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
29760 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
29761 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
29762
29763 2017-08-31 Joseph Myers <joseph@codesourcery.com>
29764
29765 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
29766 include <bits/nan.h>.
29767 * math/Makefile (headers): Remove bits/nan.h.
29768 * bits/nan.h: Remove.
29769 * sysdeps/ieee754/bits/nan.h: Likewise.
29770 * sysdeps/mips/bits/nan.h: Likewise.
29771
29772 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
29773 not include <bits/inf.h>.
29774 * math/Makefile (headers): Remove bits/inf.h.
29775 * bits/inf.h: Remove.
29776 * sysdeps/ieee754/bits/inf.h: Likewise.
29777
29778 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
29779 bits/huge_vall.h or bits/huge_val_flt128.h.
29780 (HUGE_VAL): Define directly here.
29781 [__USE_ISOC99] (HUGE_VALF): Likewise.
29782 [__USE_ISOC99] (HUGE_VALL): Likewise.
29783 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29784 (HUGE_VAL_F128): Likewise.
29785 * math/Makefile (headers): Remove bits/huge_val.h,
29786 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
29787 * bits/huge_val.h: Remove.
29788 * bits/huge_val_flt128.h: Likewise.
29789 * bits/huge_valf.h: Likewise.
29790 * bits/huge_vall.h: Likewise.
29791 * sysdeps/ia64/bits/huge_vall.h: Likewise.
29792 * sysdeps/ieee754/bits/huge_val.h: Likewise.
29793 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
29794 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
29795 * sysdeps/sh/bits/huge_val.h: Likewise.
29796 * sysdeps/sparc/bits/huge_vall.h: Likewise.
29797 * sysdeps/x86/bits/huge_vall.h: Likewise.
29798
29799 2017-08-31 Florian Weimer <fweimer@redhat.com>
29800
29801 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
29802 internal_function.
29803 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
29804 Likewise.
29805 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
29806 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
29807 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
29808 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
29809 * elf/dl-fini.c (_dl_sort_fini): Likewise.
29810 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
29811 * elf/dl-libc.c (dlerror_run): Likewise.
29812 * elf/dl-load.c (add_name_to_object, decompose_rpath)
29813 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
29814 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
29815 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
29816 Likewise.
29817 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
29818 (_dl_higher_prime_number, _dl_strtoul): Likewise.
29819 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
29820 * elf/dl-profile.c (_dl_start_profile): Likewise.
29821 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
29822 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
29823 Likewise.
29824 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
29825 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
29826 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
29827 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
29828 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
29829 (_dl_allocate_tls_storage): Likewise.
29830 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
29831 (_dl_check_all_versions): Likewise.
29832 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
29833 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
29834 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
29835 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29836 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
29837 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
29838 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
29839 internal_function from __dl_start.
29840 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
29841 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
29842 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
29843 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
29844 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
29845 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
29846 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
29847 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
29848 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
29849 (_dl_next_ld_env_entry, _dl_important_hwcaps)
29850 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
29851 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
29852 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
29853 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
29854 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
29855 Likewise.
29856 (struct rtld_global_ro): Remove internal_function from the
29857 _dl_lookup_symbol_x member.
29858 (_dl_symbol_value): Remove. No longer defined anywhere.
29859 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
29860 internal_function.
29861 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29862 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
29863 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
29864 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
29865 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
29866 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
29867 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
29868 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
29869 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
29870 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
29871 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29872 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
29873
29874 2017-08-31 Florian Weimer <fweimer@redhat.com>
29875
29876 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
29877 Remove internal_function.
29878 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29879 Likewise.
29880 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29881 Likewise.
29882
29883 2017-08-31 Florian Weimer <fweimer@redhat.com>
29884
29885 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
29886 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
29887 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
29888
29889 2017-08-31 Florian Weimer <fweimer@redhat.com>
29890
29891 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
29892 (__gai_enqueue_request): Remove internal_function.
29893 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
29894 (__gai_remove_request, __gai_notify, __gai_notify_only)
29895 (__gai_sigqueue): Likewise.
29896 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
29897 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
29898 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
29899 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
29900 Likewise.
29901
29902 2017-08-31 Florian Weimer <fweimer@redhat.com>
29903
29904 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
29905 * include/dirent.h (__opendirat, __getdents, __getdents64)
29906 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
29907 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
29908 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
29909 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
29910 Likewise.
29911 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
29912
29913 2017-08-31 Florian Weimer <fweimer@redhat.com>
29914
29915 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
29916 internal_function.
29917 (GETCWD_RETURN_TYPE): Likewise.
29918
29919 2017-08-31 Florian Weimer <fweimer@redhat.com>
29920
29921 * include/time.h (__tz_compute, __strptime_internal): Remove
29922 internal_function.
29923 * time/strptime_l.c (__strptime_internal): Likewise.
29924 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
29925
29926 2017-08-31 Florian Weimer <fweimer@redhat.com>
29927
29928 * iconv/gconv.c (__gconv): Remove internal_function.
29929 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
29930 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
29931 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
29932 (__gconv_release_cache): Likewise.
29933 * iconv/gconv_close.c (__gconv_close): Likewise.
29934 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
29935 (read_conf_file, __gconv_get_path): Likewise.
29936 * iconv/gconv_db.c (derivation_lookup, add_derivation)
29937 (__gconv_release_step, gen_steps, increment_counter)
29938 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
29939 (__gconv_close_transform, free_modules_db): Likewise.
29940 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
29941 Likewise.
29942 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
29943 (__gconv_find_transform, __gconv_lookup_cache)
29944 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
29945 (__gconv_close_transform, __gconv_release_cache)
29946 (__gconv_loaded_object, __gconv_release_shlib)
29947 (__gconv_compare_alias): Likewise.
29948 * iconv/gconv_open.c (__gconv_open): Likewise.
29949 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
29950 * iconv/iconvconfig.c (add_module): Likewise.
29951 * intl/dcigettext.c (plural_lookup, guess_category_value)
29952 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
29953 * intl/eval-plural.h (plural_eval): Likewise.
29954 * intl/finddomain.c (_nl_find_domain): Likewise.
29955 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
29956 (_nl_load_domain, _nl_find_msg): Likewise.
29957 (internal_function): Remove definition.
29958 * intl/loadinfo.h (internal_function): Likewise.
29959 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
29960 internal_function.
29961 * intl/localealias.c (internal_function): Remove definition.
29962 (read_alias_file): Remove internal_function.
29963 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
29964 * intl/plural-exp.h (internal_function): Remove definition.
29965 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
29966 internal_function.
29967 * intl/plural.c: Regenerate.
29968 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
29969 * locale/coll-lookup.c (__collidx_table_lookup)
29970 (__collseq_table_lookup): Likewise.
29971 * locale/coll-lookup.h (__collidx_table_lookup)
29972 (__collseq_table_lookup): Likewise.
29973 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
29974 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
29975 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
29976 (_nl_unload_locale): Likewise.
29977 * locale/localeinfo.h (struct __locale_data): Remove
29978 internal_function from cleanup member.
29979 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
29980 (_nl_remove_locale, _nl_load_locale_from_archive)
29981 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
29982 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
29983 (_nl_cleanup_time): Remove internal_function.
29984 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
29985 (_nl_parse_alt_digit): Likewise.
29986 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
29987 (_nl_select_era_entry): Likewise.
29988 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
29989 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
29990 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
29991 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
29992 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
29993
29994 2017-08-31 Florian Weimer <fweimer@redhat.com>
29995
29996 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
29997 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
29998 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
29999 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
30000 Likewise.
30001 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
30002 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
30003 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
30004 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
30005 Likewise.
30006 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
30007
30008 2017-08-31 Florian Weimer <fweimer@redhat.com>
30009
30010 * misc/getttyent.c (skip, value): Remove internal_function.
30011 * misc/syslog.c (openlog_internal): Likewise.
30012 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
30013
30014 2017-08-31 Florian Weimer <fweimer@redhat.com>
30015
30016 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
30017 (__nss_rewrite_field): Remove internal_function.
30018 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
30019 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
30020 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
30021 * nss/nsswitch.c (nss_parse_file, nss_getline)
30022 (nss_parse_service_list, nss_new_service): Likewise.
30023 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
30024 * nss/valid_field.c (__nss_valid_field): Likewise.
30025 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
30026
30027 2017-08-31 Florian Weimer <fweimer@redhat.com>
30028
30029 * malloc/arena.c (__malloc_fork_lock_parent)
30030 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
30031 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
30032 internal_function from defintions.
30033 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
30034 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
30035 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
30036 internal_function from declarations.
30037 * malloc/malloc.c (internal_function): Do not define.
30038 (mem2mem_check): Remove internal_function from declaration.
30039 (munmap_chunk, mremap_chunk): Remove internal_function.
30040 * malloc/mtrace.c (tr_where): Likewise.
30041
30042 2017-08-31 Florian Weimer <fweimer@redhat.com>
30043
30044 * include/rpc/pmap_clnt.h (__get_socket): Remove
30045 internal_function.
30046 * sunrpc/auth_des.c (synchronize): Likewise.
30047 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
30048 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
30049 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
30050 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
30051 (key_call): Likewise.
30052 * sunrpc/pm_getport.c (__get_socket): Likewise.
30053 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
30054 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
30055 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
30056 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
30057 (invalidate): Likewise.
30058 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
30059 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
30060 (set_input_fragment, get_input_bytes): Likewise.
30061
30062 2017-08-31 Florian Weimer <fweimer@redhat.com>
30063
30064 * malloc/malloc.c (_int_free): Remove locked variable and related
30065 asserts.
30066
30067 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
30068
30069 [BZ #22051]
30070 * Makerules (build-module-helper-objlist): Filter out
30071 $(elf-objpfx)sofini.os.
30072 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
30073 needed.
30074
30075 2017-08-31 Florian Weimer <fweimer@redhat.com>
30076
30077 * libio/fcloseall.c: Assume weak_alias is defined.
30078 * libio/feof.c: Likewise.
30079 * libio/fileno.c: Likewise.
30080 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
30081 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
30082 definitions.
30083 (_IO_file_open): Call __open directly.
30084 (_IO_new_file_sync): Assume ESPIPE is defined.
30085 (_IO_file_seekoff_maybe_mmap): Call __read directly.
30086 (_IO_new_file_write): Call __write directly.
30087 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
30088 * libio/ftello64.c (__ftello64): Assume EIO is defined.
30089 * libio/genops.c: Assume _LIBC is defined.
30090 (save_for_backup): Remove internal_function.
30091 * libio/getc.c: Assume weak_alias is defined.
30092 * libio/getwc.c: Likewise.
30093 * libio/iofclose.c: Assume _LIBC is defined.
30094 * libio/iofdopen.c: Likewise.
30095 (_IO_fcntl): Remove macro definition.
30096 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
30097 Call __fcntl directly.
30098 * libio/iofflush.c: Assume weak_alias is defined.
30099 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
30100 defined.
30101 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
30102 * libio/iofgets.c: Likewise.
30103 * libio/iofopen.c: Assume _LIBC is defined.
30104 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
30105 * libio/iofputs.c: Assume weak_alias is defined.
30106 * libio/iofread.c: Likewise.
30107 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
30108 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
30109 * libio/ioftell.c: Assume weak_alias is defined.
30110 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
30111 * libio/iofwide.c: Assume _LIBC is defined.
30112 (_IO_fwide): Drop SHARED conditional because it is implied by
30113 SHLIB_COMPAT.
30114 * libio/iofwrite.c: Assume weak_alias is defined.
30115 * libio/iogetdelim.c: Likewise.
30116 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
30117 * libio/iogetwline.c (wmemcpy): Remove macro definition.
30118 (_IO_getwline): Call __wmemcpy directly.
30119 * libio/iopopen.c: Assume _LIBC is defined.
30120 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
30121 (_IO_close): Remove macro definitions.
30122 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
30123 _exit directly.
30124 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
30125 directly.
30126 * libio/ioputs.c: Assume weak_alias is defined.
30127 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
30128 * libio/iosetbuffer.c: Assume weak_alias is defined.
30129 * libio/iosetvbuf.c: Likewise.
30130 * libio/ioungetc.c: Likewise.
30131 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
30132 libc_hidden_def, libc_hidden_weak, NULL are defined.
30133 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
30134 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
30135 defined.
30136 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
30137 definitions.
30138 (_IO_old_file_init_internal): Drop SHARED conditional because it
30139 is implied by SHLIB_COMPAT.
30140 (_IO_old_file_fopen): Call __open directly.
30141 (_IO_old_file_sync): Assume ESPIPE is defined.
30142 (_IO_old_file_write): Call __write directly.
30143 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
30144 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
30145 Call __fcntl directly.
30146 * libio/oldiofgetpos.c: Assume weak_alias is defined.
30147 (_IO_old_fgetpos): Assume EIO is defined.
30148 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
30149 (_IO_old_fgetpos64): Assume EIO is defined.
30150 * libio/oldiofsetpos.c: Assume weak_alias is defined.
30151 (_IO_old_fsetpos): Assume EIO is defined.
30152 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
30153 (_IO_old_fsetpos64): Assume EIO is defined.
30154 * libio/oldiopopen.c: Assume _LIBC is defined.
30155 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
30156 (_IO_close): Remove macro definitions.
30157 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
30158 directly.
30159 (_IO_old_proc_close): Call __close, __waitpid directly.
30160 * libio/put.c: Assume weak_alias is defined.
30161 * libio/stdfiles.c: Assume _LIBC is defined.
30162 * libio/stdio.c: Likewise.
30163 * libio/wfileops.c: Likewise.
30164 (_IO_wfile_sync): Assume ESPIPE is defined.
30165 * libio/wgenops.c: Assume _LIBC is defined.
30166 (save_for_wbackup): Remove internal_function.
30167
30168 2017-08-31 Florian Weimer <fweimer@redhat.com>
30169
30170 * malloc/malloc.c (top_check): Change return type to void. Remove
30171 internal_function.
30172 * malloc/hooks.c (top_check): Likewise.
30173 (malloc_check, realloc_check, memalign_check): Adjust.
30174
30175 2017-08-30 Joseph Myers <joseph@codesourcery.com>
30176
30177 [BZ #21457]
30178 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
30179 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
30180 sigcontext and namespace requirements.
30181 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
30182 * sysdeps/m68k/sys/ucontext.h: Likewise.
30183 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
30184 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
30185 <bits/sigcontext.h>.
30186 (__ctx): Define earlier.
30187 (mcontext_t): Define structure contents rather than using struct
30188 sigcontext.
30189 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
30190 __glibc_reserved1 instead of __reserved.
30191 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
30192 <bits/sigcontext.h>.
30193 (__ctx): Define earlier.
30194 (mcontext_t): Define structure contents rather than using struct
30195 sigcontext.
30196 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
30197 mcontext_t instead of struct sigcontext.
30198 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
30199 <bits/sigcontext.h>.
30200 (__ctx): Define earlier.
30201 (mcontext_t): Define structure contents rather than using struct
30202 sigcontext.
30203 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
30204 <bits/sigcontext.h>.
30205 (__ctx): Define earlier.
30206 (mcontext_t): Define structure contents rather than using struct
30207 sigcontext.
30208 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
30209 mcontext_t instead of struct sigcontext.
30210 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
30211 mcontext_t instead of struct sigcontext.
30212 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
30213 <bits/sigcontext.h>.
30214 (__ctx): New macro.
30215 (struct __ia64_fpreg_mcontext): New type.
30216 (mcontext_t): Define structure contents rather than using struct
30217 sigcontext.
30218 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
30219 (uc_sigmask): Define using __ctx.
30220 (uc_stack): Likewise.
30221 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
30222 <bits/sigcontext.h>.
30223 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
30224 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
30225 <bits/sigcontext.h>.
30226 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
30227 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
30228 <bits/sigcontext.h>.
30229 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
30230 <bits/sigcontext.h>.
30231 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
30232 <bits/sigcontext.h>.
30233 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
30234 <bits/sigcontext.h>.
30235 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
30236 <bits/sigcontext.h>.
30237 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
30238 <bits/sigcontext.h>.
30239 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
30240 <bits/sigcontext.h>.
30241 (__ctx): Define earlier.
30242 (mcontext_t): Define structure contents rather than using struct
30243 sigcontext.
30244 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
30245 <bits/sigcontext.h>. Include <bits/types.h>.
30246 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
30247 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
30248 (test-xfail-XPG42/ucontext.h/conform): Likewise.
30249 (test-xfail-UNIX98/signal.h/conform): Likewise.
30250 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
30251 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
30252 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
30253 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
30254 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
30255 (test-xfail-POSIX2008/signal.h/conform): Likewise.
30256 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
30257 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
30258 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
30259
30260 2017-08-30 Florian Weimer <fweimer@redhat.com>
30261
30262 * malloc/dynarray_emplace_enlarge.c
30263 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
30264 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
30265 * malloc/tst-dynarray.c (test_long_overflow): New function.
30266 (do_test): Call it.
30267
30268 2017-08-30 Florian Weimer <fweimer@redhat.com>
30269
30270 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
30271 (set_arena_corrupt): Remove definitions.
30272 (mtrim): Do not check for corrupt arena.
30273 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
30274 Likewise.
30275
30276 2017-08-30 Florian Weimer <fweimer@redhat.com>
30277
30278 [BZ #21754]
30279 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
30280 check_action.
30281 (ptmalloc_init): Do not set or use check_action.
30282 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
30283 call to malloc_printerr. Remove return statement.
30284 (free_check): Likewise. Remove arena unlock.
30285 (top_check): Update comment. Adjust call to malloc_printerr.
30286 Remove heap repair code.
30287 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
30288 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
30289 (sysmalloc): Adjust call to malloc_printerr.
30290 (munmap_chunk, __libc_realloc): Likewise. Remove return
30291 statement.
30292 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
30293 Remove errout label and corresponding gotos.
30294 (_int_free): Likewise. Remove arena unlock.
30295 (do_set_mallopt_check): Do not set check_action.
30296 (malloc_printerr): Adjust parameter list. Do not mark arena as
30297 corrupt.
30298 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
30299 comment.
30300 * manual/probes.texi (Memory Allocation Probes): Remove
30301 memory_mallopt_check_action.
30302
30303 2017-08-30 Steve Ellcey <sellcey@cavium.com>
30304
30305 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
30306 Use pointer to uint64_t instead of long int for sp.
30307
30308 2017-08-30 Florian Weimer <fweimer@redhat.com>
30309
30310 [BZ #21754]
30311 * malloc/malloc.c (malloc_printerr): Always terminate the process,
30312 without printing a backtrace. Do not leak any information in the
30313 error message.
30314 * manual/memory.texi (Heap Consistency Checking): Update.
30315 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
30316
30317 2017-08-30 Florian Weimer <fweimer@redhat.com>
30318
30319 Do not scale NPTL tests with available number of CPUs.
30320 * nptl/tst-cond16.c (count): Set to constant value of 8.
30321 * nptl/tst-cond18.c (count): Likewise.
30322
30323 2017-08-29 Joseph Myers <joseph@codesourcery.com>
30324
30325 [BZ #22035]
30326 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
30327 Define to take a second argument that is a macro that
30328 concatentates a suffix, not the suffix itself.
30329 (__CONCAT_d): New macro.
30330 (__CONCAT_f): Likewise.
30331 (__CONCAT_l): Likewise.
30332
30333 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
30334
30335 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
30336 by child.
30337
30338 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30339 Aurelien Jarno <aurelien@aurel32.net>
30340 Maciej W. Rozycki <macro@imgtec.com>
30341
30342 [BZ #21956]
30343 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
30344 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
30345 `mips16-syscall6' and `mips16-syscall7'.
30346 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
30347 (CFLAGS-mips16-syscall7.c): Remove.
30348 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
30349 Remove `__mips16_syscall5', `__mips16_syscall6' and
30350 `__mips16_syscall7'.
30351 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
30352 (__mips16_syscall0): Rename `__mips16_syscall_return' to
30353 `__mips_syscall_return'.
30354 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
30355 (__mips16_syscall1): Likewise.
30356 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
30357 (__mips16_syscall2): Likewise.
30358 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
30359 (__mips16_syscall3): Likewise.
30360 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
30361 (__mips16_syscall4): Likewise.
30362 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
30363 Remove.
30364 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
30365 Remove.
30366 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
30367 Remove.
30368 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
30369 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
30370 `__mips16_syscall5'. Remove prototype.
30371 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
30372 `__mips16_syscall6'. Remove prototype.
30373 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
30374 `__mips16_syscall7'. Remove prototype.
30375 (__nomips16, __mips16_syscall_return): Move to...
30376 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
30377 (__nomips16, __mips_syscall_return): ... here.
30378 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
30379 `__mips16_syscall_return' to `__mips_syscall_return'.
30380 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
30381 `internal_syscall##nr'.
30382 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
30383 `internal_syscall##nr'.
30384 (FORCE_FRAME_POINTER): Remove.
30385 (__mips_syscall5): New prototype.
30386 (internal_syscall5): Rewrite to call `__mips_syscall5'.
30387 (__mips_syscall6): New prototype.
30388 (internal_syscall6): Rewrite to call `__mips_syscall6'.
30389 (__mips_syscall7): New prototype.
30390 (internal_syscall7): Rewrite to call `__mips_syscall7'.
30391 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
30392 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
30393 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
30394 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
30395 (sysdep_routines): Add libc-do-syscall.
30396 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
30397 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
30398
30399 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30400
30401 [BZ #21672]
30402 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
30403 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
30404 (advise_stack_range): New function.
30405 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
30406 stack non required to advise_stack_range at allocatestack.c
30407
30408 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
30409
30410 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
30411
30412 2017-08-29 Florian Weimer <fweimer@redhat.com>
30413
30414 [BZ #22026]
30415 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
30416 __end_fct. Mangle __end_fct after setting it to NULL.
30417 * iconv/Makefile (tests): Add tst-gconv-init-failure.
30418 (modules-names, modules-names-tests): Add
30419 tst-gconv-init-failure-mod.
30420 (gconv-modules): New target.
30421 (tst-gconv-init-failure-mod.so): Link against libsupport.
30422 (tst-gconv-init-failure): Depend on gconv-modules,
30423 tst-gconv-init-failure-mod.so.
30424 * iconv/tst-gconv-init-failure-mod.c: New file.
30425 * iconv/tst-gconv-init-failure.c: Likewise.
30426 * iconv/test-gconv-modules: Likewise.
30427
30428 2017-08-29 Florian Weimer <fweimer@redhat.com>
30429
30430 [BZ #22025]
30431 * iconv/gconv_db.c (free_derivation): Remove redundant
30432 parentheses.
30433 (gen_steps): Unconditionally mangle __btowc_fct after
30434 initialization.
30435 (increment_counter): Likewise. Do not call init_fct for internal
30436 modules.
30437
30438 2017-08-29 Joseph Myers <joseph@codesourcery.com>
30439
30440 [BZ #22028]
30441 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
30442 (_MSUF_): Remove macro.
30443 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
30444 Likewise.
30445 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
30446 (__REDIRFROM_X): New macro.
30447 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
30448 Likewise.
30449 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
30450 (__REDIRTO_X): Likewise.
30451 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
30452 arguments.
30453 (__MATH_REDIRCALL_2): Likewise.
30454 (__MATH_REDIRCALL_INTERNAL): Likewise.
30455 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
30456 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
30457 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
30458 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
30459 * math/test-finite-macros.c: New file.
30460 * math/Makefile (tests): Add test-finite-macros.
30461 (CFLAGS-test-finite-macros.c): New variable.
30462
30463 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
30464 Jeff Law <law@redhat.com>
30465
30466 [BZ #22025]
30467 Mangle NULL pointers in iconv/gconv.
30468 * iconv/gconv_cache.c (find_module): Demangle init_fct before
30469 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
30470 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
30471 is non-NULL before demangling the end_fct. Check for NULL
30472 end_fct after demangling.
30473 (__gconv_release_step): Demangle the end_fct before checking
30474 it for NULL. Remove assert on __shlibc_handle != NULL.
30475 (gen_steps): Don't check btowc_fct for NULL before mangling.
30476 Demangle init_fct before checking for NULL.
30477 (increment_counter): Likewise.
30478 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
30479 end_fct for NULL before mangling.
30480 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
30481 for NULL.
30482
30483 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
30484
30485 [BZ #21971]
30486 * locale/iso-639.def: add Morisyen.
30487
30488 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30489
30490 [BZ #21930]
30491 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
30492 (iszero): New C++ implementation that does not use
30493 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
30494 signaling nans are enabled, since __builtin_types_compatible_p
30495 is a C-only feature.
30496 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
30497 defined, include ieee754_float128.h for access to the union and
30498 member ieee854_float128.ieee.
30499 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
30500 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
30501 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
30502 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
30503 options of test-math-zero on powerpc64le.
30504
30505 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
30506
30507 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
30508 Change double to float.
30509
30510 2017-08-28 Joseph Myers <joseph@codesourcery.com>
30511
30512 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
30513 unconditional.
30514 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
30515 conditional code; define contents only for [LIBM_SVID_COMPAT].
30516
30517 2017-08-28 Florian Weimer <fweimer@redhat.com>
30518
30519 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
30520 (abi-lp64_be-options): Remove.
30521 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
30522 (abi-hard-options): Likewise.
30523 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
30524 (abi-o32_hard-options, abi-o32_soft_2008-options)
30525 (abi-o32_hard_2008-options, abi-n32_soft-options)
30526 (abi-n32_hard-options, abi-n32_soft_2008-options)
30527 (abi-n32_hard_2008-options, abi-n64_soft-options)
30528 (abi-n64_hard-options, abi-n64_soft_2008-options)
30529 (abi-n64_hard_2008-options): Likewise.
30530 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
30531 (abi-64-v1-options, abi-64-v2-options): Likewise.
30532 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
30533 (abi-64-options): Likewise.
30534 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
30535 (abi-64-options): Likewise.
30536 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
30537 (abi-64-options): Likewise.
30538 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
30539 (abi-64-options, abi-x32-options): Likewise.
30540
30541 2017-08-28 Florian Weimer <fweimer@redhat.com>
30542
30543 Store supported list of SYS_* system calls in the source tree.
30544 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
30545 (bits/syscall.h): Generate from list file.
30546 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
30547 [$(subdir) = misc] (tests): Add tst-syscall-list.
30548 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
30549 [$(subdir) = misc] (tst-syscall-list-macros.list)
30550 [$(subdir) = misc] (tst-syscall-list-nr.list)
30551 (tst-syscall-list-sys.list): Helper targets for new
30552 tst-syscall-list test.
30553 [$(subdir) = misc] (tst-syscall-list.out): Run test script
30554 tst-syscall-list.sh.
30555 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
30556 target. Do not include bits/syscall.d.
30557 [$(subdir) = misc] (generated): Do not update.
30558 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
30559 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
30560 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
30561 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
30562
30563 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
30564
30565 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
30566 (tst-cxa_atexit, tst-on_exit): Likewise.
30567 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
30568 tst-cxa_atexit, and tst-on_exit.
30569 * stdlib/tst-atexit-common.c: New file.
30570 * stdlib/tst-atexit.c: New file.
30571 * stdlib/tst-at_quick_exit.c: New file.
30572 * stdlib/tst-cxa_atexit.c: New file.
30573 * stdlib/tst-on_exit.c: New file.
30574
30575 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
30576
30577 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
30578 * mach/stack_chk_fail_local.c: New file.
30579 * hurd/stack_chk_fail_local.c: New file.
30580 * mach/Machrules ($(interface-library)-routines): Add
30581 stack_chk_fail_local.
30582 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
30583 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
30584 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
30585 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
30586 * hurd/Makefile (CFLAGS-hurdstartup.o,
30587 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
30588
30589 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
30590
30591 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
30592 (index_cpu_*, index_arch_*): Removed.
30593
30594 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
30595
30596 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
30597 Use uint64_t instead of unsigned long.
30598
30599 2017-08-25 Joseph Myers <joseph@codesourcery.com>
30600
30601 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
30602 [__HAVE_DISTINCT_FLOAT128].
30603
30604 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
30605 of <bits/math-finite.h>.
30606 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
30607 inclusion of <bits/math-finite.h>.
30608 * math/bits/math-finite.h (__REDIRTO_X): Do not define
30609 conditionally on [__MATH_DECLARING_LDOUBLE && defined
30610 __NO_LONG_DOUBLE_MATH].
30611 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
30612 (__MATH_REDIRCALL_2): Likewise.
30613 (__MATH_REDIRCALL_INTERNAL): Likewise.
30614 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
30615 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
30616 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
30617
30618 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
30619 Remove file.
30620 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
30621 Likewise.
30622 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
30623 Likewise.
30624 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
30625 Likewise.
30626 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
30627 Likewise.
30628 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
30629 Likewise.
30630 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30631 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30632 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30633 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30634 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
30635 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
30636 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
30637 w_sqrtf_compat-ppc32.
30638
30639 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30640
30641 * math/math.h [defined __cplusplus] (issignaling): In the long
30642 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
30643 is not defined. Call __issignaling, otherwise.
30644
30645 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30646
30647 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
30648 syscall definitions and replace __builtin_expect with __glibc_likely.
30649 * sysdeps/unix/syscall-template.S: Update comment about cancellable
30650 syscall.
30651 (SYSCALL_CANCELLABLE): Removedefinition
30652 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
30653 definition.
30654 (PSEUDO_END): Likewise.
30655 [IS_IN (libpthread)] (CENABLE): Likewise.
30656 [IS_IN (libpthread)] (CDISABLE): Likewise.
30657 [IS_IN (libc)] (CENABLE): Likewise.
30658 [IS_IN (libc)] (CENABLE): Likewise.
30659 [IS_IN (librt)] (CDISABLE): Likewise.
30660 [IS_IN (librt)] (CDISABLE): Likewise.
30661 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30662 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
30663 definition.
30664 (PSEUDO_END): Likewise.
30665 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
30666 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
30667 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
30668 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
30669 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
30670 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
30671 (CENABLE): Likewise.
30672 (CDISABLE): Likewise.
30673 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30674 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
30675 defintion.
30676 (PSEUDO_END): Likewise.
30677 [IS_IN (libpthread)] (CENABLE): Likewise.
30678 [IS_IN (libpthread)] (CDISABLE): Likewise.
30679 [IS_IN (libc)] (CENABLE): Likewise.
30680 [IS_IN (libc)] (CENABLE): Likewise.
30681 [IS_IN (librt)] (CDISABLE): Likewise.
30682 [IS_IN (librt)] (CDISABLE): Likewise.
30683 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30684 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
30685 definition.
30686 (PSEUDO_END): Likewise.
30687 [IS_IN (libpthread)] (CENABLE): Likewise.
30688 [IS_IN (libpthread)] (CDISABLE): Likewise.
30689 [IS_IN (libc)] (CENABLE): Likewise.
30690 [IS_IN (libc)] (CENABLE): Likewise.
30691 [IS_IN (librt)] (CDISABLE): Likewise.
30692 [IS_IN (librt)] (CDISABLE): Likewise.
30693 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30694 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
30695 definition.
30696 (PSEUDO_END): Likewise.
30697 [IS_IN (libpthread)] (CENABLE): Likewise.
30698 [IS_IN (libpthread)] (CDISABLE): Likewise.
30699 [IS_IN (libc)] (CENABLE): Likewise.
30700 [IS_IN (libc)] (CENABLE): Likewise.
30701 [IS_IN (librt)] (CDISABLE): Likewise.
30702 [IS_IN (librt)] (CDISABLE): Likewise.
30703 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30704 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
30705 definition.
30706 (PSEUDO_END): Likewise.
30707 [IS_IN (libpthread)] (CENABLE): Likewise.
30708 [IS_IN (libpthread)] (CDISABLE): Likewise.
30709 [IS_IN (libc)] (CENABLE): Likewise.
30710 [IS_IN (libc)] (CENABLE): Likewise.
30711 [IS_IN (librt)] (CDISABLE): Likewise.
30712 [IS_IN (librt)] (CDISABLE): Likewise.
30713 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30714 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
30715 definition.
30716 (PSEUDO_END): Likewise.
30717 [IS_IN (libpthread)] (CENABLE): Likewise.
30718 [IS_IN (libpthread)] (CDISABLE): Likewise.
30719 [IS_IN (libc)] (CENABLE): Likewise.
30720 [IS_IN (libc)] (CENABLE): Likewise.
30721 [IS_IN (librt)] (CDISABLE): Likewise.
30722 [IS_IN (librt)] (CDISABLE): Likewise.
30723 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30724 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
30725 definition.
30726 (PSEUDO_END): Likewise.
30727 [IS_IN (libpthread)] (CENABLE): Likewise.
30728 [IS_IN (libpthread)] (CDISABLE): Likewise.
30729 [IS_IN (libc)] (CENABLE): Likewise.
30730 [IS_IN (libc)] (CENABLE): Likewise.
30731 [IS_IN (librt)] (CDISABLE): Likewise.
30732 [IS_IN (librt)] (CDISABLE): Likewise.
30733 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30734 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
30735 Remove definition.
30736 (PSEUDO_END): Likewise.
30737 [IS_IN (libpthread)] (CENABLE): Likewise.
30738 [IS_IN (libpthread)] (CDISABLE): Likewise.
30739 [IS_IN (libc)] (CENABLE): Likewise.
30740 [IS_IN (libc)] (CENABLE): Likewise.
30741 [IS_IN (librt)] (CDISABLE): Likewise.
30742 [IS_IN (librt)] (CDISABLE): Likewise.
30743 (SINGLE_THREAD_P): Likewise.
30744 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
30745 definition.
30746 (PSEUDO_END): Likewise.
30747 [IS_IN (libpthread)] (CENABLE): Likewise.
30748 [IS_IN (libpthread)] (CDISABLE): Likewise.
30749 [IS_IN (libc)] (CENABLE): Likewise.
30750 [IS_IN (libc)] (CENABLE): Likewise.
30751 [IS_IN (librt)] (CDISABLE): Likewise.
30752 [IS_IN (librt)] (CDISABLE): Likewise.
30753 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30754 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
30755 definition.
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/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
30765 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
30766 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
30767 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
30768 definition.
30769 (PSEUDO_END): Likewise.
30770 [IS_IN (libpthread)] (CENABLE): Likewise.
30771 [IS_IN (libpthread)] (CDISABLE): Likewise.
30772 [IS_IN (libc)] (CENABLE): Likewise.
30773 [IS_IN (libc)] (CENABLE): Likewise.
30774 [IS_IN (librt)] (CDISABLE): Likewise.
30775 [IS_IN (librt)] (CDISABLE): Likewise.
30776 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30777 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
30778 definition.
30779 (PSEUDO_END): Likewise.
30780 [IS_IN (libpthread)] (CENABLE): Likewise.
30781 [IS_IN (libpthread)] (CDISABLE): Likewise.
30782 [IS_IN (libc)] (CENABLE): Likewise.
30783 [IS_IN (libc)] (CENABLE): Likewise.
30784 [IS_IN (librt)] (CDISABLE): Likewise.
30785 [IS_IN (librt)] (CDISABLE): Likewise.
30786 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30787 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
30788 definition.
30789 (PSEUDO_END): Likewise.
30790 [IS_IN (libpthread)] (CENABLE): Likewise.
30791 [IS_IN (libpthread)] (CDISABLE): Likewise.
30792 [IS_IN (libc)] (CENABLE): Likewise.
30793 [IS_IN (libc)] (CENABLE): Likewise.
30794 [IS_IN (librt)] (CDISABLE): Likewise.
30795 [IS_IN (librt)] (CDISABLE): Likewise.
30796 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30797 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
30798 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
30799 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
30800 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
30801 definition.
30802 (PSEUDO_END): Likewise.
30803 [IS_IN (libpthread)] (CENABLE): Likewise.
30804 [IS_IN (libpthread)] (CDISABLE): Likewise.
30805 [IS_IN (libc)] (CENABLE): Likewise.
30806 [IS_IN (libc)] (CENABLE): Likewise.
30807 [IS_IN (librt)] (CDISABLE): Likewise.
30808 [IS_IN (librt)] (CDISABLE): Likewise.
30809 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30810 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
30811 definition.
30812 (PSEUDO_END): Likewise.
30813 [IS_IN (libpthread)] (CENABLE): Likewise.
30814 [IS_IN (libpthread)] (CDISABLE): Likewise.
30815 [IS_IN (libc)] (CENABLE): Likewise.
30816 [IS_IN (libc)] (CENABLE): Likewise.
30817 [IS_IN (librt)] (CDISABLE): Likewise.
30818 [IS_IN (librt)] (CDISABLE): Likewise.
30819 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30820
30821 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
30822
30823 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
30824
30825 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30826
30827 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30828
30829 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30830
30831 [BZ #21982]
30832 * string/stratcliff.c (do_test): Declare size, nchars, inner,
30833 middle and outer with size_t instead of int. Repleace %d and
30834 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
30835 "MAX (outer, nchars - 64)" to support unsigned outer and
30836 nchars. Also exit loop when outer == 0.
30837
30838 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30839
30840 * include/fcntl.h (__fcntl_nocancel): Remove definition.
30841 * include/signal.h (__sigsuspend_nocancel): Likewise.
30842 * include/time.h (__nanosleep_nocancel): Likewise.
30843 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
30844 * login/utmp_file.c: Include non cancellable syscall header.
30845 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
30846 prototype.
30847
30848 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30849
30850 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
30851 .byte sequences with AVX512F instructions.
30852 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
30853 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
30854 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
30855 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
30856 Likewise.
30857 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
30858 Likewise.
30859
30860 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
30861 Steve Ellcey <sellcey@cavium.com>
30862
30863 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
30864 Use PTR_REG macro in cmp instruction.
30865
30866 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30867
30868 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
30869 Change the return type of the ifunc resolver to match the return
30870 type of the target function.
30871
30872 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30873
30874 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
30875 (preadv64): Likewise.
30876 (pwrite64(: Likewise.
30877 (pwritev64): Likewise.
30878
30879 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
30880 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
30881 (LOAD_ARGS_0): Likewise.
30882 (LOAD_ARGS_1): Likewise.
30883 (LOAD_ARGS_2): Likewise.
30884 (LOAD_ARGS_3): Likewise.
30885 (LOAD_ARGS_4): Likewise.
30886 (LOAD_ARGS_5): Likewise.
30887 (LOAD_ARGS_6): Likewise.
30888 (LOAD_REGS_0): Likewise.
30889 (LOAD_REGS_1): Likewise.
30890 (LOAD_REGS_2): Likewise.
30891 (LOAD_REGS_3): Likewise.
30892 (LOAD_REGS_4): Likewise.
30893 (LOAD_REGS_5): Likewise.
30894 (LOAD_REGS_6): Likewise.
30895 (ASM_ARGS_0): Likewise.
30896 (ASM_ARGS_1): Likewise.
30897 (ASM_ARGS_2): Likewise.
30898 (ASM_ARGS_3): Likewise.
30899 (ASM_ARGS_4): Likewise.
30900 (ASM_ARGS_5): Likewise.
30901 (ASM_ARGS_6): Likewise.
30902 (LOAD_ARGS_TYPES_1): Likewise.
30903 (LOAD_ARGS_TYPES_2): Likewise.
30904 (LOAD_ARGS_TYPES_3): Likewise.
30905 (LOAD_ARGS_TYPES_4): Likewise.
30906 (LOAD_ARGS_TYPES_5): Likewise.
30907 (LOAD_ARGS_TYPES_6): Likewise.
30908 (LOAD_REGS_TYPES_1): Likewise.
30909 (LOAD_REGS_TYPES_2): Likewise.
30910 (LOAD_REGS_TYPES_3): Likewise.
30911 (LOAD_REGS_TYPES_4): Likewise.
30912 (LOAD_REGS_TYPES_5): Likewise.
30913 (LOAD_REGS_TYPES_6): Likewise.
30914 (TYPEFY): New define.
30915 (ARGIFY): Likewise.
30916 (internal_syscall0): Likewise.
30917 (internal_syscall1): Likewise.
30918 (internal_syscall2): Likewise.
30919 (internal_syscall3): Likewise.
30920 (internal_syscall4): Likewise.
30921 (internal_syscall5): Likewise.
30922 (internal_syscall6): Likewise.
30923 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
30924 (INTERNAL_SYSCALL_NCS): Remove define.
30925 (internal_syscall1): Add define.
30926
30927 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30928
30929 * math/w_remainder_compat.c: Remove duplicate inclusion of
30930 math-svid-compat.h.
30931 * math/w_remainderf_compat.c: Likewise.
30932 * math/w_remainderl_compat.c: Likewise.
30933
30934 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30935
30936 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30937
30938 2017-08-22 Joseph Myers <joseph@codesourcery.com>
30939
30940 [BZ #21684]
30941 * math/tgmath.h (__floating_type): Simplify definitions.
30942 (__real_integer_type): New macro.
30943 (__complex_integer_type): Likewise.
30944 (__expr_is_real): Likewise.
30945 (__tgmath_real_type_sub): Update comment to describe handling of
30946 complex types.
30947 (__tgmath_complex_type_sub): New macro.
30948 (__tgmath_complex_type): Likewise.
30949 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
30950 (__TGMATH_CF128): Use __expr_is_real.
30951 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
30952 __expr_is_real.
30953 (__TGMATH_BINARY_REAL_IMAG): Likewise.
30954 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
30955 * math/gen-tgmath-tests.py (Type.create_type): Create complex
30956 integer types.
30957
30958 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30959
30960 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
30961 macro.
30962 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
30963 alias.
30964 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
30965 Likewise.
30966
30967 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
30968 nanosleep_not_cancel with __nanosleep_nocancel.
30969 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
30970 (__nanosleep_nocancel): New macro.
30971 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
30972 function.
30973 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
30974 macro.
30975 (__nanosleep_nocancel): New prototype.
30976
30977 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
30978 pause_not_cancel with __pause_nocancel.
30979 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
30980 (__pause_nocancel): New macro.
30981 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
30982 macro.
30983 (__pause_nocancel): New prototype.
30984 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
30985
30986 2017-08-22 Martin Sebor <msebor@redhat.com>
30987
30988 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
30989 to return a pointer to the same type as the target function.
30990
30991 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
30992
30993 [BZ #18822]
30994 [BZ #21986]
30995 * include/printf.h (__printf_fphex): Add attribute_hidden.
30996 (__guess_grouping): New prototype.
30997 * stdio-common/printf_fp.c (__guess_grouping): Removed.
30998 * stdio-common/reg-printf.c (__register_printf_specifier): Add
30999 libc_hidden_proto and libc_hidden_def.
31000 * stdlib/strfmon_l.c (__guess_grouping): Removed.
31001 (__vstrfmon_l): Remove the third argument passed to
31002 __guess_grouping.
31003
31004 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31005
31006 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
31007 definition for issignaling that does not rely on __MATH_TG,
31008 since __MATH_TG uses __builtin_types_compatible_p, which is only
31009 available in C mode.
31010 (CFLAGS-test-math-issignaling.cc): New variable.
31011 * math/Makefile [CXX] (tests): Add test-math-issignaling.
31012 * math/test-math-issignaling.cc: New test for C++ implementation
31013 of type-generic issignaling.
31014 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
31015 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
31016 options of test-math-issignaling on powerpc64le.
31017
31018 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
31019
31020 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
31021 building libc.a.
31022 (hidden_proto): Likewise.
31023 (hidden_tls_proto): Likewise.
31024 (__hidden_proto): Likewise.
31025
31026 2017-08-22 Florian Weimer <fweimer@redhat.com>
31027
31028 math: Statically link tests of internal functionality.
31029 * math/Makefile (tests): Remove atest-exp, atest-sincos,
31030 atest-exp2.
31031 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
31032 (gmp-objs): Remove assignment.
31033 (atest-exp, atest-sincos, atest-exp2): Remove targets.
31034
31035 2017-08-22 Joseph Myers <joseph@codesourcery.com>
31036
31037 [BZ #21987]
31038 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
31039 and copy to ...
31040 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
31041 ... here.
31042 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
31043 ... and here.
31044
31045 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
31046 variable definitions above inclusion of ../Rules.
31047
31048 2017-08-21 Joseph Myers <joseph@codesourcery.com>
31049
31050 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
31051 case calling __builtin_unreachable.
31052
31053 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31054
31055 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
31056 __waitpid_nocancel.
31057 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
31058 (__waitpid_nocancel): New macro.
31059 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
31060 macro.
31061 (__waitpid_nocancel): Replace macro with a function.
31062 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
31063 function.
31064
31065 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
31066 __fcntl_nocancel.
31067 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
31068 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
31069
31070 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
31071 __writev_nocancel_nostatus.
31072 (write_call_graph): Likewise.
31073 (write_bb_counts): Likewise.
31074 * resolv/herror.c (herror): Likewise.
31075 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
31076 macro.
31077 (__writev_nocancel_nostatus): New macro.
31078 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
31079 Remove macro.
31080 (__writev_nocancel_nostatus): New function.
31081
31082 2017-08-21 Joseph Myers <joseph@codesourcery.com>
31083
31084 Revert:
31085 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31086
31087 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
31088 building libc.a.
31089 (hidden_proto): Likewise.
31090 (hidden_tls_proto): Likewise.
31091 (__hidden_proto): Likewise.
31092
31093 [BZ #21973]
31094 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
31095 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
31096 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
31097 Likewise.
31098 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
31099 Likewise.
31100 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
31101 Likewise.
31102 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
31103 Likewise.
31104 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
31105 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
31106 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
31107 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
31108 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
31109 GLIBC_2.0 sqrtl symbol.
31110
31111 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
31112 [__USE_MISC] (_LIB_VERSION): Likewise.
31113 [__USE_MISC] (struct exception): Likewise.
31114 [__USE_MISC] (matherr): Likewise.
31115 [__USE_MISC] (DOMAIN): Likewise.
31116 [__USE_MISC] (SING): Likewise.
31117 [__USE_MISC] (OVERFLOW): Likewise.
31118 [__USE_MISC] (UNDERFLOW): Likewise.
31119 [__USE_MISC] (TLOSS): Likewise.
31120 [__USE_MISC] (PLOSS): Likewise.
31121 [__USE_MISC] (HUGE): Likewise.
31122 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
31123 * math/math-svid-compat.h: New file.
31124 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
31125 and matherrl.
31126 * include/math.h [!_ISOMAC] (__matherr): Remove.
31127 * manual/arith.texi (FP Exceptions): Do not document matherr.
31128 * math/Makefile (tests): Change test-matherr to test-matherr-3.
31129 (tests-internal): New variable.
31130 (install-lib): Do not add libieee.a.
31131 (non-lib.a): Likewise.
31132 (extra-objs): Do not add libieee.a and ieee-math.o.
31133 (CPPFLAGS-s_lib_version.c): Remove variable.
31134 ($(objpfx)libieee.a): Remove rule.
31135 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
31136 * math/ieee-math.c: Remove.
31137 * math/libm-test-support.c (matherr): Remove.
31138 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
31139 and license notices. Include <math-svid-compat.h> and
31140 <shlib-compat.h>.
31141 (matherr): Undefine as macro. Use compat_symbol_reference.
31142 (_LIB_VERSION): Likewise.
31143 * math/test-matherr-2.c: New file.
31144 * math/test-matherr-3.c: Likewise.
31145 * sysdeps/generic/math_private.h (__kernel_standard): Remove
31146 declaration.
31147 (__kernel_standard_f): Likewise.
31148 (__kernel_standard_l): Likewise.
31149 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
31150 <math_private.h>. Include <math-svid-compat.h>.
31151 (_LIB_VERSION): Undefine as macro.
31152 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
31153 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
31154 [LIBM_SVID_COMPAT], use compat_symbol.
31155 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
31156 <math_private.h>. Include <math-svid-compat.h>.
31157 (matherr): Undefine as macro.
31158 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
31159 compat_symbol.
31160 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
31161 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
31162 compat_symbol_reference.
31163 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
31164 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
31165 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
31166 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
31167 (MATHERR_D): Remove declaration.
31168 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
31169 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
31170 [LIBM_BUILD] (pmatherrf): Likewise.
31171 [LIBM_BUILD] (pmatherr): Likewise.
31172 [LIBM_BUILD] (pmatherrl): Likewise.
31173 (DOMAIN): Likewise.
31174 (SING): Likewise.
31175 (OVERFLOW): Likewise.
31176 (UNDERFLOW): Likewise.
31177 (TLOSS): Likewise.
31178 (PLOSS): Likewise.
31179 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
31180 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
31181 compat_symbol.
31182 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
31183 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
31184 compat_symbol.
31185 * math/lgamma-compat.h: Include <math-svid-compat.h>.
31186 * math/w_acos_compat.c: Likewise.
31187 * math/w_acosf_compat.c: Likewise.
31188 * math/w_acosh_compat.c: Likewise.
31189 * math/w_acoshf_compat.c: Likewise.
31190 * math/w_acoshl_compat.c: Likewise.
31191 * math/w_acosl_compat.c: Likewise.
31192 * math/w_asin_compat.c: Likewise.
31193 * math/w_asinf_compat.c: Likewise.
31194 * math/w_asinl_compat.c: Likewise.
31195 * math/w_atan2_compat.c: Likewise.
31196 * math/w_atan2f_compat.c: Likewise.
31197 * math/w_atan2l_compat.c: Likewise.
31198 * math/w_atanh_compat.c: Likewise.
31199 * math/w_atanhf_compat.c: Likewise.
31200 * math/w_atanhl_compat.c: Likewise.
31201 * math/w_cosh_compat.c: Likewise.
31202 * math/w_coshf_compat.c: Likewise.
31203 * math/w_coshl_compat.c: Likewise.
31204 * math/w_exp10_compat.c: Likewise.
31205 * math/w_exp10f_compat.c: Likewise.
31206 * math/w_exp10l_compat.c: Likewise.
31207 * math/w_exp2_compat.c: Likewise.
31208 * math/w_exp2f_compat.c: Likewise.
31209 * math/w_exp2l_compat.c: Likewise.
31210 * math/w_fmod_compat.c: Likewise.
31211 * math/w_fmodf_compat.c: Likewise.
31212 * math/w_fmodl_compat.c: Likewise.
31213 * math/w_hypot_compat.c: Likewise.
31214 * math/w_hypotf_compat.c: Likewise.
31215 * math/w_hypotl_compat.c: Likewise.
31216 * math/w_j0_compat.c: Likewise.
31217 * math/w_j0f_compat.c: Likewise.
31218 * math/w_j0l_compat.c: Likewise.
31219 * math/w_j1_compat.c: Likewise.
31220 * math/w_j1f_compat.c: Likewise.
31221 * math/w_j1l_compat.c: Likewise.
31222 * math/w_jn_compat.c: Likewise.
31223 * math/w_jnf_compat.c: Likewise.
31224 * math/w_jnl_compat.c: Likewise.
31225 * math/w_lgamma_main.c: Likewise.
31226 * math/w_lgamma_r_compat.c: Likewise.
31227 * math/w_lgammaf_main.c: Likewise.
31228 * math/w_lgammaf_r_compat.c: Likewise.
31229 * math/w_lgammal_main.c: Likewise.
31230 * math/w_lgammal_r_compat.c: Likewise.
31231 * math/w_log10_compat.c: Likewise.
31232 * math/w_log10f_compat.c: Likewise.
31233 * math/w_log10l_compat.c: Likewise.
31234 * math/w_log2_compat.c: Likewise.
31235 * math/w_log2f_compat.c: Likewise.
31236 * math/w_log2l_compat.c: Likewise.
31237 * math/w_log_compat.c: Likewise.
31238 * math/w_logf_compat.c: Likewise.
31239 * math/w_logl_compat.c: Likewise.
31240 * math/w_pow_compat.c: Likewise.
31241 * math/w_powf_compat.c: Likewise.
31242 * math/w_powl_compat.c: Likewise.
31243 * math/w_remainder_compat.c: Likewise.
31244 * math/w_remainderf_compat.c: Likewise.
31245 * math/w_remainderl_compat.c: Likewise.
31246 * math/w_scalb_compat.c: Likewise.
31247 * math/w_scalbf_compat.c: Likewise.
31248 * math/w_scalbl_compat.c: Likewise.
31249 * math/w_sinh_compat.c: Likewise.
31250 * math/w_sinhf_compat.c: Likewise.
31251 * math/w_sinhl_compat.c: Likewise.
31252 * math/w_sqrt_compat.c: Likewise.
31253 * math/w_sqrtf_compat.c: Likewise.
31254 * math/w_sqrtl_compat.c: Likewise.
31255 * math/w_tgamma_compat.c: Likewise.
31256 * math/w_tgammaf_compat.c: Likewise.
31257 * math/w_tgammal_compat.c: Likewise.
31258 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
31259 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
31260 * sysdeps/ieee754/k_standard.c: Likewise.
31261 * sysdeps/ieee754/k_standardf.c: Likewise.
31262 * sysdeps/ieee754/k_standardl.c: Likewise.
31263 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
31264 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
31265 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
31266 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
31267 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
31268 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
31269 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
31270 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
31271 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
31272 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
31273 Likewise.
31274 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
31275 Likewise.
31276 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
31277 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
31278 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
31279 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
31280
31281 2017-08-21 Florian Weimer <fweimer@redhat.com>
31282
31283 [BZ #21864]
31284 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
31285 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
31286 Move before inclusion of ../Rules.
31287
31288 2017-08-21 Florian Weimer <fweimer@redhat.com>
31289
31290 [BZ #21972]
31291 * assert/assert.h (assert): Use static_cast (bool) for C++.
31292 Use the ternary operator in the warning branch for GNU C.
31293 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
31294 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
31295 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
31296 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
31297 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
31298
31299 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31300
31301 [BZ #18822]
31302 * sysdeps/unix/sysv/linux/x86_64/init-first.c
31303 (__syscall_clock_gettime): Add attribute_hidden.
31304 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
31305 (__start_context): Likewise.
31306
31307 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31308
31309 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
31310 building libc.a.
31311 (hidden_proto): Likewise.
31312 (hidden_tls_proto): Likewise.
31313 (__hidden_proto): Likewise.
31314
31315 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31316
31317 * include/libc-symbols.h (attribute_hidden): Enable hidden
31318 visibility in libc.a compiled with PIE.
31319
31320 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31321
31322 [BZ #18822]
31323 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
31324 Add attribute_hidden.
31325
31326 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31327
31328 [BZ #21864]
31329 * Makerules (all-nonlib): Add $(others-extras).
31330 * catgets/Makefile (others-extras): New.
31331 * elf/Makefile (others-extras): Likewise.
31332 * nss/Makefile (others-extras): Likewise.
31333
31334 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31335
31336 [BZ #18822]
31337 * csu/libc-start.c (__libc_multiple_libcs): Removed.
31338 * elf/dl-open.c: Include <libc-internal.h>.
31339 (__libc_multiple_libcs): Removed.
31340 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
31341 <hp-timing.h>.
31342 * include/libc-internal.h (__libc_multiple_libcs): New.
31343 * misc/sbrk.c: Include <libc-internal.h>.
31344 (__libc_multiple_libcs): Removed.
31345
31346 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31347
31348 [BZ #18822]
31349 * grp/initgroups.c (__nss_group_database): Removed.
31350 (__nss_initgroups_database): Likewise.
31351 * nscd/gai.c (__nss_hosts_database): Likewise.
31352 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
31353 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
31354 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
31355 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
31356 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
31357 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
31358 attribute_hidden.
31359 * nss/nsswitch.c (__nss_database_custom): Define only if
31360 USE_NSCD is defined.
31361 (__nss_configure_lookup): Use __nss_database_custom only if
31362 USE_NSCD is defined.
31363 * nss/nsswitch.h (__nss_database_custom): Declare only if
31364 USE_NSCD is defined. Add attribute_hidden.
31365 (__nss_setent): Add attribute_hidden.
31366 (__nss_endent): Likewise.
31367 (__nss_getent_r): Likewise.
31368 (__nss_getent): Likewise.
31369 (DEFINE_DATABASE): Declare __nss_##arg##_database.
31370
31371 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31372
31373 [BZ #18822]
31374 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
31375 libc_hidden_proto and libc_hidden_def.
31376
31377 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31378
31379 [BZ #18822]
31380 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
31381 Add libc_hidden_proto.
31382 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
31383 Add libc_hidden_def.
31384
31385 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31386
31387 [BZ #21974]
31388 * gmon/Makefile (routines): Remove bb_init_func and
31389 bb_exit_func.
31390 (elide-routines.os): Removed.
31391 * gmon/bb_exit_func.c: Likewise.
31392 * gmon/bb_init_func.c: Likewise.
31393 * include/sys/gmon.h (__bb): Likewise.
31394 (__bb_init_func): Likewise.
31395 (__bb_exit_func): Likewise.
31396 * sysdeps/alpha/bb_init_func.S: Likewise.
31397
31398 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31399
31400 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
31401 * include/setjmp.h (____longjmp_chk): Here. Add
31402 attribute_hidden.
31403
31404 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
31405
31406 [BZ #18822]
31407 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
31408 attribute_hidden.
31409 (__strspn_sse2): Likewise.
31410
31411 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31412
31413 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
31414 (close_not_cancel_no_status): Likewise.
31415 (__close_nocancel): New macro.
31416 (__close_nocancel_nostatus): Likewise.
31417 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
31418 macro.
31419 (close_not_cancel): Likewise.
31420 (close_not_cancel_no_status): Likewise.
31421 (__close_nocancel): New prototype.
31422 (__close_nocancel_nostatus): New function.
31423 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
31424 * catgets/open_catalog.c (__open_catalog): Replace
31425 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
31426 * gmon/gmon.c (write_gmon): Likewise.
31427 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
31428 * intl/loadmsgcat.c (close): Likewise.
31429 * io/ftw.c (open_dir_stream): Likewise.
31430 (ftw_startup): Likewise.
31431 * libio/fileops.c (_IO_file_open): Likewise.
31432 (_IO_file_close_mmap): Likewise.
31433 (_IO_file_close): Likewise.
31434 * libio/iopopen.c (_IO_dup2): Likewise.
31435 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31436 * locale/loadlocale.c (_nl_load_locale): Likewise.
31437 * login/utmp_file.c (pututline_file): Likewise.
31438 (endutent_file): Likewise.
31439 * misc/daemon.c (daemon): Likewise.
31440 * nscd/nscd_getai.c (__nscd_getai): Likewise.
31441 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
31442 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
31443 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
31444 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
31445 * nscd/nscd_helper.c (open_socket): Likewise.
31446 (__nscd_open_socket): Likewise.
31447 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
31448 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
31449 (__nscd_innetgr): Likewise.
31450 * nss/nss_db/db-open.c (internal_setent): Likewise.
31451 * resolv/res-close.c (__res_iclose): Likewise.
31452 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
31453 * sysdeps/posix/closedir.c (__closedir): Likewise.
31454 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
31455 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31456 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
31457 (opendir_tail): Likewise.
31458 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31459 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
31460 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
31461 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
31462 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31463 (gethostid): Likewise.
31464 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31465 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31466 Likewise.
31467 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
31468 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
31469 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31470 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31471 Likewise.
31472 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
31473 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
31474 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31475 Likewise.
31476 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
31477 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31478 Likewise.
31479 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31480 Likewise.
31481 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
31482 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31483 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31484 __close_nocancel.
31485
31486 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
31487 (openat_not_cancel_3): Likewise.
31488 (openat64_not_cancel_3): Likewise).
31489 (openat_not_cancel_3): Likewise).
31490 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
31491 macro.
31492 (openat_not_cancel_3): Likewise.
31493 (openat64_not_cancel): Likewise.
31494 (openat64_not_cancel_3): Likewise.
31495 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
31496 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
31497 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
31498 __open{64}_nocancel.
31499 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31500 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31501 * sysdeps/posix/opendir.c (__opendirat): Likewise.
31502
31503 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31504
31505 [BZ #18822]
31506 * include/argz.h (__argz_create_sep): New function prototype.
31507 (__argz_append): Likewise.
31508 (__argz_add): Likewise.
31509 (__argz_add_sep): Likewise.
31510 (__argz_delete): Likewise.
31511 (__argz_insert): Likewise.
31512 (__argz_replace): Likewise.
31513 * string/argz.h (__argz_create_sep): Removed.
31514 (__argz_append): Likewise.
31515 (__argz_add): Likewise.
31516 (__argz_add_sep): Likewise.
31517 (__argz_delete): Likewise.
31518 (__argz_insert): Likewise.
31519 (__argz_replace): Likewise.
31520
31521 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31522
31523 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
31524 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
31525 (GNU_PROPERTY_STACK_SIZE): Likewie.
31526 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
31527 (GNU_PROPERTY_LOPROC): Likewise.
31528 (GNU_PROPERTY_HIPROC): Likewise.
31529 (GNU_PROPERTY_LOUSER): Likewise.
31530 (GNU_PROPERTY_HIUSER): Likewise.
31531 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
31532 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
31533 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
31534 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
31535 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
31536 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
31537 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
31538 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
31539 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
31540 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
31541 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
31542 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
31543 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
31544 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
31545 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
31546 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
31547 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
31548 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
31549 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
31550 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
31551 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
31552 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
31553 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
31554
31555 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31556
31557 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
31558 in C++ mode.
31559
31560 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31561
31562 [BZ #21930]
31563 * math/math.h (isinf): Check if in C or C++ mode before using
31564 __builtin_types_compatible_p, since this is a C mode feature.
31565
31566 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31567
31568 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
31569 (__write_nocancel): New macro.
31570 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
31571 Rewrite as a function prototype.
31572 (write_not_cancel): Remove macro.
31573 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
31574 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
31575 (write_gmon): Likewise.
31576 * libio/fileops.c (_IO_new_file_write): Likewise.
31577 * login/utmp_file.c (pututline_file): Likewise.
31578 (updwtmp_file): Likewise.
31579 * stdio-common/psiginfo.c (psiginfo): Likewise.
31580 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31581 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31582 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31583 Likewise.
31584 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31585 Likewise.
31586
31587 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
31588 (__read_nocancel): New macro.
31589 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31590 __read_nocancel.
31591 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
31592 macro.
31593 (__read_nocancel): New prototype.
31594 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
31595 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
31596 with __read_nocancel.
31597 * intl/loadmsgcat.c (read): Likewise.
31598 * libio/fileops.c (_IO_file_read): Likewise.
31599 * locale/loadlocale.c (_nl_load_locale): Likewise.
31600 * login/utmp_file.c (getutent_r_file): Likewise.
31601 (internal_getut_r): Likewise.
31602 (getutline_r_file): Likewise.
31603 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
31604 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
31605 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31606 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31607 Likewise.
31608 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
31609 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31610 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31611 Likewise.
31612 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31613 Likewise.
31614 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31615 Likewise.
31616 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31617 Likewise.
31618 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31619
31620 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31621
31622 [BZ #21966]
31623 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
31624 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
31625 usable.
31626
31627 2017-08-17 DJ Delorie <dj@redhat.com>
31628
31629 * bug17079.c: Update to new test harness.
31630 * test-digits-dots.c: Likewise.
31631 * test-netdb.c: Likewise.
31632 * tst-field.c: Likewise.
31633 * tst-nss-getpwent.c: Likewise.
31634 * tst-nss-static.c: Likewise.
31635 * tst-nss-test1.c: Likewise.
31636 * tst-nss-test2.c: Likewise.
31637 * tst-nss-test3.c: Likewise.
31638 * tst-nss-test4.c: Likewise.
31639 * tst-nss-test5.c: Likewise.
31640
31641 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31642
31643 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
31644 (open_not_cancel_2): Likewise.
31645 (open_nocancel): New macro.
31646 (open64_nocancel): Likewise.
31647 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
31648 (open_not_cancel_2): Likewise.
31649 (__open_nocancel): New prototype.
31650 (__open64_nocancel): Likewise.
31651 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31652 __open_nocancel.
31653 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
31654 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
31655 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
31656 with __open_nocancel.
31657 * csu/check_fds.c (check_one_fd): Likewise.
31658 * gmon/gmon.c (write_gmon): Likewise.
31659 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
31660 * intl/loadmsgcat.c (open): Likewise.
31661 * libio/fileops.c (_IO_file_open): Likewise.
31662 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31663 * locale/loadlocale.c (_nl_load_locale): Likewise.
31664 * login/utmp_file.c (setutent_file): Likewise.
31665 * misc/daemon.c (daemon): Likewise.
31666 * nss/nss_db/db-open.c (internal_setent): Likewise.
31667 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31668 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
31669 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
31670 (__opendir): Likewise.
31671 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31672 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
31673 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31674 (gethostid): Likewise.
31675 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31676 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31677 Likewise.
31678 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
31679 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
31680 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31681 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31682 Likewise.
31683 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31684 Likewise.
31685 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31686 Likewise.
31687 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
31688 Likewise.
31689 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31690 Likewise.
31691 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31692 Likewise.
31693 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
31694 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31695
31696 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
31697
31698 * benchtests/bench-skeleton.c (main): Add support for
31699 latency benchmarking.
31700 * benchtests/scripts/bench.py: Add support for latency benchmarking.
31701
31702 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
31703
31704 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
31705 the startup object.
31706
31707 2017-08-17 Florian Weimer <fweimer@redhat.com>
31708
31709 * include/sys/socket.h (__opensock): Remove internal_function.
31710 * socket/opensock.c (__opensock): Likewise.
31711 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
31712
31713 2017-08-16 Joseph Myers <joseph@codesourcery.com>
31714
31715 [BZ #21944]
31716 * signal/bits/types/__sigval_t.h: New file.
31717 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
31718 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
31719 and define sigval_t using __sigval_t.
31720 * include/bits/types/__sigval_t.h: New file.
31721 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
31722 instead of <bits/types/__sigval_t.h>.
31723 (struct sigevent): Use __sigval_t instead of sigval_t.
31724 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
31725 instead of <bits/types/__sigval_t.h>.
31726 (siginfo_t): Use __sigval_t instead of sigval_t.
31727 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
31728 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31729 (struct sigevent): Use __sigval_t instead of sigval_t.
31730 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
31731 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31732 (siginfo_t): Use __sigval_t instead of sigval_t.
31733 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
31734
31735 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31736
31737 * NEWS: Remove "[Add new features here]" for 2.27.
31738
31739 2017-08-16 Joseph Myers <joseph@codesourcery.com>
31740
31741 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
31742 libc.so.
31743
31744 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31745
31746 * NEWS: Mention x86-64 FMA optimization.
31747
31748 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31749
31750 [BZ #21912]
31751 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31752 Add e_expf-fma.
31753 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
31754 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
31755 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
31756
31757 2017-08-16 Andreas Schwab <schwab@suse.de>
31758
31759 [BZ #16750]
31760 CVE-2009-5064
31761 * elf/ldd.bash.in: Never run file directly.
31762
31763 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
31764
31765 [BZ #21955]
31766 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
31767 (L(SP_INF_0)): Likewise.
31768
31769 2017-08-15 Florian Weimer <fweimer@redhat.com>
31770
31771 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
31772 run-built-tests.
31773
31774 2017-08-15 Florian Weimer <fweimer@redhat.com>
31775
31776 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
31777 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
31778 BROKEN_THREAD_SIGNALS code.
31779 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
31780 request_list): Remove caller_pid member used for
31781 BROKEN_THREAD_SIGNALS.
31782 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
31783 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
31784 Remove BROKEN_THREAD_SIGNALS support.
31785 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
31786 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
31787
31788 2017-08-15 Florian Weimer <fweimer@redhat.com>
31789
31790 * gmon/Makefile (tests): Add tst-gmon.
31791 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
31792 Set.
31793 (tests-special): Add tst-gmon-prof.out.
31794 (tst-gmon.out): Depend on clean-tst-gmon-data.
31795 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
31796 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
31797 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
31798 startup object.
31799 * aclocal.m4 (GPROF): Set and substitute.
31800 * config.amke.in (GPROF): Set.
31801 * configure: Regenerate.
31802
31803 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
31804
31805 * elf/elf.h A (NT_PPC_TAR): New macro.
31806 (NT_PPC_PPR): Likewise.
31807 (NT_PPC_DSCR): Likewise.
31808 (NT_PPC_EBB): Likewise.
31809 (NT_PPC_PMU): Likewise.
31810 (NT_PPC_TM_CGPR): Likewise.
31811 (NT_PPC_TM_CFPR): Likewise.
31812 (NT_PPC_TM_CVMX): Likewise.
31813 (NT_PPC_TM_CVSX): Likewise.
31814 (NT_PPC_TM_SPR): Likewise.
31815 (NT_PPC_TM_CTAR): Likewise.
31816 (NT_PPC_TM_CPPR): Likewise.
31817 (NT_PPC_TM_CDSCR): Likewise.
31818
31819 2017-08-15 Florian Weimer <fweimer@redhat.com>
31820
31821 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
31822 regparm (2) instead of internal_function.
31823 (_MCOUNT_DECL): Adjust.
31824
31825 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
31826
31827 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
31828 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
31829
31830 2017-08-14 Joseph Myers <joseph@codesourcery.com>
31831
31832 * conform/data/sys/wait.h-data (si_value): Do not expect for
31833 XPG42.
31834
31835 2017-08-14 Florian Weimer <fweimer@redhat.com>
31836
31837 [BZ #21962]
31838 NSS: Create stubs for accidentally exported lookup functions.
31839 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
31840 Remove declaration.
31841 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
31842 (ether_hostton): Call __nss_ethers_lookup2 instead.
31843 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
31844 (ether_ntohost): Call __nss_ethers_lookup2 instead.
31845 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
31846 (setup): Call __nss_netgroup_lookup2 instead.
31847 * nss/Makefile (routines): Add compat-lookup.
31848 * nss/Versions (GLIBC_2.27): Add symbol version.
31849 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
31850 (DB_COMPAT_FCT): Remove.
31851 * nss/compat-lookup.c: New file.
31852 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
31853 from databases.def.
31854 * nss/service-lookup.c (NO_COMPAT): Remove definition.
31855 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
31856 (netname2user): Call __nss_publickey_lookup2 instead.
31857 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
31858 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
31859 instead.
31860
31861 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31862 Sergei Trofimovich <slyfox@inbox.ru>
31863
31864 [BZ #21908]
31865 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
31866 Rename to MMAP2_PAGE_UNIT.
31867 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
31868 __OFF_T_MATCHES_OFF64_T is not defined.
31869 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
31870 uint64_t.
31871 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
31872 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
31873
31874 2017-08-14 Florian Weimer <fweimer@redhat.com>
31875
31876 i386: Do not set internal_function.
31877 * config.h.in (USE_REGPARMS, internal_function): Remove.
31878 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
31879 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
31880
31881 2017-08-14 Florian Weimer <fweimer@redhat.com>
31882
31883 * elf/dl-init.c (_dl_init): Remove internal_function.
31884 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
31885 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
31886
31887 2017-08-14 Florian Weimer <fweimer@redhat.com>
31888
31889 * elf/rtld.c (_dl_start): Remove internal_function.
31890 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
31891 _dl_start.
31892
31893 2017-08-14 Florian Weimer <fweimer@redhat.com>
31894
31895 * elf/dl-fini.c (_dl_fini): Remove internal_function
31896 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
31897
31898 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
31899
31900 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
31901 (bit_cpu_SHSTK): Likewise.
31902 (index_cpu_IBT): Likewise.
31903 (index_cpu_SHSTK): Likewise.
31904 (reg_IBT): Likewise.
31905 (reg_SHSTK): Likewise.
31906 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
31907 Handle index_cpu_IBT and index_cpu_SHSTK.
31908
31909 2017-08-14 Mike FABIAN <mfabian@redhat.com>
31910
31911 [BZ #19982]
31912 * po/fr.po: Fix spelling mistake.
31913
31914 2017-08-13 Florian Weimer <fweimer@redhat.com>
31915
31916 * elf/dl-addr.c (_dl_addr): Remove internal_function.
31917 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
31918 (_dl_catch_error, _dl_receive_error): Likewise.
31919 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
31920 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
31921 (_dl_deallocate_tls): Likewise.
31922 * include/dlfcn.h (_dl_addr): Likewise.
31923 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
31924 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
31925 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
31926 Likewise.
31927
31928 2017-08-13 Florian Weimer <fweimer@redhat.com>
31929
31930 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
31931 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
31932 internal_function.
31933 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
31934
31935 2017-08-13 Florian Weimer <fweimer@redhat.com>
31936
31937 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
31938 internal_function.
31939 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
31940 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
31941 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
31942 internal_function from _dl_make_stack_executable_hook member.
31943 (_dl_make_stack_executable): Remove internal_function.
31944 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
31945 Likewise.
31946 * sysdeps/unix/sysv/linux/dl-execstack.c
31947 (_dl_make_stack_executable): Likewise.
31948
31949 2017-08-13 Florian Weimer <fweimer@redhat.com>
31950
31951 * sysdeps/unix/sysv/linux/netlinkaccess.h
31952 (__netlink_assert_response): Remove internal_function.
31953 * sysdeps/unix/sysv/linux/netlink_assert_response.c
31954 (__netlink_assert_response): Likewise.
31955
31956 2017-08-13 Florian Weimer <fweimer@redhat.com>
31957
31958 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
31959 internal_function.
31960 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
31961
31962 2017-08-13 Florian Weimer <fweimer@redhat.com>
31963
31964 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
31965 internal_function.
31966 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
31967 * inet/netgroup.h (__internal_setnetgrent)
31968 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
31969 * inet/getnetgrent_r.c (__internal_setnetgrent)
31970 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
31971 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
31972 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
31973 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
31974 * nss/nsswitch.h (db_lookup_function): Likewise.
31975
31976 2017-08-13 Florian Weimer <fweimer@redhat.com>
31977
31978 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
31979 Remove internal_function.
31980 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
31981 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
31982 message argument on the stack.
31983 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
31984 Likeweise.
31985
31986 2017-08-12 Mike FABIAN <mfabian@redhat.com>
31987
31988 Adapt test case data to the changes in the thousands
31989 separators.
31990
31991 [BZ #20756]
31992 * localedata/tst-langinfo.sh: Adapt test case data.
31993 * stdlib/tst-strfmon_l.c: Likewise.
31994 * stdlib/tst-strtod4.c: Likewise.
31995 * stdlib/tst-strtod5i.c: Likewise.
31996
31997 2017-08-11 Florian Weimer <fweimer@redhat.com>
31998
31999 [BZ #21242]
32000 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
32001 Suppress pedantic warning resulting from statement expression.
32002 (__ASSERT_FUNCTION): Add missing __extension__.
32003
32004 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
32005
32006 * benchtests/bench-memmove-large.c: Print output in JSON
32007 format.
32008 * benchtests/bench-memmove.c: Likewise.
32009
32010 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
32011 * benchtests/bench-memchr.c (do_one_test): Likewise.
32012 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
32013 * benchtests/bench-memcpy.c (do_one_test): Likewise.
32014 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
32015 * benchtests/bench-memmove.c (do_one_test): Likewise.
32016 * benchtests/bench-memset-large.c (do_one_test): Likewise.
32017 * benchtests/bench-memset.c (do_one_test): Likewise.
32018 * benchtests/bench-string.h (test_init): Remove memsets.
32019
32020 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
32021
32022 * manual/lang.texi
32023 (Computing the Width of an Integer Data Type): Rename section to
32024 "Width of an Integer Type". Remove inaccurate statement regarding
32025 lack of C language facilities for determining width of integer
32026 types, and reorder content to improve flow and context of
32027 discussion.
32028
32029 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
32030
32031 * lang.texi (va_copy): Change standard from ISO to C99.
32032 (__va_copy): Add standard and header annotation.
32033 Update description for clarity of origins and current use.
32034
32035 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32036
32037 [BZ #21941]
32038 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
32039 xssqrtqp requires operands to be in Vector Registers
32040 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
32041 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
32042 (__ieee754_sqrtf128): Likewise.
32043
32044 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
32045
32046 * sysdeps/aarch64/memcmp.S (memcmp):
32047 Rewrite of optimized memcmp.
32048
32049 2017-08-10 Florian Weimer <fweimer@redhat.com>
32050
32051 Introduce ld.so exceptions.
32052 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
32053 (_dl_exception_create, _dl_exception_create_format)
32054 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
32055 (_dl_catch_exception): Declare.
32056 (_dl_catch_error): Update comment.
32057 * elf/dl-error-skeleton.c (struct catch): Replace objname,
32058 errstring, malloced members with exception member.
32059 (_dl_out_of_memory): Remove.
32060 (fatal_error): New function, extracted from _dl_signal_error.
32061 (_dl_signal_exception, _dl_signal_cexception): New functions.
32062 (_dl_signal_error): Call _dl_exception_create to allocate an
32063 exception object.
32064 (_dl_catch_exception): New function, based on _dl_catch_error.
32065 (_dl_catch_error): Implement using _dl_catch_exception.
32066 * elf/dl-exception.c: New file.
32067 * elf/Makefile (dl-routines): Add dl-exception.
32068 (elide-routines.os): Likewise.
32069 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
32070 _dl_exception_create_format, _dl_exception_free.
32071 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
32072 _dl_signal_exception.
32073 * elf/dl-lookup.c (make_string): Remove.
32074 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
32075 _dl_signal_cexception, _dl_exception_free.
32076 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
32077 _dl_signal_exception.
32078 * elf/dl-sym.c (do_sym): Likewise.
32079 * elf/dl-version.c (make_string): Remove.
32080 (match_symbol): Use _dl_exception_create_format,
32081 _dl_signal_cexception, _dl_exception_free.
32082 (_dl_check_map_versions): Likewise.
32083 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
32084 _dl_catch_exception.
32085 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
32086 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
32087 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
32088 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
32089 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
32090 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
32091 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
32092 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
32093 Likewise.
32094 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
32095 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
32096 (ld.so): Likewise.
32097 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
32098 (ld.so): Likewise.
32099 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
32100 Likewise.
32101 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
32102 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
32103 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
32104 Likewise.
32105 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
32106 Likewise.
32107 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
32108
32109 2017-08-10 Florian Weimer <fweimer@redhat.com>
32110
32111 * inet/net-internal.h (__inet6_scopeid_pton): Remove
32112 attribute_hidden, internal_function.
32113 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
32114 internal_function.
32115
32116 2017-08-10 Florian Weimer <fweimer@redhat.com>
32117
32118 * malloc/malloc.c (get_max_fast): Reimplement as an inline
32119 function which calls __builtin_unreachable.
32120
32121 2017-08-10 Mike FABIAN <mfabian@redhat.com>
32122
32123 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
32124 Indian monetary formatting
32125 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
32126 test cases.
32127
32128 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
32129
32130 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
32131 Fix typo in comment.
32132
32133 [BZ #21928]
32134 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
32135 PTRACE_SEIZE_DEVEL): Remove.
32136 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
32137 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
32138 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
32139 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
32140 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
32141
32142 2017-08-09 Joseph Myers <joseph@codesourcery.com>
32143
32144 * posix/bits/types.h (__qaddr_t): Remove.
32145
32146 [BZ #21457]
32147 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
32148 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32149 __glibc_reserved1.
32150 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
32151 (ucontext_t): Use __ctx with uc_flags.
32152 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
32153 (__ctxt): Likewise.
32154 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32155 __glibc_reserved1.
32156 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
32157 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32158 __glibc_reserved1.
32159 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
32160 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32161 __glibc_reserved1.
32162 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
32163 macro.
32164 (ucontext_t): Use __ctx with uc_flags.
32165 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
32166 (ucontext_t): Use __ctx with uc_flags.
32167 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
32168 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
32169 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
32170 (ucontext_t): Use __ctx with uc_flags.
32171 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
32172 undefine further down.
32173 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32174 __glibc_reserved1.
32175 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
32176 undefine further down.
32177 (ucontext_t): Use __ctx with uc_flags.
32178 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
32179 undefine further down.
32180 (ucontext_t): Use __ctx with uc_flags.
32181 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
32182 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
32183 Rename uc_pad to __glibc_reserved1.
32184 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
32185 undefine further down.
32186 (ucontext_t): Use __ctx with uc_flags.
32187 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
32188 further down.
32189 (ucontext_t): Use __ctx with uc_flags.
32190 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
32191 __ctx with uc_flags.
32192 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
32193 (ucontext_t): Use __ctx with uc_flags.
32194 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
32195 __ctx with uc_flags.
32196
32197 2017-08-09 Florian Weimer <fweimer@redhat.com>
32198
32199 [BZ #21932]
32200 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
32201 before early return.
32202
32203 2017-08-09 Andreas Schwab <schwab@suse.de>
32204
32205 [BZ #21041]
32206 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
32207 renamed alias.
32208
32209 [BZ #21041]
32210 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
32211 tst-compat-forwarder.
32212 (modules-names): Add tst-compat-forwarder-mod.
32213 ($(objpfx)tst-compat-forwarder): Depend on
32214 $(objpfx)tst-compat-forwarder-mod.so.
32215 * nptl/tst-compat-forwarder.c: New file.
32216 * nptl/tst-compat-forwarder-mod.c: New file.
32217
32218 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
32219
32220 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
32221 comments.
32222
32223 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
32224 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
32225 memcpy_falkor.
32226 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
32227 Bump.
32228 (__libc_ifunc_impl_list): Add __memcpy_falkor.
32229 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
32230 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
32231 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
32232 Add falkor.
32233 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
32234 New macro.
32235
32236 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32237
32238 [BZ #759]
32239 * manual/setjmp.texi (getcontex): Document uc_stack value
32240 compatibility differences.
32241
32242 2017-08-08 Joseph Myers <joseph@codesourcery.com>
32243
32244 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
32245 (old_malloc_hook): Likewise.
32246 (old_memalign_hook): Likewise.
32247 (old_realloc_hook): Likewise.
32248 (struct hdr): Likewise.
32249 (flood): Likewise.
32250 (freehook): Likewise.
32251 (mallochook): Likewise.
32252 (memalignhook): Likewise.
32253 (reallochook): Likewise.
32254 (mprobe): Likewise.
32255 * malloc/mtrace.c (mallwatch): Likewise.
32256 (tr_old_free_hook): Likewise.
32257 (tr_old_malloc_hook): Likewise.
32258 (tr_old_realloc_hook): Likewise.
32259 (tr_old_memalign_hook): Likewise.
32260 (tr_where): Likewise.
32261 (lock_and_info): Likewise.
32262 (tr_freehook): Likewise.
32263 (tr_mallochook): Likewise.
32264 (tr_reallochook): Likewise.
32265 (tr_memalignhook): Likewise.
32266 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
32267 * misc/mmap.c (__mmap): Likewise.
32268 * misc/mmap64.c (__mmap64): Likewise.
32269 * misc/mprotect.c (__mprotect): Likewise.
32270 * misc/msync.c (msync): Likewise.
32271 * misc/munmap.c (__munmap): Likewise.
32272 * posix/posix_madvise.c (posix_madvise): Likewise.
32273 * socket/send.c (__send): Likewise.
32274 * socket/sendto.c (__sendto): Likewise.
32275 * socket/setsockopt.c (__setsockopt): Likewise.
32276 * string/memcmp.c (__ptr_t): Remove macro.
32277 (MEMCMP): Use void * instead of ptr_t.
32278 * string/memrchr.c (__ptr_t): Remove macro.
32279 (__memrchr): Use void * instead of ptr_t.
32280 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
32281 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
32282 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
32283 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
32284 * sysdeps/mach/msync.c (msync): Likewise.
32285 * sysdeps/mach/munmap.c (__munmap): Likewise.
32286 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
32287 Likewise.
32288 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
32289 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
32290 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
32291 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
32292 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
32293 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
32294 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
32295 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
32296 Likewise.
32297 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
32298 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
32299 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
32300 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
32301 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
32302 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
32303 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
32304 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
32305 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
32306 Likewise.
32307 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
32308 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
32309 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
32310 (MEMCMP): Use void * instead of ptr_t.
32311 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
32312 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
32313
32314 2017-08-08 Florian Weimer <fweimer@redhat.com>
32315
32316 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
32317 return statement.
32318
32319 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
32320
32321 [BZ #21913]
32322 * csu/libc-tls.c: Include <startup.h> first.
32323 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
32324 * elf/dl-tunables.c: Include <startup.h> first.
32325 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
32326 * sysdeps/generic/startup.h: New file.
32327 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
32328 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
32329 (I386_USE_SYSENTER): New. Defined to 0.
32330
32331 2017-08-08 Andreas Schwab <schwab@suse.de>
32332
32333 [BZ #21041]
32334 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
32335 * nptl/pt-system.c (system): Likewise.
32336
32337 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32338
32339 [BZ #21780]
32340 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
32341 EOPNOTSUPP.
32342 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
32343 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
32344 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
32345 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
32346 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
32347 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
32348 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
32349
32350 2017-08-07 Joseph Myers <joseph@codesourcery.com>
32351
32352 [BZ #21899]
32353 * bits/sigaction.h (struct sigaction): Define sa_handler and
32354 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
32355 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32356 [__USE_XOPEN_EXTENDED].
32357 (SA_RESTART): Likewise.
32358 (SA_NODEFER): Likewise.
32359 (SA_RESETHAND): Likewise.
32360 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
32361 (struct sigaction): Define sa_handler and sa_sigaction using union
32362 also for [__USE_XOPEN_EXTENDED].
32363 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32364 [__USE_XOPEN_EXTENDED].
32365 (SA_RESTART): Likewise.
32366 (SA_NODEFER): Likewise.
32367 (SA_RESETHAND): Likewise.
32368 * sysdeps/unix/sysv/linux/bits/sigaction.h
32369 (struct sigaction): Define sa_handler and sa_sigaction using union
32370 also for [__USE_XOPEN_EXTENDED].
32371 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32372 [__USE_XOPEN_EXTENDED].
32373 (SA_RESTART): Likewise.
32374 (SA_NODEFER): Likewise.
32375 (SA_RESETHAND): Likewise.
32376 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
32377 (struct sigaction): Define sa_handler and sa_sigaction using union
32378 also for [__USE_XOPEN_EXTENDED].
32379 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32380 [__USE_XOPEN_EXTENDED].
32381 (SA_RESTART): Likewise.
32382 (SA_NODEFER): Likewise.
32383 (SA_RESETHAND): Likewise.
32384 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
32385 (struct sigaction): Define sa_handler and sa_sigaction using union
32386 also for [__USE_XOPEN_EXTENDED].
32387 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32388 [__USE_XOPEN_EXTENDED].
32389 (SA_RESTART): Likewise.
32390 (SA_NODEFER): Likewise.
32391 (SA_RESETHAND): Likewise.
32392 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
32393 (struct sigaction): Define sa_handler and sa_sigaction using union
32394 also for [__USE_XOPEN_EXTENDED].
32395 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32396 [__USE_XOPEN_EXTENDED].
32397 (SA_RESTART): Likewise.
32398 (SA_NODEFER): Likewise.
32399 (SA_RESETHAND): Likewise.
32400 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
32401 (struct sigaction): Define sa_handler and sa_sigaction using union
32402 also for [__USE_XOPEN_EXTENDED].
32403 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32404 [__USE_XOPEN_EXTENDED].
32405 (SA_RESTART): Likewise.
32406 (SA_NODEFER): Likewise.
32407 (SA_RESETHAND): Likewise.
32408 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
32409 (struct sigaction): Define sa_handler and sa_sigaction using union
32410 also for [__USE_XOPEN_EXTENDED].
32411 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32412 [__USE_XOPEN_EXTENDED].
32413 (SA_RESTART): Likewise.
32414 (SA_NODEFER): Likewise. Define directly rather than as alias.
32415 (SA_RESETHAND): Likewise.
32416 (SA_INTERRUPT): Define only for [__USE_MISC].
32417 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
32418 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
32419 [__USE_MISC].
32420 (SA_STACK): Define only for [__USE_MISC].
32421 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
32422 (struct sigaction): Define sa_handler and sa_sigaction using union
32423 also for [__USE_XOPEN_EXTENDED].
32424 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32425 [__USE_XOPEN_EXTENDED].
32426 (SA_RESTART): Likewise.
32427 (SA_NODEFER): Likewise.
32428 (SA_RESETHAND): Likewise.
32429 (SA_NOPTRACE): Define only for [__USE_MISC].
32430
32431 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
32432 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
32433 (struct catalog_info): Likewise.
32434 * inet/htontest.c (lo): Likewise.
32435 (foo): Likewise.
32436 * inet/inet_lnaof.c (inet_lnaof): Likewise.
32437 * inet/inet_net.c (inet_network): Likewise.
32438 * inet/inet_netof.c (inet_netof): Likewise.
32439 * inet/rcmd.c (__ivaliduser): Likewise.
32440 (iruserok): Likewise.
32441 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
32442 * locale/programs/locale-spec.c (locale_special): Likewise.
32443 * nis/nis_findserv.c (struct findserv_req): Likewise.
32444 (__nis_findfastest_with_timeout): Likewise.
32445 * nss/test-netdb.c (test_network): Likewise.
32446 * resolv/inet_neta.c (inet_neta): Likewise.
32447 * resolv/ns_date.c (ns_datetosecs): Likewise.
32448 (SECS_PER_DAY): Likewise.
32449 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
32450 Likewise.
32451 * resolv/res_comp.c (__putlong): Likewise.
32452 (__putshort): Likewise.
32453 (_getlong): Likewise.
32454 (_getshort): Likewise.
32455 * resolv/res_debug.c (p_time): Likewise.
32456 (precsize_ntoa): Likewise.
32457 (precsize_aton): Likewise.
32458 (latlon2ul): Likewise.
32459 (loc_aton): Likewise.
32460 (loc_ntoa): Likewise.
32461 * resolv/res_hconf.c (struct netaddr): Likewise.
32462 (_res_hconf_reorder_addrs): Likewise.
32463 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
32464 (clnttcp_control): Likewise.
32465 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
32466 (clntudp_control): Likewise.
32467 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
32468 (clntunix_control): Likewise.
32469 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
32470 * sunrpc/rpc/auth.h (union des_block): Likewise.
32471 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
32472 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
32473 (xdrrec_create): Likewise.
32474 (xdrrec_endofrecord): Likewise.
32475 (flush_out): Likewise.
32476 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
32477 (xdrstdio_putlong): Likewise.
32478 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
32479 Likewise.
32480
32481 * misc/sys/cdefs.h (__long_double_t): Remove.
32482 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
32483 instead of __long_double_t,
32484 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
32485
32486 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
32487
32488 * benchtests/scripts/compare_strings.py: Avoid display error when
32489 running on a text terminal.
32490
32491 * benchtests/scripts/compare_strings.py (main): Add an
32492 optional -base option.
32493 (process_results): New argument base_func.
32494
32495 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
32496 hardcoding memcpy.
32497 * benchtests/bench-memcpy-large.c (test_name): Likewise.
32498 * benchtests/bench-memcpy-random.c (test_name): Likewise.
32499
32500 2017-08-07 Andreas Schwab <schwab@suse.de>
32501
32502 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
32503 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
32504 * intl/Makefile ($(objpfx)tst-gettext.out)
32505 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
32506 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
32507 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
32508 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
32509 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
32510 * posix/Makefile ($(objpfx)globtest.out)
32511 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
32512 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
32513 ($(objpfx)tst-printf.out): Likewise.
32514 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
32515 ($(objpfx)tst-setcontext3.out): Likewise.
32516
32517 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
32518
32519 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32520 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
32521 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
32522 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
32523 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
32524 and mptan-fma.
32525 (CFLAGS-doasin-fma.c): New.
32526 (CFLAGS-dosincos-fma.c): Likewise.
32527 (CFLAGS-e_asin-fma.c): Likewise.
32528 (CFLAGS-e_atan2-fma.c): Likewise.
32529 (CFLAGS-e_exp-fma.c): Likewise.
32530 (CFLAGS-e_log-fma.c): Likewise.
32531 (CFLAGS-e_pow-fma.c): Likewise.
32532 (CFLAGS-halfulp-fma.c): Likewise.
32533 (CFLAGS-mpa-fma.c): Likewise.
32534 (CFLAGS-mpatan-fma.c): Likewise.
32535 (CFLAGS-mpatan2-fma.c): Likewise.
32536 (CFLAGS-mpexp-fma.c): Likewise.
32537 (CFLAGS-mplog-fma.c): Likewise.
32538 (CFLAGS-mpsqrt-fma.c): Likewise.
32539 (CFLAGS-mptan-fma.c): Likewise.
32540 (CFLAGS-s_atan-fma.c): Likewise.
32541 (CFLAGS-sincos32-fma.c): Likewise.
32542 (CFLAGS-slowexp-fma.c): Likewise.
32543 (CFLAGS-slowpow-fma.c): Likewise.
32544 (CFLAGS-s_sin-fma.c): Likewise.
32545 (CFLAGS-s_tan-fma.c): Likewise.
32546 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
32547 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
32548 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
32549 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
32550 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
32551 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
32552 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
32553 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
32554 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
32555 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
32556 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
32557 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
32558 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
32559 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
32560 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
32561 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
32562 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
32563 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
32564 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
32565 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
32566 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
32567 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
32568 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
32569 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
32570 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
32571 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
32572 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
32573 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
32574 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
32575 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
32576 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
32577
32578 2017-08-04 Joseph Myers <joseph@codesourcery.com>
32579
32580 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
32581 (min_of_type_f): New macro.
32582 (min_of_type_): Likewise.
32583 (min_of_type_l): Likewise.
32584 (min_of_type_f128): Likewise.
32585 (min_of_type): Define using __MATH_TG and taking an expression
32586 argument.
32587 (math_check_force_underflow): Pass expression instead of type to
32588 min_of_type.
32589 (math_check_force_underflow_nonneg): Likewise.
32590
32591 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32592
32593 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
32594 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
32595 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
32596
32597 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32598
32599 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
32600 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
32601 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
32602 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
32603 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
32604 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
32605 memcpy_chk-nonshared, mempcpy_chk-nonshared,
32606 memmove_chk-nonshared and memset_chk-nonshared
32607 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
32608 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
32609 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
32610 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
32611 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
32612 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
32613 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
32614 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
32615 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
32616 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
32617 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
32618 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
32619 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
32620 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
32621 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
32622 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
32623 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
32624 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
32625 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
32626 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
32627 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
32628 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
32629 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
32630 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
32631 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
32632 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
32633 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
32634 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
32635 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
32636 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
32637 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
32638 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
32639 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
32640 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
32641 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
32642 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
32643 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
32644 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
32645 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
32646 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
32647 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
32648 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
32649 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
32650 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
32651 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
32652 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
32653 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
32654 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
32655 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
32656 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
32657 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
32658 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
32659 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
32660 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
32661 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
32662 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
32663 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
32664 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
32665 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
32666 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
32667 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
32668 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
32669 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
32670 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
32671 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
32672 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
32673 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
32674 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
32675 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
32676 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
32677 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
32678 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
32679 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
32680 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
32681 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
32682 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
32683 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
32684 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
32685 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
32686 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
32687 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
32688 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
32689 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
32690 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
32691 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
32692 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
32693 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
32694 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
32695 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
32696 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
32697 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
32698 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
32699 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
32700 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
32701 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
32702 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
32703 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
32704 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
32705 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
32706 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
32707 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
32708 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
32709 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
32710 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
32711 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
32712 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
32713 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
32714 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
32715
32716 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32717
32718 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
32719 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
32720 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
32721 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
32722 svml_d_log2_core-sse2, svml_d_log4_core-sse,
32723 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
32724 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
32725 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
32726 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
32727 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
32728 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
32729 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
32730 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
32731 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
32732 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
32733 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
32734 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
32735 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
32736 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
32737 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
32738 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
32739 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
32740 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
32741 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
32742 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
32743 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
32744 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
32745 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
32746 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
32747 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
32748 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
32749 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
32750 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
32751 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
32752 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
32753 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
32754 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
32755 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
32756 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
32757 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
32758 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
32759 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
32760 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
32761 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
32762 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
32763 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
32764 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
32765 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
32766 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
32767 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
32768 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
32769 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
32770 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
32771 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
32772 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
32773 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
32774 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
32775 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
32776 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
32777 ...
32778 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
32779 Don't include <sysdep.h> nor <init-arch.h>.
32780 (_ZGVbN2v_cos): Removed.
32781 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
32782 ...
32783 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
32784 Don't include <sysdep.h> nor <init-arch.h>.
32785 (_ZGVdN4v_cos): Removed.
32786 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
32787 ...
32788 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
32789 Don't include <sysdep.h> nor <init-arch.h>.
32790 (_ZGVeN8v_cos): Removed.
32791 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
32792 ...
32793 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
32794 Don't include <sysdep.h> nor <init-arch.h>.
32795 (_ZGVbN2v_exp): Removed.
32796 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
32797 ...
32798 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
32799 Don't include <sysdep.h> nor <init-arch.h>.
32800 (_ZGVdN4v_exp): Removed.
32801 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
32802 ...
32803 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
32804 Don't include <sysdep.h> nor <init-arch.h>.
32805 (_ZGVeN8v_exp): Removed.
32806 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
32807 ...
32808 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
32809 Don't include <sysdep.h> nor <init-arch.h>.
32810 (_ZGVbN2v_log): Removed.
32811 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
32812 ...
32813 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
32814 Don't include <sysdep.h> nor <init-arch.h>.
32815 (_ZGVdN4v_log): Removed.
32816 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
32817 ...
32818 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
32819 Don't include <sysdep.h> nor <init-arch.h>.
32820 (_ZGVeN8v_log): Removed.
32821 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
32822 ...
32823 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
32824 Don't include <sysdep.h> nor <init-arch.h>.
32825 (_ZGVbN2vv_pow): Removed.
32826 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
32827 ...
32828 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
32829 Don't include <sysdep.h> nor <init-arch.h>.
32830 (_ZGVdN4vv_pow): Removed.
32831 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
32832 ...
32833 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
32834 Don't include <sysdep.h> nor <init-arch.h>.
32835 (_ZGVeN8vv_pow): Removed.
32836 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
32837 ...
32838 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
32839 Don't include <sysdep.h> nor <init-arch.h>.
32840 (_ZGVbN2v_sin): Removed.
32841 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
32842 ...
32843 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
32844 Don't include <sysdep.h> nor <init-arch.h>.
32845 (_ZGVbN4v_sin): Removed.
32846 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
32847 ...
32848 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
32849 Don't include <sysdep.h> nor <init-arch.h>.
32850 (_ZGVbN8v_sin): Removed.
32851 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
32852 ...
32853 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
32854 Don't include <sysdep.h> nor <init-arch.h>.
32855 (_ZGVbN2vvv_sincos): Removed.
32856 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
32857 ...
32858 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
32859 Don't include <sysdep.h> nor <init-arch.h>.
32860 (_ZGVdN4vvv_sincos): Removed.
32861 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
32862 ...
32863 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
32864 Don't include <sysdep.h> nor <init-arch.h>.
32865 (_ZGVeN8vvv_sincos): Removed.
32866 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
32867 ...
32868 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
32869 Don't include <sysdep.h> nor <init-arch.h>.
32870 (_ZGVeN16v_cosf): Removed.
32871 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
32872 ...
32873 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
32874 Don't include <sysdep.h> nor <init-arch.h>.
32875 (_ZGVbN4v_cosf): Removed.
32876 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
32877 ...
32878 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
32879 Don't include <sysdep.h> nor <init-arch.h>.
32880 (_ZGVdN8v_cosf): Removed.
32881 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
32882 ...
32883 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
32884 Don't include <sysdep.h> nor <init-arch.h>.
32885 (_ZGVeN16v_expf): Removed.
32886 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
32887 ...
32888 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
32889 Don't include <sysdep.h> nor <init-arch.h>.
32890 (_ZGVbN4v_expf): Removed.
32891 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
32892 ...
32893 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
32894 Don't include <sysdep.h> nor <init-arch.h>.
32895 (_ZGVdN8v_expf): Removed.
32896 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
32897 ...
32898 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
32899 Don't include <sysdep.h> nor <init-arch.h>.
32900 (_ZGVeN16v_logf): Removed.
32901 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
32902 ...
32903 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
32904 Don't include <sysdep.h> nor <init-arch.h>.
32905 (_ZGVbN4v_logf): Removed.
32906 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
32907 ...
32908 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
32909 Don't include <sysdep.h> nor <init-arch.h>.
32910 (_ZGVdN8v_logf): Removed.
32911 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
32912 ...
32913 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
32914 Don't include <sysdep.h> nor <init-arch.h>.
32915 (_ZGVeN16vv_powf): Removed.
32916 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
32917 ...
32918 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
32919 Don't include <sysdep.h> nor <init-arch.h>.
32920 (_ZGVbN4vv_powf): Removed.
32921 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
32922 ...
32923 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
32924 Don't include <sysdep.h> nor <init-arch.h>.
32925 (_ZGVdN8vv_powf): Removed.
32926 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
32927 ...
32928 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
32929 Don't include <sysdep.h> nor <init-arch.h>.
32930 (_ZGVeN16vvv_sincosf): Removed.
32931 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
32932 ...
32933 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
32934 Don't include <sysdep.h> nor <init-arch.h>.
32935 (_ZGVbN4vvv_sincosf): Removed.
32936 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
32937 ...
32938 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
32939 Don't include <sysdep.h> nor <init-arch.h>.
32940 (_ZGVdN8vvv_sincosf): Removed.
32941 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
32942 ...
32943 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
32944 Don't include <sysdep.h> nor <init-arch.h>.
32945 (_ZGVeN16v_sinf): Removed.
32946 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
32947 ...
32948 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
32949 Don't include <sysdep.h> nor <init-arch.h>.
32950 (_ZGVbN4v_sinf): Removed.
32951 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
32952 ...
32953 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
32954 Don't include <sysdep.h> nor <init-arch.h>.
32955 (_ZGVdN8v_sinf): Removed.
32956
32957 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32958
32959 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32960 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
32961 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
32962 s_rint-sse4_1 and s_rintf-sse4_1.
32963 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
32964 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
32965 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
32966 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
32967 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
32968 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
32969 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
32970 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
32971 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
32972 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
32973 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
32974 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32975 (__ceil): Removed.
32976 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
32977 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
32978 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32979 (__ceilf): Removed.
32980 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
32981 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
32982 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32983 (__floor): Removed.
32984 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
32985 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
32986 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32987 (__floorf): Removed.
32988 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
32989 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
32990 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32991 (__nearbyint): Removed.
32992 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
32993 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
32994 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32995 (__nearbyintf): Removed.
32996 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
32997 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
32998 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32999 (__rint): Removed.
33000 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
33001 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
33002 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33003 (__rintf): Removed.
33004
33005 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33006
33007 * sysdeps/i386/start.S (_start): Check Check PIC instead of
33008 SHARED. Avoid dynamic relocation against main in static PIE.
33009
33010 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33011
33012 [BZ #21815]
33013 * elf/Makefile (CFLAGS-tst-prelink.c): New.
33014 (LDFLAGS-tst-prelink): Likewise.
33015
33016 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33017
33018 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
33019 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
33020 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
33021 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
33022 (INTERNAL_SYSCALL_NCS): Likewise.
33023 (LOADARGS_1): Likewise.
33024 (LOADARGS_5): Likewise.
33025 (RESTOREARGS_1): Likewise.
33026 (RESTOREARGS_5): Likewise.
33027
33028 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33029
33030 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
33031 (MEMPCPY_SYMBOL): Likewise.
33032 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
33033 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
33034 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
33035 in libc.a.
33036 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
33037 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
33038 Likewise.
33039 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
33040 (__hidden_ver1): Don't use in libc.a.
33041 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
33042 (__mempcpy): Don't create a weak alias in libc.a.
33043 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
33044 libc.a.
33045 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
33046 (__hidden_ver1): Don't use in libc.a.
33047
33048 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33049
33050 * config.make.in (have-insert): New.
33051 * configure.ac (libc_cv_insert): New. Set to yes if linker
33052 supports INSERT in linker script.
33053 (AC_SUBST(libc_cv_insert): New.
33054 * configure: Regenerated.
33055 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
33056 if $(have-insert) == yes.
33057
33058 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33059
33060 * elf/Makefile (tests): Add vismain only if
33061 $(have-protected-data) == yes.
33062 (tests-pie): Likewise.
33063
33064 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33065
33066 [BZ #21871]
33067 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
33068 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
33069
33070 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33071
33072 [BZ #21790]
33073 * sysdeps/i386/i586/memset.S
33074 (__memset_zero_constant_len_parameter): Removed.
33075 * sysdeps/i386/i686/memset.S
33076 (__memset_zero_constant_len_parameter): Likewise.
33077 * sysdeps/i386/i686/multiarch/memset_chk.S
33078 (__memset_zero_constant_len_parameter): Likewise.
33079 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
33080 Likewise.
33081
33082 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
33083
33084 * stdlib/getentropy.c (getentropy): Change return type to int.
33085
33086 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
33087
33088 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
33089
33090 2017-08-03 Joseph Myers <joseph@codesourcery.com>
33091
33092 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
33093 u_intN_t.
33094 * math/s_nexttowardf.c (__nexttowardf): Likewise.
33095 * sysdeps/generic/math_private.h (ieee_double_shape_type):
33096 Likewise.
33097 (ieee_float_shape_type): Likewise.
33098 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
33099 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
33100 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
33101 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
33102 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
33103 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
33104 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
33105 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
33106 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
33107 Likewise.
33108 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
33109 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
33110 (__ieee754_yn): Likewise.
33111 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
33112 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
33113 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
33114 Likewise.
33115 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
33116 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
33117 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
33118 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
33119 (__erfc): Likewise.
33120 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
33121 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
33122 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
33123 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
33124 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
33125 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
33126 Likewise.
33127 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
33128 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
33129 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
33130 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
33131 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
33132 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
33133 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
33134 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
33135 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
33136 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
33137 (__issignaling): Likewise.
33138 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
33139 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
33140 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
33141 Likewise.
33142 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
33143 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
33144 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
33145 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
33146 Likewise.
33147 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
33148 Likewise.
33149 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
33150 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
33151 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
33152 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
33153 (__erfcf): Likewise.
33154 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
33155 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
33156 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
33157 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
33158 Likewise.
33159 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
33160 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
33161 Likewise.
33162 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
33163 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
33164 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
33165 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
33166 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
33167 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
33168 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
33169 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
33170 Likewise.
33171 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
33172 Likewise.
33173 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
33174 Likewise.
33175 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
33176 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
33177 Likewise.
33178 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
33179 Likewise.
33180 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
33181 (__ieee754_ynl): Likewise.
33182 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
33183 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
33184 Likewise.
33185 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
33186 Likewise.
33187 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
33188 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
33189 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
33190 Likewise.
33191 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
33192 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
33193 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
33194 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
33195 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
33196 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
33197 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
33198 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
33199 Likewise.
33200 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
33201 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
33202 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
33203 Likewise.
33204 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
33205 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
33206 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
33207 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
33208 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
33209 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
33210 Likewise.
33211 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
33212 Likewise.
33213 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
33214 Likewise.
33215 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
33216 Likewise.
33217 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
33218 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
33219 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
33220 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
33221 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
33222 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
33223 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
33224 Likewise.
33225 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
33226 Likewise.
33227 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
33228 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
33229 Likewise.
33230 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
33231 (__ieee754_remainderl): Likewise.
33232 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
33233 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
33234 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
33235 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
33236 Likewise.
33237 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
33238 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
33239 Likewise.
33240 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
33241 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
33242 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
33243 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
33244 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
33245 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
33246 Likewise.
33247 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
33248 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
33249 (__ieee754_y0l): Likewise.
33250 (pzero): Likewise.
33251 (qzero): Likewise.
33252 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
33253 (__ieee754_y1l): Likewise.
33254 (pone): Likewise.
33255 (qone): Likewise.
33256 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
33257 (__ieee754_ynl): Likewise.
33258 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
33259 (__ieee754_lgammal_r): Likewise.
33260 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
33261 Likewise.
33262 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
33263 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
33264 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
33265 (__erfcl): Likewise.
33266 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
33267 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
33268 Likewise.
33269 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
33270 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
33271 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
33272 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
33273 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
33274 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
33275 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
33276 Likewise.
33277 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
33278 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
33279 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
33280 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
33281 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
33282 Likewise.
33283 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
33284 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
33285 Likewise.
33286 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
33287 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
33288 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
33289 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
33290 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
33291
33292 2017-08-03 Florian Weimer <fweimer@redhat.com>
33293
33294 [BZ #21885]
33295 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
33296 on memory allocation failure.
33297
33298 2017-08-03 Alan Modra <amodra@gmail.com>
33299
33300 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
33301 tst-tlsopt-powerpc.c with function name change and no test harness.
33302 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
33303 Call tls_get_addr_opt_test.
33304 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
33305 (modules-names): Add mod-tlsopt-powerpc.
33306 (mod-tlsopt-powerpc.so-no-z-defs): Define.
33307 (tst-tlsopt-powerpc): Depend on .so.
33308 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
33309 define. Expand use in TLS_GD and TLS_LD.
33310
33311 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
33312
33313 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
33314 function.
33315 * sysdeps/posix/shm_open.c: Include <pthread.h>.
33316
33317 2017-08-02 Joseph Myers <joseph@codesourcery.com>
33318
33319 [BZ #21686]
33320 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
33321 comparing size with that of double.
33322 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
33323 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
33324 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
33325 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
33326 (__TGMATH_BINARY_REAL_IMAG): Likewise.
33327 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
33328 unsigned __int128 types.
33329
33330 2017-08-02 Steve Ellcey <sellcey@cavium.com>
33331
33332 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
33333 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
33334 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
33335 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
33336 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
33337
33338 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
33339
33340 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
33341
33342 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
33343
33344 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
33345 of SHARED.
33346 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
33347 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
33348 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
33349 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
33350 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
33351 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
33352 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
33353
33354 2017-08-02 Joseph Myers <joseph@codesourcery.com>
33355
33356 [BZ #21685]
33357 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
33358 bit-field expressions passed to sizeof or typeof.
33359 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
33360 (__TGMATH_F128): Likewise.
33361 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
33362 (__TGMATH_CF128): Likewise.
33363 (__TGMATH_UNARY_REAL_ONLY): Likewise.
33364 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
33365 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
33366 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
33367 (__TGMATH_BINARY_REAL_ONLY): Likewise.
33368 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
33369 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
33370 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
33371 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
33372 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
33373 (__TGMATH_UNARY_REAL_IMAG): Likewise.
33374 (__TGMATH_UNARY_IMAG): Likewise.
33375 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
33376 (__TGMATH_BINARY_REAL_IMAG): Likewise.
33377 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
33378 type.
33379 (define_vars_for_type): Handle bit_field type specially.
33380 (Tests.__init__): Declare structure with bit-field element.
33381
33382 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
33383
33384 [BZ #21791]
33385 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
33386 (MEMCPY_CHK): Define only if SHARED is defined.
33387 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
33388 Likewise.
33389 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
33390 Likewise.
33391
33392 See ChangeLog.18 for earlier changes.