]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
0f4d7465c2a12601af0f4d6c5092d1b8f40916a8
[thirdparty/glibc.git] / ChangeLog
1 2019-03-25 Mike Crowe <mac@mcrowe.com>
2
3 * nptl/tst-rwlock14.c (do_test): Replace duplicate calls to
4 pthread_rwlock_timedrdlock with calls to
5 pthread_rwlock_timedwrlock to ensure that the latter is tested
6 too. Use new function name in diagnostic messages too.
7
8 * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
9 (do_test) Use libsupport test macros rather than hand-coded
10 conditionals and error messages. Ensure that sem_init returns zero
11 rather than not -1. Use <support/test-driver.c> rather than
12 test-skeleton.c.
13
14 * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
15 test macros rather than hand-coded conditionals and error messages.
16 Use <support/test-driver.c> rather than test-skeleton.c.
17
18 2019-03-25 Joseph Myers <joseph@codesourcery.com>
19
20 * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
21
22 * elf/elf.h (NT_ARM_PAC_MASK): New macro.
23 (NT_MIPS_MSA): Likewise.
24
25 2019-03-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26
27 * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
28 * benchtests/README: Update description.
29 * benchtests/bench-timing.h: Default to hp-timing.
30 * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
31 HP_TIMING_PRINT): Remove.
32 (HP_TIMING_NOW): Add generic implementation.
33 (hp_timing_t): Change to uint64_t.
34
35 * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
36 HP_TIMING_INLINE.
37 * nptl/descr.h: Likewise.
38 * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
39 RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
40 (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
41 Abstract hp-timing usage with RTLD_* macros.
42 * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
43 (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
44 * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
45 HP_TIMING_NONAVAIL): Likewise.
46 * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
47 Likewise.
48 * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
49 HP_SMALL_TIMING_AVAIL): Likewise.
50 * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
51 HP_SMALL_TIMING_AVAIL): Likewise.
52 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
53 HP_SMALL_TIMING_AVAIL): Likewise.
54 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
55 HP_SMALL_TIMING_AVAIL): Likewise.
56 * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
57 Likewise.
58 * sysdeps/generic/hp-timing-common.h: Update comment with
59 HP_TIMING_AVAIL removal.
60
61 * include/random-bits.h: New file.
62 * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
63 (__res_context_mkquery): Remove usage hp-timing usage and replace with
64 random_bits.
65 * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
66 * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
67 Likewise.
68
69 * include/libc-internal.h (__get_clockfreq): Remove prototype.
70 * rt/Makefile (clock-routines): Remove get_clockfreq.
71 * rt/get_clockfreq.c: Remove file.
72 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
73 * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
74 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
75 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
76 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
77
78 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
79 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
80 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
81 (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
82 _SC_CPUTIME, and _SC_THREAD_CPUTIME.
83
84 * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
85 pthread_clock_settime.
86 * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
87 * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
88 (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
89 * elf/rtld.c (_dl_start_final): Likewise.
90 * nptl/allocatestack.c (__find_thread_by_id): Remove function.
91 * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
92 Remove.
93 * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
94 (_dl_cpuclock_offset): Remove.
95 * nptl/descr.h (struct pthread): Rename cpuclock_offset to
96 cpuclock_offset_ununsed.
97 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
98 cpuclock_offset set.
99 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
100 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
101 * nptl/pthread_clock_gettime.c: Remove file.
102 * nptl/pthread_clock_settime.c: Likewise.
103 * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
104 [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
105 and CLOCK_PROCESS_CPUTIME_ID support.
106 * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
107 [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
108 * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
109 [HP_TIMING_AVAIL] (__clock_getres): Likewise.
110 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
111 Likewise.
112 (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
113
114 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
115
116 * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
117 * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
118 MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
119 New defines.
120 * sysdeps/s390/memmem-arch13.S: New file.
121 * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
122 if it is only used as fallback.
123 * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
124 * sysdeps/s390/multiarch/ifunc-impl-list.c
125 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
126
127 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
128
129 * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
130 * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
131 STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
132 New defines.
133 * sysdeps/s390/multiarch/ifunc-impl-list.c
134 (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
135 * sysdeps/s390/strstr-arch13.S: New file.
136 * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
137 if it is only used as fallback.
138 * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
139
140 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
141
142 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
143 HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
144 * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
145 * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
146 ifunc selector.
147 * sysdeps/s390/multiarch/ifunc-impl-list.c
148 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
149 * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
150 S390_IS_ARCH13_MIE3): New defines.
151
152 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
153
154 * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
155 HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
156 * sysdeps/s390/configure.ac: Add checks for arch13 support.
157 * sysdeps/s390/configure: Regenerated.
158
159 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
160
161 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
162 Add vxe2, vxp, dflt, sort flags.
163 * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
164 HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
165 capabilities.
166 (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
167 * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
168 (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
169 HWCAP_S390_DFLT): Define.
170
171 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
172
173 [BZ #24372]
174 * iconv/iconvconfig.c (write_output): Add parentheses to get rid
175 of compiler warning.
176 * locale/programs/ld-collate.c (collate_output): Likewise.
177
178 2019-03-21 DJ Delorie <dj@redhat.com>
179
180 [BZ #24372]
181 * iconv/iconvconfig.c (write_output): Replace floating point math
182 with integer math to avoid imprecise results.
183 * locale/programs/ld-collate.c (collate_output): Likewise.
184
185 2019-03-21 Stefan Liebler <stli@linux.ibm.com>
186
187 * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
188 Add HWCAP_S390_VX and HWCAP_S390_VXE.
189
190 2019-03-20 mansayk <6688000@gmail.com>
191
192 [BZ #24296]
193 * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
194 (abday): Likewise, but remove the trailing dots.
195
196 2019-03-19 Joseph Myers <joseph@codesourcery.com>
197
198 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
199 macro.
200 (HWCAP_PACA): Likewise.
201 (HWCAP_PACG): Likewise.
202 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
203 Increase to 32.
204 (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
205
206 2019-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
207
208 * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
209 should be handled.
210
211 2019-03-15 Joseph Myers <joseph@codesourcery.com>
212
213 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
214 version to 5.0.
215 (old_getpagesize): New syscall.
216
217 2019-03-15 Felix Yan <felixonmars@archlinux.org>
218
219 [BZ #24293]
220 * localedata/locales/zh_TW (era): Add, support Minguo calendar.
221 * localedata/locales/cmn_TW (era): Likewise.
222 * localedata/locales/hak_TW (era): Likewise.
223 * localedata/locales/lzh_TW (era): Likewise.
224 * localedata/locales/nan_TW (era): Likewise.
225
226 2019-03-14 Florian Weimer <fweimer@redhat.com>
227
228 Remove obsolete, never-implemented XSI STREAMS declarations.
229 * manual/terminal.texi (Allocation): Remove portability note and
230 adjust example.
231 * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
232 _SC_STREAMS.
233 * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
234 * sysdeps/unix/inet/Subdirs (streams): Remove.
235 * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
236 (conformtest-headers-UNIX98): Likewise.
237 (conformtest-headers-XOPEN2K): Likewise.
238 (conformtest-headers-POSIX2008): Likewise.
239 * posix/compat-streams.c: New file.
240 * posix/Makefile (routines): Add it.
241 * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
242 getpmsg, isastream, putmsg, putpmsg.
243 (GLIBC_2.30): New section.
244 * bits/stropts.h: Remove file.
245 * bits/xtitypes.h: Likewise.
246 * conform/data/stropts.h-data: Likewise.
247 * include/stropts.h: Likewise.
248 * include/sys/stropts.h: Likewise.
249 * include/xtitypes.h: Likewise.
250 * streams/Makefile: Likewise.
251 * streams/fattach.c: Likewise.
252 * streams/fdetach.c: Likewise.
253 * streams/getmsg.c: Likewise.
254 * streams/getpmsg.c: Likewise.
255 * streams/isastream.c: Likewise.
256 * streams/putmsg.c: Likewise.
257 * streams/putpmsg.c: Likewise.
258 * streams/stropts.h: Likewise.
259 * streams/sys/stropts.h: Likewise.
260 * sysdeps/ia64/bits/xtitypes.h: Likewise.
261 * sysdeps/s390/bits/xtitypes.h: Likewise.
262 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
263 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
264 * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
265 * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
266 * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
267 * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
268 * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
269 * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
270 * sysdeps/x86/bits/xtitypes.h: Likewise.
271
272 2019-03-14 Florian Weimer <fweimer@redhat.com>
273
274 * nss/tst-nss-files-alias-truncated.c (do_test): Load
275 libnss_files.
276 * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
277 but not with libnss_files.
278 (tst-nss-files-alias-truncated.out): Depend on libnss_files.
279
280 2019-03-14 Zack Weinberg <zackw@panix.com>
281
282 * scripts/check-obsolete-constructs.py (HeaderChecker.check):
283 Specify encoding="utf-8" when opening headers to check.
284
285 2019-03-13 Joseph Myers <joseph@codesourcery.com>
286
287 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
288 version to 5.0.
289 (Context.checkout_tar): Handle variable major version for Linux
290 kernel.
291
292 2019-03-13 Florian Weimer <fweimer@redhat.com>
293
294 [BZ #24047]
295 * sysdeps/mach/hurd/res_enable_icmp.c: New file.
296
297 2019-03-13 Zack Weinberg <zackw@panix.com>
298
299 * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
300 Move to stdlib.
301 * include/inttypes.h: Adjust to match.
302 * include/stdint.h: New wrapper.
303
304 2019-03-13 Zack Weinberg <zackw@panix.com>
305
306 * scripts/check-obsolete-constructs.py: New test script.
307 * scripts/check-installed-headers.sh: Remove tests for
308 obsolete typedefs, superseded by check-obsolete-constructs.py.
309 * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
310 as a special test. Update commentary.
311 * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
312 (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
313 Update commentary.
314 * posix/sys/types.h (__u_intN_t): Remove.
315 (u_int8_t): Typedef using __uint8_t.
316 (u_int16_t): Typedef using __uint16_t.
317 (u_int32_t): Typedef using __uint32_t.
318 (u_int64_t): Typedef using __uint64_t.
319
320 2019-03-13 Stefan Liebler <stli@linux.ibm.com>
321
322 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
323 call _dl_procinfo.
324 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
325 Ignore types other than AT_HWCAP.
326 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
327 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
328 Likewise.
329 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
330 in the case of falling back to generic output mechanism.
331 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
332 Likewise.
333
334 2019-03-12 Florian Weimer <fweimer@redhat.com>
335
336 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
337
338 2019-03-12 Florian Weimer <fweimer@redhat.com>
339
340 [BZ #24047]
341 resolv: Enable full ICMP errors for UDP DNS sockets
342 * resolv/res_enable_icmp.c: New file.
343 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
344 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
345 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
346 socket.
347
348 2019-03-11 Mao Han <han_mao@c-sky.com>
349
350 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
351 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
352
353 2019-03-11 Mao Han <han_mao@c-sky.com>
354
355 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
356 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
357 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
358
359 2019-03-11 Mao Han <han_mao@c-sky.com>
360
361 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
362 directly.
363 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
364 definition.
365
366 2019-03-11 Mao Han <han_mao@c-sky.com>
367
368 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
369 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
370 in mcontext_t
371
372 2019-03-08 Mike FABIAN <mfabian@redhat.com>
373
374 [BZ #24307]
375 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
376 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
377 Unicode 12.0.0.
378 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
379 * localedata/unicode-gen/PropList.txt: Likewise.
380 * localedata/unicode-gen/UnicodeData.txt: Likewise.
381 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
382 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
383 * localedata/charmaps/UTF-8: Regenerate.
384 * localedata/locales/i18n_ctype: Likewise.
385 * localedata/locales/tr_TR: Likewise.
386 * localedata/locales/translit_circle: Likewise.
387 * localedata/locales/translit_cjk_compat: Likewise.
388 * localedata/locales/translit_combining: Likewise.
389 * localedata/locales/translit_compat: Likewise.
390 * localedata/locales/translit_font: Likewise.
391 * localedata/locales/translit_fraction: Likewise.
392
393 2019-03-07 Joseph Myers <joseph@codesourcery.com>
394
395 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
396 than after operators.
397 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
398 (setitimer_locked): Likewise.
399 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
400 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
401 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
402 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
403 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
404 (PPC_CPU_SUPPORTED): Likewise.
405 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
406 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
407 (stat_overflow): Likewise.
408 (statfs_overflow): Likewise.
409 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
410 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
411 (eq_ttyname_r): Likewise.
412 (run_chroot_tests): Likewise.
413
414 2019-03-07 Florian Weimer <fweimer@redhat.com>
415
416 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
417 header check.
418
419 2019-03-07 Martin Liska <mliska@suse.cz>
420
421 * math/Makefile: Change location where math-vector-fortran.h is
422 installed.
423 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
424 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
425 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
426 * scripts/check-installed-headers.sh: Skip Fortran header files.
427 * scripts/check-wrapper-headers.py: Likewise.
428
429 2019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
430
431 * nptl/nptl-init.c (__have_futex_clock_realtime,
432 __have_futex_clock_realtime): Remove definition.
433 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
434 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
435 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
436 __ASSUME_FUTEX_CLOCK_REALTIME support.
437 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
438 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
439 * sysdeps/unix/sysv/linux/kernel-features.h
440 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
441 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
442 Adjust comment.
443
444 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
445
446 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
447 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
448 __GI___wcscpy and wcscpy.
449
450 2019-03-04 Florian Weimer <fweimer@redhat.com>
451
452 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
453 declaration.
454 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
455 defined.
456
457 2019-03-04 Stefan Liebler <stli@linux.ibm.com>
458
459 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
460 * sysdeps/s390/s390-32/sysdep.h: Likewise.
461
462 2019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
463
464 [BZ #24162]
465 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
466 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
467
468 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
469
470 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
471 tests.
472 (do_test): Likewise.
473 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
474 (do_test_call_varg): Likewise.
475 (do_test_call_rarg): Likewise.
476 * sysdeps/ieee754/ldbl-opt/Makefile
477 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
478 tst-nldbl-error.
479 ($(objpfx)tst-nldbl-warn.c): New rule.
480 ($(objpfx)tst-nldbl-error.c): Likewise.
481 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
482 New variables.
483
484 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
485
486 [BZ #23984]
487 * include/bits/error-ldbl.h: New file.
488 * include/error.h: Include stdarg.h. Declare internal functions
489 __error_internal and __error_at_line_internal.
490 * misc/Makefile (headers): Add bits/error-ldbl.h.
491 * misc/bits/error-ldbl.h: New file.
492 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
493 avoid the inclusion of bits/error.h.
494 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
495 and __nldbl_error_at_line.
496 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
497 (__nldbl_error, __ndlbl_error_at_line): New functions.
498 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
499 Redirect error and error_at_line.
500 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
501 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
502 Likewise.
503 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
504 Likewise.
505 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
506 Likewise.
507 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
508 Likewise.
509 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
510 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
511 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
512
513 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
514
515 [BZ #23984]
516 * include/bits/err-ldbl.h: New file.
517 * include/err.h: Add prototypes for the internal functions:
518 __vwarnx_internal and __vwarn_internal.
519 * misc/Makefile (headers): Add bits/err-ldbl.h.
520 * misc/bits/err-ldbl.h: New file.
521 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
522 defined, i.e.: when -mlong-double-64 is in use.
523 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
524 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
525 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
526 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
527 (VA_CALL): New macro.
528 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
529 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
530 functions.
531 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
532 declare prototypes for the new functions.
533 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
534 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
535 Likewise.
536 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
537 Likewise.
538 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
539 Likewise.
540 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
541 Likewise.
542 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
543 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
544 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
545
546 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
547
548 * sysdeps/ieee754/ldbl-opt/Makefile
549 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
550 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
551 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
552
553 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
554
555 [BZ #23983]
556 * argp/Makefile (headers): Add bits/argp-ldbl.h.
557 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
558 * argp/bits/argp-ldbl.h: New file.
559 * include/argp.h: Include stdarg.h. Add prototypes for internal
560 functions: __argp_error_internal and __argp_failure_internal.
561 * include/bits/argp-ldbl.h: New file.
562 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
563 __nldbl_argp_error and __nldbl_argp_failure.
564 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
565 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
566 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
567 Redirect argp_error and argp_failure calls.
568 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
569 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
570 Likewise.
571 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
572 Likewise.
573 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
574 Likewise.
575 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
576 Likewise.
577 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
578 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
579 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
580
581 2019-03-01 Florian Weimer <fweimer@redhat.com>
582
583 [BZ #20419]
584 * elf/tst-big-note-lib.S: Create a syntactically valid note.
585 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
586 code, to avoid creating an ABI tag note.
587 (modules-names-nobuild): Add tst-big-note-lib.
588
589 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
590
591 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
592 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
593
594 2019-03-01 Florian Weimer <fweimer@redhat.com>
595
596 [BZ #20271]
597 * sysdeps/unix/sysv/linux/netlink_assert_response.c
598 (__netlink_assert_response): Add additional missing newlines.
599
600 2019-02-28 Joseph Myers <joseph@codesourcery.com>
601
602 * sysdeps/powerpc/powerpc32/dl-machine.c
603 (__elf_machine_fixup_plt): Use space before '('.
604 (__process_machine_rela): Likewise.
605 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
606 Likewise.
607 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
608 Likewise.
609 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
610 Likewise.
611 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
612 (pattern): Likewise.
613 (delta): Likewise.
614 (check_result): Likewise.
615 (check_excepts): Likewise.
616 (check_op): Likewise.
617 (fail_xr): Likewise.
618 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
619 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
620 (SCNHSZ): Likewise.
621 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
622 Likewise.
623 (ARGS): Likewise.
624 (__makecontext): Likewise.
625 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
626 Likewise.
627
628 2019-02-28 Florian Weimer <fweimer@redhat.com>
629
630 [BZ #23937]
631 elf: Add test with a local IFUNC resolver.
632 * elf/ifuncmain9.c: New file.
633 * elf/ifuncmain9pic.c: Likewise.
634 * elf/ifuncmain9picstatic.c: Likewise.
635 * elf/ifuncmain9pie.c: Likewise.
636 * elf/ifuncmain9static.c: Likewise.
637 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
638 ifuncmain9static, ifuncmain9picstatic.
639 * elf/Makefile [multi-arch && build-shared] (tests-internal):
640 Add ifuncmain9, ifuncmain9pic.
641 * elf/Makefile [multi-arch && build-shared && have-fpie]
642 (ifunc-pie-tests): Add ifuncmain9pie.
643 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
644 (CFLAGS-ifuncmain9picstatic.c): Likewise.
645 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
646
647 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
648
649 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
650 * configure: Regenerated.
651 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
652
653 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
654
655 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
656 symbol as __wcspcy instead of wcscpy.
657
658 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
659
660 * include/stdio.h (__renameat2): New hidden prototype.
661 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
662 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
663 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
664 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
665
666 2019-02-27 Joseph Myers <joseph@codesourcery.com>
667
668 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
669 if statement.
670
671 * benchtests/bench-strcpy.c (do_test): Use space before '('.
672 * benchtests/bench-string.h (cmdline_process_function): Likewise.
673 * benchtests/bench-strlen.c (do_test): Likewise.
674 (test_main): Likewise.
675 * catgets/gencat.c (read_old): Likewise.
676 * elf/cache.c (load_aux_cache): Likewise.
677 * iconvdata/bug-iconv8.c (do_test): Likewise.
678 * math/test-tgmath-ret.c (do_test): Likewise.
679 * nis/nis_call.c (rec_dirsearch): Likewise.
680 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
681 * nptl/tst-audit-threads.c (do_test): Likewise.
682 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
683 * nss/nss_test1.c (init): Likewise.
684 * nss/test-netdb.c (test_hosts): Likewise.
685 * posix/execvpe.c (maybe_script_execute): Likewise.
686 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
687 * stdio-common/tst-printf.c (do_test): Likewise.
688 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
689 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
690 * stdlib/qsort.c (STACK_SIZE): Likewise.
691 * stdlib/test-canon.c (do_test): Likewise.
692 * stdlib/tst-swapcontext1.c (do_test): Likewise.
693 * string/memcmp.c (OPSIZ): Likewise.
694 * string/test-strcpy.c (do_test): Likewise.
695 (do_random_tests): Likewise.
696 * string/test-strlen.c (do_test): Likewise.
697 (test_main): Likewise.
698 * string/test-strrchr.c (do_test): Likewise.
699 (do_random_tests): Likewise.
700 * string/tester.c (test_memrchr): Likewise.
701 (test_memchr): Likewise.
702 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
703 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
704 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
705 (read_encoded_value_with_base): Likewise.
706 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
707 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
708 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
709 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
710 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
711 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
712 Likewise.
713 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
714 Likewise.
715 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
716 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
717 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
718 Likewise.
719 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
720 Likewise.
721 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
722 Likewise.
723 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
724 Likewise.
725 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
726 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
727 (FP_XSTATE_MAGIC2_SIZE): Likewise.
728 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
729 * time/test_time.c (main): Likewise.
730
731 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
732
733 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
734
735 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
736 wmemcpy.
737
738 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
739 wmemcpy.
740
741 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
742
743 * include/wchar.h (__wcscpy): New prototype.
744 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
745 (__wcscpy): Route internal symbol to generic implementation.
746 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
747 Add internal __wcscpy alias.
748 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
749 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
750 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
751 * wcsmbs/wcscpy.c (wcscpy): Add
752 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
753 use generic implementation.
754 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
755
756 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
757 wmemset.
758
759 * sysdeps/m68k/wcpcpy.c: Remove file.
760 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
761
762 2019-02-26 Joseph Myers <joseph@codesourcery.com>
763
764 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
765 than after operators.
766 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
767 * sysdeps/mach/hurd/getcwd.c
768 (__hurd_canonicalize_directory_name_internal): Likewise.
769 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
770 (pthread_mutex_consistent): Likewise.
771 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
772 Likewise.
773 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
774 (__pthread_mutex_transfer_np): Likewise.
775 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
776 (__pthread_mutex_unlock): Likewise.
777 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
778 (mtx_owned_p): Likewise.
779 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
780 (pthread_mutexattr_getrobust): Likewise.
781 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
782 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
783 Likewise.
784 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
785 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
786 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
787 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
788 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
789 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
790 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
791 Likewise.
792 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
793 Likewise.
794 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
795 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
796 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
797 (____longjmp_chk): Likewise.
798 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
799 Likewise.
800 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
801 (INTERNAL_SYSCALL): Likewise.
802 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
803 (INTERNAL_SYSCALL): Likewise.
804 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
805 (__get_clockfreq_via_cpuinfo): Likewise.
806
807 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
808 comments.
809 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
810 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
811 (WORD_COPY_BWD): Likewise.
812 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
813 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
814 Likewise.
815 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
816 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
817 comment.
818 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
819
820 2019-02-25 Joseph Myers <joseph@codesourcery.com>
821
822 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
823 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
824 rather than after operators.
825 * elf/cache.c (print_cache): Likewise.
826 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
827 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
828 * hurd/hurdinit.c (_hurd_setproc): Likewise.
829 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
830 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
831 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
832 (reauth_proc): Likewise.
833 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
834 (__file_name_split_at): Likewise.
835 (__directory_name_split_at): Likewise.
836 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
837 * hurd/port2fd.c (_hurd_port2fd): Likewise.
838 * iconv/gconv_dl.c (do_print): Likewise.
839 * inet/netinet/in.h (struct sockaddr_in): Likewise.
840 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
841 * locale/setlocale.c (new_composite_name): Likewise.
842 * malloc/memusagestat.c (main): Likewise.
843 * misc/fstab.c (fstab_convert): Likewise.
844 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
845 Likewise.
846 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
847 (getgrent_next_file): Likewise.
848 (internal_getgrnam_r): Likewise.
849 (internal_getgrgid_r): Likewise.
850 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
851 Likewise.
852 (internal_getgrent_r): Likewise.
853 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
854 (getpwent_next_nss): Likewise.
855 (getpwent_next_file): Likewise.
856 (internal_getpwnam_r): Likewise.
857 (internal_getpwuid_r): Likewise.
858 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
859 Likewise.
860 (getspent_next_nss): Likewise.
861 (internal_getspnam_r): Likewise.
862 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
863 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
864 * string/strchr.c (STRCHR): Likewise.
865 * string/strchrnul.c (STRCHRNUL): Likewise.
866 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
867 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
868 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
869 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
870 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
871 Likewise.
872 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
873 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
874 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
875 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
876 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
877 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
878 (open_file): Likewise.
879 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
880 (pthread_mutexattr_setprotocol): Likewise.
881 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
882 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
883 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
884 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
885 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
886 Likewise.
887 (elf_machine_rela): Likewise.
888 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
889 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
890 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
891 * sysdeps/posix/rename.c (rename): Likewise.
892 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
893 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
894 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
895 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
896 * sysdeps/unix/grantpt.c (grantpt): Likewise.
897 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
898 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
899 Likewise.
900 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
901 Likewise.
902 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
903 * time/tzfile.c (__tzfile_compute): Likewise.
904
905 2019-02-22 Joseph Myers <joseph@codesourcery.com>
906
907 * benchtests/bench-memmem.c (simple_memmem): Break lines before
908 rather than after operators.
909 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
910 * crypt/md5.c (md5_finish_ctx): Likewise.
911 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
912 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
913 * elf/cache.c (load_aux_cache): Likewise.
914 * elf/dl-load.c (open_verify): Likewise.
915 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
916 * elf/readelflib.c (process_elf_file): Likewise.
917 * elf/rtld.c (dl_main): Likewise.
918 * elf/sprof.c (generate_call_graph): Likewise.
919 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
920 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
921 * hurd/dtable.c (reauth_dtable): Likewise.
922 * hurd/getdport.c (__getdport): Likewise.
923 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
924 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
925 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
926 Likewise.
927 * hurd/hurdioctl.c (fioctl): Likewise.
928 * hurd/hurdselect.c (_hurd_select): Likewise.
929 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
930 (STOPSIGS): Likewise.
931 * hurd/hurdstartup.c (_hurd_startup): Likewise.
932 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
933 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
934 * hurd/msgportdemux.c (msgport_server): Likewise.
935 * hurd/setauth.c (_hurd_setauth): Likewise.
936 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
937 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
938 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
939 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
940 * login/tst-utmp.c (do_check): Likewise.
941 (simulate_login): Likewise.
942 * mach/lowlevellock.h (lll_lock): Likewise.
943 (lll_trylock): Likewise.
944 * math/test-fenv.c (ALL_EXC): Likewise.
945 * math/test-fenvinline.c (ALL_EXC): Likewise.
946 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
947 * nis/nis_call.c (__do_niscall3): Likewise.
948 * nis/nis_callback.c (cb_prog_1): Likewise.
949 * nis/nis_defaults.c (searchaccess): Likewise.
950 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
951 * nis/nis_ismember.c (internal_ismember): Likewise.
952 * nis/nis_local_names.c (nis_local_principal): Likewise.
953 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
954 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
955 Likewise.
956 * nis/ypclnt.c (yp_match): Likewise.
957 (yp_first): Likewise.
958 (yp_next): Likewise.
959 (yp_master): Likewise.
960 (yp_order): Likewise.
961 * nscd/hstcache.c (cache_addhst): Likewise.
962 * nscd/initgrcache.c (addinitgroupsX): Likewise.
963 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
964 (internal_getpwuid_r): Likewise.
965 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
966 * posix/glob.h (__GLOB_FLAGS): Likewise.
967 * posix/regcomp.c (peek_token): Likewise.
968 (peek_token_bracket): Likewise.
969 (parse_expression): Likewise.
970 * posix/regexec.c (sift_states_iter_mb): Likewise.
971 (check_node_accept_bytes): Likewise.
972 * posix/tst-spawn3.c (do_test): Likewise.
973 * posix/wordexp-test.c (testit): Likewise.
974 * posix/wordexp.c (parse_tilde): Likewise.
975 (exec_comm): Likewise.
976 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
977 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
978 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
979 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
980 * stdio-common/tst-fileno.c (do_test): Likewise.
981 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
982 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
983 * stdlib/strtod_l.c (round_and_return): Likewise.
984 (____STRTOF_INTERNAL): Likewise.
985 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
986 * string/strcspn.c (STRCSPN): Likewise.
987 * string/test-memmem.c (simple_memmem): Likewise.
988 * termios/tcsetattr.c (tcsetattr): Likewise.
989 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
990 * time/asctime.c (asctime_internal): Likewise.
991 * time/strptime_l.c (__strptime_internal): Likewise.
992 * time/sys/time.h (timercmp): Likewise.
993 * time/tzfile.c (__tzfile_compute): Likewise.
994
995 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
996
997 [BZ #21915]
998 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
999
1000 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1001
1002 * argp/argp-help.c (__argp_error_internal): New function,
1003 renamed from __argp_error, but that takes a 'mode_flags'
1004 parameter to control the format of long double parameters.
1005 (__argp_error): Converted into a call __argp_error_internal.
1006 (__argp_failure_internal): New function, renamed from
1007 __argp_failure, but that takes a 'mode_flags' parameter.
1008 (__argp_failure): Converted into a call __argp_failure_internal.
1009 * misc/err.c (__vwarnx_internal): New function, renamed from
1010 vwarnx, but that takes a 'mode_flags' parameter.
1011 (vwarnx): Converted into a call to __vwarnx_internal.
1012 (__vwarn_internal): New function, renamed from vwarn, but that
1013 takes a 'mode_flags' parameter.
1014 (vwarn): Converted into a call to __vwarn_internal.
1015 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
1016 call to __vfxprintf with 'mode_flags'.
1017 (__error_internal): New function, renamed from error, but that
1018 takes a 'mode_flags' parameter.
1019 (error): Converted into a call to __error_internal.
1020 (__error_at_line_internal): New function, renamed from
1021 error_at_line, but that takes a 'mode_flags' parameter.
1022 (error_at_line): Converted into a call to
1023 __error_at_line_internal.
1024 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
1025 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
1026 Likewise.
1027
1028 2019-02-20 Martin Liska <mliska@suse.cz>
1029
1030 * math/Makefile: Install math-vector-fortran.h.
1031 * bits/math-vector-fortran.h: New file.
1032 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
1033
1034 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1035
1036 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
1037 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
1038
1039 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
1040
1041 * nptl/pthread_mutex_trylock.c: Fix comment.
1042
1043 2019-02-19 Carlos O'Donell <carlos@redhat.com>
1044
1045 * nptl/pthread_tryjoin.c: Fix comment.
1046
1047 2019-02-18 Joseph Myers <joseph@codesourcery.com>
1048
1049 [BZ #24231]
1050 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
1051 after R_SPARC_H34 case.
1052
1053 2019-02-18 Florian Weimer <fweimer@redhat.com>
1054
1055 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
1056 (getanswer): Do not call Dprintf.
1057 (res_gethostbyname2_context): Likewise.
1058 (res_gethostbyaddr_context): Likewise.
1059
1060 2019-02-18 Florian Weimer <fweimer@redhat.com>
1061
1062 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
1063 declaration.
1064 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
1065 Remove definitions.
1066 * libio/stdfiles.c: Update comment.
1067 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
1068 set _IO_stdin, _IO_stdout, _IO_stderr.
1069 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
1070 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
1071 inline function.
1072 (_IO_deallocate_file): New inline function.
1073 * libio/iolibio.h (_IO_vprintf): Remove definition.
1074 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
1075 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
1076 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
1077 _IO_legacy_file.
1078 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
1079 __builtin_expect. Use _IO_legacy_file.
1080
1081 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
1082
1083 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
1084 Initialize ctid with a known value and remove update of ctid
1085 after clone.
1086 (wait_tid): Adjust arguments and call futex_wait with ctid_val
1087 as assumed current value of ctid_ptr.
1088
1089 2019-02-15 Florian Weimer <fweimer@redhat.com>
1090
1091 Check that non-sysdeps headers have wrapper headers.
1092 * scripts/check-wrapper-headers.py: New file.
1093 * Makefile (tests-special): Add check-wrapper-headers.out.
1094 (check-wrapper-headers.out): New target.
1095 * Rules (tests-special): Add check-wrapper-headers.out.
1096 (check-wrapper-headers.out): New target.
1097
1098 2019-02-15 Florian Weimer <fweimer@redhat.com>
1099
1100 Add missing header wrappers under include/.
1101 * include/ar.h: New file.
1102 * include/bits/mqueue2.h: Likewise.
1103 * include/bits/stdio.h: Likewise.
1104 * include/bits/stdio2.h: Likewise.
1105 * include/fstab.h: Likewise.
1106 * include/fts.h: Likewise.
1107 * include/lastlog.h: Likewise.
1108 * include/netinet/icmp6.h: Likewise.
1109 * include/netinet/igmp.h: Likewise.
1110 * include/netinet/ip6.h: Likewise.
1111 * include/re_comp.h: Likewise.
1112 * include/regexp.h: Likewise.
1113 * include/rpcsvc/bootparam.h: Likewise.
1114 * include/rpcsvc/yp_prot.h: Likewise.
1115 * include/sys/random.h: Likewise.
1116 * include/sys/stropts.h: Likewise.
1117 * include/sys/ttychars.h: Likewise.
1118 * include/sys/vfs.h: Likewise.
1119 * include/wait.h: Likewise.
1120
1121 2019-02-15 Florian Weimer <fweimer@redhat.com>
1122
1123 * nptl_db/proc_service.h: Move to ...
1124 * sysdeps/nptl/proc_service.h: ... here.
1125 * nptl_db/thread_db.h: Move to ...
1126 * sysdeps/nptl/thread_db.h: ... here.
1127 * nptl/descr.h: Include <thread_db.h>.
1128
1129 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1130
1131 * io/Makefile (tests): Add tst-lockf.
1132 * io/lockf.c (lockf): Use __fcntl and only define for
1133 !__OFF_T_MATCHES_OFF64_T.
1134 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
1135 __OFF_T_MATCHES_OFF64_T case.
1136 * io/tst-lockf.c: New file.
1137 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
1138 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
1139 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
1140 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
1141 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
1142 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
1143 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
1144 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
1145 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
1146
1147 2019-02-15 Florian Weimer <fweimer@redhat.com>
1148
1149 [BZ #24211]
1150 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
1151 pd->result after the thread descriptor has been freed.
1152
1153 2019-02-15 Joseph Myers <joseph@codesourcery.com>
1154
1155 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
1156 from function return type.
1157
1158 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
1159
1160 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1161
1162 * scripts/test_printers_common.py: Set TERM to a known harmless
1163 value.
1164
1165 2019-02-14 Joseph Myers <joseph@codesourcery.com>
1166
1167 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
1168 (xdr_u_int): Likewise.
1169 (xdr_enum): Likewise.
1170 (xdr_bytes): Reword fall-through comment.
1171 (xdr_string): Likewise.
1172
1173 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1174
1175 [BZ #2421]
1176 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
1177 (tests): Add tst-join8 tst-join9.
1178 * nptl/lll_timedwait_tid.c: Remove file.
1179 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
1180 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
1181 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
1182 * nptl/pthread_join_common.c (timedwait_tid): New function.
1183 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
1184 is set.
1185 * nptl/tst-join5.c (thread_join): New function.
1186 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
1187 check.
1188 * nptl/tst-join8.c: New file.
1189 * nptl/tst-join9.c: Likewise.
1190 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
1191 lll_futex_timed_wait_cancel): Add generic macros.
1192 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
1193 Remove definitions.
1194 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
1195 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
1196 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
1197 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
1198 Remove function.
1199 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
1200 Likewise.
1201 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
1202 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
1203 (lll_futex_timed_wait_cancel): New macro.
1204
1205 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
1206
1207 * benchtests/Makefile: Add malloc-simple benchmark.
1208 * benchtests/bench-malloc-simple.c: New benchmark.
1209
1210 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
1211
1212 * benchtests/bench-memmove.c (do_one_test): Remove unused
1213 ORIG_SRC.
1214 (do_test): Adjust.
1215 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
1216 ORIG_SRC.
1217 (do_test): Adjust.
1218
1219 2019-01-13 Jim Wilson <jimw@sifive.com>
1220
1221 [BZ #24040]
1222 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
1223 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
1224 (func): New.
1225 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
1226 call func directly.
1227 * nptl/Makefile (tests): Add tst-unwind-thread.
1228 (CFLAGS-tst-unwind-thread.c): Define.
1229 * nptl/tst-unwind-thread.c: New file.
1230 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
1231 as undefined.
1232
1233 2019-02-13 Joseph Myers <joseph@codesourcery.com>
1234
1235 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
1236 comment wording.
1237 * nis/nis_call.c (__do_niscall3): Likewise.
1238
1239 * catgets/gencat.c (normalize_line): Use braces around empty
1240 'else' body.
1241 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
1242 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
1243 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
1244 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
1245 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
1246 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
1247 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
1248 definition.
1249
1250 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
1251 execlp returns.
1252
1253 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
1254
1255 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
1256 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
1257 * benchtests/bench-strchr.c (stupid_strchr): Remove.
1258 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
1259 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
1260 * benchtests/bench-strlen.c (builtin_strlen): Remove.
1261 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
1262 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
1263 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
1264 * benchtests/bench-strspn.c (stupid_strspn): Remove.
1265 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
1266 * benchtests/bench-bcopy.c: Delete file.
1267 * benchtests/bench-bzero.c: Likewise.
1268 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
1269 (simple_memccpy): Remove.
1270 (generic_memccpy): Add function.
1271 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
1272 * benchtests/bench-memmove.c (simple_bcopy): Remove.
1273 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
1274 (generic_mempcpy): Add new function.
1275 * benchtests/bench-memset.c (simple_bzero): Remove.
1276 (builtin_bzero): Remove.
1277 (builtin_memset): Remove.
1278 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
1279 (generic_rawmemchr): Add new function.
1280
1281 2019-02-12 Florian Weimer <fweimer@redhat.com>
1282
1283 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
1284
1285 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1286
1287 [BZ #24122]
1288 * elf/Makefile (tests): Add tst-audit13.
1289 (modules-names): Add tst-audit13mod1.
1290 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
1291 rule.
1292 * elf/tst-audit13.c: New file.
1293 * elf/tst-audit13mod1.c: Likewise.
1294
1295 2019-02-12 Florian Weimer <fweimer@redhat.com>
1296
1297 [BZ #24122]
1298 * elf/rtld.c (unload_audit_module): New function.
1299 (report_audit_module_load_error): Likewise.
1300 (load_audit_module): Likewise. Extracted from dl_main. Call
1301 _dl_close if the laversion symbol cannot be found. Use early
1302 returns for error handling. Add malloc error check. Check for a
1303 zero return value from la_version. Remove spurious comment about
1304 static TLS initialization. Remove useless casts.
1305 (notify_audit_modules_of_loaded_object): New function. Extracted
1306 from dl_main.
1307 (load_audit_module): Likewise.
1308 (dl_main): Call load_audit_modules.
1309
1310 2019-02-12 Joseph Myers <joseph@codesourcery.com>
1311
1312 * elf/dl-exception.c (_dl_exception_create_format): Add
1313 fall-through comments.
1314 * elf/ldconfig.c (parse_conf_include): Likewise.
1315 * elf/rtld.c (print_statistics): Likewise.
1316 * locale/programs/charmap.c (parse_charmap): Likewise.
1317 * misc/mntent_r.c (__getmntent_r): Likewise.
1318 * posix/wordexp.c (parse_arith): Likewise.
1319 (parse_backtick): Likewise.
1320 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
1321 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
1322 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1323
1324 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
1325
1326 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
1327 Use float instead of double.
1328
1329 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
1330
1331 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
1332
1333 2019-02-08 Joseph Myers <joseph@codesourcery.com>
1334
1335 * sysdeps/powerpc/bits/mathinline.h: Remove.
1336
1337 2019-02-08 Florian Weimer <fweimer@redhat.com>
1338
1339 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
1340 * math/bits/math-finite.h: Move to ...
1341 * bits/math-finite.h: ... here.
1342
1343 2019-02-08 Florian Weimer <fweimer@redhat.com>
1344
1345 * sysdeps/generic/bits/unistd_ext.h: Move to ...
1346 * bits/unistd_ext.h: here.
1347
1348 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
1349
1350 [BZ #21915]
1351 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
1352 * nss/tst-nss-files-hosts-long.c: New file.
1353 * nss/tst-nss-files-hosts-long.root: New directory.
1354 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
1355 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
1356
1357 2019-02-08 Florian Weimer <fweimer@redhat.com>
1358
1359 * include/bits/unistd_ext.h: Remove file.
1360 * posix/bits/unistd_ext.h: Move to ...
1361 * sysdeps/generic/bits/unistd_ext.h: ... here.
1362
1363 2019-02-08 Florian Weimer <fweimer@redhat.com>
1364
1365 * include/bits/unistd_ext.h: New file.
1366
1367 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
1368
1369 * time/tst-strftime2.c: Use array_length macros instead of magic
1370 numbers.
1371
1372 2019-02-08 Florian Weimer <fweimer@redhat.com>
1373
1374 [BZ #24161]
1375 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
1376 argument.
1377 * nptl/register-atfork.c (__run_fork_handlers): Only perform
1378 locking if the new do_locking argument is true.
1379 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
1380 __run_fork_handlers.
1381
1382 2019-02-08 Florian Weimer <fweimer@redhat.com>
1383
1384 [BZ #6399]
1385 Linux: Add gettid system call wrapper.
1386 * posix/Makefile (headers): Add bits/unistd_ext.h.
1387 * posix/bits/unistd_ext.h: New file.
1388 * posix/unistd.h: Include it.
1389 * manual/process.texi (Process Identification): Document gettid.
1390 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
1391 tst-gettid, tst-gettid-kill.
1392 (tst-gettid): Link with $(shared-thread-library).
1393 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
1394 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
1395 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
1396 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
1397 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
1398 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
1399 Add gettid.
1400 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
1401 Likewise.
1402 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
1403 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
1404 Likewise.
1405 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
1406 Likewise.
1407 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
1408 Likewise.
1409 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
1410 Likewise.
1411 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
1412 Likewise.
1413 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
1414 Likewise.
1415 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
1416 Likewise.
1417 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
1418 (GLIBC_2.30): Likewise.
1419 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
1420 (GLIBC_2.30): Likewise.
1421 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
1422 (GLIBC_2.30): Likewise.
1423 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
1424 (GLIBC_2.30): Likewise.
1425 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
1426 Likewise.
1427 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
1428 (GLIBC_2.30): Likewise.
1429 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
1430 (GLIBC_2.30): Likewise.
1431 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
1432 (GLIBC_2.30): Likewise.
1433 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
1434 (GLIBC_2.30): Likewise.
1435 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
1436 Likewise.
1437 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
1438 Likewise.
1439 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
1440 Likewise.
1441 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
1442 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
1443 Likewise.
1444 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
1445 Likewise.
1446 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
1447 Likewise.
1448 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
1449 Likewise.
1450 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
1451
1452 2019-02-07 Florian Weimer <fweimer@redhat.com>
1453
1454 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
1455 compatibility symbols.
1456
1457 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
1458
1459 [BZ #24180]
1460 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
1461 Add compiler barriers and comments.
1462
1463 2019-02-07 Florian Weimer <fweimer@redhat.com>
1464
1465 * include/array_length.h (array_length): Do not use a statement
1466 expression and _Static_assert, so that array_length can be used at
1467 file scope and as a constant expression.
1468
1469 2019-02-07 Florian Weimer <fweimer@redhat.com>
1470
1471 * support/xdlfcn.h (xdlmopen): Declare.
1472 * support/xdlmopen.c: New file.
1473 * support/Makefile (libsupport-routines): Add xdlmopen.
1474
1475 2019-02-06 Joseph Myers <joseph@codesourcery.com>
1476
1477 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
1478 before return type, without separate inline.
1479 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
1480 * elf/dl-tunables.h (tunable_is_name): Likewise.
1481 * malloc/malloc.c (do_set_trim_threshold): Likewise.
1482 (do_set_top_pad): Likewise.
1483 (do_set_mmap_threshold): Likewise.
1484 (do_set_mmaps_max): Likewise.
1485 (do_set_mallopt_check): Likewise.
1486 (do_set_perturb_byte): Likewise.
1487 (do_set_arena_test): Likewise.
1488 (do_set_arena_max): Likewise.
1489 (do_set_tcache_max): Likewise.
1490 (do_set_tcache_count): Likewise.
1491 (do_set_tcache_unsorted_limit): Likewise.
1492 * nis/nis_subr.c (count_dots): Likewise.
1493 * nptl/allocatestack.c (advise_stack_range): Likewise.
1494 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
1495 (do_sin): Likewise.
1496 (reduce_sincos): Likewise.
1497 (do_sincos): Likewise.
1498 * sysdeps/unix/sysv/linux/x86/elision-conf.c
1499 (do_set_elision_enable): Likewise.
1500 (TUNABLE_CALLBACK_FNDECL): Likewise.
1501
1502 2019-02-06 Florian Weimer <fweimer@redhat.com>
1503
1504 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
1505 (xdlsym): Use dlerror to detect a NULL symbol.
1506
1507 2019-02-06 Florian Weimer <fweimer@redhat.com>
1508
1509 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
1510 <stap-probe.h>.
1511 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
1512
1513 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1514
1515 * libio/tst-bz24153.c (wide): Use wide char format specifier.
1516
1517 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1518
1519 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
1520 __wmemcmp and weak alias to wmemcmp.
1521
1522 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1523
1524 [BZ #23403]
1525 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
1526 TLS_TCB_AT_TP tls variant.
1527 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
1528 Add alignment checks.
1529 * support/Makefile (libsupport-routines): Add xposix_memalign and
1530 xpthread_setstack.
1531 * support/support.h: Add xposix_memalign.
1532 * support/xthread.h: Add xpthread_attr_setstack.
1533 * support/xposix_memalign.c: New File.
1534 * support/xpthread_attr_setstack.c: Likewise.
1535
1536 2019-02-05 Florian Weimer <fweimer@redhat.com>
1537
1538 [BZ #24164]
1539 arm: Use "nr" constraint for Systemtap probes, to avoid the
1540 compiler using memory operands for constants, due to the "o"
1541 alternative in the default "nor" constraint.
1542 * include/stap-probe.h [USE_STAP_PROBE]: Include
1543 <stap-probe-machine.h>
1544 * sysdeps/generic/stap-probe-machine.h: New file.
1545 * sysdeps/arm/stap-probe-machine.h: Likewise.
1546
1547 2019-02-04 Joseph Myers <joseph@codesourcery.com>
1548
1549 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
1550 with 0, not tcache->entries[tc_idx].
1551
1552 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
1553 once.
1554
1555 2019-02-04 Andreas Schwab <schwab@suse.de>
1556
1557 [BZ #16976]
1558 [BZ #17396]
1559 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
1560 looking up collating elements match against (wide) character
1561 sequence instead of name. Correct alignment adjustment.
1562 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
1563 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
1564 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
1565 (LOCALES): Add cs_CZ.ISO-8859-2.
1566 * posix/tst-fnmatch4.c: New file.
1567 * posix/tst-fnmatch5.c: New file.
1568 * include/wchar.h (__wmemcmp): Declare.
1569 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
1570 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
1571 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
1572 * sysdeps/s390/wmemcmp.c: Likewise.
1573
1574 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
1575
1576 [BZ #24155]
1577 CVE-2019-7309
1578 * NEWS: Updated for CVE-2019-7309.
1579 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
1580 upper 32 bits of RDX register for x32. Use unsigned Jcc
1581 instructions, instead of signed.
1582 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
1583 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
1584
1585 2019-02-04 Florian Weimer <fweimer@redhat.com>
1586
1587 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
1588 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
1589 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
1590 Likewise.
1591 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
1592 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
1593 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
1594 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
1595 Likewise.
1596 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
1597 Likewise.
1598 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
1599 Likewise.
1600 (posix_spawn_file_actions_addopen): Likewise.
1601 (posix_spawn_file_actions_addclose): Likewise.
1602 (posix_spawn_file_actions_adddup2): Likewise.
1603 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
1604 qualifiers.
1605 (posix_spawn_file_actions_addfchdir_np): Likewise.
1606
1607 2019-02-04 David Newall <glibc@davidnewall.com>
1608
1609 elf: Implement --preload option for the dynamic linker.
1610 * elf/rtld.c (preloadarg): New variable.
1611 (handle_preload_list): Pass through “where” argument to
1612 do_preload.
1613 (dl_main): Handle "--preload" and add second call to
1614 handle_preload_list.
1615 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
1616 (tst-rtld-preload-OBJS): Set variable.
1617 (tst-rtld-preload.out): New target.
1618 * elf/tst-rtld-preload.sh: New file.
1619
1620 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
1621
1622 * Makefile (testrun.sh): Exit in case of incorrect argument.
1623
1624 2019-02-04 Florian Weimer <fweimer@redhat.com>
1625
1626 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
1627 alignment gaps.
1628
1629 2019-02-03 Florian Weimer <fweimer@redhat.com>
1630
1631 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
1632 implicit overflow checks.
1633
1634 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
1635
1636 * stdlib/isomac.c: Include <unistd.h>.
1637
1638 2019-02-03 Florian Weimer <fweimer@redhat.com>
1639
1640 * include/time.h (__tzfile_default): Use int, not long int, for
1641 the GMT offsets.
1642 * time/tzfile.c (struct ttinfo): Change type of the offset member
1643 to int.
1644 (__tzfile_read): Remove useless cast.
1645 (__tzfile_default): Adjust prototype.
1646 * time/tzset.c (tz_rule): Change type of the offset member to int.
1647 (parse_offset): Change the type of the sign variable to int.
1648
1649 2019-02-03 Florian Weimer <fweimer@redhat.com>
1650
1651 [BZ #24153]
1652 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
1653 * libio/getchar.c (getchar): Likewise.
1654 * libio/getchar_u.c (getchar_unlocked): Likewise.
1655 * libio/getwchar.c (getwchar): Likewise.
1656 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
1657 * libio/iogets.c (_IO_gets): Likewise.
1658 * libio/vscanf.c (_IO_vscanf): Likewise.
1659 * libio/vwscanf.c (__vwscanf): Likewise.
1660 * libio/tst-bz24153.c: New file.
1661 * libio/Makefile (tests): Add it.
1662
1663 2019-02-02 Florian Weimer <fweimer@redhat.com>
1664
1665 [BZ #14829]
1666 * manual/resource.texi (Basic Scheduling Functions): Add
1667 portability note. Change process to task throughout the section.
1668 Remove incorrect comment about sched_yield as it affects
1669 tasks/threads, not entire processes.
1670 * sysdeps/unix/sysv/linux/bits/posix_opt.h
1671 (_POSIX_PRIORITY_SCHEDULING): Update comment.
1672
1673 2019-02-01 Joseph Myers <joseph@codesourcery.com>
1674
1675 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
1676 * configure: Regenerated.
1677 * manual/install.texi (Tools for Compilation): Update minimum GCC
1678 version.
1679 * INSTALL: Regenerated.
1680
1681 2019-02-01 Florian Weimer <fweimer@redhat.com>
1682
1683 * support/support_test_compare_string.c
1684 (support_test_compare_string): Use "string" in error message.
1685 * support/tst-test_compare_string.c (do_test): Adjust.
1686
1687 2019-02-01 Florian Weimer <fweimer@redhat.com>
1688
1689 * support/support_format_address_family.c
1690 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
1691
1692 2019-02-01 Florian Weimer <fweimer@redhat.com>
1693
1694 * manual/socket.texi (Internet Address Formats): Clarify the byte
1695 order of struct sockaddr_in, struct sockaddr_in6. Document
1696 sin6_flowinfo and sin6_scope_id.
1697
1698 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
1699
1700 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
1701 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
1702 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
1703 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
1704 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
1705 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
1706
1707 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1708
1709 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
1710 [!MEMCHR](MEMCHR): Set to __memchr.
1711 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1712 Add memchr_generic and memchr_nosimd.
1713 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1714 (__libc_ifunc_impl_list): Add memchr ifuncs.
1715 * sysdeps/aarch64/multiarch/memchr.c: New file.
1716 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
1717 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
1718
1719 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1720
1721 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1722 Add memset_emag.
1723 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1724 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
1725 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
1726 Add IS_EMAG check for ifunc dispatch.
1727 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
1728 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
1729
1730 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1731
1732 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
1733 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1734 Add emag.
1735 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
1736 New macro.
1737
1738 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
1739
1740 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
1741
1742 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
1743
1744 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
1745 syscall-template file.
1746
1747 2019-01-31 Carlos O'Donell <carlos@redhat.com>
1748 Torvald Riegel <triegel@redhat.com>
1749 Rik Prohaska <prohaska7@gmail.com>
1750
1751 [BZ# 23844]
1752 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
1753 tst-rwlock-trywrlock-stall.
1754 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
1755 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
1756 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
1757 Set __wrphase_fute to 1 only if we started the write phase.
1758 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
1759 * nptl/tst-rwlock-trywrlock-stall.c: New file.
1760 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
1761 * support/xpthread_rwlock_destroy.c: New file.
1762 * support/xthread.h: Declare xpthread_rwlock_destroy.
1763
1764 2019-02-01 Joseph Myers <joseph@codesourcery.com>
1765
1766 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
1767 version to 4.0.2.
1768
1769 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
1770
1771 [BZ #24051]
1772 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
1773 * libio/fileops.c (_IO_new_file_underflow): Likewise
1774 * libio/wfileops.c (_IO_wfile_underflow): Likewise
1775 * libio/putchar.c (putchar): Likewise.
1776 * libio/putchar_u.c (putchar_unlocked): Likewise.
1777 * libio/putwchar.c (putchar): Likewise.
1778 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
1779 * libio/tst-bz24051.c: New test.
1780 * libio/Makefile (tests): Add tst-bz24051
1781
1782 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
1783
1784 CVE-2019-9169
1785 regex: fix read overrun [BZ #24114]
1786 Problem found by AddressSanitizer, reported by Hongxu Chen in:
1787 https://debbugs.gnu.org/34140
1788 * posix/regexec.c (proceed_next_node):
1789 Do not read past end of input buffer.
1790
1791 2019-01-31 Florian Weimer <fweimer@redhat.com>
1792
1793 [BZ #24059]
1794 * nss/nss_files/files-alias.c (get_next_alias): Handle
1795 continuation line without newline at the end.
1796 * nss/tst-nss-files-alias-truncated.c: New file.
1797 * nss/Makefile [$(build-shared)] (tests): Add
1798 tst-nss-files-alias-truncated.
1799 (tst-nss-files-alias-truncated): Link with libnss_files.so.
1800 * support/namespace.h (struct support_chroot_configuration): Add
1801 aliases member.
1802 (struct support_chroot): Add path_aliases member.
1803 * support/support_chroot.c (support_chroot_create): Handle
1804 aliases.
1805 (support_chroot_free): Free path_aliases.
1806
1807 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
1808
1809 * version.h (RELEASE): Set to "development".
1810 (VERSION): Set to "2.29.9000".
1811 * NEWS: Add section for 2.30.
1812
1813 * version.h (RELEASE): Set to "stable".
1814 (VERSION): Set to "2.29".
1815 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
1816
1817 * NEWS: Add the list of bugs fixed in 2.29.
1818 * manual/contrib.texi: Update contributors list with some more
1819 names.
1820 * manual/install.texi: Update latest versions of packages
1821 tested.
1822 * INSTALL: Regenerated.
1823
1824 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
1825
1826 * po/be.po: Update translations.
1827 * po/bg.po: Likewise.
1828 * po/ca.po: Likewise.
1829 * po/cs.po: Likewise.
1830 * po/da.po: Likewise.
1831 * po/de.po: Likewise.
1832 * po/el.po: Likewise.
1833 * po/eo.po: Likewise.
1834 * po/es.po: Likewise.
1835 * po/fi.po: Likewise.
1836 * po/fr.po: Likewise.
1837 * po/gl.po: Likewise.
1838 * po/hr.po: Likewise.
1839 * po/hu.po: Likewise.
1840 * po/ia.po: Likewise.
1841 * po/id.po: Likewise.
1842 * po/it.po: Likewise.
1843 * po/ja.po: Likewise.
1844 * po/ko.po: Likewise.
1845 * po/lt.po: Likewise.
1846 * po/nb.po: Likewise.
1847 * po/nl.po: Likewise.
1848 * po/pl.po: Likewise.
1849 * po/pt_BR.po: Likewise.
1850 * po/ru.po: Likewise.
1851 * po/rw.po: Likewise.
1852 * po/sk.po: Likewise.
1853 * po/sl.po: Likewise.
1854 * po/sv.po: Likewise.
1855 * po/tr.po: Likewise.
1856 * po/uk.po: Likewise.
1857 * po/vi.po: Likewise.
1858 * po/zh_CN.po: Likewise.
1859 * po/zh_TW.po: Likewise.
1860
1861 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
1862
1863 [BZ #24130]
1864 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
1865 of $f3 register on $y_is_neg path.
1866
1867 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
1868
1869 [BZ #24110]
1870 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
1871 sigaltstack.ss_flags.
1872
1873 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
1874
1875 [BZ #23758]
1876 * manual/time.texi (strftime): Document "%Ey".
1877 * time/strftime_l.c (__strftime_internal): Set the default width
1878 padding with zero of "%Ey" to 2.
1879
1880 [BZ #24096]
1881 * manual/time.texi (strftime): Document "%EC" and "%EY".
1882 * time/Makefile (tests): Add tst-strftime2.
1883 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
1884 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
1885 override padding for "%Ey".
1886 If an optional flag ('_' or '-') is specified to "%EY", interpret the
1887 "%Ey" in the subformat as if decorated with that flag.
1888 * time/tst-strftime2.c: New file.
1889
1890 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1891
1892 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
1893 are not defined.
1894
1895 [BZ #24122]
1896 * elf/Makefile (tests): Add tst-audit13.
1897 (modules-names): Add tst-audit13mod1.
1898 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
1899 rule.
1900 * elf/rtld.c (dl_main): Handle invalid audit module version.
1901 * elf/tst-audit13.c: New file.
1902 * elf/tst-audit13mod1.c: Likewise.
1903
1904 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
1905
1906 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
1907 returned by __hurd_at_flags.
1908 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
1909 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
1910 directly instead of __hurd_file_name_lookup.
1911
1912 2019-01-21 Joseph Myers <joseph@codesourcery.com>
1913
1914 * scripts/build-many-glibcs.py (Context.checkout): Default
1915 binutils version to 2.32 branch.
1916
1917 2019-01-21 Florian Weimer <fweimer@redhat.com>
1918
1919 [BZ #20018]
1920 CVE-2016-10739
1921 resolv: Reject trailing characters in host names
1922 * include/arpa/inet.h (__inet_aton_exact): Declare.
1923 (inet_aton): Remove hidden prototype. No longer used internally.
1924 * nscd/gai.c (__inet_aton): Do not define.
1925 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
1926 * nss/digits_dots.c (__inet_aton): Likewise.
1927 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
1928 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
1929 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
1930 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
1931 (tst-resolv-trailing): Likewise.
1932 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
1933 libc.
1934 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
1935 Make static. Add endp parameter.
1936 (__inet_aton_exact): New function.
1937 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
1938 (__inet_addr): Call inet_aton_end.
1939 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
1940 not just IPv6. Call __inet_aton_exact.
1941 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
1942 (tests): Make const. Add additional test cases with trailing
1943 characters.
1944 (do_test): Use array_length.
1945 * resolv/tst-inet_aton_exact.c: New file.
1946 * resolv/tst-resolv-trailing.c: Likewise.
1947 * resolv/tst-resolv-nondecimal.c: Likewise.
1948 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
1949
1950 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1951
1952 [BZ# 24097]
1953 CVE-2019-6488
1954 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
1955 Clear the upper 32 bits of RSI register.
1956 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
1957 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
1958 and tst-size_t-wcsnlen.
1959 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
1960 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
1961
1962 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1963
1964 [BZ# 24097]
1965 CVE-2019-6488
1966 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
1967 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
1968 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
1969 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
1970 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
1971
1972 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1973
1974 [BZ# 24097]
1975 CVE-2019-6488
1976 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
1977 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
1978 * sysdeps/x86_64/strcmp.S: Likewise.
1979 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
1980 tst-size_t-strncmp and tst-size_t-wcsncmp.
1981 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
1982 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
1983 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
1984
1985 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1986
1987 [BZ# 24097]
1988 CVE-2019-6488
1989 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
1990 RDX_LP for length. Clear the upper 32 bits of RDX register.
1991 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
1992 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
1993 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
1994 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
1995
1996 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1997
1998 [BZ# 24097]
1999 CVE-2019-6488
2000 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
2001 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
2002 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
2003 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
2004
2005 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
2006
2007 [BZ# 24097]
2008 CVE-2019-6488
2009 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
2010 length. Clear the upper 32 bits of RDX register.
2011 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
2012 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
2013 Likewise.
2014 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
2015 Likewise.
2016 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
2017 tst-size_t-wmemchr.
2018 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
2019
2020 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
2021
2022 [BZ# 24097]
2023 CVE-2019-6488
2024 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
2025 length. Clear the upper 32 bits of RDX register.
2026 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
2027 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
2028 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
2029 tst-size_t-wmemcmp.
2030 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
2031 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
2032
2033 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
2034
2035 [BZ# 24097]
2036 CVE-2019-6488
2037 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
2038 upper 32 bits of RDX register.
2039 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
2040 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
2041 tst-size_t-wmemchr.
2042 * sysdeps/x86_64/x32/test-size_t.h: New file.
2043 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
2044 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
2045
2046 2019-01-18 Florian Weimer <fweimer@redhat.com>
2047
2048 [BZ #24112]
2049 resolv: Do not send queries for non-host-names in nss_dns.
2050 * resolv/nss_dns/dns-host.c (check_name): New function.
2051 (_nss_dns_gethostbyname2_r): Use it.
2052 (_nss_dns_gethostbyname_r): Likewise.
2053 (_nss_dns_gethostbyname4_r): Likewise.
2054
2055 2019-01-21 Florian Weimer <fweimer@redhat.com>
2056
2057 * resolv/inet_addr.c: Reformat to GNU style.
2058 (__inet_addr, __inet_aton): Update comment.
2059
2060 2019-01-18 Florian Weimer <fweimer@redhat.com>
2061
2062 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
2063 ("malloc: Use current (C11-style) atomics for fastbin access").
2064 This commit introduces a substantial performance regression on
2065 POWER and Aarch64.
2066 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
2067 (REMOVE_FB): Define.
2068 (_int_malloc): Use it and reindent.
2069 (_int_free): Use CAS loop with
2070 catomic_compare_and_exchange_val_rel.
2071 (malloc_consolidate): Use atomic_exchange_acq.
2072
2073
2074 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
2075
2076 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
2077 -Wl,-z,now.
2078 (LDFLAGS-tst-minsigstksz-2): Likewise.
2079 (LDFLAGS-tst-minsigstksz-3): Likewise.
2080 (LDFLAGS-tst-minsigstksz-3a): Likewise.
2081 (LDFLAGS-tst-minsigstksz-4): Likewise.
2082
2083 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
2084
2085 * manual/time.texi (strftime): Fix the wording to "alternative" rather
2086 than "alternate".
2087
2088 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
2089
2090 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
2091
2092 2019-01-16 Zack Weinberg <zackw@panix.com>
2093
2094 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
2095 (xget_sigstack_location): New test support functions.
2096 * support/xsigstack.c: New file, implementing them.
2097 * support/tst-xsigstack.c: New test for them.
2098 * support/Makefile: Update.
2099
2100 * signal/tst-minsigstksz-1.c
2101 * signal/tst-minsigstksz-2.c
2102 * signal/tst-minsigstksz-3.c
2103 * signal/tst-minsigstksz-3a.c
2104 * signal/tst-minsigstksz-4.c: New tests.
2105 * signal/Makefile: Run them.
2106
2107 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
2108
2109 * po/libc.pot: Regenerate.
2110
2111 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2112
2113 * math/libm-test-fma.inc (fma_test_data): Set
2114 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
2115
2116 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
2117
2118 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
2119 (do_test): Changed __vector __int128_t to __vector unsigned int.
2120
2121 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
2122
2123 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2124 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
2125 stpcpy-avx2 and stpncpy-avx2.
2126 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
2127 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
2128 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
2129 and __stpncpy_avx2.
2130 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
2131 ifunc-strcpy.h}: rename header for a more generic name.
2132 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
2133 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
2134 AVX unaligned load is fast and vzeroupper is preferred.
2135 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
2136 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
2137 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
2138 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
2139 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
2140 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
2141
2142 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
2143
2144 * argp/argp-help.c: Fix typo in comment.
2145 * misc/sys/cdefs.h: Likewise.
2146 * posix/regexec.c (sift_states_iter_mb): Likewise.
2147 * socket/sockatmark.c: Likewise.
2148 * socket/sys/socket.h: Likewise.
2149 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
2150 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
2151 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
2152 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
2153 * sysdeps/unix/sockatmark.c: Likewise.
2154 * time/strptime_l.c: Likewise.
2155
2156 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
2157
2158 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
2159 missing space after the cast of "_NL_CURRENT".
2160
2161 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
2162
2163 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
2164 ifdef to fix read of VSCR.
2165 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
2166 tst-ucontext-ppc64-vscr.c to test list.
2167 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
2168
2169 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
2170
2171 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
2172 fall-through.
2173
2174 2019-01-09 Jim Wilson <jimw@sifive.com>
2175
2176 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
2177
2178 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
2179
2180 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
2181 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
2182 __memcpy_falkor for ares.
2183 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
2184 Add new define.
2185 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
2186 Add ares cpu.
2187
2188 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
2189
2190 [BZ #24066]
2191 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
2192 4_FP_W_TYPEs are used for IEEE quad precision.
2193 * soft-fp/extendhftf2.c: Likewise.
2194 * soft-fp/extendsftf2.c: Likewise.
2195 * soft-fp/extendxftf2.c: Likewise.
2196 * soft-fp/trunctfdf2.c: Likewise.
2197 * soft-fp/trunctfhf2.c: Likewise.
2198 * soft-fp/trunctfsf2.c: Likewise.
2199 * soft-fp/trunctfxf2.c: Likewise.
2200 * sysdeps/alpha/ots_cvttx.c: Likewise.
2201 * sysdeps/alpha/ots_cvtxt.c: Likewise.
2202 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
2203 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
2204 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
2205 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
2206 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
2207 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
2208 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
2209 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
2210 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
2211 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
2212 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
2213 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
2214 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
2215 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
2216 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
2217 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
2218
2219 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
2220
2221 [BZ #24024]
2222 * Makeconfig: Build libm with -fno-math-errno but build the remaining
2223 code with -fmath-errno.
2224 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
2225 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
2226 * string/test-strerror-errno.c: New file.
2227
2228 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
2229
2230 [BZ #24046]
2231 * localedata/locales/en_US (date_fmt): Add, set to
2232 "%a %d %b %Y %r %Z".
2233
2234 2019-01-07 Florian Weimer <fweimer@redhat.com>
2235
2236 [BZ #24063]
2237 * manual/arith.texi (Math Error Reporting): Use @code{errno}
2238 instead of @var{errno}.
2239 (Parsing of Integers): Likewise.
2240 (Parsing of Floats): Likewise.
2241 * manual/filesys.texi (Working with Directory Trees): Likewise.
2242 (Temporary Files): Likewise.
2243 * manual/job.texi (Terminal Access Functions): Likewise.
2244 * manual/llio.texi (Synchronizing I/O): Likewise.
2245 * manual/math.texi (SVID Random): Likewise.
2246 * manual/message.texi (The catgets Functions): Likewise.
2247 (Translation with gettext): Likewise.
2248 (Locating gettext catalog): Likewise.
2249 (Charset conversion in gettext): Likewise.
2250 * manual/nss.texi (NSS Module Function Internals): Likewise.
2251 * manual/search.texi (Hash Search Function): Likewise.
2252 * manual/setjmp.texi (System V contexts): Likewise.
2253 * manual/time.texi (Sleeping): Likewise.
2254 * manual/users.texi (Lookup User): Likewise.
2255 (Lookup Group): Likewise.
2256
2257 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2258
2259 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
2260 fix typo.
2261
2262 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
2263
2264 [BZ #19444]
2265 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
2266 __builtin_unreachable for default case in switch.
2267 (__ieee754_yn): Likewise.
2268 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
2269 (__ieee754_ynl): Likewise.
2270 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
2271 (__ieee754_ynl): Likewise.
2272 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
2273 (__ieee754_ynl): Likewise.
2274
2275 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
2276
2277 * manual/maint.texi: Use @{ and @}.
2278
2279 2019-01-04 Florian Weimer <fweimer@redhat.com>
2280
2281 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
2282 function.
2283 (do_in_chroot_1): Call it.
2284 (run_chroot_tests):
2285 Improve error reporting in case it is not possible to create a
2286 collision for the PTY name required by the test.
2287
2288 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2289
2290 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
2291 lll_wait_tid with timeout.
2292 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
2293 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
2294 futex_reltimed_wait_cancelable for cancelabla mode.
2295 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
2296 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
2297 macros.
2298 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
2299 * sysdeps/posix/waitid.c (__sigwait): Likewise.
2300 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
2301 SYSCALL_CANCEL_NCS): New macro.
2302 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
2303 (lll_timedwait_tid): Remove macro.
2304 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
2305 Likewise.
2306 (lll_timedwait_tid): Likewise.
2307 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
2308 Likewise.
2309 (lll_timedwait_tid): Likewise.
2310 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
2311 Likewise.
2312 (lll_timedwait_tid): Likewise.
2313 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
2314 Use INTERNAL_SYSCALL_CANCEL.
2315 * sysdeps/unix/sysv/linux/futex-internal.h
2316 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
2317 instead of __pthread_{enable,disable}_asynccancel.
2318 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
2319 (lll_futex_wait_cancel): New macro.
2320
2321 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
2322 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
2323
2324 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
2325 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
2326
2327 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
2328 in backtrace analysis.
2329 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
2330 side-effects.
2331 (tf_send): Likewise.
2332
2333 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
2334 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
2335 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
2336 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
2337 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
2338 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
2339 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
2340 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
2341 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
2342 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
2343 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
2344 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
2345 Likewise.
2346 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
2347 tst-cancel-wrappers.sh.
2348 (generated): Remove tst-cancel-wrappers.out.
2349 (tst-cancel-wrappers.out): Remove rule.
2350 * nptl/tst-cancel-wrappers.sh: Remove file.
2351
2352 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
2353
2354 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
2355 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
2356 Update.
2357
2358 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2359
2360 [BZ #23640]
2361 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
2362 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
2363 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
2364 close-on-exec reset for adddup2 file action.
2365 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
2366
2367 2019-01-03 Zack Weinberg <zackw@panix.com>
2368
2369 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
2370 parameter. Only use deprecated scanf when __USE_GNU is defined
2371 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
2372 than 201103L, whichever is relevant for the language being compiled.
2373
2374 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
2375 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
2376 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
2377 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
2378 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
2379
2380 * libio/iovsscanf.c
2381 * libio/fwscanf.c
2382 * libio/iovswscanf.c
2383 * libio/swscanf.c
2384 * libio/vscanf.c
2385 * libio/vwscanf.c
2386 * libio/wscanf.c
2387 * stdio-common/fscanf.c
2388 * stdio-common/scanf.c
2389 * stdio-common/vfscanf.c
2390 * stdio-common/vfwscanf.c
2391 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
2392 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
2393 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
2394 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
2395 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
2396 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
2397 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
2398 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
2399 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
2400 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
2401 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
2402 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
2403 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
2404 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
2405 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
2406
2407 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
2408 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
2409 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
2410 not sscanf.
2411 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
2412 with a preprocessor macro.
2413
2414 * stdio-common/bug21.c, stdio-common/scanf14.c:
2415 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
2416 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
2417 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
2418 to xscanf, xfscanf, xsscanf.
2419
2420 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
2421 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
2422 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
2423 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
2424 xfscanf, xsscanf.
2425 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
2426 override feature selection macros or provide definitions of u_char etc.
2427 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
2428 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
2429 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
2430 with -std=gnu89.
2431
2432 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2433
2434 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2435 bits/termios-misc.h.
2436 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
2437 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2438 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2439 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2440 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
2441 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
2442
2443 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
2444 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
2445 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
2446 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
2447 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
2448 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
2449 termios-misc.h.
2450 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
2451 (sysdep_headers): Add termios-misc.h.
2452
2453 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
2454 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2455 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2456
2457 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2458 termios-tcflow.h.
2459 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
2460 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
2461 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
2462 TCSAFLUSH): Move to termios-tcflow.h.
2463 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2464 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2465 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2466 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2467
2468 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2469 termios-c_lflag.h.
2470 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
2471 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
2472 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
2473 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
2474 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
2475 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
2476 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
2477 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
2478 Likewise.
2479 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2480 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2481 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2482 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2483
2484 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2485 termios-c_cflag.h.
2486 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
2487 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
2488 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
2489 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
2490 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
2491 termios-c_cflag.h.
2492 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2493 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2494 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2495 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2496
2497 [BZ #23783]
2498 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2499 termios-baud.h.
2500 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
2501 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
2502 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
2503 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
2504 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
2505 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
2506 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
2507 __MAX_BAUD): Move to termios-baud.h.
2508 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
2509 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
2510 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2511 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2512 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2513
2514 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
2515 termios-c_oflag.h.
2516 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
2517 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
2518 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
2519 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
2520 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
2521 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
2522 termios-c_oflag.h.
2523 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
2524 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
2525 FFR1): Likewise.
2526 [USE_MISC] (XTABS): Likewise.
2527 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2528 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2529 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2530 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
2531
2532 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
2533 termios-c_iflag.h.
2534 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
2535 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
2536 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
2537 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
2538 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
2539 IUTF8): Move to termios-c_iflag.h.
2540 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2541 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2542 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2543 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2544
2545 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
2546 termios-cc.h.
2547 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
2548 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
2549 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
2550 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
2551 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
2552 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
2553 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
2554 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
2555 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2556 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2557 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2558 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2559
2560 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
2561 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
2562 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
2563 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
2564 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2565 termios-struct.h.
2566 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
2567 termios-struct.h.
2568 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
2569 Likewise.
2570 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
2571 Likewise.
2572 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
2573 Likewise.
2574 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
2575 Likewise.
2576 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
2577 _HAVE_C_OSPEED): Define.
2578 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
2579 _HAVE_C_OSPEED): Likewise.
2580 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
2581 _HAVE_C_OSPEED): Likewise.
2582 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
2583 (cfsetospeed): Check for define value instead of existence.
2584 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
2585 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
2586 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
2587 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
2588 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
2589
2590 [BZ #17783]
2591 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
2592 Define.
2593 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
2594 (TIOCSER_TEMT): Likewise.
2595 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
2596 (TEOCSER_TEMT): Likewise.
2597
2598 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
2599
2600 [BZ #24011]
2601 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
2602
2603 2019-01-02 Joseph Myers <joseph@codesourcery.com>
2604
2605 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
2606
2607 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
2608
2609 * sysdeps/htl/pt-barrierattr-setpshared.c
2610 (pthread_barrierattr_setpshared): Add stub warning.
2611 * sysdeps/htl/pt-condattr-setpshared.c
2612 (pthread_condattr_setpshared): Likewise.
2613 * sysdeps/htl/pt-mutexattr-setpshared.c
2614 (pthread_mutexattr_setpshared): Likewise.
2615 * sysdeps/htl/pt-rwlockattr-setpshared.c
2616 (pthread_rwlockattr_setpshared): Likewise.
2617 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
2618 (pthread_mutexattr_setpshared): Likewise.
2619
2620 2019-01-02 Joseph Myers <joseph@codesourcery.com>
2621
2622 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
2623 constants to match with Linux 4.20.
2624
2625 * sysdeps/mips/mips32/libm-test-ulps: Update.
2626 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
2627
2628 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
2629
2630 [BZ #24034]
2631 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
2632 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
2633 than __typeof (...) for the a_ptr variable.
2634
2635 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2636
2637 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
2638 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
2639 * libio/Makefile (tests): Add tst-sprintf-ub and
2640 tst-sprintf-chk-ub.
2641 (CFLAGS-tst-sprintf-ub.c): New variable.
2642 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
2643 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
2644 destination buffer and check for overflows in fortified mode.
2645 * libio/libioP.h (PRINTF_CHK): New macro.
2646 * libio/tst-sprintf-chk-ub.c: New file.
2647 * libio/tst-sprintf-ub.c: Likewise.
2648
2649 2019-01-02 Florian Weimer <fweimer@redhat.com>
2650
2651 [BZ #24018]
2652 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
2653 failure.
2654
2655 2019-01-02 Florian Weimer <fweimer@redhat.com>
2656
2657 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
2658
2659 2019-01-01 Joseph Myers <joseph@codesourcery.com>
2660
2661 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
2662 macro.
2663
2664 * sysdeps/unix/sysv/linux/netpacket/packet.h
2665 (PACKET_IGNORE_OUTGOING): New macro.
2666
2667 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
2668 macro.
2669
2670 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
2671 version to 4.20.
2672 (riscv_flush_icache): New syscall.
2673
2674 * manual/texinfo.tex: Update to version 2018-12-28.17 with
2675 trailing whitespace removed.
2676 * scripts/config.guess: Update to version 2019-01-01.
2677 * scripts/config.sub: Update to version 2019-01-01.
2678 * scripts/move-if-change: Update from gnulib.
2679
2680 * NEWS: Update copyright dates.
2681 * catgets/gencat.c (print_version): Likewise.
2682 * csu/version.c (banner): Likewise.
2683 * debug/catchsegv.sh: Likewise.
2684 * debug/pcprofiledump.c (print_version): Likewise.
2685 * debug/xtrace.sh (do_version): Likewise.
2686 * elf/ldconfig.c (print_version): Likewise.
2687 * elf/ldd.bash.in: Likewise.
2688 * elf/pldd.c (print_version): Likewise.
2689 * elf/sotruss.sh: Likewise.
2690 * elf/sprof.c (print_version): Likewise.
2691 * iconv/iconv_prog.c (print_version): Likewise.
2692 * iconv/iconvconfig.c (print_version): Likewise.
2693 * locale/programs/locale.c (print_version): Likewise.
2694 * locale/programs/localedef.c (print_version): Likewise.
2695 * login/programs/pt_chown.c (print_version): Likewise.
2696 * malloc/memusage.sh (do_version): Likewise.
2697 * malloc/memusagestat.c (print_version): Likewise.
2698 * malloc/mtrace.pl: Likewise.
2699 * manual/libc.texinfo: Likewise.
2700 * nptl/version.c (banner): Likewise.
2701 * nscd/nscd.c (print_version): Likewise.
2702 * nss/getent.c (print_version): Likewise.
2703 * nss/makedb.c (print_version): Likewise.
2704 * posix/getconf.c (main): Likewise.
2705 * scripts/test-installation.pl: Likewise.
2706 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2707
2708 * All files with FSF copyright notices: Update copyright dates
2709 using scripts/update-copyrights.
2710 * locale/programs/charmap-kw.h: Regenerated.
2711 * locale/programs/locfile-kw.h: Likewise.
2712
2713 2018-12-31 Joseph Myers <joseph@codesourcery.com>
2714
2715 * timezone/zdump.c: Update from tzcode 2018i.
2716 * timezone/zic.c: Likewise.
2717
2718 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
2719
2720 regex: improve Gnulib port to AIX
2721 From the glibc point of view, this removes duplicate macro
2722 definitions and is obviously safe.
2723 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
2724 * posix/regex_internal.h:
2725 (__attribute__, __attribute_warn_unused_result__):
2726 Remove; already defined elsewhere.
2727
2728 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
2729
2730 [BZ #24027]
2731 * malloc/malloc.c (_int_realloc): Always call memcpy for the
2732 copying operation. (ncopies had the wrong type, resulting in an
2733 integer wraparound and too few elements being copied.)
2734
2735 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
2736
2737 [BZ #24022]
2738 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
2739 <asm/syscalls.h> exists with __has_include__ before including it.
2740
2741 2018-12-31 Joseph Myers <joseph@codesourcery.com>
2742
2743 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2744 version to 4.20.
2745
2746 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
2747
2748 * hurd/lookup-retry: Include <unistd.h>.
2749 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
2750 Release it on return. Handle "pid" magical lookup retry.
2751
2752 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
2753
2754 [BZ #10496]
2755 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
2756 (t_fmt_ampm): Likewise.
2757 * localedata/locales/aa_ER (t_fmt): Likewise.
2758 (t_fmt_ampm): Likewise.
2759 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
2760 (t_fmt_ampm): Likewise.
2761 * localedata/locales/aa_ET (t_fmt): Likewise.
2762 (t_fmt_ampm): Likewise.
2763 * localedata/locales/am_ET (t_fmt): Likewise.
2764 (t_fmt_ampm): Likewise.
2765 * localedata/locales/byn_ER (t_fmt): Likewise.
2766 (t_fmt_ampm): Likewise.
2767 * localedata/locales/om_ET (t_fmt): Likewise.
2768 (t_fmt_ampm): Likewise.
2769 * localedata/locales/sid_ET (t_fmt): Likewise.
2770 (t_fmt_ampm): Likewise.
2771 * localedata/locales/so_DJ (t_fmt): Likewise.
2772 (t_fmt_ampm): Likewise.
2773 * localedata/locales/so_ET (t_fmt): Likewise.
2774 (t_fmt_ampm): Likewise.
2775 * localedata/locales/so_SO (t_fmt): Likewise.
2776 (t_fmt_ampm): Likewise.
2777 * localedata/locales/ti_ER (t_fmt): Likewise.
2778 (t_fmt_ampm): Likewise.
2779 * localedata/locales/ti_ET (t_fmt): Likewise.
2780 (t_fmt_ampm): Likewise.
2781 * localedata/locales/tig_ER (t_fmt): Likewise.
2782 (t_fmt_ampm): Likewise.
2783 * localedata/locales/wal_ET (t_fmt): Likewise.
2784 (t_fmt_ampm): Likewise.
2785
2786 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
2787 * localedata/locales/ar_IN (t_fmt): Likewise.
2788 * localedata/locales/bhb_IN (t_fmt): Likewise.
2789 * localedata/locales/bho_IN (t_fmt): Likewise.
2790 * localedata/locales/bi_VU (t_fmt): Likewise.
2791 * localedata/locales/bn_BD (t_fmt): Likewise.
2792 * localedata/locales/bn_IN (t_fmt): Likewise.
2793 * localedata/locales/brx_IN (t_fmt): Likewise.
2794 * localedata/locales/doi_IN (t_fmt): Likewise.
2795 * localedata/locales/en_HK (t_fmt): Likewise.
2796 (t_fmt_ampm): Likewise.
2797 * localedata/locales/en_IN (t_fmt): Likewise.
2798 * localedata/locales/en_PH (t_fmt): Likewise.
2799 * localedata/locales/gu_IN (t_fmt): Likewise.
2800 * localedata/locales/hi_IN (t_fmt): Likewise.
2801 * localedata/locales/hif_FJ (t_fmt): Likewise.
2802 * localedata/locales/hne_IN (t_fmt): Likewise.
2803 * localedata/locales/kn_IN (t_fmt): Likewise.
2804 * localedata/locales/kok_IN (t_fmt): Likewise.
2805 * localedata/locales/ks_IN (t_fmt): Likewise.
2806 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
2807 * localedata/locales/mag_IN (t_fmt): Likewise.
2808 * localedata/locales/mai_IN (t_fmt): Likewise.
2809 * localedata/locales/mjw_IN (t_fmt): Likewise.
2810 * localedata/locales/ml_IN (t_fmt): Likewise.
2811 * localedata/locales/mni_IN (t_fmt): Likewise.
2812 * localedata/locales/mr_IN (t_fmt): Likewise.
2813 * localedata/locales/ms_MY (t_fmt): Likewise.
2814 * localedata/locales/pa_IN (t_fmt): Likewise.
2815 * localedata/locales/raj_IN (t_fmt): Likewise.
2816 * localedata/locales/sa_IN (t_fmt): Likewise.
2817 * localedata/locales/sat_IN (t_fmt): Likewise.
2818 * localedata/locales/sd_IN (t_fmt): Likewise.
2819 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
2820 * localedata/locales/tcy_IN (t_fmt): Likewise.
2821 * localedata/locales/the_NP (t_fmt): Likewise.
2822 * localedata/locales/to_TO (t_fmt): Likewise.
2823 * localedata/locales/ur_IN (t_fmt): Likewise.
2824
2825 * localedata/locales/hif_FJ (d_t_fmt): Set to
2826 "%A %d %b %Y %I:%M:%S %p".
2827 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
2828
2829 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
2830 * localedata/locales/ar_BH (t_fmt): Likewise.
2831 * localedata/locales/ar_DZ (t_fmt): Likewise.
2832 * localedata/locales/ar_EG (t_fmt): Likewise.
2833 * localedata/locales/ar_IQ (t_fmt): Likewise.
2834 * localedata/locales/ar_JO (t_fmt): Likewise.
2835 * localedata/locales/ar_KW (t_fmt): Likewise.
2836 * localedata/locales/ar_LB (t_fmt): Likewise.
2837 * localedata/locales/ar_LY (t_fmt): Likewise.
2838 * localedata/locales/ar_OM (t_fmt): Likewise.
2839 * localedata/locales/ar_QA (t_fmt): Likewise.
2840 * localedata/locales/ar_SD (t_fmt): Likewise.
2841 * localedata/locales/ar_SS (t_fmt): Likewise.
2842 * localedata/locales/ar_SY (t_fmt): Likewise.
2843 * localedata/locales/ar_TN (t_fmt): Likewise.
2844 * localedata/locales/ar_YE (t_fmt): Likewise.
2845
2846 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
2847 (t_fmt_ampm): Likewise.
2848 * localedata/locales/gez_ET (t_fmt): Likewise.
2849 (t_fmt_ampm): Likewise.
2850
2851 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
2852 (t_fmt_ampm): Likewise.
2853 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
2854
2855 * localedata/locales/zh_HK (t_fmt):
2856 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
2857
2858 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
2859 because this locale does not use the 12-hour clock.
2860 (t_fmt): Set to "%Z %H:%M:%S".
2861 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
2862
2863 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
2864 because this locale does not use the 12-hour clock.
2865 (t_fmt): Set to "%H:%M:%S %Z".
2866 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
2867
2868 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
2869 because this locale does not use the 12-hour clock.
2870 (t_fmt): Set to "%T".
2871 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
2872 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
2873
2874 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
2875 because this locale does not use the 12-hour clock.
2876 (t_fmt): Set to "%H:%M:%S %Z".
2877 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
2878
2879 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
2880 because this locale does not use the 12-hour clock.
2881 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
2882 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
2883
2884 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
2885
2886 [BZ #10496]
2887 [BZ #23724]
2888 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
2889 (t_fmt_ampm): Likewise.
2890 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
2891 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
2892 (d_fmt): Set to "%-d.%-m.%y".
2893
2894 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2895
2896 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
2897 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
2898 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
2899 Likewise.
2900 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
2901 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
2902 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
2903 function.
2904 * support/blob_repeat.c (check_mul_overflow_size_t,
2905 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
2906
2907 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
2908
2909 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
2910
2911 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
2912
2913 regex: simplify Gnulib port
2914 This simplifies the code, by removing stuff intended for porting
2915 to Gnulib but no longer needed there.
2916 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
2917 uses of libc_hidden_def, weak_alias.
2918 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
2919 _Restrict_ except for public-facing headers.
2920 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
2921 Remove; already defined elsewhere.
2922 * posix/regex.c, posix/regex_internal.h:
2923 Use __GNUC_PREREQ instead of rolling our own.
2924 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
2925
2926 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
2927
2928 * benchtests/bench-strlen.c (generic_strlen): New function.
2929 (memchr_strlen): New function.
2930
2931 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2932
2933 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
2934 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
2935 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
2936
2937 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2938
2939 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
2940
2941 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2942
2943 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
2944 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
2945 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
2946 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
2947 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
2948 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
2949 <sysdeps/ieee754/flt-32/s_sincosf.c>.
2950
2951 2018-12-21 Joseph Myers <joseph@codesourcery.com>
2952
2953 [BZ #24023]
2954 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
2955 PLT reference in libc.so.
2956 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
2957 _Q_lltoq and _Q_qtod PLT references in libc.so.
2958
2959 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
2960
2961 * benchtests/bench-memchr.c: Cleanup defines.
2962 * benchtests/bench-memcmp.c: Likewise.
2963 * benchtests/bench-memset.c: Likewise.
2964 * benchtests/bench-memset-large.c: Likewise.
2965 * benchtests/bench-memset-walk.c: Likewise.
2966 * benchtests/bench-stpcpy.c: Likewise.
2967 * benchtests/bench-stpncpy.c: Likewise.
2968 * benchtests/bench-strcat.c: Likewise.
2969 * benchtests/bench-strchr.c: Likewise.
2970 * benchtests/bench-strcmp.c: Likewise.
2971 * benchtests/bench-strcpy.c: Likewise.
2972 * benchtests/bench-strcspn.c: Likewise.
2973 * benchtests/bench-string.h: Likewise.
2974 * benchtests/bench-strlen.c: Likewise.
2975 * benchtests/bench-strncat.c: Likewise.
2976 * benchtests/bench-strncmp.c: Likewise.
2977 * benchtests/bench-strncpy.c: Likewise.
2978 * benchtests/bench-strnlen.c: Likewise.
2979 * benchtests/bench-strpbrk.c: Likewise.
2980 * benchtests/bench-strrchr.c: Likewise.
2981 * benchtests/bench-strspn.c: Likewise.
2982
2983 2018-12-21 Joseph Myers <joseph@codesourcery.com>
2984
2985 * stdlib/longlong.h: Update from GCC.
2986
2987 [BZ #23993]
2988 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
2989 * configure: Regenerated.
2990 * manual/install.texi (Tools for Compilation): Update minimum GCC
2991 version.
2992 * INSTALL: Regenerated.
2993
2994 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
2995
2996 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
2997
2998 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
2999
3000 * malloc/malloc.c (mremap_chunk): Additional checks.
3001
3002 2018-12-21 Mao Han <han_mao@c-sky.com>
3003
3004 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
3005 * scripts/build-many-glibcs.py: Add C-SKY targets.
3006 * sysdeps/csky/Implies: New file.
3007 * sysdeps/csky/Makefile: Likewise.
3008 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
3009 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
3010 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
3011 * sysdeps/csky/abiv2/memcmp.S: Likewise.
3012 * sysdeps/csky/abiv2/memcpy.S: Likewise.
3013 * sysdeps/csky/abiv2/memmove.S: Likewise.
3014 * sysdeps/csky/abiv2/memset.S: Likewise.
3015 * sysdeps/csky/abiv2/setjmp.S: Likewise.
3016 * sysdeps/csky/abiv2/start.S: Likewise.
3017 * sysdeps/csky/abiv2/strcmp.S: Likewise.
3018 * sysdeps/csky/abiv2/strcpy.S: Likewise.
3019 * sysdeps/csky/abiv2/strlen.S: Likewise.
3020 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
3021 * sysdeps/csky/abort-instr.h: Likewise.
3022 * sysdeps/csky/atomic-machine.h: Likewise.
3023 * sysdeps/csky/bits/endian.h: Likewise.
3024 * sysdeps/csky/bits/fenv.h: Likewise.
3025 * sysdeps/csky/bits/link.h: Likewise.
3026 * sysdeps/csky/bits/setjmp.h: Likewise.
3027 * sysdeps/csky/bsd-_setjmp.S: Likewise.
3028 * sysdeps/csky/bsd-setjmp.S: Likewise.
3029 * sysdeps/csky/configure: Likewise.
3030 * sysdeps/csky/configure.ac: Likewise.
3031 * sysdeps/csky/dl-machine.h: Likewise.
3032 * sysdeps/csky/dl-procinfo.c: Likewise.
3033 * sysdeps/csky/dl-procinfo.h: Likewise.
3034 * sysdeps/csky/dl-sysdep.h: Likewise.
3035 * sysdeps/csky/dl-tls.h: Likewise.
3036 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
3037 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
3038 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
3039 * sysdeps/csky/fpu/fegetenv.c: Likewise.
3040 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
3041 * sysdeps/csky/fpu/fegetmode.c: Likewise.
3042 * sysdeps/csky/fpu/fegetround.c: Likewise.
3043 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
3044 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
3045 * sysdeps/csky/fpu/fenv_private.h: Likewise.
3046 * sysdeps/csky/fpu/fesetenv.c: Likewise.
3047 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
3048 * sysdeps/csky/fpu/fesetmode.c: Likewise.
3049 * sysdeps/csky/fpu/fesetround.c: Likewise.
3050 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
3051 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
3052 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
3053 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
3054 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
3055 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
3056 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
3057 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
3058 * sysdeps/csky/fpu_control.h: Likewise.
3059 * sysdeps/csky/gccframe.h: Likewise.
3060 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
3061 * sysdeps/csky/ldsodefs.h: Likewise.
3062 * sysdeps/csky/libc-tls.c: Likewise.
3063 * sysdeps/csky/linkmap.h: Likewise.
3064 * sysdeps/csky/machine-gmon.h: Likewise.
3065 * sysdeps/csky/memusage.h: Likewise.
3066 * sysdeps/csky/nofpu/Implies: Likewise.
3067 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
3068 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
3069 * sysdeps/csky/nptl/Makefile: Likewise.
3070 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
3071 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
3072 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
3073 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
3074 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
3075 * sysdeps/csky/nptl/tls.h: Likewise.
3076 * sysdeps/csky/preconfigure: Likewise.
3077 * sysdeps/csky/sfp-machine.h: Likewise.
3078 * sysdeps/csky/sotruss-lib.c: Likewise.
3079 * sysdeps/csky/stackinfo.h: Likewise.
3080 * sysdeps/csky/sysdep.h: Likewise.
3081 * sysdeps/csky/tininess.h: Likewise.
3082 * sysdeps/csky/tst-audit.h: Likewise.
3083 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
3084 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
3085 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
3086 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
3087 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
3088 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
3089 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
3090 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
3091 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
3092 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
3093 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
3094 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
3095 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
3096 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
3097 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
3098 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
3099 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
3100 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
3101 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
3102 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
3103 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
3104 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
3105 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
3106 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
3107 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
3108 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
3109 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
3110 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
3111 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
3112 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
3113 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
3114 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
3115 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
3116 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
3117 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
3118 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
3119 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
3120 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
3121 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
3122 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
3123 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
3124 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
3125 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
3126 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
3127
3128 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
3129
3130 * include/time.h (__difftime64): Add.
3131 * time/difftime.c (subtract): convert to 64-bit time.
3132 * time/difftime.c (__difftime64): Add.
3133 * time/difftime.c (__difftime): Wrap around __difftime64.
3134
3135 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
3136
3137 * manual/examples/add.c: Remove redundant "if not".
3138 * manual/examples/argp-ex1.c: Likewise.
3139 * manual/examples/argp-ex2.c: Likewise.
3140 * manual/examples/argp-ex3.c: Likewise.
3141 * manual/examples/argp-ex4.c: Likewise.
3142 * manual/examples/atexit.c: Likewise.
3143 * manual/examples/db.c: Likewise.
3144 * manual/examples/dir.c: Likewise.
3145 * manual/examples/dir2.c: Likewise.
3146 * manual/examples/execinfo.c: Likewise.
3147 * manual/examples/filecli.c: Likewise.
3148 * manual/examples/filesrv.c: Likewise.
3149 * manual/examples/fmtmsgexpl.c: Likewise.
3150 * manual/examples/genpass.c: Likewise.
3151 * manual/examples/inetcli.c: Likewise.
3152 * manual/examples/inetsrv.c: Likewise.
3153 * manual/examples/isockad.c: Likewise.
3154 * manual/examples/longopt.c: Likewise.
3155 * manual/examples/memopen.c: Likewise.
3156 * manual/examples/memstrm.c: Likewise.
3157 * manual/examples/mkdirent.c: Likewise.
3158 * manual/examples/mkfsock.c: Likewise.
3159 * manual/examples/mkisock.c: Likewise.
3160 * manual/examples/mygetpass.c: Likewise.
3161 * manual/examples/pipe.c: Likewise.
3162 * manual/examples/popen.c: Likewise.
3163 * manual/examples/rprintf.c: Likewise.
3164 * manual/examples/search.c: Likewise.
3165 * manual/examples/select.c: Likewise.
3166 * manual/examples/setjmp.c: Likewise.
3167 * manual/examples/sigh1.c: Likewise.
3168 * manual/examples/sigusr.c: Likewise.
3169 * manual/examples/stpcpy.c: Likewise.
3170 * manual/examples/strdupa.c: Likewise.
3171 * manual/examples/strftim.c: Likewise.
3172 * manual/examples/subopt.c: Likewise.
3173 * manual/examples/swapcontext.c: Likewise.
3174 * manual/examples/termios.c: Likewise.
3175 * manual/examples/testopt.c: Likewise.
3176 * manual/examples/testpass.c: Likewise.
3177 * manual/examples/timeval_subtract.c: Likewise.
3178
3179 2018-12-19 Joseph Myers <joseph@codesourcery.com>
3180
3181 * sysdeps/x86/fpu/math_private.h: New file.
3182 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
3183
3184 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
3185 definition.
3186 (cosh): Likewise.
3187 (tanh): Likewise.
3188
3189 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3190
3191 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
3192 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
3193 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
3194 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
3195 fields.
3196 (_dl_show_auxv): Give a special treatment to
3197 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
3198 and AT_L3_CACHEGEOMETRY.
3199 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
3200 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
3201 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
3202 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
3203
3204 2018-12-19 Andreas Schwab <schwab@suse.de>
3205
3206 * nscd/connections.c (check_use): Don't abort on invalid len.
3207
3208 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
3209
3210 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
3211 values in the 64bit value cases.
3212
3213 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
3214
3215 * include/time.h
3216 (__ctime64_r): Add.
3217 * time/ctime_r.c
3218 (__ctime64_r): Add.
3219 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
3220
3221 * include/time.h
3222 (__ctime64): Add.
3223 * time/gmtime.c
3224 (__ctime64): Add.
3225 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
3226
3227 * include/time.h
3228 (__gmtime64_r): Add.
3229 * time/gmtime.c
3230 (__gmtime64_r): Add.
3231 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
3232
3233 * include/time.h
3234 (__gmtime64): Add.
3235 * time/gmtime.c
3236 (__gmtime64): Add.
3237 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
3238
3239 * include/time.h
3240 (__localtime64_r): Add.
3241 * time/localtime.c
3242 (__localtime64_r): Add.
3243 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
3244
3245 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3246
3247 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
3248 kernel_sigction definition.
3249
3250 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
3251
3252 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
3253
3254 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
3255 __syscall_rt_sigaction.
3256 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
3257 (kernel_sigaction): Use Linux generic defintion.
3258 (STUB): Define.
3259 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
3260 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
3261 (__syscall_rt_sigaction): Remove implementation.
3262 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
3263 hidden.
3264 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
3265 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
3266 INTERNAL_SYSCALL): Remove definitions.
3267 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
3268 action and signal set size.
3269 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
3270 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
3271
3272 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3273 James Clarke <jrtc27@jrtc27.com>
3274
3275 [BZ #23967]
3276 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
3277 Define if SA_RESTORER is defined.
3278 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
3279 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
3280 already defined.
3281 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
3282 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
3283 definitions.
3284 (HAS_SA_RESTORER): Define.
3285 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
3286 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
3287 (HAS_SA_RESTORER): Define.
3288 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
3289 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
3290 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
3291 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
3292 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
3293
3294 2018-12-18 Joseph Myers <joseph@codesourcery.com>
3295
3296 * sysdeps/unix/sysv/linux/kernel-features.h
3297 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
3298 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3299 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
3300 * sysdeps/unix/sysv/linux/sh/kernel-features.h
3301 (__ASSUME_ST_INO_64_BIT): Likewise.
3302 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
3303 <kernel-features.h>.
3304 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
3305 Remove conditional code.
3306 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
3307 <kernel-features.h>.
3308 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
3309 Remove conditional code.
3310 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
3311 <kernel-features.h>.
3312 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
3313 Remove conditional code.
3314 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
3315 <kernel-features.h>.
3316 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
3317 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
3318
3319 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3320
3321 * sysdeps/s390/multiarch/ifunc-resolve.h
3322 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
3323 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
3324 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
3325 Delete macro definition.
3326 (s390_libc_ifunc_init): Rename to
3327 s390_libc_ifunc_expr_stfle_init.
3328 * sysdeps/s390/bzero: Use
3329 s390_libc_ifunc_expr_stfle_init instead of
3330 s390_libc_ifunc_init.
3331 * sysdeps/s390/memcmp.c: Likewise.
3332 * sysdeps/s390/memcpy.c: Likewise.
3333 * sysdeps/s390/mempcpy.c: Likewise.
3334 * sysdeps/s390/memset.c: Likewise.
3335
3336 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3337
3338 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
3339 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
3340
3341 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3342
3343 * sysdeps/s390/multiarch/Makefile
3344 (sysdep_routines): Remove wmemcmp variants.
3345 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
3346 * sysdeps/s390/multiarch/ifunc-impl-list.c
3347 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
3348 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
3349 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
3350 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
3351 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
3352 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
3353 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
3354 * sysdeps/s390/ifunc-wmemcmp.h: New file.
3355
3356 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3357
3358 * sysdeps/s390/multiarch/Makefile
3359 (sysdep_routines): Remove wmemset variants.
3360 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
3361 * sysdeps/s390/multiarch/ifunc-impl-list.c
3362 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
3363 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
3364 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
3365 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
3366 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
3367 * sysdeps/s390/multiarch/wmemset.c: Move to ...
3368 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
3369 * sysdeps/s390/ifunc-wmemset.h: New file.
3370
3371 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3372
3373 * sysdeps/s390/multiarch/Makefile
3374 (sysdep_routines): Remove wmemchr variants.
3375 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
3376 * sysdeps/s390/multiarch/ifunc-impl-list.c
3377 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
3378 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
3379 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
3380 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
3381 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
3382 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
3383 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
3384 * sysdeps/s390/ifunc-wmemchr.h: New file.
3385
3386 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3387
3388 * sysdeps/s390/multiarch/Makefile
3389 (sysdep_routines): Remove wcscspn variants.
3390 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
3391 * sysdeps/s390/multiarch/ifunc-impl-list.c
3392 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
3393 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
3394 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
3395 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
3396 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
3397 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
3398 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
3399 * sysdeps/s390/ifunc-wcscspn.h: New file.
3400
3401 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3402
3403 * sysdeps/s390/multiarch/Makefile
3404 (sysdep_routines): Remove wcspbrk variants.
3405 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
3406 * sysdeps/s390/multiarch/ifunc-impl-list.c
3407 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
3408 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
3409 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
3410 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
3411 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
3412 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
3413 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
3414 * sysdeps/s390/ifunc-wcspbrk.h: New file.
3415
3416 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3417
3418 * sysdeps/s390/multiarch/Makefile
3419 (sysdep_routines): Remove wcsspn variants.
3420 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
3421 * sysdeps/s390/multiarch/ifunc-impl-list.c
3422 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
3423 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
3424 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
3425 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
3426 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
3427 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
3428 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
3429 * sysdeps/s390/ifunc-wcsspn.h: New file.
3430
3431 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3432
3433 * sysdeps/s390/multiarch/Makefile
3434 (sysdep_routines): Remove wcsrchr variants.
3435 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
3436 * sysdeps/s390/multiarch/ifunc-impl-list.c
3437 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
3438 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
3439 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
3440 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
3441 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
3442 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
3443 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
3444 * sysdeps/s390/ifunc-wcsrchr.h: New file.
3445
3446 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3447
3448 * sysdeps/s390/multiarch/Makefile
3449 (sysdep_routines): Remove wcschrnul variants.
3450 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
3451 * sysdeps/s390/multiarch/ifunc-impl-list.c
3452 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
3453 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
3454 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
3455 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
3456 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
3457 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
3458 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
3459 * sysdeps/s390/ifunc-wcschrnul.h: New file.
3460
3461 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3462
3463 * sysdeps/s390/multiarch/Makefile
3464 (sysdep_routines): Remove wcschr variants.
3465 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
3466 * sysdeps/s390/multiarch/ifunc-impl-list.c
3467 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
3468 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
3469 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
3470 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
3471 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
3472 * sysdeps/s390/multiarch/wcschr.c: Move to ...
3473 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
3474 * sysdeps/s390/ifunc-wcschr.h: New file.
3475
3476 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3477
3478 * sysdeps/s390/multiarch/Makefile
3479 (sysdep_routines): Remove wcsncmp variants.
3480 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
3481 * sysdeps/s390/multiarch/ifunc-impl-list.c
3482 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
3483 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
3484 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
3485 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
3486 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
3487 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
3488 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
3489 * sysdeps/s390/ifunc-wcsncmp.h: New file.
3490
3491 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3492
3493 * sysdeps/s390/multiarch/Makefile
3494 (sysdep_routines): Remove wcscmp variants.
3495 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
3496 * sysdeps/s390/multiarch/ifunc-impl-list.c
3497 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
3498 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
3499 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
3500 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
3501 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
3502 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
3503 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
3504 * sysdeps/s390/ifunc-wcscmp.h: New file.
3505
3506 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3507
3508 * sysdeps/s390/multiarch/Makefile
3509 (sysdep_routines): Remove wcsncat variants.
3510 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
3511 * sysdeps/s390/multiarch/ifunc-impl-list.c
3512 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
3513 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
3514 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
3515 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
3516 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
3517 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
3518 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
3519 * sysdeps/s390/ifunc-wcsncat.h: New file.
3520
3521 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3522
3523 * sysdeps/s390/multiarch/Makefile
3524 (sysdep_routines): Remove wcscat variants.
3525 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
3526 * sysdeps/s390/multiarch/ifunc-impl-list.c
3527 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
3528 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
3529 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
3530 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
3531 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
3532 * sysdeps/s390/multiarch/wcscat.c: Move to ...
3533 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
3534 * sysdeps/s390/ifunc-wcscat.h: New file.
3535
3536 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3537
3538 * sysdeps/s390/multiarch/Makefile
3539 (sysdep_routines): Remove wcpncpy variants.
3540 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
3541 * sysdeps/s390/multiarch/ifunc-impl-list.c
3542 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
3543 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
3544 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
3545 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
3546 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
3547 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
3548 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
3549 * sysdeps/s390/ifunc-wcpncpy.h: New file.
3550
3551 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3552
3553 * sysdeps/s390/multiarch/Makefile
3554 (sysdep_routines): Remove wcsncpy variants.
3555 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
3556 * sysdeps/s390/multiarch/ifunc-impl-list.c
3557 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
3558 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
3559 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
3560 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
3561 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
3562 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
3563 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
3564 * sysdeps/s390/ifunc-wcsncpy.h: New file.
3565
3566 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3567
3568 * sysdeps/s390/multiarch/Makefile
3569 (sysdep_routines): Remove wcpcpy variants.
3570 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
3571 * sysdeps/s390/multiarch/ifunc-impl-list.c
3572 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
3573 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
3574 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
3575 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
3576 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
3577 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
3578 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
3579 * sysdeps/s390/ifunc-wcpcpy.h: New file.
3580
3581 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3582
3583 * sysdeps/s390/multiarch/Makefile
3584 (sysdep_routines): Remove wcscpy variants.
3585 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
3586 * sysdeps/s390/multiarch/ifunc-impl-list.c
3587 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
3588 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
3589 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
3590 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
3591 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
3592 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
3593 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
3594 * sysdeps/s390/ifunc-wcscpy.h: New file.
3595
3596 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3597
3598 * sysdeps/s390/multiarch/Makefile
3599 (sysdep_routines): Remove wcsnlen variants.
3600 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
3601 * sysdeps/s390/multiarch/ifunc-impl-list.c
3602 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
3603 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
3604 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
3605 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
3606 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
3607 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
3608 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
3609 * sysdeps/s390/ifunc-wcsnlen.h: New file.
3610
3611 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3612
3613 * sysdeps/s390/multiarch/Makefile
3614 (sysdep_routines): Remove wcslen variants.
3615 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
3616 * sysdeps/s390/multiarch/ifunc-impl-list.c
3617 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
3618 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
3619 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
3620 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
3621 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
3622 * sysdeps/s390/multiarch/wcslen.c: Move to ...
3623 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
3624 * sysdeps/s390/ifunc-wcslen.h: New file.
3625
3626 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3627
3628 * sysdeps/s390/multiarch/Makefile
3629 (sysdep_routines): Remove memrchr variants.
3630 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
3631 * sysdeps/s390/multiarch/ifunc-impl-list.c
3632 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
3633 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
3634 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
3635 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
3636 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
3637 * sysdeps/s390/multiarch/memrchr.c: Move to ...
3638 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
3639 * sysdeps/s390/ifunc-memrchr.h: New file.
3640
3641 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3642
3643 * sysdeps/s390/multiarch/Makefile
3644 (sysdep_routines): Remove memccpy variants.
3645 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
3646 * sysdeps/s390/multiarch/ifunc-impl-list.c
3647 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
3648 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
3649 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
3650 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
3651 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
3652 * sysdeps/s390/multiarch/memccpy.c: Move to ...
3653 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
3654 * sysdeps/s390/ifunc-memccpy.h: New file.
3655
3656 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3657
3658 * sysdeps/s390/multiarch/Makefile
3659 (sysdep_routines): Remove rawmemchr variants.
3660 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
3661 * sysdeps/s390/multiarch/ifunc-impl-list.c
3662 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
3663 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
3664 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
3665 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
3666 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
3667 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
3668 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
3669 * sysdeps/s390/ifunc-rawmemchr.h: New file.
3670
3671 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3672
3673 * sysdeps/s390/multiarch/Makefile
3674 (sysdep_routines): Remove memchr variants.
3675 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
3676 * sysdeps/s390/multiarch/ifunc-impl-list.c
3677 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
3678 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
3679 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
3680 * sysdeps/s390/multiarch/memchr.c: Move to ...
3681 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
3682 * sysdeps/s390/ifunc-memchr.h: New file.
3683 * sysdeps/s390/s390-64/memchr.S: Move to ...
3684 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
3685 for 31/64bit and ifunc handling.
3686 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
3687 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
3688 * sysdeps/s390/s390-32/memchr.S: Likewise.
3689
3690 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3691
3692 * sysdeps/s390/multiarch/Makefile
3693 (sysdep_routines): Remove strcspn variants.
3694 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
3695 * sysdeps/s390/multiarch/ifunc-impl-list.c
3696 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
3697 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
3698 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
3699 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
3700 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
3701 * sysdeps/s390/multiarch/strcspn.c: Move to ...
3702 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
3703 * sysdeps/s390/ifunc-strcspn.h: New file.
3704
3705 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3706
3707 * sysdeps/s390/multiarch/Makefile
3708 (sysdep_routines): Remove strpbrk variants.
3709 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
3710 * sysdeps/s390/multiarch/ifunc-impl-list.c
3711 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
3712 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
3713 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
3714 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
3715 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
3716 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
3717 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
3718 * sysdeps/s390/ifunc-strpbrk.h: New file.
3719
3720 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3721
3722 * sysdeps/s390/multiarch/Makefile
3723 (sysdep_routines): Remove strspn variants.
3724 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
3725 * sysdeps/s390/multiarch/ifunc-impl-list.c
3726 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
3727 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
3728 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
3729 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
3730 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
3731 * sysdeps/s390/multiarch/strspn.c: Move to ...
3732 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
3733 * sysdeps/s390/ifunc-strspn.h: New file.
3734
3735 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3736
3737 * sysdeps/s390/multiarch/Makefile
3738 (sysdep_routines): Remove strrchr variants.
3739 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
3740 * sysdeps/s390/multiarch/ifunc-impl-list.c
3741 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
3742 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
3743 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
3744 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
3745 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
3746 * sysdeps/s390/multiarch/strrchr.c: Move to ...
3747 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
3748 * sysdeps/s390/ifunc-strrchr.h: New file.
3749
3750 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3751
3752 * sysdeps/s390/multiarch/Makefile
3753 (sysdep_routines): Remove strchrnul variants.
3754 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
3755 * sysdeps/s390/multiarch/ifunc-impl-list.c
3756 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
3757 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
3758 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
3759 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
3760 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
3761 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
3762 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
3763 * sysdeps/s390/ifunc-strchrnul.h: New file.
3764
3765 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3766
3767 * sysdeps/s390/multiarch/Makefile
3768 (sysdep_routines): Remove strchr variants.
3769 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
3770 * sysdeps/s390/multiarch/ifunc-impl-list.c
3771 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
3772 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
3773 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
3774 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
3775 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
3776 * sysdeps/s390/multiarch/strchr.c: Move to ...
3777 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
3778 * sysdeps/s390/ifunc-strchr.h: New file.
3779
3780 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3781
3782 * sysdeps/s390/multiarch/Makefile
3783 (sysdep_routines): Remove strncmp variants.
3784 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
3785 * sysdeps/s390/multiarch/ifunc-impl-list.c
3786 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
3787 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
3788 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
3789 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
3790 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
3791 * sysdeps/s390/multiarch/strncmp.c: Move to ...
3792 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
3793 * sysdeps/s390/ifunc-strncmp.h: New file.
3794
3795 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3796
3797 * sysdeps/s390/multiarch/Makefile
3798 (sysdep_routines): Remove strcmp variants.
3799 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
3800 * sysdeps/s390/multiarch/ifunc-impl-list.c
3801 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
3802 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
3803 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
3804 * sysdeps/s390/multiarch/strcmp.c: Move to ...
3805 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
3806 * sysdeps/s390/ifunc-strcmp.h: New file.
3807 * sysdeps/s390/s390-64/strcmp.S: Move to ...
3808 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
3809 for 31/64bit and ifunc handling.
3810 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
3811 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
3812 * sysdeps/s390/s390-32/strcmp.S: Likewise.
3813
3814 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3815
3816 * sysdeps/s390/multiarch/Makefile
3817 (sysdep_routines): Remove strncat variants.
3818 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
3819 * sysdeps/s390/multiarch/ifunc-impl-list.c
3820 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
3821 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
3822 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
3823 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
3824 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
3825 * sysdeps/s390/multiarch/strncat.c: Move to ...
3826 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
3827 * sysdeps/s390/ifunc-strncat.h: New file.
3828
3829 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3830
3831 * sysdeps/s390/multiarch/Makefile
3832 (sysdep_routines): Remove strcat variants.
3833 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
3834 * sysdeps/s390/multiarch/ifunc-impl-list.c
3835 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
3836 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
3837 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
3838 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
3839 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
3840 * sysdeps/s390/multiarch/strcat.c: Move to ...
3841 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
3842 * sysdeps/s390/ifunc-strcat.h: New file.
3843
3844 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3845
3846 * sysdeps/s390/multiarch/Makefile
3847 (sysdep_routines): Remove stpncpy variants.
3848 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
3849 * sysdeps/s390/multiarch/ifunc-impl-list.c
3850 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
3851 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
3852 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
3853 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
3854 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
3855 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
3856 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
3857 * sysdeps/s390/ifunc-stpncpy.h: New file.
3858
3859 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3860
3861 * sysdeps/s390/multiarch/Makefile
3862 (sysdep_routines): Remove strncpy variants.
3863 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
3864 * sysdeps/s390/multiarch/ifunc-impl-list.c
3865 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
3866 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
3867 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
3868 * sysdeps/s390/multiarch/strncpy.c: Move to ...
3869 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
3870 * sysdeps/s390/ifunc-strncpy.h: New file.
3871 * sysdeps/s390/s390-64/strncpy.S: Move to ...
3872 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
3873 and adjust ifunc handling.
3874 * sysdeps/s390/s390-32/strncpy.S: Move to ...
3875 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
3876 and adjust ifunc handling.
3877 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
3878 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
3879
3880 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3881
3882 * sysdeps/s390/multiarch/Makefile
3883 (sysdep_routines): Remove stpcpy variants.
3884 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
3885 * sysdeps/s390/multiarch/ifunc-impl-list.c
3886 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
3887 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
3888 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
3889 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
3890 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
3891 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
3892 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
3893 * sysdeps/s390/ifunc-stpcpy.h: New file.
3894
3895 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3896
3897 * sysdeps/s390/multiarch/Makefile
3898 (sysdep_routines): Remove strcpy variants.
3899 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
3900 * sysdeps/s390/multiarch/ifunc-impl-list.c
3901 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
3902 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
3903 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
3904 * sysdeps/s390/multiarch/strcpy.c: Move to ...
3905 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
3906 * sysdeps/s390/ifunc-strcpy.h: New file.
3907 * sysdeps/s390/s390-64/strcpy.S: Move to ...
3908 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
3909 for 31/64bit and ifunc handling.
3910 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
3911 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
3912 * sysdeps/s390/s390-32/strcpy.S: Likewise.
3913
3914 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3915
3916 * sysdeps/s390/multiarch/Makefile
3917 (sysdep_routines): Remove strnlen variants.
3918 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
3919 * sysdeps/s390/multiarch/ifunc-impl-list.c
3920 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
3921 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
3922 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
3923 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
3924 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
3925 * sysdeps/s390/multiarch/strnlen.c: Move to ...
3926 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
3927 * sysdeps/s390/ifunc-strnlen.h: New file.
3928
3929 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3930
3931 * sysdeps/s390/multiarch/Makefile
3932 (sysdep_routines): Remove strlen variants.
3933 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
3934 * sysdeps/s390/multiarch/ifunc-impl-list.c
3935 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
3936 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
3937 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
3938 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
3939 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
3940 * sysdeps/s390/multiarch/strlen.c: Move to ...
3941 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
3942 * sysdeps/s390/ifunc-strlen.h: New file.
3943
3944 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3945
3946 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
3947 * sysdeps/s390/multiarch/ifunc-impl-list.c
3948 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
3949 * sysdeps/s390/ifunc-memmem.h: New file.
3950 * sysdeps/s390/memmem.c: Likewise.
3951 * sysdeps/s390/memmem-c.c: Likewise.
3952 * sysdeps/s390/memmem-vx.c: Likewise.
3953
3954 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3955
3956 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
3957 * sysdeps/s390/multiarch/ifunc-impl-list.c
3958 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
3959 * sysdeps/s390/ifunc-strstr.h: New file.
3960 * sysdeps/s390/strstr.c: Likewise.
3961 * sysdeps/s390/strstr-c.c: Likewise.
3962 * sysdeps/s390/strstr-vx.c: Likewise.
3963
3964 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3965
3966 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
3967 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
3968 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
3969 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
3970 New defines.
3971 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
3972 * sysdeps/s390/memmove-c.c: New file.
3973 * sysdeps/s390/memmove.c: Likewise.
3974 * sysdeps/s390/multiarch/ifunc-impl-list.c
3975 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
3976
3977 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3978
3979 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
3980 * sysdeps/s390/configure.ac: Add check for z13 support.
3981 * sysdeps/s390/configure: Regenerated.
3982
3983 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3984
3985 * sysdeps/s390/memcopy.h: New file.
3986
3987 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3988
3989 * sysdeps/s390/s390-32/bcopy.S: Remove.
3990 * sysdeps/s390/s390-64/bcopy.S: Likewise.
3991
3992 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3993
3994 * sysdeps/s390/ifunc-memcpy.h: New File.
3995 * sysdeps/s390/memcpy.S: Move to ...
3996 * sysdeps/s390/memcpy-z900.S ... here.
3997 Move implementations from memcpy-s390x.s to here.
3998 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
3999 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
4000 Remove memcpy/mempcpy variants.
4001 * sysdeps/s390/Makefile (sysdep_routines):
4002 Add memcpy/mempcpy variants.
4003 * sysdeps/s390/multiarch/ifunc-impl-list.c
4004 (__libc_ifunc_impl_list): Adjust ifunc variants for
4005 memcpy and mempcpy.
4006 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
4007 to ...
4008 * sysdeps/s390/memcpy.c: ... here.
4009 Adjust ifunc variants for memcpy.
4010 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
4011 * sysdeps/s390/mempcpy.c: ... here.
4012 Adjust ifunc variants for mempcpy.
4013 * sysdeps/s390/mempcpy.S: Delete file.
4014
4015 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4016
4017 * sysdeps/s390/s390-64/memcpy.S: Move to ...
4018 * sysdeps/s390/memcpy.S: ... here.
4019 Adjust to be usable for 31/64bit.
4020 * sysdeps/s390/s390-32/memcpy.S: Delete File.
4021 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
4022 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
4023 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
4024 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
4025 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
4026 Adjust to be usable for 31/64bit.
4027 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
4028 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
4029 * sysdeps/s390/multiarch/memcpy.c: ... here.
4030 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
4031
4032 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4033
4034 * sysdeps/s390/ifunc-memcmp.h: New File.
4035 * sysdeps/s390/memcmp.S: Move to ...
4036 * sysdeps/s390/memcmp-z900.S ... here.
4037 Move implementations from memcmp-s390x.s to here.
4038 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
4039 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
4040 Remove memcmp variants.
4041 * sysdeps/s390/Makefile (sysdep_routines):
4042 Add memcmp variants.
4043 * sysdeps/s390/multiarch/ifunc-impl-list.c
4044 (__libc_ifunc_impl_list): Adjust ifunc variants for
4045 memcmp.
4046 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
4047 to ...
4048 * sysdeps/s390/memcmp.c: ... here.
4049 Adjust ifunc variants for memcmp.
4050
4051 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4052
4053 * sysdeps/s390/s390-64/memcmp.S: Move to ...
4054 * sysdeps/s390/memcmp.S: ... here.
4055 Adjust to be usable for 31/64bit.
4056 * sysdeps/s390/s390-32/memcmp.S: Delete File.
4057 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
4058 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
4059 Remove memcmp.
4060 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
4061 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
4062 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
4063 Adjust to be usable for 31/64bit.
4064 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
4065 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
4066 * sysdeps/s390/multiarch/memcmp.c: ... here.
4067 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
4068
4069 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4070
4071 * sysdeps/s390/s390-32/bzero.S: Delete file.
4072 * sysdeps/s390/s390-64/bzero.S: Likewise.
4073 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
4074 * sysdeps/s390/bzero.c: New file.
4075 * sysdeps/s390/memset-z900.S: Add bzero entry points.
4076 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
4077 * sysdeps/s390/multiarch/ifunc-impl-list.c
4078 (__libc_ifunc_impl_list): Add bzero ifunc variants.
4079
4080 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4081
4082 * sysdeps/s390/ifunc-memset.h: New File.
4083 * sysdeps/s390/memset.S: Move to ...
4084 * sysdeps/s390/memset-z900.S ... here.
4085 Move implementations from memset-s390x.s to here.
4086 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
4087 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
4088 Remove memset variants.
4089 * sysdeps/s390/Makefile (sysdep_routines):
4090 Add memset variants.
4091 * sysdeps/s390/multiarch/ifunc-impl-list.c
4092 (__libc_ifunc_impl_list): Adjust ifunc variants for
4093 memset.
4094 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
4095 to ...
4096 * sysdeps/s390/memset.c: ... here.
4097 Adjust ifunc variants for memset.
4098
4099 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4100
4101 * sysdeps/s390/s390-64/memset.S: Move to ...
4102 * sysdeps/s390/memset.S: ... here.
4103 Adjust to be usable for 31/64bit.
4104 * sysdeps/s390/s390-32/memset.S: Delete File.
4105 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
4106 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
4107 Remove memset.
4108 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
4109 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
4110 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
4111 Adjust to be usable for 31/64bit.
4112 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
4113 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
4114 * sysdeps/s390/multiarch/memset.c: ... here.
4115 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
4116
4117 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4118
4119 * sysdeps/s390/multiarch/ifunc-resolve.h
4120 (s390_libc_ifunc_init, s390_libc_ifunc,
4121 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
4122
4123 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4124
4125 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
4126 * sysdeps/s390/configure.ac: Add check for z10 support.
4127 * sysdeps/s390/configure: Regenerated.
4128
4129 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
4130
4131 * sysdeps/i386/atomic-machine.h: Merged with ...
4132 * sysdeps/x86_64/atomic-machine.h: To ...
4133 * sysdeps/x86/atomic-machine.h: This. New file.
4134
4135 2018-12-18 Florian Weimer <fweimer@redhat.com>
4136
4137 Rewrite locale/gen-translit.pl in Python.
4138 * locale/Makefile (generated): Add C-translit.h.
4139 (before-compile): Add $(objpfx)C-translit.h.
4140 (C-translit.h): Move to $(objpfx). Create target directory.
4141 Build using Python script.
4142 * locale/gen-translit.py: New file.
4143 * locale/gen-translit.pl: Remove file.
4144 * locale/C-translit.h.in: Change comment character to '#' for
4145 easier parsing without a C preprocessor.
4146 * locale/C-translit.h: Remove generated file.
4147 * manual/install.texi (Tools for Compilation): Do not mention
4148 C-translit.h.
4149 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
4150 Remove locale/C-translit.h.
4151 * scripts/update-copyrights: Likewise.
4152 * INSTALL: Regenerate.
4153
4154 2018-12-18 Florian Weimer <fweimer@redhat.com>
4155
4156 [BZ #23995]
4157 * localedata/locales/bi_VU: Remove executable bit from file.
4158
4159 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
4160
4161 * include/time.h
4162 (__localtime64): Add.
4163 * manual/maint.texi: Document Y2038 symbol handling.
4164 * time/localtime.c
4165 (__localtime64): Add.
4166 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
4167
4168 2018-12-17 Joseph Myers <joseph@codesourcery.com>
4169
4170 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
4171 Do not clobber r12.
4172
4173 * scripts/glibcextract.py (compare_macro_consts): Take parameters
4174 to allow extra macros from first or second sources.
4175 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
4176 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
4177 (tests-special): Add $(objpfx)tst-mman-consts.out.
4178 ($(objpfx)tst-mman-consts.out): New makefile target.
4179
4180 2018-12-17 Mao Han <han_mao@c-sky.com>
4181
4182 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
4183 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
4184 without stat64 system call support.
4185 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
4186 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
4187 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
4188 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
4189 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
4190 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
4191 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
4192 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
4193 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
4194 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
4195 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
4196
4197 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
4198
4199 regex: fix storage-exhaustion error
4200 [BZ #18040]
4201 * posix/regexec.c (get_subexp):
4202 Do not continue if storage is exhausted.
4203
4204 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
4205
4206 regex: fix heap-use-after-free error
4207 [BZ #18040]
4208 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
4209 https://debbugs.gnu.org/32592
4210 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
4211 call extend_buffers which reallocates the re_string_t internal buffer.
4212 Local variable 'buf' was not updated in such case, resulting in
4213 use-after-free.
4214 * posix/regexec.c (get_subexp): Update 'buf' after call to
4215 get_subexp_sub.
4216
4217 2018-12-15 Florian Weimer <fweimer@redhat.com>
4218
4219 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
4220 (minimum_stride_size): Use it.
4221 (support_blob_repeat_allocate): Likewise.
4222
4223 2018-12-14 Joseph Myers <joseph@codesourcery.com>
4224
4225 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
4226 definition.
4227 (acosh): Likewise.
4228 (atanh): Likewise.
4229
4230 2018-12-14 Florian Weimer <fweimer@redhat.com>
4231
4232 * manual/process.texi (Process Creation Concepts): Remove
4233 documentation of process (ID) lifetime. List more process
4234 creation functions. Reference Process Identification section.
4235 (Process Identification): Add information about process ID
4236 lifetime. Describe Linux thread/task IDs.
4237 * manual/signal.texi (Signaling Another Process): Mention that the
4238 signal is always sent to the process.
4239
4240 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4241
4242 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
4243 and tst-ldbl-efgcvt.
4244 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
4245 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
4246 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
4247 (fcvt_tests, output_error, output_r_error, do_test): Use the
4248 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
4249 select the type of floating-point variables and arguments; to
4250 produce extra tests for double and conversion specifiers for
4251 printf; and to set the names of called functions.
4252 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
4253 in tst-efgcvt-template.c.
4254 * misc/tst-ldbl-efgcvt.c: Likewise.
4255
4256 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
4257
4258 * nss/Makefile (tst-nss-test3.out): New rule.
4259
4260 2018-12-13 Joseph Myers <joseph@codesourcery.com>
4261
4262 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
4263 clobber sp.
4264
4265 2018-12-13 fanjinke <fanjinke@hygon.cn>
4266
4267 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
4268 "HygonGenuine".
4269
4270 2018-12-13 Andreas Schwab <schwab@suse.de>
4271
4272 [BZ #23861]
4273 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
4274 (__pthread_rwlock_rdlock_full): Update expected value for
4275 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
4276 * nptl/tst-rwlock-pwn.c: New file.
4277 * nptl/Makefile (tests): Add tst-rwlock-pwn.
4278
4279 2018-12-12 Joseph Myers <joseph@codesourcery.com>
4280
4281 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
4282 definition.
4283
4284 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
4285
4286 * benchtests/scripts/compare_bench.py (do_compare): write to
4287 stderr in casestat is not present.
4288 * benchtests/scripts/compare_bench.py (plot_graphs): write to
4289 stderr in case timings field is not present. Also string showing
4290 the output filename goes into the stderr.
4291
4292 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
4293
4294 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
4295 and ZeroDivisorError exceptions.
4296 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
4297 argument to loop through user provided statistics.
4298 * benchtests/scripts/compare_bench.py (main): Include the --stats
4299 argument.
4300
4301 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
4302
4303 * benchtests/scripts/compare_bench.py (compare_runs): Continue
4304 instead of return.
4305
4306 2018-12-12 Florian Weimer <fweimer@redhat.com>
4307
4308 * sysdeps/posix/timespec_get.c: Add missing “any later version”
4309 clause to copyright header.
4310
4311 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4312
4313 [BZ #23614]
4314 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
4315 registers saved in the stack frame.
4316 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
4317 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
4318
4319 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4320
4321 * include/bits/monetary-ldbl.h: New file.
4322 * include/bits/printf-ldbl.h: Likewise.
4323 * include/bits/stdio-ldbl.h: Likewise.
4324 * include/bits/stdlib-ldbl.h: Likewise.
4325 * include/bits/syslog-ldbl.h: Likewise.
4326 * include/bits/wchar-ldbl.h: Likewise.
4327
4328 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4329
4330 * libio/libio.h: Remove redirection for _IO_vfprintf.
4331
4332 2018-12-11 Andreas Schwab <schwab@suse.de>
4333
4334 * Makerules: Remove all references to abilist-pattern.
4335 (update-all-abi): Simplify find expression.
4336
4337 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
4338
4339 [BZ #23961]
4340 * math/auto-libm-test-in: Add new test case.
4341 * math/auto-libm-test-out-pow: Regenerated.
4342 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
4343
4344 2018-12-10 DJ Delorie <dj@redhat.com>
4345
4346 [BZ #23948]
4347 * support/test-container.c: Move postclean step to before we
4348 change namespaces.
4349
4350 2018-12-10 Joseph Myers <joseph@codesourcery.com>
4351
4352 * scripts/gen-as-const.py (main): Handle --python option.
4353 * scripts/gen-py-const.awk: Remove.
4354 * Makerules (py-const-script): Use gen-as-const.py.
4355 ($(py-const)): Likewise.
4356 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
4357 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
4358 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
4359 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
4360 ~PTHREAD_MUTEX_NO_ELISION_NP.
4361 * manual/README.pretty-printers: Update reference to
4362 gen-py-const.awk.
4363
4364 * scripts/glibcextract.py: New file.
4365 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
4366 or tempfile. Import glibcexctract.
4367 (compute_c_consts): Remove. Moved to glibcextract.py.
4368 (gen_test): Update reference to compute_c_consts.
4369 (main): Likewise.
4370 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
4371 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
4372 * sysdeps/unix/sysv/linux/Makefile
4373 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
4374 Redirect stderr as well as stdout.
4375
4376 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
4377
4378 [BZ #19767]
4379 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
4380 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
4381 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
4382 ALWAYS_USE_VSYSCALL.
4383 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
4384 ALWAYS_USE_VSYSCALL.
4385 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
4386 ALWAYS_USE_VSYSCALL.
4387
4388 2018-12-10 Florian Weimer <fweimer@redhat.com>
4389
4390 [BZ #23972]
4391 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
4392 offset instead of count for clarity. Fix typo in comment.
4393 (__old_getdents64): Keep track of previous offset. Use it to call
4394 handle_overflow.
4395 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
4396 that d_off is never zero.
4397
4398 2018-12-10 Andreas Schwab <schwab@suse.de>
4399
4400 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
4401 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
4402 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
4403 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
4404 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
4405
4406 2018-12-10 Joseph Myers <joseph@codesourcery.com>
4407
4408 * timezone/private.h: Update from tzcode 2018g.
4409 * timezone/tzfile.h: Likewise.
4410 * timezone/tzselect.ksh: Likewise.
4411 * timezone/zdump.c: Likewise.
4412 * timezone/zic.c: Likewise.
4413
4414 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
4415
4416 [BZ #23490]
4417 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
4418 (do_test): Adjust buffer size and fix format.
4419
4420 2018-12-07 DJ Delorie <dj@redhat.com>
4421
4422 [BZ #23907]
4423 * malloc/tst-tcfree3.c: New.
4424 * malloc/Makefile: Add it.
4425
4426 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
4427
4428 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
4429
4430 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4431
4432 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
4433 used as a mask for the mode argument of __vfscanf_internal and
4434 __vfwscanf_internal.
4435 * stdio-common/vfscanf-internal.c
4436 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
4437 (__strtof128_internal): Define to __wcstof128_internal.
4438 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
4439 __strtof128_internal or __wcstof128_internal when the format of
4440 long double is the same as _Float128.
4441
4442 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
4443
4444 * include/unistd.h (__confstr): Add prototype and hidden prototype.
4445 * posix/confstr.c (confstr): Rename to __confstr.
4446 (__confstr): Add hidden def.
4447 (confstr): Add weak alias for __confstr.
4448 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
4449 confstr.
4450
4451 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
4452
4453 * NEWS: Mention getcpu.
4454 * include/sched.h (__getcpu): New libc_hidden_proto.
4455 * manual/resource.texi: Document getcpu.
4456 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
4457 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
4458 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
4459 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
4460 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
4461 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
4462 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
4463 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
4464 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
4465 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
4466 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
4467 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
4468 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
4469 Likewise.
4470 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
4471 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
4472 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
4473 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
4474 Likewise.
4475 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
4476 Likewise.
4477 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
4478 Likewise.
4479 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
4480 Likewise.
4481 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
4482 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
4483 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
4484 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
4485 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
4486 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
4487 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
4488 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
4489 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
4490 * sysdeps/unix/sysv/linux/getcpu.c: New file.
4491 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
4492 Also check getcpu.
4493
4494 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
4495
4496 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
4497 functions.
4498 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
4499
4500 2018-12-07 Florian Weimer <fweimer@redhat.com>
4501
4502 [BZ #17405]
4503 * posix/Makefile (routines): Add spawn_faction_addfchdir.
4504 * posix/Versions (GLIBC_2.29): Export
4505 posix_spawn_file_actions_addfchdir_np.
4506 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
4507 * posix/spawn_faction_destroy.c
4508 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
4509 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
4510 and the field action.fchdir_action.
4511 * posix/tst-spawn-chdir.c (add_chdir): New function.
4512 (do_test): Add do_fchdir loop. Call add_chdir.
4513 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
4514 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
4515 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
4516 posix_spawn_file_actions_addfchdir_np.
4517 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
4518 Likewise.
4519 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
4520 Likewise.
4521 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
4522 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
4523 Likewise.
4524 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
4525 Likewise.
4526 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
4527 Likewise.
4528 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
4529 Likewise.
4530 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
4531 Likewise.
4532 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
4533 Likewise.
4534 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4535 (GLIBC_2.29): Likewise.
4536 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4537 (GLIBC_2.29): Likewise.
4538 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4539 (GLIBC_2.29): Likewise.
4540 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4541 (GLIBC_2.29): Likewise.
4542 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
4543 Likewise.
4544 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4545 (GLIBC_2.29): Likewise.
4546 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4547 (GLIBC_2.29): Likewise.
4548 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
4549 (GLIBC_2.29): Likewise.
4550 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
4551 (GLIBC_2.29): Likewise.
4552 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
4553 Likewise.
4554 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
4555 Likewise.
4556 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
4557 Likewise.
4558 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
4559 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
4560 Likewise.
4561 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
4562 Likewise.
4563 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
4564 Likewise.
4565 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
4566 Likewise.
4567
4568 2018-12-06 Joseph Myers <joseph@codesourcery.com>
4569
4570 * manual/texinfo.tex: Update to version 2018-09-21.20 with
4571 trailing whitespace removed.
4572 * scripts/config.guess: Update to version 2018-11-28.
4573 * scripts/config.sub: Update to version 2018-11-28.
4574 * scripts/install-sh: Update to version 2018-03-11.20.
4575 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
4576 * scripts/move-if-change: Update to version 2018-03-07 03:47.
4577
4578 2018-12-07 Florian Weimer <fweimer@redhat.com>
4579
4580 [BZ #23927]
4581 CVE-2018-19591
4582 * inet/tst-if_index-long.c: New file.
4583 * inet/Makefile (tests): Add tst-if_index-long.
4584
4585 2018-12-07 Florian Weimer <fweimer@redhat.com>
4586
4587 * support/check.h (support_record_failure_is_failed): Declare.
4588 * support/descriptors.h: New file.
4589 * support/support_descriptors.c: Likewise.
4590 * support/tst-support_descriptors.c: Likewise.
4591 * support/support_record_failure.c
4592 (support_record_failure_is_failed): New function.
4593 * support/Makefile (libsupport-routines): Add support_descriptors.
4594 (tests): Add tst-support_descriptors.
4595
4596 2018-12-05 Zack Weinberg <zackw@panix.com>
4597 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4598
4599 * stdio-common/vfprintf-internal.c
4600 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
4601 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
4602 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
4603 and __no_long_double.
4604 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
4605 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
4606 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
4607 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
4608 and __nldbl_*syslog* functions.
4609 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
4610 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
4611 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
4612 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
4613 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
4614 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
4615 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
4616 (__nldbl_vwprintf, __nldbl_wprintf):
4617 Directly call the appropriate __v*printf_internal routine, passing
4618 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
4619 variable names.
4620 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
4621 (__nldbl___printf_chk, __nldbl___snprintf_chk)
4622 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
4623 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
4624 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
4625 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
4626 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
4627 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
4628 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
4629 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
4630 Likewise, and also pass PRINTF_FORTIFY when appropriate.
4631 (__nldbl_syslog, __nldbl_vsyslog):
4632 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
4633 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
4634 appropriate.
4635 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
4636 appropriate.
4637
4638 2018-12-05 Zack Weinberg <zackw@panix.com>
4639 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4640
4641 [BZ #11319]
4642 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
4643 Moved here from debug/vsprintf_chk.c.
4644 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
4645 and completion logic for the strfile to match exactly what
4646 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
4647 _IO_str_init_static_internal instead of maxlen-1.
4648 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
4649 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
4650 __vsprintf_internal.
4651
4652 * debug/vsprintf_chk.c (__vsprintf_chk)
4653 * debug/sprintf_chk.c (__sprintf_chk):
4654 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
4655 'flags' argument is positive, and slen as maxlen. No need to lock
4656 the FILE and/or construct a temporary FILE. Minimize and normalize
4657 header inclusions and variable names. Do not libc_hidden_def anything.
4658
4659 * debug/asprintf_chk.c (__asprintf_chk)
4660 * debug/dprintf_chk.c (__dprintf_chk)
4661 * debug/fprintf_chk.c (__fprintf_chk)
4662 * debug/fwprintf_chk.c (__fwprintf_chk)
4663 * debug/printf_chk.c (__printf_chk)
4664 * debug/snprintf_chk.c (__snprintf_chk)
4665 * debug/swprintf_chk.c (__swprintf_chk)
4666 * debug/vasprintf_chk.c (__vasprintf_chk)
4667 * debug/vdprintf_chk.c (__vdprintf_chk)
4668 * debug/vfprintf_chk.c (__vfprintf_chk)
4669 * debug/vfwprintf_chk.c (__vfwprintf_chk)
4670 * debug/vprintf_chk.c (__vprintf_chk)
4671 * debug/vsnprintf_chk.c (__vsnprintf_chk)
4672 * debug/vswprintf_chk.c (__vswprintf_chk)
4673 * debug/vwprintf_chk.c (__vwprintf_chk)
4674 * debug/wprintf_chk.c (__wprintf_chk):
4675 Directly call the corresponding vxxprintf_internal function, passing
4676 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
4677 the FILE and/or construct a temporary FILE. Minimize and normalize
4678 header inclusions and variable names. Do not libc_hidden_def anything.
4679
4680 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
4681 __obstack_vprintf_internal.
4682 (__obstack_vprintf_chk): Convert into a wrapper that calls
4683 __obstack_vprintf_internal (these two functions already had the
4684 same code) and move to new file...
4685 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
4686 file.
4687 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
4688 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
4689 * debug/Makefile (routines): Add vobprintf_chk.
4690
4691 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4692 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
4693 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
4694 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
4695 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
4696 (__nldbl___obstack_vfprintf_chk):
4697 Directly call the corresponding vxxprintf_internal function,
4698 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
4699 duplicate comparison of slen with 0 or maxlen from the corresponding
4700 non-__nldbl function.
4701
4702 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
4703 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
4704 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
4705 Remove libc_hidden_proto.
4706
4707 * stdio-common/vfprintf-internal.c
4708 (__vfprintf_internal, __vfwprintf_internal):
4709 Do not check _IO_FLAGS2_FORTIFY.
4710 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
4711 * libio/libioP.h: Update prototype of __vsprintf_internal and add
4712 a comment explaining why it has the maxlen argument.
4713 (_IO_acquire_lock_clear_flags2_fct): Remove.
4714 (_IO_acquire_lock_clear_flags2): Remove.
4715 (_IO_release_lock): Remove conditional statement which will
4716 now never execute.
4717 (_IO_acquire_lock): Remove variable which is now unused.
4718 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
4719 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
4720
4721 * stdio-common/Makefile (tests): Add tst-bz11319 and
4722 tst-bz11319-fortify2.
4723 (CFLAGS-tst-bz11319-fortify2.c): New macro.
4724 * stdio-common/tst-bz11319-fortify2.c: New file.
4725 * stdio-common/tst-bz11319.c: Likewise.
4726
4727 2018-12-05 Zack Weinberg <zackw@panix.com>
4728 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4729
4730 * misc/syslog.c: Include libioP.h, not iolibio.h.
4731 (__vsyslog_internal): New function with the former body of
4732 __vsyslog_chk; takes mode_flags argument same as
4733 __v*printf_internal. Call __vfprintf_internal directly.
4734
4735 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
4736 Remove libc_hidden_def.
4737 (__syslog, __syslog_chk): Use __vsyslog_internal.
4738 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
4739
4740 * include/sys/syslog.h: Add multiple inclusion guard.
4741 Add prototype for __vsyslog_internal.
4742 Remove declaration and libc_hidden_proto for __vsyslog_chk.
4743
4744 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
4745 Use __vsyslog_internal.
4746
4747 2018-12-05 Zack Weinberg <zackw@panix.com>
4748 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4749
4750 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
4751 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
4752 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
4753 New functions.
4754 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
4755 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
4756
4757 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
4758 Include wctype.h here if COMPILE_WPRINTF is defined.
4759 Define __vfprintf_internal or __vfwprintf_internal, depending
4760 on COMPILE_WPRINTF.
4761 Temporarily, on entry to this function, update mode_flags
4762 according to the environmental settings corresponding to
4763 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
4764 Throughout, check mode_flags instead of __ldbl_is_dbl and
4765 _IO_FLAGS2_FORTIFY on the destination FILE.
4766 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
4767 Include vfprintf-internal.c. Don't include wctype.h.
4768 * stdio-common/vfprintf.c: New file. Just define __vfprintf
4769 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
4770 and vfprintf.
4771 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
4772 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
4773 and vfwprintf.
4774 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
4775
4776 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
4777 and add mode_flags argument; use __vfprintf_internal.
4778 (__vdprintf): New function. Alias vdprintf to this.
4779 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
4780 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
4781 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
4782 (__obstack_printf): Use __obstack_printf_internal.
4783 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
4784 public aliases __vsnprintf and vsnprintf.
4785 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
4786 called internally.
4787 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
4788 public aliases _IO_vsprintf and vsprintf.
4789 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
4790 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
4791 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
4792 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
4793 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
4794
4795 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
4796 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
4797 * stdio-common/fprintf.c, stdio-common/fxprintf.c
4798 * stdio-common/printf.c: Use __vfprintf_internal.
4799
4800 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
4801 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
4802 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
4803
4804 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
4805 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
4806 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
4807 __vfwprintf_internal.
4808
4809 * libio/libio.h: Remove libc_hidden_proto and declaration for
4810 _IO_vfprintf.
4811 Remove declaration of _IO_vfwprintf.
4812 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
4813 _IO_vsprintf.
4814 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
4815 _IO_obstack_printf.
4816 * include/stdio.h: Add prototype for __vasprintf.
4817 (__vsnprintf): Remove declaration, because there are no more
4818 internal calls.
4819 * include/wchar.h (__vfwprintf, __vswprintf): Remove
4820 declaration, because there are no more internal calls.
4821
4822 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
4823 __vsnprintf_internal, instead of _IO_vsnprintf.
4824 * argp/argp-help.c (__argp_error, __argp_failure): Use
4825 __vasprintf_internal, instead of _IO_vasprintf.
4826 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
4827 redefine, because there are no more internal calls.
4828
4829 2018-12-05 Zack Weinberg <zackw@panix.com>
4830 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4831
4832 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
4833 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
4834 Include libio/strfile.h instead of libioP.h.
4835 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
4836 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
4837 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
4838 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
4839 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
4840 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
4841 necessary. Do not set __no_long_double. Normalize variable names.
4842 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
4843 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
4844 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
4845 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
4846 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
4847 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
4848 Call __vfscanf_internal / __vfwscanf_internal directly, passing
4849 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
4850 Do not set __no_long_double. Normalize variable names.
4851
4852 2018-12-05 Zack Weinberg <zackw@panix.com>
4853 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4854
4855 * stdio-common/isoc99_scanf.c
4856 * stdio-common/isoc99_fscanf.c
4857 * stdio-common/isoc99_sscanf.c
4858 * stdio-common/isoc99_vscanf.c
4859 * stdio-common/isoc99_vfscanf.c
4860 * stdio-common/isoc99_vsscanf.c
4861 * wcsmbs/isoc99_wscanf.c
4862 * wcsmbs/isoc99_fwscanf.c
4863 * wcsmbs/isoc99_swscanf.c
4864 * wcsmbs/isoc99_vwscanf.c
4865 * wcsmbs/isoc99_vfwscanf.c
4866 * wcsmbs/isoc99_vswscanf.c:
4867 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
4868 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
4869 No need to lock and unlock the FILE passed to that function.
4870
4871 * stdio-common/vfscanf-internal.c
4872 (__vfscanf_internal, __vfwscanf_internal):
4873 Don't look at _IO_FLAGS2_SCANF_STD.
4874 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
4875 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
4876 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
4877
4878 2018-12-05 Zack Weinberg <zackw@panix.com>
4879 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4880
4881 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
4882 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
4883 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
4884 * libio/strfile.h: Add multiple inclusion guard.
4885 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
4886
4887 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
4888 consistency with the other version of this file.
4889 (ldbl_compat_symbol): New macro.
4890 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
4891 New macro.
4892
4893 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
4894 Define __vfscanf_internal or __vfwscanf_internal, depending on
4895 COMPILE_WSCANF; don't define any other public symbols.
4896 Remove errval and code to set errp.
4897 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
4898 as the mode_flags argument.
4899 (encode_error, conv_error, input_error): Don't set errval.
4900 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
4901 Include vfscanf-internal.c.
4902 * stdio-common/vfscanf.c: New file defining the public entry
4903 point vfscanf, which calls __vfscanf_internal.
4904 * stdio-common/vfwscanf.c: New file defining the public entry
4905 point vfwscanf, which calls __vfwscanf_internal.
4906
4907 * stdio-common/iovfscanf.c: New file.
4908 * stdio-common/iovfwscanf.c: Likewise.
4909
4910 * stdio-common/Makefile (routines): Add vfscanf-internal,
4911 vfwscanf-internal, iovfscanf, iovfwscanf.
4912 * stdio-common/Versions: Mention GLIBC_2.29, so that
4913 it can be used in SHLIB_COMPAT expressions.
4914 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
4915 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
4916 Call __vfscanf_internal, instead of _IO_vfscanf.
4917 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
4918 _IO_vfscanf.
4919 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
4920 _IO_vfwscanf.
4921
4922 * libio/iovsscanf.c: Clean up includes, when possible. Use
4923 _IO_strfile_read or _IO_strfile_readw, when needed. Call
4924 __vfscanf_internal or __vfwscanf_internal directly.
4925 * libio/iovswscanf.c: Likewise.
4926 * libio/swscanf.c: Likewise.
4927 * libio/vscanf.c: Likewise.
4928 * libio/vwscanf.c: Likewise.
4929 * libio/wscanf.c: Likewise.
4930 * stdio-common/isoc99_fscanf.c: Likewise.
4931 * stdio-common/isoc99_scanf.c: Likewise.
4932 * stdio-common/isoc99_sscanf.c: Likewise.
4933 * stdio-common/isoc99_vfscanf.c: Likewise.
4934 * stdio-common/isoc99_vscanf.c: Likewise.
4935 * stdio-common/isoc99_vsscanf.c: Likewise.
4936 * stdio-common/scanf.c: Likewise.
4937 * stdio-common/sscanf.c: Likewise.
4938 * wcsmbs/isoc99_fwscanf.c: Likewise.
4939 * wcsmbs/isoc99_swscanf.c: Likewise.
4940 * wcsmbs/isoc99_vfwscanf.c: Likewise.
4941 * wcsmbs/isoc99_vswscanf.c: Likewise.
4942 * wcsmbs/isoc99_vwscanf.c: Likewise.
4943 * wcsmbs/isoc99_wscanf.c: Likewise.
4944
4945 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
4946
4947 * include/time.h
4948 (__tz_compute): Replace time_t with __time64_t.
4949 (__tz_convert): Replace time_t* with __time64_t.
4950 (__offtime): Replace time_t* with __time64_t.
4951 * time/gmtime.c
4952 (__gmtime_r): Adjust call to __tz_convert.
4953 (gmtime): Likewise.
4954 * time/localtime.c
4955 (__localtime_r): Likewise.
4956 (localtime): Likewise.
4957 * time/offtime.c: Replace time_t with __time64_t.
4958 * time/tzset.c: Likewise.
4959
4960 2018-12-04 Joseph Myers <joseph@codesourcery.com>
4961
4962 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
4963 dynamic linker unless [$(run-built-tests) = yes].
4964
4965 2018-12-03 DJ Delorie <dj@delorie.com>
4966
4967 * support/test-container.c (check_for_unshare_hints): New.
4968 (main): Call it if unshare fails. Add support for "su" scriptlet
4969 command.
4970
4971 2018-12-03 Joseph Myers <joseph@codesourcery.com>
4972
4973 * scripts/gen-as-const.py (compute_c_consts): Take an argument
4974 'START' to indicate that start text should be output.
4975 (gen_test): Likewise.
4976 (main): Generate 'START' for first symbol or '--' line, or at end
4977 of input if not previously generated.
4978
4979 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
4980
4981 [BZ #19767]
4982 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
4983 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
4984 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
4985 ALWAYS_USE_VSYSCALL.
4986
4987 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4988
4989 [BZ #23913]
4990 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
4991 new_argv by one.
4992
4993 2018-12-03 Carlos O'Donell <carlos@redhat.com>
4994
4995 [BZ #23923]
4996 * locale/programs/localedef.c: Declare boolean hard_links default true.
4997 (options): Add --no-hard-links option.
4998 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
4999 * locale/programs/localedef.h: Declare prototype for hard_links.
5000 * locale/programs/locfile.c (write_locale_data): Don't use hard
5001 links if hard_links is false.
5002
5003 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
5004
5005 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
5006 cpu_features_basic.
5007 (__cache_sysconf): Likewise.
5008 (init_cacheinfo): Likewise.
5009 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
5010 populate COMMON_CPUID_INDEX_80000007 and
5011 COMMON_CPUID_INDEX_80000008.
5012 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
5013 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
5014 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
5015 (init_cpu_features): Use _Static_assert on
5016 index_arch_Fast_Unaligned_Load.
5017 __get_cpuid_registers and __get_arch_feature. Updated for
5018 cpu_features_basic. Set stepping in cpu_features.
5019 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
5020 (FEATURE_INDEX_2): New.
5021 (FEATURE_INDEX_MAX): Changed to enum.
5022 (COMMON_CPUID_INDEX_D_ECX_1): New.
5023 (COMMON_CPUID_INDEX_80000007): Likewise.
5024 (COMMON_CPUID_INDEX_80000008): Likewise.
5025 (cpuid_registers): Likewise.
5026 (cpu_features_basic): Likewise.
5027 (CPU_FEATURE_USABLE): Likewise.
5028 (bit_arch_XXX_Usable): Likewise.
5029 (cpu_features): Use cpuid_registers and cpu_features_basic.
5030 (bit_arch_XXX): Reweritten.
5031 (bit_cpu_XXX): Likewise.
5032 (index_cpu_XXX): Likewise.
5033 (reg_XXX): Likewise.
5034 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
5035 <support/check.h>.
5036 (CHECK_CPU_FEATURE): New.
5037 (CHECK_CPU_FEATURE_USABLE): Likewise.
5038 (cpu_kinds): Likewise.
5039 (do_test): Print vendor, family, model and stepping. Check
5040 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
5041 (TEST_FUNCTION): Removed.
5042 Include <support/test-driver.c> instead of
5043 "../../test-skeleton.c".
5044 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
5045 Check POPCNT instead of POPCOUNT.
5046 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
5047
5048 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
5049
5050 * scripts/gen-as-const.py (main): Avoid emitting empty line when
5051 there is no element in `consts'.
5052
5053 2018-12-01 Florian Weimer <fweimer@redhat.com>
5054
5055 * support/support_capture_subprocess.c
5056 (support_capture_subprocess): Check that pipe descriptors have
5057 expected values. Close original pipe descriptors in subprocess.
5058
5059 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5060
5061 [BZ #23032]
5062 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
5063 attr with __pthread_default_barrierattr.
5064 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
5065 attr with __pthread_default_condattr.
5066 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
5067 attr with __pthread_default_mutexattr.
5068 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
5069 attr with __pthread_default_rwlockattr.
5070
5071 2018-12-01 Kemi Wang <kemi.wang@intel.com>
5072
5073 * manual/tunables.texi (POSIX Thread Tunables): New node.
5074 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
5075 * nptl/nptl-init.c: Include pthread_mutex_conf.h
5076 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
5077 __pthread_tunables_init.
5078 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
5079 (max_adaptive_count): Define.
5080 * nptl/pthread_mutex_conf.c: New file.
5081 * nptl/pthread_mutex_conf.h: New file.
5082 * sysdeps/generic/adaptive_spin_count.h: New file.
5083 * sysdeps/nptl/dl-tunables.list: New file.
5084 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
5085 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
5086 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
5087 Likewise.
5088
5089 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
5090
5091 [BZ #20544]
5092 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
5093 * stdlib/on_exit.c (__on_exit): Likewise.
5094 * stdlib/Makefile (tests): Add tst-bz20544.
5095 * stdlib/tst-bz20544.c: New test.
5096
5097 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
5098
5099 [BZ #19767]
5100 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
5101 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
5102 New.
5103
5104 2018-11-30 Florian Weimer <fweimer@redhat.com>
5105
5106 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
5107 Extend error logging.
5108 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
5109 symbol.
5110
5111 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5112
5113 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
5114 __sigismember instead of sigismember.
5115 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
5116 cancel_handler): New definitions.
5117 (do_system): Use posix_spawn instead of fork and execl and remove
5118 reentracy code.
5119 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
5120 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
5121 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
5122 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
5123 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
5124 * sysdeps/unix/sysv/linux/system.c: Likewise.
5125
5126 [BZ #22834]
5127 [BZ #17490]
5128 * NEWS: Add new semantic for atfork with popen and system.
5129 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
5130 fork and execl.
5131
5132 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
5133
5134 [BZ #23690]
5135 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
5136 modification order when accessing reloc_result->addr.
5137 * include/link.h (reloc_result): Add field init.
5138 * nptl/Makefile (tests): Add tst-audit-threads.
5139 (modules-names): Add tst-audit-threads-mod1 and
5140 tst-audit-threads-mod2.
5141 Add rules to build tst-audit-threads.
5142 * nptl/tst-audit-threads-mod1.c: New file.
5143 * nptl/tst-audit-threads-mod2.c: Likewise.
5144 * nptl/tst-audit-threads.c: Likewise.
5145 * nptl/tst-audit-threads.h: Likewise.
5146
5147 2018-11-30 Joseph Myers <joseph@codesourcery.com>
5148
5149 * scripts/gen-as-const.py: New file.
5150 * scripts/gen-as-const.awk: Remove.
5151 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
5152 gen-as-const.py.
5153 ($(objpfx)test-as-const-%.c): Likewise.
5154
5155 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
5156
5157 * elf/dl-exception.c: Include <_itoa.h>.
5158
5159 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5160
5161 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
5162 returned by __f_setlk.
5163
5164 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
5165 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5166
5167 * elf/Makefile (tests-internal): Add tst-create_format1.
5168 * elf/dl-exception.c (_dl_exception_create_format): Support
5169 %x, %lx and %zx.
5170 * elf/tst-create_format1.c: New file.
5171
5172 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
5173
5174 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
5175 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
5176 gnulib.)
5177 * argp/argp-help.c (__argp_failure): Likewise.
5178
5179 2018-11-29 Mao Han <han_mao@c-sky.com>
5180
5181 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
5182 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
5183 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
5184 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
5185 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
5186 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
5187 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
5188 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
5189 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
5190 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
5191 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
5192 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
5193 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
5194 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
5195 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
5196 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
5197 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
5198 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
5199 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
5200 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
5201 (R_CKCORE_TLS_TPOFF32): New defines.
5202
5203 2018-11-29 Florian Weimer <fweimer@redhat.com>
5204
5205 * posix/Makefile (before-compile): Remove testcases.h and
5206 ptestcases.h.
5207 (generated): Add testcases.h and ptestcases.h.
5208 (testcases.h, ptestcases.h): Move to $(objpfx).
5209 (runtests.o): Add dependency on testcases.h.
5210 (runptests.o): Add dependency on ptestcases.h.
5211 * posix/testcases.h, posix/ptestcases.h: Remove files.
5212 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
5213 not touch posix/testcases.h and posix/ptestcases.h.
5214
5215 2018-11-28 Florian Weimer <fweimer@redhat.com>
5216
5217 support: Add signal support to support_capture_subprocess_check.
5218 * support/capture_subprocess.h (support_capture_subprocess_check):
5219 Adjust comment and rename parameter.
5220 * support/support_capture_subprocess_check.c
5221 (print_actual_status): New function.
5222 (support_capture_subprocess_check): Support negative
5223 status_or_signal. Call print_actual_status.
5224 * support/tst-support_capture_subprocess.c (do_test): Call
5225 support_capture_subprocess_check.
5226 * libio/tst-vtables-common.c (termination_status)
5227 (init_termination_status): Remove.
5228 (check_for_termination): Adjust support_capture_subprocess_check
5229 call.
5230 (do_test): Remove call to init_termination_status.
5231
5232 2018-11-28 Joseph Myers <joseph@codesourcery.com>
5233
5234 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
5235 source directory instead of a copy.
5236 (CommandList.create_copy_dir): Remove.
5237
5238 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
5239
5240 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
5241
5242 2018-11-28 Florian Weimer <fweimer@redhat.com>
5243
5244 * support/support.h (support_quote_string): Do not use str
5245 parameter name.
5246
5247 2018-11-27 Joseph Myers <joseph@codesourcery.com>
5248
5249 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
5250 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
5251
5252 2018-11-27 Florian Weimer <fweimer@redhat.com>
5253
5254 * support/support.h (support_quote_string): Declare.
5255 * support/support_quote_string.c: New file.
5256 * support/tst-support_quote_string.c: Likewise.
5257 * support/Makefile (libsupport-routines): Add
5258 support_quote_string.
5259 (tests): Add tst-support_quote_string.
5260
5261 2018-11-27 Florian Weimer <fweimer@redhat.com>
5262
5263 [BZ #23927]
5264 CVE-2018-19591
5265 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
5266 descriptor leak in case of ENODEV error.
5267
5268 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
5269
5270 [BZ #19767]
5271 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
5272 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
5273 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
5274
5275 2018-11-26 Carlos O'Donell <carlos@redhat.com>
5276
5277 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
5278 Error for unknown lines.
5279
5280 2018-11-26 Joseph Myers <joseph@codesourcery.com>
5281
5282 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
5283 Touch additional files.
5284
5285 2018-11-26 Florian Weimer <fweimer@redhat.com>
5286
5287 [BZ #23907]
5288 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
5289 double-frees.
5290
5291 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
5292
5293 [BZ #19767]
5294 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
5295 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
5296 SHARED. Include sysdep.h.
5297 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
5298 ALWAYS_USE_VSYSCALL.
5299 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
5300 ALWAYS_USE_VSYSCALL.
5301
5302 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
5303
5304 [BZ #19767]
5305 * nptl/Makefile (tests-static): Add tst-cond11-static.
5306 (tests): Likewise.
5307 * nptl/tst-cond11-static.c: New File.
5308 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
5309 tst-affinity-static.
5310 (tests): Likewise.
5311 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
5312 instead of SHARED.
5313 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
5314 (USE_VSYSCALL): Likewise.
5315 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
5316 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
5317 instead of SHARED.
5318 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
5319 SHARED.
5320 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
5321 New.
5322
5323 2018-11-23 Joseph Myers <joseph@codesourcery.com>
5324
5325 [BZ #23915]
5326 * sysdeps/unix/sysv/linux/arm/kernel-features.h
5327 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
5328 Undefine.
5329
5330 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
5331
5332 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
5333 (tst-cet-legacy-1a-ARGS): New.
5334 ($(objpfx)tst-cet-legacy-1a): New target.
5335 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
5336
5337 2018-11-22 Joseph Myers <joseph@codesourcery.com>
5338
5339 * conform/conformtest.py (CompileSubTest.__init__): Set
5340 self.run_early to False.
5341 (ExecuteSubTest.__init__): Likewise.
5342 (HeaderTests.run): Try running all non-optional, non-XFAILed
5343 compilation tests in a single execution of the compiler.
5344
5345 * conform/conformtest.py (CompileSubTest): New class.
5346 (ExecuteSubTest): Likewise.
5347 (ElementTest.run): Rename to gen_subtests. Append tests to
5348 self.subtests instead of running them.
5349 (ConstantTest.run): Likewise.
5350 (SymbolTest.run): Likewise.
5351 (TypeTest.run): Likewise.
5352 (TagTest.run): Likewise.
5353 (FunctionTest.run): Likewise.
5354 (VariableTest.run): Likewise.
5355 (MacroFunctionTest.run): Likewise.
5356 (MacroStrTest.run): Likewise.
5357 (HeaderTests.handle_test_line): Generate subtests for tests.
5358 (HeaderTests.run): Run subtests for tests.
5359
5360 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5361
5362 * math/Versions (GLIBC_2.29): Add pow.
5363 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
5364 symbol.
5365 * math/w_pow.c: New file.
5366 * sysdeps/i386/fpu/w_pow.c: New file.
5367 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
5368 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
5369 and add necessary aliases.
5370 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
5371 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
5372 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5373 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5374 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5375 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5376 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5377 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5378 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5379 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5380 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5381 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5382 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5383 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5384 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5385 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5386 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5387 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5388 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5389 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5390 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5391 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5392 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5393 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5394 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5395 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5396 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
5397 __pow.
5398 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
5399 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
5400 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
5401
5402 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5403
5404 * math/Versions (GLIBC_2.29): Add log2.
5405 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
5406 symbol.
5407 * math/w_log2.c: New file.
5408 * sysdeps/i386/fpu/w_log2.c: New file.
5409 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
5410 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
5411 and add necessary aliases.
5412 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
5413 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
5414 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5415 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5416 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5417 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5418 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5419 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5420 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5421 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5422 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5423 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5424 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5425 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5426 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5427 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5428 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5429 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5430 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5431 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5432 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5433 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5434 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5435 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5436 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5437 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5438
5439 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5440
5441 * math/Versions (GLIBC_2.29): Add log.
5442 * math/w_log_compat.c (__log_compat): Change to versioned compat
5443 symbol.
5444 * math/w_log.c: New file.
5445 * sysdeps/i386/fpu/w_log.c: New file.
5446 * sysdeps/ia64/fpu/e_log.S: Update.
5447 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
5448 and add necessary aliases.
5449 * sysdeps/ieee754/dbl-64/w_log.c: New file.
5450 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
5451 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5452 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5453 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5454 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5455 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5456 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5457 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5458 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5459 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5460 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5461 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5462 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5463 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5464 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5465 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5466 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5467 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5468 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5469 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5470 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5471 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5472 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5473 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5474 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5475 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
5476 __log.
5477 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
5478 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
5479 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
5480 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
5481
5482 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5483
5484 * math/Versions (GLIBC_2.29): Add exp and exp2.
5485 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
5486 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
5487 * math/w_exp_compat.c (__exp_compat): Likewise.
5488 * math/w_exp.c: New file.
5489 * math/w_exp2.c: New file.
5490 * sysdeps/i386/fpu/w_exp.c: New file.
5491 * sysdeps/i386/fpu/w_exp2.c: New file.
5492 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
5493 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
5494 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
5495 and add necessary aliases.
5496 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
5497 and add necessary aliases.
5498 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
5499 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
5500 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
5501 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
5502 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5503 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5504 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5505 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5506 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5507 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5508 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5509 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5510 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5511 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5512 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5513 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5514 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5515 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5516 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5517 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5518 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5519 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5520 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5521 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5522 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5523 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5524 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5525 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5526 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
5527 (__ieee754_exp): Rename to __exp.
5528 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
5529 (__ieee754_exp): Rename to __exp.
5530 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
5531 (__ieee754_exp): Rename to __exp.
5532 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
5533 __exp.
5534 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
5535
5536 2018-11-20 DJ Delorie <dj@redhat.com>
5537
5538 * malloc/malloc.c (tcache_entry): Add key field.
5539 (tcache_put): Set it.
5540 (tcache_get): Likewise.
5541 (_int_free): Check for double free in tcache.
5542 * malloc/tst-tcfree1.c: New.
5543 * malloc/tst-tcfree2.c: New.
5544 * malloc/Makefile: Run the new tests.
5545 * manual/probes.texi: Document memory_tcache_double_free probe.
5546
5547 * dlfcn/dlerror.c (check_free): Prevent double frees.
5548
5549 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
5550
5551 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
5552
5553 2018-11-20 Joseph Myers <joseph@codesourcery.com>
5554
5555 * conform/conformtest.py (ElementTest.run): Use unique identifiers
5556 in tests. Use names for format arguments.
5557 (ConstantTest.run): Likewise.
5558 (SymbolTest.run): Likewise.
5559 (TypeTest.run): Likewise.
5560 (TagTest.run): Likewise.
5561 (FunctionTest.run): Likewise.
5562 (VariableTest.run): Likewise.
5563 (MacroFunctionTest.run): Likewise.
5564 (MacroStrTest.run): Likewise.
5565 (HeaderTests.__init__): Set self.num_tests.
5566 (HeaderTests.handle_test_line): Set test.num. Increment
5567 self.num_tests.
5568
5569 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
5570
5571 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
5572 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
5573 SEEK_SET.
5574
5575 2018-11-19 Mao Han <han_mao@c-sky.com>
5576
5577 * scripts/config.guess: Update to version 2018-08-29.
5578 * scripts/config.sub: Update to version 2018-08-29.
5579
5580 2018-11-19 Florian Weimer <fweimer@redhat.com>
5581
5582 support: Print timestamps in timeout handler.
5583 * support/support_test_main.c (print_timestamp): New function.
5584 (signal_handler): Use it to print the termination time and the
5585 time of the last write to standard output.
5586
5587 2018-11-16 Zack Weinberg <zackw@panix.com>
5588 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5589
5590 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
5591 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
5592 argument.
5593 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
5594 and add flags argument. Check flags instead of __ldbl_is_dbl when
5595 deciding whether to set is_long_double.
5596 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
5597 passing zero for flags argument.
5598 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
5599
5600 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5601 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
5602 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
5603 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
5604 variable names. Remove libc_hidden_def/libc_hidden_proto from
5605 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
5606 longer called from within the library.
5607 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
5608 for __nldbl___vstrfmon_l, declare it explicitly.
5609
5610 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
5611
5612 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
5613
5614 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
5615 macros
5616 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
5617 F_SETLK64, F_SETLKW64, respectively.
5618 * sysdeps/mach/hurd/f_setlk.c: New file.
5619 * sysdeps/mach/hurd/f_setlk.h: New file.
5620 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
5621 f_setlk.
5622 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
5623 (__libc_fcntl): Move non-flock operations to...
5624 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
5625 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
5626
5627 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
5628
5629 mktime: DEBUG_MKTIME cleanup
5630 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
5631 And it’s no longer needed now that glibc and Gnulib both have
5632 their own testing mechanisms for mktime.
5633 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
5634
5635 mktime: fix non-EOVERFLOW errno handling
5636 [BZ#23789]
5637 mktime was not properly reporting failures when the underlying
5638 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
5639 them like EOVERFLOW failures, and set errno to EOVERFLOW.
5640 The problem could happen on non-glibc platforms, with Gnulib.
5641 * time/mktime.c (guess_time_tm): Remove, replacing with ...
5642 (tm_diff): ... this simpler function, which does not change errno.
5643 All callers changed to deal with errno themselves.
5644 (ranged_convert, __mktime_internal): Return failure immediately if
5645 the underlying function reports any failure other than EOVERFLOW.
5646 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
5647 gap code fails.
5648
5649 mktime: fix bug with Y2038 DST transition
5650 [BZ#23789]
5651 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
5652 mishandle a DST transition that jumps over the Y2038 boundary.
5653 No such DST transitions are known so this is only a theoretical
5654 bug, but we might as well do things right.
5655
5656 mktime: make more room for overflow
5657 [BZ#23789]
5658 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
5659 This is so that we can add tm_diff results to a previous guess,
5660 which will be useful in a later patch.
5661
5662 mktime: simplify offset guess
5663 [BZ#23789]
5664 * time/mktime.c (__mktime_internal): Omit excess precision.
5665
5666 mktime: new test for mktime failure
5667 [BZ#23789]
5668 Based on a test suggested by Albert Aribaud in:
5669 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
5670 * time/Makefile (tests): Add bug-mktime4.
5671 * time/bug-mktime4.c: New file.
5672
5673 mktime: fix EOVERFLOW bug
5674 [BZ#23789]
5675 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
5676 Include libc-config.h, not config.h, for __set_errno.
5677 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
5678
5679 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
5680
5681 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
5682 __attribute_copy__ to copy attributes from name. Drop static qualifier
5683 to avoid warnings about leaf attribute not having effect on static
5684 functions.
5685
5686 2018-11-13 Florian Weimer <fweimer@redhat.com>
5687
5688 * malloc/malloc.c (fastbin_push_entry): New function.
5689 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
5690 (REMOVE_FB): Remove macro.
5691 (_int_malloc): Use fastbin_pop_entry and reindent.
5692 (_int_free): Use fastbin_push_entry.
5693 (malloc_consolidate): Use atomic_exchange_acquire.
5694
5695 2018-11-13 Joseph Myers <joseph@codesourcery.com>
5696
5697 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
5698 alias attribute, not with strong_alias.
5699
5700 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
5701 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
5702 with additional parameter thread.
5703 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
5704 in terms of __hidden_ver2.
5705 (hidden_tls_def): New macro.
5706 (libc_hidden_tls_def): Likewise.
5707 (rtld_hidden_tls_def): Likewise.
5708 (libm_hidden_tls_def): Likewise.
5709 (libmvec_hidden_tls_def): Likewise.
5710 (libresolv_hidden_tls_def): Likewise.
5711 (librt_hidden_tls_def): Likewise.
5712 (libdl_hidden_tls_def): Likewise.
5713 (libnss_files_hidden_tls_def): Likewise.
5714 (libnsl_hidden_tls_def): Likewise.
5715 (libnss_nisplus_hidden_tls_def): Likewise.
5716 (libutil_hidden_tls_def): Likewise.
5717 (libutil_hidden_tls_def): Likweise.
5718 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
5719 libc_hidden_tls_def.
5720 (__sim_disabled_exceptions_thread): Likewise.
5721 (__sim_round_mode_thread): Likewise.
5722
5723 * sysdeps/sparc/sparc-ifunc.h [SHARED]
5724 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
5725 copy attributes from name.
5726
5727 2018-11-12 Joseph Myers <joseph@codesourcery.com>
5728
5729 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
5730 Use __attribute_copy__ to copy attributes from name.
5731
5732 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
5733 with __hidden_ver1 call.
5734 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
5735 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
5736 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
5737 (__cosf): Do not declare here.
5738 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
5739 (__sincosf): Do not declare here.
5740 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
5741 (__sinf): Do not declare here.
5742
5743 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
5744 (__BIG_ENDIAN): Likewise.
5745 (__BYTE_ORDER): Likewise.
5746 (strong_alias): Likewise.
5747 (_strong_alias): Likewise.
5748
5749 2018-11-12 Florian Weimer <fweimer@redhat.com>
5750
5751 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
5752 function. Move after the definition of in_smallbin_range. Do not
5753 use __builtin_expect for paths that lead to a noreturn function.
5754 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
5755 because it is unclear whether this is in fact an unlikely
5756 condition.
5757 (_int_malloc, _int_free): Adjust.
5758 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
5759 variables.
5760 * malloc/arena.c (heap_trim): Likewise.
5761
5762 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
5763
5764 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
5765 it, free it if needed.
5766 (reauthenticate): Test and use ccwdir.
5767 (child_init_port): In non-resetids case, test and use ccwdir.
5768 (child_chdir): New nested function to set ccwdir.
5769 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
5770 * hurd/hurd/port.h (_hurd_port_move): New function.
5771 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
5772 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
5773 * hurd/Versions (_hurd_port_move): Export function.
5774 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
5775 symbol.
5776 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
5777 of dtablesize for allocating dtable_cloexec.
5778
5779 2018-11-09 Martin Sebor <msebor@redhat.com>
5780
5781 * include/libc-symbols.h (__attribute_copy__): Define macro unless
5782 it's already defined.
5783 (_strong_alias): Use __attribute_copy__.
5784 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
5785 * misc/sys/cdefs.h (__attribute_copy__): New macro.
5786 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
5787 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
5788 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
5789 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
5790 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
5791 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
5792 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
5793 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
5794 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
5795 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
5796 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
5797 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
5798 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
5799 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
5800 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
5801 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
5802 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
5803
5804 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5805
5806 * misc/tst-efgcvt.c: Include support/check.h and
5807 support/test-driver.c. Do not include test-skeleton.c.
5808 (error_count): Remove.
5809 (output_error): Replace increments to error_count with calls to
5810 support_record_failure.
5811 (output_r_error): Likewise.
5812 (special): Likewise.
5813 (do_test): Unconditionally return zero.
5814 (TEST_FUNCTION): Remove.
5815
5816 2018-11-09 Joseph Myers <joseph@codesourcery.com>
5817
5818 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
5819 not $(@D)/scratch.
5820 ($(linknamespace-header-tests)): Likewise.
5821
5822 * conform/conformtest.py: New file.
5823 * conform/conformtest.pl: Remove.
5824 * conform/GlibcConform.pm: Likewise.
5825 * conform/glibcconform.py (KEYWORDS_C90): New constant.
5826 (KEYWORDS_C99): Likewise.
5827 (KEYWORDS): Likewise.
5828 * conform/Makefile ($(conformtest-header-tests)): Use
5829 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
5830 option. Use --header instead of --headers.
5831 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
5832 function entries.
5833 * conform/data/spawn.h-data: Likewise.
5834 * conform/data/fcntl.h-data (openat): Add space after function
5835 name.
5836 * conform/data/wchar.h-data (wcscasecmp): Likewise.
5837 (wcscasecmp_l): Likewise.
5838 * conform/data/termios.h-data (c_cc): Add space after element
5839 name.
5840
5841 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5842
5843 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
5844 instead of manually comparing and reporting mismatching strings.
5845 * misc/tst-ldbl-error.c (do_one_test): Likewise.
5846 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
5847
5848 2018-11-08 Joseph Myers <joseph@codesourcery.com>
5849
5850 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
5851 __ASSUME_SOCKETCALL.
5852 * sysdeps/unix/sysv/linux/i386/kernel-features.h
5853 (__ASSUME_SOCKETCALL): Remove.
5854 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5855 (__ASSUME_SOCKETCALL): Likewise.
5856 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5857 (__ASSUME_SOCKETCALL): Likewise.
5858 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
5859 (__ASSUME_SOCKETCALL): Likewise.
5860 * sysdeps/unix/sysv/linux/s390/kernel-features.h
5861 (__ASSUME_SOCKETCALL): Likewise.
5862 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5863 (__ASSUME_SOCKETCALL): Likewise.
5864 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
5865 (__ASSUME_SOCKETCALL): Likewise.
5866
5867 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
5868
5869 [BZ #23509]
5870 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
5871 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
5872 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
5873 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
5874 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
5875 lc_unknown.
5876
5877 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
5878
5879 [BZ #17630]
5880 * resolv/tst-resolv-network.c: Add test for getnetbyname.
5881
5882 2018-11-07 Joseph Myers <joseph@codesourcery.com>
5883
5884 [BZ #23867]
5885 * sysdeps/unix/sysv/linux/arm/kernel-features.h
5886 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5887 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5888 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5889
5890 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5891
5892 * support/support_test_compare_string.c
5893 (support_test_compare_string): Fix printf format.
5894
5895 2018-11-07 Florian Weimer <fweimer@redhat.com>
5896
5897 Implement TEST_COMPARE_STRING.
5898 * support/check.h (TEST_COMPARE_STRING): Define.
5899 (support_test_compare_string): Declare.
5900 * support/Makefile (libsupport-routines): Add
5901 support_test_compare_string.
5902 (tests): Add tst-test_compare_string.
5903 * support/support_test_compare_string.c: New file.
5904 * support/tst-test_compare_string.c: Likewise.
5905
5906 2018-11-07 Andreas Schwab <schwab@suse.de>
5907
5908 [BZ #23864]
5909 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
5910 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
5911 Undef.
5912
5913 2018-11-06 Joseph Myers <joseph@codesourcery.com>
5914
5915 [BZ #23862]
5916 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5917 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
5918 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
5919 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
5920 Likewise.
5921
5922 2018-11-06 Florian Weimer <fweimer@redhat.com>
5923
5924 [BZ #17405]
5925 * posix/Makefile (routines): Add spawn_faction_addchdir.
5926 (tests): Add tst-spawn-chdir.
5927 * posix/Versions (GLIBC_2.29): Add
5928 posix_spawn_file_actions_addchdir_np.
5929 * posix/spawn_faction_addchdir.c: New file.
5930 * posix/spawn_faction_destroy.c
5931 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
5932 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
5933 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
5934 chdir_action.
5935 * posix/tst-spawn-chdir.c: New file.
5936 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
5937 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
5938 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
5939 posix_spawn_file_actions_addchdir_np.
5940 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
5941 Likewise.
5942 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
5943 Likewise.
5944 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
5945 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
5946 Likewise.
5947 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
5948 Likewise.
5949 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
5950 Likewise.
5951 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
5952 Likewise.
5953 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
5954 Likewise.
5955 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
5956 Likewise.
5957 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
5958 (GLIBC_2.29): Likewise.
5959 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
5960 (GLIBC_2.29): Likewise.
5961 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
5962 (GLIBC_2.29): Likewise.
5963 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
5964 (GLIBC_2.29): Likewise.
5965 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
5966 Likewise.
5967 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
5968 (GLIBC_2.29): Likewise.
5969 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
5970 (GLIBC_2.29): Likewise.
5971 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
5972 (GLIBC_2.29): Likewise.
5973 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
5974 (GLIBC_2.29): Likewise.
5975 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
5976 Likewise.
5977 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
5978 Likewise.
5979 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
5980 Likewise.
5981 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
5982 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
5983 Likewise.
5984 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
5985 Likewise.
5986 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
5987 Likewise.
5988 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
5989 Likewise.
5990
5991 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5992
5993 * misc/Makefile (tests): Add tst-ldbl-error.
5994 * misc/tst-ldbl-error.c: New file.
5995
5996 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5997
5998 * misc/Makefile (tests): Add tst-ldbl-warn.
5999 * misc/tst-ldbl-warn.c: New file.
6000
6001 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6002
6003 * argp/Makefile (tests): Add tst-ldbl-argp.
6004 * argp/tst-ldbl-argp.c: New file.
6005
6006 2018-11-05 Arjun Shankar <arjun@redhat.com>
6007
6008 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
6009 __gconv_path_elem and call __gconv_get_path unconditionally.
6010
6011 2018-11-05 Andreas Schwab <schwab@suse.de>
6012
6013 [BZ #22927]
6014 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
6015 creating the first helper thread failed.
6016
6017 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
6018
6019 * sysdeps/mach/hurd/msync.c: New file.
6020
6021 2018-11-02 Florian Weimer <fweimer@redhat.com>
6022
6023 * support/shell-container.c (copy_func): Call
6024 support_copy_file_range instead of copy_file_range to support
6025 cross-device copies.
6026
6027 2018-11-02 Florian Weimer <fweimer@redhat.com>
6028
6029 * support/test-container.c: Include <libc-pointer-arith.h> for
6030 ALIGN_UP.
6031
6032 2018-11-01 Zong Li <zong@andestech.com>
6033
6034 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
6035 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
6036 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
6037 (__FP_FRAC_SET_8): Add implementation for RV32 use.
6038
6039 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
6040 variable to avoid overlap arguments.
6041
6042 2018-11-01 Joseph Myers <joseph@codesourcery.com>
6043
6044 * posix/bug-regex22.c (main): Use puts with distinct error
6045 messages for unexpected success of re_compile_pattern, not printf
6046 with NULL argument to %s.
6047
6048 * stdio-common/bug22.c: Include <libc-diag.h>.
6049 (do_test): Disable -Wformat-overflow= warnings around fprintf
6050 calls outputting more than INT_MAX characters.
6051 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
6052 around printf call with NULL %s argument.
6053
6054 [BZ #23848]
6055 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
6056 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
6057 Undefine.
6058 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
6059 (__ASSUME_RECVMSG_SYSCALL): Likewise.
6060 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
6061 (__ASSUME_SENDTO_SYSCALL): Likewise.
6062 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
6063 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
6064 [!__arch64__].
6065 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
6066 (__ASSUME_CONNECT_SYSCALL): Likewise.
6067 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
6068 (__ASSUME_RECVFROM_SYSCALL): Likewise.
6069 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
6070 Define.
6071 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
6072 Likewise.
6073 [__LINUX_KERNEL_VERSION >= 0x040400]
6074 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6075 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
6076 Remove.
6077 (listen): Likewise.
6078 (setsockopt): Likewise.
6079
6080 2018-11-01 Fredrik Noring <noring@nocrew.org>
6081
6082 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
6083 with the ISA override.
6084
6085 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
6086
6087 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
6088 #endif.
6089
6090 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
6091
6092 * manual/errno.texi (EIEIO): Document how translators should
6093 translate the error message.
6094 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
6095 printing trailing whitespaces refused by git.
6096 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
6097 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
6098 * hurd/Makefile (user-interfaces): Add pci.
6099
6100 2018-10-30 Joseph Myers <joseph@codesourcery.com>
6101
6102 * conform/linknamespace.py: New file.
6103 * conform/linknamespace.pl: Remove file.
6104 * conform/Makefile ($(linknamespace-header-tests)): Use
6105 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
6106 option.
6107
6108 2018-10-30 Florian Weimer <fweimer@redhat.com>
6109
6110 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
6111 memory leaks.
6112
6113 2018-10-30 Florian Weimer <fweimer@redhat.com>
6114
6115 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
6116
6117 2018-10-30 Florian Weimer <fweimer@redhat.com>
6118
6119 * stdlib/tst-strtod-overflow.c (do_test): Switch to
6120 support_blob_repeat.
6121
6122 2018-10-30 Florian Weimer <fweimer@redhat.com>
6123
6124 Avoid spurious test failures in stdlib/test-bz22786.
6125 * support/Makefile (libsupport-routines): Add blob_repeat.
6126 (tests): Add tst-support_blob_repeat.
6127 * support/blob_repeat.h: New file.
6128 * support/blob_repeat.c: Likewise.
6129 * support/tst-support_blob_repeat.c: Likewise.
6130 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
6131 support_blob_repeat_allocate.
6132
6133 2018-10-30 Andreas Schwab <schwab@suse.de>
6134
6135 [BZ #23125]
6136 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
6137 Don't use tail call.
6138 * elf/tst-unwind-main.c: New file.
6139 * elf/Makefile (tests): Add tst-unwind-main.
6140 (CFLAGS-tst-unwind-main.c): Define.
6141
6142 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
6143
6144 [BZ #23791]
6145 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
6146 n_cs_precedes to 0.
6147 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
6148
6149 2018-10-29 Joseph Myers <joseph@codesourcery.com>
6150
6151 * conform/glibcconform.py: Do not import shutil.
6152 (list_exported_functions): Use tempfile.TemporaryDirectory instead
6153 of mkdtemp.
6154
6155 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
6156 critic_missing for versions before 3.4.
6157 * configure: Regenerated.
6158 * manual/install.texi (Tools for Compilation): Document
6159 requirement for Python to build glibc.
6160 * INSTALL: Regenerated.
6161 * Rules [PYTHON]: Make code unconditional.
6162 * benchtests/Makefile [PYTHON]: Likewise.
6163 * conform/Makefile [PYTHON]: Likewise.
6164 * manual/Makefile [PYTHON]: Likewise.
6165 * math/Makefile [PYTHON]: Likewise.
6166
6167 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
6168
6169 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
6170 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
6171 answer to interrupt_operation, return EIEIO instead of EINTR.
6172 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
6173 _hurd_intr_rpc_msg_about_to global point to start of controlled
6174 assembly snippet. Make it check canceled flag.
6175 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
6176 the _hurd_intr_rpc_msg_about_to point.
6177 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
6178 issue, remove cancel flag check.
6179
6180 2018-10-26 Joseph Myers <joseph@codesourcery.com>
6181
6182 * scripts/build-many-glibcs.py: Remove compatibility for missing
6183 os.cpu_count and re.fullmatch.
6184
6185 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
6186
6187 [BZ #23822]
6188 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
6189 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
6190 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
6191
6192 2018-10-25 Joseph Myers <joseph@codesourcery.com>
6193
6194 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
6195 macro.
6196
6197 2018-10-25 Florian Weimer <fweimer@redhat.com>
6198
6199 [BZ #23562]
6200 [BZ #23821]
6201 XFAIL siginfo_t si_band conform test on sparc64.
6202 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
6203 (__SI_BAND_TYPE): Only override long int default type on sparc64.
6204 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
6205 (conformtest-xfail-conds): Add sparc64-linux.
6206 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
6207 sparc64.
6208 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
6209
6210 2018-10-25 Joseph Myers <joseph@codesourcery.com>
6211
6212 * elf/elf.h (NT_MIPS_DSP): New macro.
6213 (NT_MIPS_FP_MODE): Likewise.
6214
6215 2018-10-25 Zong Li <zong@andestech.com>
6216
6217 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
6218 name by adding the file extension (.so).
6219
6220 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
6221
6222 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
6223 (test-xfail-ISO11/threads.h/linknamespace,
6224 test-xfail-ISO11/threads.h/conform): Add.
6225
6226 2018-10-24 Joseph Myers <joseph@codesourcery.com>
6227
6228 * math/gen-libm-test.py: Import os.
6229 (ALL_FLOATS_MANUAL): New constant.
6230 (ALL_FLOATS_SUFFIX): Likewise.
6231 (Ulps.all_functions): New function.
6232 (real_all_ulps): Likewise.
6233 (generate_err_table_sub): Likewise.
6234 (generate_err_table): Likewise.
6235 (main): Handle -s and -m options.
6236 * manual/libm-err-tab.pl: Remove.
6237 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
6238 instead of libm-err-tab.pl.
6239 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
6240 != no].
6241 * manual/install.texi (Tools for Compilation): Document
6242 requirement for Python to build manual.
6243 * INSTALL: Regenerated.
6244
6245 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
6246
6247 * bits/time64.h: New file.
6248 * include/time.h: Replace internal_time_t with __time64_t.
6249 * posix/bits/types (__time64_t): Add.
6250 * stdlib/Makefile: Add bits/time64.h to includes.
6251 * time/tzfile.c: Replace internal_time_t with __time64_t.
6252
6253 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6254
6255 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
6256 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
6257 __posix_spawn_file_actions_init, __posix_spawnattr_init,
6258 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
6259 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
6260 prototype.
6261 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
6262 * posix/spawn_faction_addclose.c
6263 (__posix_spawn_file_actions_addclose): Add hidden definition.
6264 * posix/spawn_faction_adddup2.c
6265 (__posix_spawn_file_actions_adddup2): Likewise.
6266 * posix/spawn_faction_destroy.c
6267 (__posix_spawn_file_actions_destroy): Likewise.
6268 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
6269 Likewise.
6270 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
6271 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
6272 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
6273 Likewise.
6274 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
6275 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
6276 Likewise.
6277
6278 2018-10-24 Andreas Schwab <schwab@suse.de>
6279
6280 [BZ #18093]
6281 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
6282 format cache.
6283 * elf/cache.c (print_cache): Likewise.
6284
6285 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
6286
6287 * bits/timesize.h: New file.
6288 * stdlib/Makefile (headers): Add bits/timesize.h.
6289 * sysdeps/unix/sysv/linux/bits/msq-pad.h
6290 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
6291 * sysdeps/unix/sysv/linux/bits/sem-pad.h
6292 (__SEM_PAD_AFTER_TIME): Likewise.
6293 * sysdeps/unix/sysv/linux/bits/shm-pad.h
6294 (__SHM_PAD_AFTER_TIME): Likewise.
6295 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
6296 (__MSQ_PAD_BEFORE_TIME): Likewise.
6297 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
6298 (__SEM_PAD_BEFORE_TIME): Likewise.
6299 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
6300 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
6301 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
6302 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
6303 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
6304 (__MSQ_PAD_BEFORE_TIME): Likewise.
6305 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
6306 (__SEM_PAD_BEFORE_TIME): Likewise.
6307 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
6308 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
6309 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
6310 (__MSQ_PAD_BEFORE_TIME): Likewise.
6311 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
6312 (__SEM_PAD_BEFORE_TIME): Likewise.
6313 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
6314 (__SHM_PAD_BEFORE_TIME): Likewise.
6315 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
6316 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
6317 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
6318
6319 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
6320
6321 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
6322 USE_RDTSCP is defined.
6323 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
6324 USE_RDTSCP is defined.
6325
6326 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6327
6328 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
6329 defined.
6330
6331 [BZ #23709]
6332 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
6333 independently of other flags.
6334
6335 2018-10-23 Florian Weimer <fweimer@redhat.com>
6336
6337 * time/tst-mktime2.c (N_STRINGS): Remove.
6338 (set_timezone): New function.
6339 (spring_forward_gap): Call it. Use FAIL_EXIT1.
6340 (mktime_test1): Report localtime failure and check errno value.
6341 Use TEST_COMPARE.
6342 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
6343 (do_test): Remove alarm call. Use set_timezone and array_length.
6344
6345 2018-10-23 Andreas Schwab <schwab@suse.de>
6346
6347 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
6348 (__start_context): Use END instead of PSEUDO_END.
6349
6350 2018-10-22 Joseph Myers <joseph@codesourcery.com>
6351
6352 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
6353 version to 4.19.
6354
6355 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
6356 version to 4.19.
6357
6358 [BZ #23793]
6359 * wcsmbs/c32rtomb.c: New file.
6360 * wcsmbs/mbrtoc32.c: Likewise.
6361 * wcsmbs/tst-c32-state.c: Likewise.
6362 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
6363 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
6364 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
6365 (tests): Add tst-c32-state.
6366 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
6367 $(gen-locales).
6368
6369 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
6370
6371 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
6372 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
6373
6374 2018-10-19 Joseph Myers <joseph@codesourcery.com>
6375
6376 [BZ #23794]
6377 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
6378 pair and return 0 in that case, and use saved character to
6379 interpret following character.
6380 * wcsmbs/tst-c16-surrogate.c: New file.
6381 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
6382 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
6383 Depend on $(gen-locales)
6384
6385 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
6386
6387 [BZ #23562]
6388 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
6389 (struct siginfo_t): Use correct type for si_band.
6390
6391 2018-10-19 Florian Weimer <fweimer@redhat.com>
6392
6393 [BZ #23689]
6394 * resource/bits/types/struct_rusage.h (struct rusage): Update
6395 comment on struct. Remove extraneous field comment.
6396
6397 2018-10-18 David S. Miller <davem@davemloft.net>
6398
6399 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
6400 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
6401 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
6402 sysdep_routines in subdir elf.
6403 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
6404 version for __vdso_clock_gettime.
6405 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
6406 Define.
6407 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
6408 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
6409
6410 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
6411
6412 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
6413
6414 * sysdeps/i386/init-arch.h: Removed.
6415 * sysdeps/i386/i586/init-arch.h: Likewise.
6416 * sysdeps/i386/i686/init-arch.h: Likewise.
6417 * sysdeps/i386/i686/hp-timing.h: Likewise.
6418 * sysdeps/x86_64/hp-timing.h: Likewise.
6419 * sysdeps/i386/isa.h: New file.
6420 * sysdeps/i386/i586/isa.h: Likewise.
6421 * sysdeps/i386/i686/isa.h: Likewise.
6422 * sysdeps/x86_64/isa.h: Likewise.
6423 * sysdeps/x86/hp-timing.h: New file.
6424 * sysdeps/x86/init-arch.h: Include <isa.h>.
6425
6426 2018-10-17 Joseph Myers <joseph@codesourcery.com>
6427
6428 * math/libm-test-pow.inc (pow_test_data): Do not allow
6429 divide-by-zero exception for pow(+/- 0, -Inf).
6430
6431 2018-10-17 Zack Weinberg <zackw@panix.com>
6432
6433 * manual/job.texi (Job Control is Optional): Remove node, as
6434 job control has not been optional in quite some time.
6435 (Job Control): Mention briefly that systems older than
6436 POSIX.1-2001 might not support job control.
6437 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
6438 defined on systems conforming to POSIX.1-2001.
6439
6440 2018-10-17 Arjun Shankar <arjun@redhat.com>
6441
6442 [BZ #22062]
6443 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
6444 indentation.
6445 * (__gconv_read_conf): Mark function static.
6446 * (once): New static variable.
6447 * (__gconv_load_conf): New function.
6448 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
6449 * iconv/gconv_db.c (once): Remove static variable.
6450 * (__gconv_compare_alias): Use __gconv_load_conf instead of
6451 __gconv_read_conf.
6452 * (__gconv_find_transform): Likewise.
6453 * iconv/tst-iconv-mt.c: New test.
6454 * iconv/Makefile: Add tst-iconv_mt.
6455
6456 2018-10-17 Joseph Myers <joseph@codesourcery.com>
6457
6458 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6459 bits/shm-pad.h.
6460 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
6461 (shmatt_t): Define as __syscall_ulong_t.
6462 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
6463 and [__SHM_PAD_AFTER_TIME].
6464 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
6465 Define shm_segsz and associated padding based on
6466 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
6467 Use __syscall_ulong_t instead of unsigned long int.
6468 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
6469 unsigned long int.
6470 [__USE_MISC] (struct shm_info): Likewise.
6471 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
6472 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
6473 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
6474 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
6475 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
6476 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
6477 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
6478 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
6479 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
6480 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
6481 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
6482
6483 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6484 bits/shmlba.h.
6485 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
6486 (SHMLBA): Remove macro.
6487 (__getpagesize): Remove function declaration.
6488 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
6489 <bits/shmlba.h>.
6490 (SHMLBA): Remove macro.
6491 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
6492 <bits/shmlba.h>.
6493 (SHMLBA): Remove macro.
6494 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
6495 <bits/shmlba.h>.
6496 (SHMLBA): Remove macro.
6497 (__getpagesize): Remove function declaration.
6498 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
6499 <bits/shmlba.h>.
6500 (SHMLBA): Remove macro.
6501 (__getshmlba): Remove function declaration.
6502 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
6503 (SHMLBA): Remove macro.
6504 (__getpagesize): Remove function declaration.
6505 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
6506 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
6507 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
6508 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
6509 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
6510 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
6511 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
6512 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
6513 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
6514 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
6515
6516 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
6517
6518 [BZ #23275]
6519 * nptl/tst-mutex10.c: New File.
6520 * nptl/Makefile (tests): Add tst-mutex10.
6521 (tst-mutex10-ENV): New variable.
6522 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
6523 Ensure that elision path is used if elision is available.
6524 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
6525 Likewise.
6526 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
6527 Likewise.
6528 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
6529 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
6530 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
6531 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
6532 Likewise.
6533 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
6534 (__pthread_mutex_cond_lock_adjust): Likewise.
6535 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
6536 Likewise.
6537 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
6538 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
6539 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
6540 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
6541 Add comments.
6542 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
6543 Use atomic_load_relaxed and atomic_store_relaxed.
6544 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
6545 Use atomic_store_relaxed.
6546
6547 2018-10-17 Andreas Schwab <schwab@suse.de>
6548
6549 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
6550 * crypt/badsalttest.c (TIMEOUT): Likewise.
6551 * crypt/sha256c-test.c (TIMEOUT): Likewise.
6552 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
6553 * io/test-lfs.c (TIMEOUT): Likewise.
6554 * libio/tst-atime.c (TIMEOUT): Likewise.
6555 * localedata/tst-leaks.c (TIMEOUT): Likewise.
6556 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
6557 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
6558 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
6559 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
6560 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
6561 * nptl/tst-cond11.c (TIMEOUT): Likewise.
6562 * nptl/tst-cond14.c (TIMEOUT): Likewise.
6563 * nptl/tst-cond15.c (TIMEOUT): Likewise.
6564 * nptl/tst-cond24.c (TIMEOUT): Likewise.
6565 * nptl/tst-cond25.c (TIMEOUT): Likewise.
6566 * nptl/tst-kill2.c (TIMEOUT): Likewise.
6567 * nptl/tst-kill3.c (TIMEOUT): Likewise.
6568 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
6569 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
6570 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
6571 * nptl/tst-once2.c (TIMEOUT): Likewise.
6572 * nptl/tst-once3.c (TIMEOUT): Likewise.
6573 * nptl/tst-once4.c (TIMEOUT): Likewise.
6574 * nptl/tst-robust8.c (TIMEOUT): Likewise.
6575 * nptl/tst-robust9.c (TIMEOUT): Likewise.
6576 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
6577 * nptl/tst-sem14.c (TIMEOUT): Likewise.
6578 * nptl/tst-sem6.c (TIMEOUT): Likewise.
6579 * nptl/tst-signal3.c (TIMEOUT): Likewise.
6580 * nptl/tst-spin4.c (TIMEOUT): Likewise.
6581 * nptl/tst-tls3.c (TIMEOUT): Likewise.
6582 * nptl/tst-tls4.c (TIMEOUT): Likewise.
6583 * posix/tst-chmod.c (TIMEOUT): Likewise.
6584 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
6585 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
6586 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
6587 * posix/tst-regex2.c (TIMEOUT): Likewise.
6588 * posix/tst-waitid.c (TIMEOUT): Likewise.
6589 * rt/tst-aio.c (TIMEOUT): Likewise.
6590 * rt/tst-aio10.c (TIMEOUT): Likewise.
6591 * rt/tst-aio4.c (TIMEOUT): Likewise.
6592 * rt/tst-aio5.c (TIMEOUT): Likewise.
6593 * rt/tst-aio6.c (TIMEOUT): Likewise.
6594 * rt/tst-aio64.c (TIMEOUT): Likewise.
6595 * rt/tst-aio7.c (TIMEOUT): Likewise.
6596 * rt/tst-aio9.c (TIMEOUT): Likewise.
6597 * rt/tst-clock.c (TIMEOUT): Likewise.
6598 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
6599 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
6600 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
6601 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
6602 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
6603 * rt/tst-timer4.c (TIMEOUT): Likewise.
6604 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
6605 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
6606 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
6607 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
6608 * time/tst-ftime.c (TIMEOUT): Likewise.
6609 * timezone/tst-tzset.c (TIMEOUT): Likewise.
6610
6611 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
6612
6613 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
6614 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
6615 for thunderX2.
6616
6617 2018-10-15 Joseph Myers <joseph@codesourcery.com>
6618
6619 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6620 bits/sem-pad.h.
6621 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
6622 instead of <bits/wordsize.h>.
6623 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
6624 and [__SEM_PAD_AFTER_TIME].
6625 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
6626 __syscall_ulong_t instead of unsigned long int.
6627 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
6628 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
6629 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
6630 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
6631 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
6632 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
6633 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
6634 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
6635 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
6636 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
6637 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
6638
6639 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
6640
6641 regex: simplify by using intprops.h
6642 [BZ#23744]
6643 * posix/regex_internal.h [_LIBC]: Include intprops.h.
6644 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
6645 intprops.h defines them.
6646
6647 regex: __builtin_expect → __glibc_unlikely
6648 [BZ#23744]
6649 This refactoring was prompted by a problem when the regex code is
6650 used as part of Gnulib and when the builder’s compiler does not grok
6651 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
6652 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
6653 Although this refactoring does not fix the problem directly,
6654 we might as well have Gawk use the now-preferred glibc style for when
6655 __builtin_expect is unavailable.
6656 * posix/regex_internal.h (BE): Remove.
6657 All uses replaced by __glibc_unlikely or __glibc_likely.
6658
6659 2018-10-11 Joseph Myers <joseph@codesourcery.com>
6660
6661 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6662 bits/msq-pad.h.
6663 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
6664 instead of <bits/wordsize.h>.
6665 (msgqnum_t): Define as __syscall_ulong_t.
6666 (msglen_t): Likewise.
6667 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
6668 and [__MSQ_PAD_AFTER_TIME].
6669 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
6670 __syscall_ulong_t instead of unsigned long int.
6671 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
6672 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
6673 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
6674 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
6675 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
6676 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
6677 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
6678 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
6679 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
6680 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
6681 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
6682
6683 2018-10-10 Joseph Myers <joseph@codesourcery.com>
6684
6685 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
6686 (struct shmid_ds): Condition padding after time fields on
6687 [__WORDSIZE == 32].
6688 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
6689 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
6690 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
6691
6692 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
6693 (struct semid_ds): Condition padding after time fields on
6694 [__WORDSIZE == 32].
6695 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
6696 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
6697 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
6698 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
6699
6700 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
6701 (struct msqid_ds): Condition padding after time fields on
6702 [__WORDSIZE == 32].
6703 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
6704 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
6705 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
6706 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
6707
6708 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
6709
6710 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
6711
6712 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
6713
6714 * libio/tst-readline.c (TIMEOUT): Define.
6715
6716 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
6717
6718 mktime fix for Gnulib + coreutils
6719 [BZ#23745]
6720 This fix affects only Gnulib. Problem discovered when
6721 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
6722 * time/mktime.c:
6723 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
6724 Do not define since it is not used. Defining an unused static
6725 function prompts a warning from GCC when Coreutils is configured
6726 with --enable-gcc-warnings.
6727
6728 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
6729
6730 * benchtests/scripts/compare_bench.py (main): set float type on
6731 threshold argument.
6732
6733 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
6734
6735 [BZ #23740]
6736 * localedata/locales/kl_GL (mon): Update, the relative case.
6737 (alt_mon): Add, fill with month names in the nominative case.
6738 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
6739 (d_fmt): Set to "%b %d %Y".
6740
6741 2018-10-04 Joseph Myers <joseph@codesourcery.com>
6742
6743 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
6744 <bits/mman-linux.h>.
6745 (PROT_READ): Don't define here.
6746 (PROT_WRITE): Likewise.
6747 (PROT_EXEC): Likewise.
6748 (PROT_NONE): Likewise.
6749 (PROT_GROWSDOWN): Likewise.
6750 (PROT_GROWSUP): Likewise.
6751 (MAP_SHARED): Likewise.
6752 (MAP_PRIVATE): Likewise.
6753 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
6754 [__USE_MISC] (MAP_FILE): Likewise.
6755 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
6756 [__USE_MISC] (MAP_ANON): Likewise.
6757 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
6758 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
6759 (MCL_CURRENT): Likewise.
6760 (MCL_FUTURE): Likewise.
6761 (MCL_ONFAULT): Likewise.
6762 [__USE_MISC] (MADV_NORMAL): Likewise.
6763 [__USE_MISC] (MADV_RANDOM): Likewise.
6764 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
6765 [__USE_MISC] (MADV_WILLNEED): Likewise.
6766 [__USE_MISC] (MADV_DONTNEED): Likewise.
6767 [__USE_MISC] (MADV_FREE): Likewise.
6768 [__USE_MISC] (MADV_REMOVE): Likewise.
6769 [__USE_MISC] (MADV_DONTFORK): Likewise.
6770 [__USE_MISC] (MADV_DOFORK): Likewise.
6771 [__USE_MISC] (MADV_HWPOISON): Likewise.
6772 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
6773 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
6774 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
6775 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
6776 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
6777 (__MAP_ANONYMOUS): New macro.
6778 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
6779 <bits/mman-linux.h> inclusion.
6780 (MAP_FIXED): Likewise.
6781 (MS_SYNC): Likewise.
6782 (MS_ASYNC): Likewise.
6783 (MS_INVALIDATE): Likewise.
6784 [__USE_MISC] (MADV_MERGEABLE): Likewise.
6785 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
6786 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
6787 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
6788 [__USE_MISC] (MADV_DONTDUMP): Likewise.
6789 [__USE_MISC] (MADV_DODUMP): Likewise.
6790 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
6791 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
6792
6793 [BZ #23735]
6794 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
6795 Define.
6796 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
6797 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
6798 Add test-nldbl-redirect.
6799 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
6800 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
6801 $(objpfx)libnldbl_nonshared.a.
6802
6803 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
6804
6805 * support/support.h (support_objdir_elf_ldso): New variable.
6806 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
6807 * support/Makefile (CFLAGS-support_paths.c): Add definition
6808 for OBJDIR_ELF_LDSO_PATH.
6809 * support/test-container.c (main): Search for the ld.so
6810 which is also used by the testsuite.
6811
6812 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
6813
6814 [BZ #20209]
6815 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
6816 should be "sap" rather than "sab".
6817 (day): Fix spelling of Sunday, should be "sapaat" rather than
6818 "sabaat".
6819
6820 2018-10-02 Joseph Myers <joseph@codesourcery.com>
6821
6822 * math/libm-test-fma.inc (fma_test_data): Add more tests.
6823
6824 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
6825
6826 [BZ #19444]
6827 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
6828 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
6829 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
6830
6831 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6832
6833 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
6834
6835 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
6836
6837 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
6838 Add -mrtm.
6839 (CFLAGS-elision-unlock.c): Likewise.
6840 (CFLAGS-elision-timed.c): Likewise.
6841 (CFLAGS-elision-trylock.c): Likewise.
6842 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
6843
6844 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6845
6846 [BZ #21037]
6847 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
6848 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
6849 new fd_to_filename interface.
6850 * libio/freopen64.c (freopen64): Likewise.
6851 * libio/tst-memstream.h: New file.
6852 * libio/tst-memstream4.c: Likewise.
6853 * libio/tst-wmemstream4.c: Likewise.
6854 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
6855 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
6856 and remove internal dynamic allocation.
6857
6858 2018-10-01 Joseph Myers <joseph@codesourcery.com>
6859
6860 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
6861 (MREMAP_MAYMOVE): Do not define here.
6862 [__USE_GNU] (MREMAP_FIXED): Likewise.
6863 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
6864 (MREMAP_MAYMOVE): Define here instead.
6865 [__USE_GNU] (MREMAP_FIXED): Likewise.
6866 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
6867 (MREMAP_MAYMOVE): Remove.
6868 [__USE_GNU] (MREMAP_FIXED): Likewise.
6869
6870 2018-09-28 Joseph Myers <joseph@codesourcery.com>
6871
6872 * math/fromfp.h: Do not include <math_private.h>.
6873 * math/s_cacosh_template.c: Likewise.
6874 * math/s_casin_template.c: Likewise.
6875 * math/s_casinh_template.c: Likewise.
6876 * math/s_ccos_template.c: Likewise.
6877 * math/s_cproj_template.c: Likewise.
6878 * math/s_fdim_template.c: Likewise.
6879 * math/s_fmaxmag_template.c: Likewise.
6880 * math/s_fminmag_template.c: Likewise.
6881 * math/s_iseqsig_template.c: Likewise.
6882 * math/s_ldexp_template.c: Likewise.
6883 * math/s_nextdown_template.c: Likewise.
6884 * math/w_log1p_template.c: Likewise.
6885 * math/w_scalbln_template.c: Likewise.
6886 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
6887 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
6888 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
6889 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
6890 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
6891 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
6892 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
6893 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
6894 * sysdeps/i386/fpu/s_atanl.c: Likewise.
6895 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
6896 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
6897 * sysdeps/i386/fpu/s_fdim.c: Likewise.
6898 * sysdeps/i386/fpu/s_logbl.c: Likewise.
6899 * sysdeps/i386/fpu/s_rintl.c: Likewise.
6900 * sysdeps/i386/fpu/s_significandl.c: Likewise.
6901 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
6902 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
6903 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6904 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
6905 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
6906 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6907 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
6908 * sysdeps/ieee754/k_standardf.c: Likewise.
6909 * sysdeps/ieee754/k_standardl.c: Likewise.
6910 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6911 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
6912 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
6913 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
6914 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
6915 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
6916 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
6917 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6918 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6919 * sysdeps/ieee754/s_signgam.c: Likewise.
6920 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
6921 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
6922 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
6923 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6924 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6925 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
6926 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6927 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
6928 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6929 * sysdeps/riscv/rvd/s_finite.c: Likewise.
6930 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
6931 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
6932 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
6933 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
6934 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
6935 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
6936 * sysdeps/riscv/rvf/fegetround.c: Likewise.
6937 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
6938 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
6939 * sysdeps/riscv/rvf/fesetround.c: Likewise.
6940 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
6941 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
6942 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
6943 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6944 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
6945 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6946 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
6947 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
6948 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
6949 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
6950 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
6951 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
6952 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
6953 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
6954 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6955 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6956 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
6957 <math_private.h>.
6958 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6959
6960 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
6961
6962 [BZ #23716]
6963 * sysdeps/i386/dl-cet.c: Removed.
6964 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
6965 prototype.
6966 (_dl_runtime_profile_shstk): Likewise.
6967 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
6968 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
6969
6970 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6971
6972 [BZ #23579]
6973 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
6974 do_test_with_invalid_iov): New tests.
6975 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
6976 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
6977 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
6978 errno is ENOSYS.
6979 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
6980 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
6981 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
6982
6983 2018-09-27 Joseph Myers <joseph@codesourcery.com>
6984
6985 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6986 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
6987 (MATH_REDIRECT_BINARY_ARGS): New macro.
6988 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6989 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
6990 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
6991 header inclusion.
6992 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
6993 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
6994 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
6995 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
6996 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
6997 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6998 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
6999 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
7000 Likewise.
7001 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
7002 Likewise.
7003 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
7004 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
7005 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
7006 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
7007 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
7008 Likewise.
7009 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
7010 Likewise.
7011 * sysdeps/generic/math_private_calls.h
7012 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
7013 Do not declare and define as an inline function.
7014 * math/divtc3.c (__divtc3): Use copysign functions instead of
7015 __copysign variants.
7016 * math/multc3.c (__multc3): Likewise.
7017 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
7018 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
7019 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
7020 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
7021 Likewise.
7022 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
7023 (__ieee754_yn): Likewise.
7024 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
7025 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
7026 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
7027 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
7028 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
7029 (__sin): Likewise.
7030 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
7031 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
7032 Likewise.
7033 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
7034 Likewise.
7035 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
7036 Likewise.
7037 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
7038 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
7039 Likewise.
7040 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
7041 (__ieee754_ynf): Likewise.
7042 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
7043 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
7044 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
7045 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
7046 Likewise.
7047 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
7048 (__ieee754_ynl): Likewise.
7049 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
7050 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
7051 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
7052 Likewise.
7053 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
7054 (__ieee754_ynl): Likewise.
7055 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
7056 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
7057 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
7058 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7059 Likewise.
7060 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
7061 (__ieee754_ynl)
7062 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
7063 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
7064 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
7065 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7066 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7067
7068 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7069 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
7070 using MATH_REDIRECT.
7071 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
7072 header inclusion.
7073 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
7074 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
7075 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
7076 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
7077 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
7078 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
7079 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
7080 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
7081 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
7082 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
7083 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
7084 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
7085 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
7086 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
7087 (round): Redirect to __round.
7088 (__roundl): Call round instead of __round.
7089 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
7090 Remove macro.
7091 [_ARCH_PWR5X] (__roundf): Likewise.
7092 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
7093 functions instead of __round variants.
7094 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
7095 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
7096 Likewise.
7097 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
7098 Likewise.
7099 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
7100 Likewise.
7101 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
7102 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
7103 __lroundl.
7104 (__ieee754_expl): Call roundl instead of __roundl.
7105
7106 2018-09-27 Andreas Schwab <schwab@suse.de>
7107
7108 [BZ #23717]
7109 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
7110 (do_test): Make st1 static.
7111
7112 2018-09-26 Andreas Schwab <schwab@suse.de>
7113
7114 [BZ #23707]
7115 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
7116 * elf/Makefile (tests): Add tst-unwind-ctor.
7117 (modules-names): Add tst-unwind-ctor-lib.
7118 ($(objpfx)tst-unwind-ctor): Depend on
7119 $(objpfx)tst-unwind-ctor-lib.so.
7120
7121 2018-09-26 Joseph Myers <joseph@codesourcery.com>
7122
7123 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
7124 file. Most contents moved from ....
7125 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
7126 and include <bits/mman-map-flags-generic.h>.
7127 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7128 (sysdep_headers): Add bits/mman-map-flags-generic.h.
7129 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
7130 <bits/mman-map-flags-generic.h>.
7131 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
7132 macros defined in <bits/mman-map-flags-generic.h>.
7133 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
7134 <bits/mman-map-flags-generic.h>.
7135 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
7136 defined in <bits/mman-map-flags-generic.h>.
7137
7138 2018-09-26 Andreas Schwab <schwab@suse.de>
7139
7140 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
7141 output.
7142
7143 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
7144 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7145 Fangrui Song <maskray@google.com>
7146
7147 [BZ #20480]
7148 * config.make.in (have-textrel_ifunc): New define.
7149 * configure.ac: Add check if linker supports textrel relocation with
7150 ifunc.
7151 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
7152 tst-ifunc-textrel.
7153 (CFLAGS-tst-ifunc-textrel.c): New rule.
7154 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
7155 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
7156 * elf/tst-ifunc-textrel.c: New file.
7157
7158 2018-09-25 Joseph Myers <joseph@codesourcery.com>
7159
7160 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
7161 <bits/procfs-prregset.h>.
7162 (prgregset_t): Define using __prgregset_t.
7163 (prfpregset_t): Define using __prfpregset_t.
7164 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7165 (sysdep_headers): Add bits/procfs-prregset.h.
7166 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
7167 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
7168 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
7169 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
7170
7171 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
7172 <bits/procfs-id.h> and <bits/procfs-extra.h>.
7173 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
7174 pr_uid and pr_gid.
7175 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7176 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
7177 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
7178 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
7179 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
7180 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
7181 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
7182 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
7183 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
7184 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
7185 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
7186 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
7187 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
7188 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
7189 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
7190 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
7191 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
7192 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
7193 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
7194 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
7195 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
7196 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
7197 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
7198 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
7199
7200 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
7201 AArch64 version. Include <bits/procfs.h>.
7202 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7203 (sysdep_headers): Add bits/procfs.h.
7204 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
7205 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
7206 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
7207 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
7208 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
7209 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
7210 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
7211 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
7212 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
7213 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
7214 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
7215 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
7216 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
7217 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
7218 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
7219 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
7220 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
7221
7222 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7223
7224 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
7225 Use libsupport.
7226
7227 2018-09-25 Arjun Shankar <arjun@redhat.com>
7228
7229 * iconv/gconv_int.h (__gconv_path_elem): Remove.
7230 (__gconv_max_path_elem_len): Likewise.
7231 (__gconv_nmodules): Likewise.
7232 (__gconv_get_path): Likewise.
7233 (path_elem): Move to ...
7234 * iconv/gconv_conf.c: ... here.
7235 (__gconv_get_path): Mark function static.
7236 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
7237 * iconv/gconv_open.c: ... here.
7238
7239 2018-09-24 Andreas Schwab <schwab@suse.de>
7240
7241 * scripts/haveversions.awk: New file.
7242 * Makerules ($(common-objpfx)Versions.def)
7243 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
7244 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
7245 Move rules ...
7246 * Makeconfig ($(common-objpfx)Versions.def)
7247 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
7248 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
7249 ... here.
7250 ($(common-objpfx)Versions.mk): New rule. Include it.
7251 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
7252 Emit error if build-obsolete-nsl = yes.
7253 * manual/install.texi (Configuring and compiling): Describe
7254 --enable-obsolete-nsl as unavaiable after version 2.28.
7255 * INSTALL: Regenerate.
7256
7257 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7258
7259 * NEWS: Add note about new TLE support on powerpc64le.
7260 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
7261 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
7262 __ununsed1.
7263 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
7264 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
7265 * sysdeps/powerpc/powerpc32/sysdep.h,
7266 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
7267 ABORT_TRANSACTION): Remove macros.
7268 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
7269 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
7270 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
7271 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
7272 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
7273 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
7274 usage.
7275 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
7276
7277 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
7278
7279 [BZ #10425]
7280 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
7281 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
7282 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
7283 which is the same as in it_IT.
7284 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
7285 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
7286
7287 2018-09-20 Joseph Myers <joseph@codesourcery.com>
7288
7289 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7290 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
7291 using MATH_REDIRECT.
7292 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
7293 header inclusion.
7294 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
7295 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
7296 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
7297 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
7298 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
7299 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
7300 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
7301 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
7302 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
7303 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
7304 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
7305 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
7306 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
7307 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
7308 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
7309 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
7310 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
7311 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
7312 (ceil): Redirect to __ceil.
7313 (floor): Redirect to __floor.
7314 (trunc): Redirect to __trunc.
7315 (__truncl): Call trunc instead of __trunc.
7316 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
7317 Remove macro.
7318 [_ARCH_PWR5X] (__truncf): Likewise.
7319 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
7320 trunc functions instead of __trunc variants.
7321 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
7322 Likewise.
7323 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
7324 Likewise.
7325 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
7326 Likewise.
7327 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7328 Likewise.
7329
7330 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
7331 [__i586__ || __pentium__].
7332 [__i486__]: Handle explicitly.
7333 (HAS_CPUID): Define to 1 if above macros are undefined.
7334 (HAS_I586): Likewise.
7335 (HAS_I686): Likewise.
7336
7337 2018-09-20 Florian Weimer <fweimer@redhat.com>
7338
7339 * misc/tst-gethostid.c: New file.
7340 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
7341 (tst-gethostid): Link with -ldl.
7342
7343 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
7344
7345 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
7346 value from gethostbyname_r.
7347
7348 2018-09-19 Carlos O'Donell <carlos@redhat.com>
7349
7350 * stdlib/tst-setcontext9.c (f1): Rename to...
7351 (f1a): ... this.
7352 (f1b): New function implementing lower half of f1 in alternate stack.
7353
7354 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
7355
7356 Fix mktime localtime offset confusion
7357 [BZ #23603]
7358 * include/time.h (__mktime_internal): The localtime offset is now
7359 of type long int instead of time_t. This is the longstanding type
7360 in glibc, and it is more than enough to represent difference
7361 between localtime and gmtime even if it is 32 bits and time_t is
7362 64. Changing it now will let us avoid an unnecessary change when
7363 time_t is widened to 64 bits on 32-bit platforms.
7364 * time/mktime-internal.h (mktime_offset_t): Now long int.
7365
7366 Merge mktime, timegm from upstream Gnulib
7367 [BZ #23603][BZ #16346]
7368 This fixes some obscure problems with integer overflow.
7369 Although it looks scary, it is almost all a byte-for-byte copy
7370 from Gnulib, and the Gnulib code has been tested reasonably well.
7371 * include/intprops.h: New file, copied from Gnulib.
7372 * include/verify.h, time/mktime-internal.h:
7373 New tiny files, simplified from Gnulib.
7374 * time/mktime.c: Copy from Gnulib. This has the following changes:
7375 Do not include config.h if DEBUG_MKTIME is nonzero.
7376 Include stdbool.h, intprops.h, verify.h.
7377 Include string.h only if needed.
7378 Include stdlib.h on MS-Windows.
7379 Include mktime-internal.h.
7380 (DEBUG_MKTIME): Default to 0, and simplify later uses.
7381 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
7382 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
7383 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
7384 simplify later conditionals; default the others to zero. Use
7385 these conditionals to express only the code needed on the current
7386 platform. In uses of these conditionals, explicitly spell out how
7387 _LIBC affects things, so it’s easier to review from a glibc
7388 viewpoint.
7389 (WRAPV): Remove; no longer needed now that we have
7390 systematic overflow checking.
7391 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
7392 compartmentalize tzset issues. Move system-dependent tzsettish
7393 code here from mktime.
7394 (verify): Remove; now done by verify.h. All uses changed.
7395 (long_int): Use a more-conservative definition, to avoid
7396 integer overflow.
7397 (SHR): Remove, replacing with ...
7398 (shr): New function, which means we needn’t worry about side
7399 effects in args, and conversion analysis is simpler.
7400 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
7401 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
7402 (time_t_avg, time_t_add_ok): Remove.
7403 (mktime_min, mktime_max): New constants.
7404 (leapyear, isdst_differ): Use bool for booleans.
7405 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
7406 Use long_int, not time_t, for mktime differences.
7407 (long_int_avg): New function, replacing time_t_avg.
7408 INT_ADD_WRAPV replaces time_t_add_ok.
7409 (guess_time_tm): 6th arg is now long_int, not time_t const *.
7410 All uses changed.
7411 (convert_time): New function.
7412 (ranged_convert): Use it.
7413 (__mktime_internal): Last arg now points to mktime_offset_t, not
7414 time_t. All uses changed. This is a no-op on glibc, where
7415 mktime_offset_t is always time_t. Use int, not time_t, for UTC
7416 offset guess. Directly check for integer overflow instead of
7417 using a heuristic that works only 99.9...% of the time.
7418 Access *OFFSET only once, to avoid an unlikely race if the
7419 compiler delays a load and if this cascades into a signed integer
7420 overflow.
7421 (mktime): Move tzsettish code to my_tzset, and move
7422 localtime_offset to within mktime so that it doesn’t
7423 need a separate ifdef.
7424 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
7425 instead of localtime.
7426 * time/timegm.c: Copy from Gnulib. This has the following changes:
7427 Include mktime-internal.h.
7428 [!_LIBC]: Include config.h and time.h. Do not include
7429 timegm.h or time_r.h. Make __mktime_internal a macro,
7430 and include mktime-internal.h to get its declaration.
7431 (timegm): Temporary is now mktime_offset_t, not time_t.
7432 This affects only Gnulib.
7433
7434 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
7435
7436 [BZ #23637]
7437 * string/test-strstr.c (pr23637): New function.
7438 (test_main): Add tests with longer needles.
7439 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
7440 * string/strstr.c (AVAILABLE): Likewise.
7441
7442 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
7443
7444 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
7445
7446 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
7447
7448 * NEWS: Mention pow improvements.
7449 * math/Makefile (type-double-routines): Add e_pow_log_data.
7450 * sysdeps/generic/math_private.h (__exp1): Remove.
7451 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
7452 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
7453 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
7454 contraction.
7455 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
7456 (exp_inline): Remove.
7457 (__ieee754_exp): Only single double input is handled.
7458 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
7459 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
7460 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
7461 (__pow_log_data): Define.
7462 * sysdeps/ieee754/dbl-64/upow.h: Remove.
7463 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
7464 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
7465 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
7466 contraction.
7467 (CFLAGS-e_pow-fma4.c): Likewise.
7468
7469 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
7470
7471 Simplify tzfile fstat failure code
7472 [BZ #21716]
7473 * time/tzfile.c (__tzfile_read): Simplify slightly.
7474
7475 Fix tzfile low-memory assertion failure
7476 [BZ #21716]
7477 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
7478 when registering time zone abbreviations.
7479
7480 2018-09-18 Joseph Myers <joseph@codesourcery.com>
7481
7482 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
7483 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
7484 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
7485 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
7486 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
7487 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
7488 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
7489 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
7490 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
7491
7492 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
7493 __ceil.
7494 (__ceill): Call ceil instead of __ceil.
7495 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
7496 __floor.
7497 (__floorl): Call floor instead of __floor.
7498
7499 2018-09-17 Joseph Myers <joseph@codesourcery.com>
7500
7501 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7502 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
7503 using MATH_REDIRECT.
7504 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
7505 header inclusion.
7506 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
7507 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
7508 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
7509 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
7510 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
7511 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
7512 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
7513 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
7514 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
7515 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
7516 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
7517 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
7518 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
7519 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
7520 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
7521 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
7522 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
7523 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
7524 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
7525 Remove macro.
7526 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
7527 functions instead of __ceil variants.
7528 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
7529 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
7530 Likewise.
7531 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
7532 Likewise.
7533 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7534 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
7535 Likewise.
7536 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7537 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7538
7539 [BZ #21286]
7540 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
7541 constant.
7542 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
7543 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
7544 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
7545 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
7546 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
7547 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
7548 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
7549 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
7550 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
7551 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
7552 (ILL_BADIADDR): Remove constant.
7553 (TRAP_BRANCH): Likewise.
7554 (TRAP_HWBKPT): Likewise.
7555
7556 2018-09-14 Joseph Myers <joseph@codesourcery.com>
7557
7558 [BZ #23656]
7559 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
7560 Remove [_MIPS_SIM = _ABIN32] conditional case.
7561 (struct elf_prpsinfo): Likewise.
7562
7563 [BZ #23649]
7564 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
7565 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
7566 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
7567 Likewise.
7568 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
7569 elf_prpsinfo): Likewise.
7570 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
7571 elf_prpsinfo): Likewise.
7572 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
7573 Likewise.
7574
7575 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7576 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
7577 using MATH_REDIRECT.
7578 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
7579 header inclusion.
7580 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
7581 * sysdeps/alpha/fpu/s_rint.c: Likewise.
7582 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
7583 * sysdeps/i386/fpu/s_rintl.c: Likewise.
7584 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
7585 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
7586 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
7587 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
7588 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
7589 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7590 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
7591 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
7592 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
7593 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
7594 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
7595 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
7596 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
7597 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
7598 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
7599 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
7600 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
7601 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
7602 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
7603 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
7604 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
7605 * sysdeps/x86_64/fpu/math_private.h: Remove file.
7606 * math/e_scalb.c (invalid_fn): Use rint functions instead of
7607 __rint variants.
7608 * math/e_scalbf.c (invalid_fn): Likewise.
7609 * math/e_scalbl.c (invalid_fn): Likewise.
7610 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
7611 Likewise.
7612 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
7613 Likewise.
7614 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
7615 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
7616 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
7617 Likewise.
7618 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
7619 Likewise.
7620 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7621 Likewise.
7622 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
7623 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
7624
7625 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7626 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
7627 New macro.
7628 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7629 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
7630 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7631 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
7632 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7633 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
7634 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7635 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
7636 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7637 && !NO_MATH_REDIRECT] (floor): Likewise.
7638 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
7639 header inclusion.
7640 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
7641 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
7642 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
7643 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
7644 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
7645 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
7646 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7647 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
7648 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
7649 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
7650 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
7651 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
7652 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7653 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7654 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
7655 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
7656 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
7657 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
7658 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
7659 Remove macro.
7660 [_ARCH_PWR5X] (__floorf): Likewise.
7661 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
7662 inline function.
7663 [__SSE4_1__] (__floorf): Likewise.
7664 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
7665 instead of __floor variants.
7666 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
7667 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
7668 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
7669 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
7670 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
7671 * math/w_tgamma_compat.c (__tgamma): Likewise.
7672 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
7673 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
7674 * math/w_tgammal_compat.c (__tgammal): Likewise.
7675 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
7676 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
7677 Likewise.
7678 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
7679 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
7680 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
7681 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
7682 Likewise.
7683 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
7684 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
7685 Likewise.
7686 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
7687 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
7688 Likewise.
7689 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
7690 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
7691 Likewise.
7692 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
7693 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7694 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
7695 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
7696 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7697 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7698
7699 2018-09-12 Joseph Myers <joseph@codesourcery.com>
7700
7701 * elf/Makefile (modules-names-tests): New variable.
7702
7703 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
7704
7705 * NEWS: Mention log2 improvements.
7706 * math/Makefile (type-double-routines): Add e_log2_data.
7707 * sysdeps/i386/fpu/e_log2_data.c: New file.
7708 * sysdeps/ia64/fpu/e_log2_data.c: New file.
7709 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
7710 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
7711 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
7712 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
7713 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
7714
7715 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
7716
7717 * NEWS: Mention log improvement.
7718 * math/Makefile (type-double-routines): Add e_log_data.
7719 * sysdeps/i386/fpu/e_log_data.c: New file.
7720 * sysdeps/ia64/fpu/e_log_data.c: New file.
7721 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
7722 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
7723 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
7724 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
7725 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
7726 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
7727
7728 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
7729 Xuepeng Guo <xuepeng.guo@intel.com>
7730
7731 [BZ #23606]
7732 * sysdeps/i386/start.S: Include <sysdep.h>
7733 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
7734 enabled. Add cfi_undefined (eip).
7735
7736 2018-09-11 Joseph Myers <joseph@codesourcery.com>
7737
7738 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
7739 (MOVQ): Likewise.
7740 (EXTRACT_WORDS64): Likewise.
7741 (INSERT_WORDS64): Likewise.
7742 (GET_FLOAT_WORD): Likewise.
7743 (SET_FLOAT_WORD): Likewise.
7744
7745 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
7746 argument.
7747 (Config.build_gcc): Use --disable-libsanitizer for first GCC
7748 build, but not for second build if --full-gcc. Use
7749 --enable-languages=all for second build if --full-gcc.
7750 (get_parser): Add --full-gcc option.
7751 (main): Update call to Context.
7752
7753 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
7754
7755 [BZ #10797]
7756 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
7757 Single Quotation Mark).
7758 (thousands_sep): Likewise.
7759 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
7760 * localedata/locales/it_IT (thousands_sep): Use ".".
7761 (grouping): Use "3;3".
7762
7763 2018-09-10 Joseph Myers <joseph@codesourcery.com>
7764
7765 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
7766 x86_64 and i686 configs using --enable-obsolete-rpc
7767 --enable-obsolete-nsl.
7768
7769 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
7770
7771 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
7772
7773 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
7774
7775 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
7776 Increment size of new_argv by one.
7777
7778 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
7779
7780 [BZ #17426]
7781 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
7782 * localedata/locales/ar_IN (d_fmt): Likewise.
7783 * localedata/locales/bhb_IN (d_fmt): Likewise.
7784 * localedata/locales/bho_IN (d_fmt): Likewise.
7785 * localedata/locales/bn_BD (d_fmt): Likewise.
7786 * localedata/locales/bn_IN (d_fmt): Likewise.
7787 * localedata/locales/doi_IN (d_fmt): Likewise.
7788 * localedata/locales/gu_IN (d_fmt): Likewise.
7789 * localedata/locales/hi_IN (d_fmt): Likewise.
7790 * localedata/locales/hne_IN (d_fmt): Likewise.
7791 * localedata/locales/kn_IN (d_fmt): Likewise.
7792 * localedata/locales/mag_IN (d_fmt): Likewise.
7793 * localedata/locales/mai_IN (d_fmt): Likewise.
7794 * localedata/locales/mjw_IN (d_fmt): Likewise.
7795 * localedata/locales/ml_IN (d_fmt): Likewise.
7796 * localedata/locales/mni_IN (d_fmt): Likewise.
7797 * localedata/locales/mr_IN (d_fmt): Likewise.
7798 * localedata/locales/pa_IN (d_fmt): Likewise.
7799 * localedata/locales/raj_IN (d_fmt): Likewise.
7800 * localedata/locales/sat_IN (d_fmt): Likewise.
7801 * localedata/locales/sd_IN (d_fmt): Likewise.
7802 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
7803 * localedata/locales/ta_IN (d_fmt): Likewise.
7804 * localedata/locales/ta_LK (d_fmt): Likewise.
7805 * localedata/locales/tcy_IN (d_fmt): Likewise.
7806 * localedata/locales/ur_IN (d_fmt): Likewise.
7807
7808 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
7809 * localedata/locales/ks_IN (d_fmt): Likewise.
7810 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
7811
7812 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
7813 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
7814 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
7815 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
7816
7817 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
7818
7819 * NEWS: Mention exp and exp2 improvements.
7820 * math/Makefile (libm-support): Remove t_exp.
7821 (type-double-routines): Add math_err and e_exp_data.
7822 * sysdeps/aarch64/libm-test-ulps: Update.
7823 * sysdeps/arm/libm-test-ulps: Update.
7824 * sysdeps/i386/fpu/e_exp_data.c: New file.
7825 * sysdeps/i386/fpu/math_err.c: New file.
7826 * sysdeps/i386/fpu/t_exp.c: Remove.
7827 * sysdeps/ia64/fpu/e_exp_data.c: New file.
7828 * sysdeps/ia64/fpu/math_err.c: New file.
7829 * sysdeps/ia64/fpu/t_exp.c: Remove.
7830 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
7831 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
7832 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
7833 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
7834 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
7835 * sysdeps/ieee754/dbl-64/math_config.h: New file.
7836 * sysdeps/ieee754/dbl-64/math_err.c: New file.
7837 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
7838 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
7839 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
7840 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
7841 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
7842 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
7843 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
7844 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7845 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7846
7847 2018-09-05 Joseph Myers <joseph@codesourcery.com>
7848
7849 * sysdeps/alpha/fpu/math_private.h: Remove.
7850
7851 * sysdeps/generic/math_private.h
7852 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
7853 Move this inline function ....
7854 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
7855 * include/math.h [!_ISOMAC]: To here....
7856
7857 2018-09-04 Joseph Myers <joseph@codesourcery.com>
7858
7859 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
7860 code ....
7861 [!FE_HAVE_ROUNDING_MODES]: And this code ....
7862 * include/fenv.h [!_ISOMAC]: ... to here.
7863 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
7864 (feraiseexcept): Likewise.
7865 * math/fromfp.h: Do not include <fenv_private.h>.
7866 * math/s_cexp_template.c: Likewise.
7867 * math/s_csin_template.c: Likewise.
7868 * math/s_csinh_template.c: Likewise.
7869 * math/s_ctan_template.c: Likewise.
7870 * math/s_ctanh_template.c: Likewise.
7871 * math/s_iseqsig_template.c: Likewise.
7872 * math/w_acos_compat.c: Likewise.
7873 * math/w_acosf_compat.c: Likewise.
7874 * math/w_acosl_compat.c: Likewise.
7875 * math/w_asin_compat.c: Likewise.
7876 * math/w_asinf_compat.c: Likewise.
7877 * math/w_asinl_compat.c: Likewise.
7878 * math/w_j0_compat.c: Likewise.
7879 * math/w_j0f_compat.c: Likewise.
7880 * math/w_j0l_compat.c: Likewise.
7881 * math/w_j1_compat.c: Likewise.
7882 * math/w_j1f_compat.c: Likewise.
7883 * math/w_j1l_compat.c: Likewise.
7884 * math/w_jn_compat.c: Likewise.
7885 * math/w_jnf_compat.c: Likewise.
7886 * math/w_log10_compat.c: Likewise.
7887 * math/w_log10f_compat.c: Likewise.
7888 * math/w_log10l_compat.c: Likewise.
7889 * math/w_log2_compat.c: Likewise.
7890 * math/w_log2f_compat.c: Likewise.
7891 * math/w_log2l_compat.c: Likewise.
7892 * math/w_log_compat.c: Likewise.
7893 * math/w_logf_compat.c: Likewise.
7894 * math/w_logl_compat.c: Likewise.
7895 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7896 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7897 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7898 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7899 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7900 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7901 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7902 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7903 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7904 * sysdeps/ieee754/k_standardl.c: Likewise.
7905 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7906 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7907 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7908 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7909 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7910 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7911 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7912 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7913 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7914 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7915 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7916 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7917 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7918 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7919 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7920 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7921 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7922 * math/w_ilogb_template.c: Include <fenv.h> instead of
7923 <fenv_private.h>.
7924 * math/w_llogb_template.c: Likewise.
7925 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7926 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7927
7928 2018-09-03 Joseph Myers <joseph@codesourcery.com>
7929
7930 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
7931 * math/fromfp.h: Include <fenv_private.h>.
7932 * math/math-narrow.h: Likewise.
7933 * math/s_cexp_template.c: Likewise.
7934 * math/s_csin_template.c: Likewise.
7935 * math/s_csinh_template.c: Likewise.
7936 * math/s_ctan_template.c: Likewise.
7937 * math/s_ctanh_template.c: Likewise.
7938 * math/s_iseqsig_template.c: Likewise.
7939 * math/w_acos_compat.c: Likewise.
7940 * math/w_acosf_compat.c: Likewise.
7941 * math/w_acosl_compat.c: Likewise.
7942 * math/w_asin_compat.c: Likewise.
7943 * math/w_asinf_compat.c: Likewise.
7944 * math/w_asinl_compat.c: Likewise.
7945 * math/w_ilogb_template.c: Likewise.
7946 * math/w_j0_compat.c: Likewise.
7947 * math/w_j0f_compat.c: Likewise.
7948 * math/w_j0l_compat.c: Likewise.
7949 * math/w_j1_compat.c: Likewise.
7950 * math/w_j1f_compat.c: Likewise.
7951 * math/w_j1l_compat.c: Likewise.
7952 * math/w_jn_compat.c: Likewise.
7953 * math/w_jnf_compat.c: Likewise.
7954 * math/w_llogb_template.c: Likewise.
7955 * math/w_log10_compat.c: Likewise.
7956 * math/w_log10f_compat.c: Likewise.
7957 * math/w_log10l_compat.c: Likewise.
7958 * math/w_log2_compat.c: Likewise.
7959 * math/w_log2f_compat.c: Likewise.
7960 * math/w_log2l_compat.c: Likewise.
7961 * math/w_log_compat.c: Likewise.
7962 * math/w_logf_compat.c: Likewise.
7963 * math/w_logl_compat.c: Likewise.
7964 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
7965 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
7966 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
7967 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
7968 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7969 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
7970 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
7971 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
7972 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
7973 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7974 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
7975 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
7976 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
7977 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
7978 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
7979 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
7980 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
7981 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7982 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7983 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7984 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7985 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
7986 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
7987 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
7988 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7989 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7990 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
7991 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
7992 * sysdeps/ieee754/float128/float128_private.h: Likewise.
7993 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
7994 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
7995 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
7996 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
7997 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7998 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7999 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
8000 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
8001 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
8002 * sysdeps/ieee754/k_standardl.c: Likewise.
8003 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
8004 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
8005 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
8006 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
8007 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
8008 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
8009 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
8010 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
8011 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
8012 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
8013 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
8014 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
8015 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
8016 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
8017 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
8018 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
8019 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
8020 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
8021 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
8022 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
8023 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
8024 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
8025 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
8026 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
8027 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
8028 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
8029 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
8030 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
8031 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
8032 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
8033 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
8034 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
8035 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
8036 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
8037 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
8038 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
8039 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
8040 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
8041 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
8042 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
8043 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
8044 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
8045 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
8046 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
8047 * sysdeps/riscv/rvd/s_finite.c: Likewise.
8048 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
8049 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
8050 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
8051 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
8052 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
8053 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
8054 * sysdeps/riscv/rvf/fegetround.c: Likewise.
8055 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
8056 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
8057 * sysdeps/riscv/rvf/fesetround.c: Likewise.
8058 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
8059 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
8060 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
8061 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
8062 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
8063 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
8064 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
8065 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
8066 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
8067 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
8068 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
8069 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
8070 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
8071 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
8072 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
8073 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
8074
8075 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
8076
8077 [BZ #20271]
8078 * include/stdio.h (__libc_fatal): Mention newline in comment.
8079 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
8080 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
8081 * nscd/initgrcache.c (addinitgroupsX): Likewise.
8082 * nss/nsswitch.c (__nss_next2): Likewise.
8083 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
8084 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
8085 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
8086 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
8087 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
8088 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
8089 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
8090 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
8091 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
8092 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
8093 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
8094 * sysdeps/unix/sysv/linux/netlink_assert_response.c
8095 (__netlink_assert_response): Likewise.
8096
8097 2018-08-31 Joseph Myers <joseph@codesourcery.com>
8098
8099 * conform/glibcconform.py: New file.
8100 * conform/list-header-symbols.py: Likewise.
8101 * conform/list-header-symbols.pl: Remove.
8102 * conform/Makefile (tests-special): Only add linknamespace tests
8103 if [PYTHON].
8104 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
8105
8106 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
8107
8108 [BZ #23597]
8109 * support/Makefile (libsupport-routines): Add
8110 support_copy_file_range and xcopy_file_range.
8111 * support/support.h: Include <sys/types.h>.
8112 (support_copy_file_range): New prototype.
8113 * support/support_copy_file_range.c: New file. Copied and
8114 modified from io/copy_file_range-compat.c.
8115 * support/test-container.c (copy_one_file): Call xcopy_file_rang
8116 instead of copy_file_range.
8117 * support/xcopy_file_range.c: New file.
8118 * support/xunistd.h (xcopy_file_range): New prototype.
8119
8120 2018-08-30 Carlos O'Donell <carlos@redhat.com>
8121
8122 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
8123 xpthread_create and xpthread_join.
8124
8125 2018-08-30 Florian Weimer <fweimer@redhat.com>
8126
8127 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
8128
8129 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
8130
8131 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
8132 if malloc fails.
8133
8134 2018-08-29 Joseph Myers <joseph@codesourcery.com>
8135
8136 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
8137 and minus_oflow as non-finite.
8138
8139 2018-08-28 Joseph Myers <joseph@codesourcery.com>
8140
8141 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
8142 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
8143 moved to fenv_private.h except for ...
8144 (TOINT_INTRINSICS): Kept in math_private.h.
8145 (roundtoint): Likewise.
8146 (converttoint): Likewise.
8147 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
8148 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
8149 * sysdeps/arm/math_private.h: Remove.
8150 * sysdeps/generic/fenv_private.h: New file. Contents moved from
8151 ....
8152 * sysdeps/generic/math_private.h: ... this file. Include
8153 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
8154 Include <fenv_private.h>. Remove functions and macros moved to
8155 fenv_private.h.
8156 * sysdeps/i386/fpu/math_private.h: Remove.
8157 * sysdeps/mips/math_private.h: Move to ....
8158 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
8159 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
8160 [__mips_hard_float] conditional. Include next <fenv_private.h>.
8161 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
8162 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
8163 * sysdeps/powerpc/fpu/math_private.h: Do not include
8164 <fenv_private.h>.
8165 * sysdeps/riscv/rvf/math_private.h: Move to ....
8166 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
8167 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
8168 <fenv_private.h>.
8169 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
8170 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
8171 * sysdeps/sparc/fpu/math_private.h: Remove.
8172 * sysdeps/i386/fpu/fenv_private.h: Move to ....
8173 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
8174 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
8175 <fenv_private.h>.
8176 * sysdeps/x86_64/fpu/math_private.h: Do not include
8177 <sysdeps/i386/fpu/fenv_private.h>.
8178
8179 2018-08-28 Florian Weimer <fweimer@redhat.com>
8180
8181 [BZ #23578]
8182 * posix/tst-regcomp-truncated.c: New file.
8183 * posix/Makefile (tests): Add it.
8184 (tst-regcomp-truncated.out): Depend on generated locales.
8185
8186 2018-08-28 Florian Weimer <fweimer@redhat.com>
8187
8188 * support/test-container.c (main): Treat unshare failure with
8189 EPERM as an unsupported test.
8190
8191 2018-08-28 Florian Weimer <fweimer@redhat.com>
8192
8193 [BZ #23520]
8194 nscd: Fix use-after-free in addgetnetgrentX and its callers.
8195 * nscd/netgroupcache.c
8196 (addgetnetgrentX): Add tofreep parameter. Do not free
8197 heap-allocated buffer.
8198 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
8199 (addgetnetgrentX_ignore): New function.
8200 (addgetnetgrent): Call it.
8201 (readdgetnetgrent): Likewise.
8202
8203 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
8204
8205 * string/memmem.c: Use memcmp for first match.
8206
8207 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
8208
8209 [BZ #17426]
8210 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
8211
8212 2018-08-27 DJ Delorie <dj@redhat.com>
8213
8214 * support/Makefile (others): Don't list programs explicitly as a
8215 dependency of "others".
8216
8217 2018-08-27 Joseph Myers <joseph@codesourcery.com>
8218
8219 * sysdeps/generic/math-tests-trap-force.h: New file.
8220 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
8221 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
8222 * sysdeps/powerpc/math-tests.h: Remove file.
8223 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
8224
8225 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
8226 Torvald Riegel <triegel@redhat.com>
8227
8228 [BZ #23538]
8229 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
8230 Update r to include the set wake-request flag if waiters are
8231 remaining after spinning.
8232
8233 2018-08-27 Joseph Myers <joseph@codesourcery.com>
8234
8235 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
8236
8237 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
8238
8239 [BZ #23578]
8240 regex: fix uninitialized memory access
8241 I introduced this bug into gnulib in commit
8242 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
8243 eventually it was merged into glibc. The bug was found by
8244 project-repo <bugs@feusi.co> and reported here:
8245 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
8246 Diagnosis and draft fix reported by Assaf Gordon here:
8247 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
8248 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
8249 * posix/regex_internal.c (build_wcs_upper_buffer):
8250 Fix bug when mbrtowc returns 0.
8251
8252 2018-08-24 Carlos O'Donell <carlos@redhat.com>
8253
8254 * po/be.po: Update translation.
8255
8256 2018-08-24 DJ Delorie <dj@delorie.com>
8257
8258 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
8259 $(libunwind).
8260
8261 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
8262
8263 [BZ #23400]
8264 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
8265 create temporary files in source tree.
8266
8267 2018-08-24 Joseph Myers <joseph@codesourcery.com>
8268
8269 * sysdeps/generic/math-tests-trap.h: New file.
8270 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
8271 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
8272 * sysdeps/aarch64/math-tests.h: Remove file.
8273 * sysdeps/arm/math-tests.h: Likewise.
8274 * sysdeps/riscv/math-tests.h: Likewise.
8275 * sysdeps/aarch64/math-tests-trap.h: New file.
8276 * sysdeps/arm/math-tests-trap.h: Likewise.
8277 * sysdeps/riscv/math-tests-trap.h: Likewise.
8278
8279 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
8280
8281 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
8282 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
8283 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
8284 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
8285 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
8286 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
8287 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
8288 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
8289 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
8290 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
8291 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
8292 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
8293 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
8294 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
8295 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
8296 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
8297 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
8298 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
8299
8300 2018-08-23 Joseph Myers <joseph@codesourcery.com>
8301
8302 * sysdeps/generic/math-tests-exceptions.h: New file.
8303 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
8304 (EXCEPTION_TESTS_float): Do not define here.
8305 (EXCEPTION_TESTS_double): Likewise.
8306 (EXCEPTION_TESTS_long_double): Likewise.
8307 (EXCEPTION_TESTS_float128): Likewise.
8308 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
8309 Likewise.
8310 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
8311 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
8312 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
8313 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
8314 * sysdeps/mips/math-tests.h: Likewise.
8315 * sysdeps/nios2/math-tests.h: Likewise.
8316 * sysdeps/riscv/math-tests.h [!__riscv_flen]
8317 (EXCEPTION_TESTS_float): Do not define here.
8318 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
8319 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
8320 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
8321
8322 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
8323
8324 * NEWS: Move optimized sinf entry to 2.29.
8325
8326 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
8327
8328 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
8329
8330 2018-08-22 DJ Delorie <dj@redhat.com>
8331
8332 * Makefile (testroot.pristine): New rules to initialize the
8333 test-in-container "testroot".
8334 * Makerules (all-testsuite): Add tests-container.
8335 * Rules (tests-expected): Add tests-container.
8336 (binaries-all-tests): Likewise.
8337 (tests-container): New, run these tests in the testroot container.
8338 * support/Makefile (others): Add *-container, support_paths.c,
8339 xmkdirp, and links-dso-program.
8340 * support/links-dso-program-c.c: New.
8341 * support/links-dso-program.cc: New.
8342 * support/test-container.c: New.
8343 * support/shell-container.c: New.
8344 * support/echo-container.c: New.
8345 * support/true-container.c: New.
8346 * support/xmkdirp.c: New.
8347 * support/xsymlink.c: New.
8348 * support/support_paths.c: New.
8349 * support/support.h: Add support paths prototypes.
8350 * support/xunistd.h: Add xmkdirp () and xsymlink ().
8351
8352 * nss/tst-nss-test3.c: Convert to test-in-container.
8353 * nss/tst-nss-test3.root/: New.
8354
8355 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
8356
8357 regex: port Gnulib code to z/OS POSIX environment
8358 Problem reported by Arnold Robbins in:
8359 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
8360 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
8361 Undef.
8362
8363 2018-08-22 Joseph Myers <joseph@codesourcery.com>
8364
8365 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
8366 (ROUNDING_TESTS_double): Remove.
8367 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
8368 (ROUNDING_TESTS_double): Remove.
8369 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
8370 (ROUNDING_TESTS_double): Remove.
8371 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
8372 (ROUNDING_TESTS_float): Remove.
8373 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
8374 (ROUNDING_TESTS_float): Remove.
8375 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
8376 (ROUNDING_TESTS_float): Remove.
8377 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
8378 !TEST_MATHVEC here.
8379 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
8380 (IF_ROUND_INIT_FE_UPWARD): Likewise.
8381
8382 * sysdeps/generic/math-tests-rounding.h: New file.
8383 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
8384 (ROUNDING_TESTS_float): Do not define here.
8385 (ROUNDING_TESTS_double): Likewise.
8386 (ROUNDING_TESTS_long_double): Likewise.
8387 (ROUNDING_TESTS_float128): Likewise.
8388 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
8389 (ROUNDING_TESTS_double): Undefine before defining.
8390 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
8391 (ROUNDING_TESTS_double): Undefine before defining.
8392 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
8393 (ROUNDING_TESTS_double): Undefine before defining.
8394 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
8395 (ROUNDING_TESTS_float): Undefine before defining.
8396 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
8397 (ROUNDING_TESTS_float): Undefine before defining.
8398 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
8399 (ROUNDING_TESTS_float): Undefine before defining.
8400 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
8401 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
8402 not define here.
8403 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
8404 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
8405 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
8406 * sysdeps/riscv/math-tests.h [!__riscv_flen]
8407 (ROUNDING_TESTS_float): Do not define here.
8408 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
8409 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
8410 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
8411 (ROUNDING_TESTS_float): Likewise.
8412 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
8413 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
8414 * sysdeps/mips/math-tests.h [__mips_soft_float]
8415 (ROUNDING_TESTS_float): Likewise.
8416 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
8417 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
8418 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
8419 (ROUNDING_TESTS_double): Likewise.
8420 (ROUNDING_TESTS_long_double): Likewise.
8421
8422 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
8423
8424 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
8425 (PF_XDP): New macro.
8426 (AF_XDP): New macro.
8427 (SOL_XDP): New macro.
8428
8429 2018-08-21 Joseph Myers <joseph@codesourcery.com>
8430
8431 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
8432 (TCP_INQ): Likewise.
8433 (TCP_CM_INQ): Likewise.
8434 (TCP_REPAIR_ON): Likewise.
8435 (TCP_REPAIR_OFF): Likewise.
8436 (TCP_REPAIR_OFF_NO_WP): Likewise.
8437 (struct tcp_zerocopy_receive): New type.
8438
8439 2018-08-21 Florian Weimer <fweimer@redhat.com>
8440
8441 * support/support.h (support_descriptor_supports_holes): Declare.
8442 * support/Makefile (libsupport-routines): Add
8443 support_descriptor_supports_holes.
8444 * support/support_descriptor_supports_holes.c: New file.
8445 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
8446 and stop testing if holes are not supported.
8447 * io/test-lfs.c (do_prepare): Likewise.
8448 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
8449 Likewise.
8450 * timezone/tst-tzset.c (create_tz_file): Likewise.
8451 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
8452 variable.
8453 (do_prepare): Set it.
8454 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
8455
8456 2018-08-21 Florian Weimer <fweimer@redhat.com>
8457
8458 [BZ #17248]
8459 * Makeconfig (+cflags): Do not sort (and deduplicate).
8460
8461 2018-08-21 Florian Weimer <fweimer@redhat.com>
8462
8463 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
8464 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
8465
8466 2018-08-20 Florian Weimer <fweimer@redhat.com>
8467
8468 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
8469 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
8470
8471 2018-08-20 Joseph Myers <joseph@codesourcery.com>
8472
8473 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
8474 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
8475 and ssi_arch members.
8476
8477 * elf/elf.c (NT_VMCOREDD): New macro.
8478 (AT_MINSIGSTKSZ): Likewise.
8479
8480 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
8481
8482 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
8483 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
8484 s_cosf-ppc64 and s_cosf-power8.
8485 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
8486 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
8487 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
8488 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
8489 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
8490 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
8491 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
8492 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
8493 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
8494 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
8495 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
8496 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
8497
8498 2018-08-17 Florian Weimer <fweimer@redhat.com>
8499
8500 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
8501
8502 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
8503
8504 * malloc/malloc.c (_int_malloc): Additional binning code checks.
8505
8506 2018-08-16 Florian Weimer <fweimer@redhat.com>
8507
8508 * configure.ac: Add --with-nonshared-cflags option.
8509 * config.make.in (extra-nonshared-cflags): Set variable.
8510 * Makeconfig (CFLAGS-.oS): Use it.
8511 * manual/install.texi (Configuring and compiling): Document
8512 --with-nonshared-cflags.
8513 * configure: Regenerate.
8514 * INSTALL: Likewise.
8515
8516 2018-08-16 Florian Weimer <fweimer@redhat.com>
8517
8518 * Makeconfig (ASFLAGS): Always append required assembler flags.
8519
8520 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
8521
8522 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
8523 (malloc_consolidate): Likewise.
8524
8525 2018-08-16 Pochang Chen <johnchen902@gmail.com>
8526
8527 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
8528
8529 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
8530
8531 * benchtests/bench-strlen.c (do_test): Allocate buffers before
8532 every strlen call.
8533
8534 * benchtests/bench-strlen.c: Print performance numbers in json.
8535
8536 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
8537
8538 * sysdeps/powerpc/powerpc64/multiarch/Makefile
8539 (sysdep_routines): Build strcmp-power9 and strncmp-power9
8540 only for little endian.
8541 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
8542 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
8543 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
8544 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
8545 Add check for little endian.
8546 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
8547 (__strcmp_power9): Add check for little endian.
8548 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
8549 Add check for little endian.
8550 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
8551 (__strncmp_power9): Add check for little endian.
8552 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
8553 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
8554 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
8555 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
8556 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
8557
8558 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
8559
8560 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
8561 [!STRLEN](STRLEN): Set to __strlen.
8562 * sysdeps/aarch64/multiarch/strlen.c: New file.
8563 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
8564 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
8565 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
8566 (__libc_ifunc_impl_list): Add strlen.
8567 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
8568 strlen_generic and strlen_asimd.
8569
8570 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
8571
8572 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
8573 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
8574 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
8575
8576 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
8577
8578 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
8579
8580 2018-08-14 Florian Weimer <fweimer@redhat.com>
8581
8582 [BZ #23519]
8583 * include/stdio.h (__vfxprintf): Declare.
8584 * stdio-common/fxprintf.c (__vfxprintf): New function.
8585 (__fxprintf): Call it.
8586 * misc/err.c (convert_and_print): Remove function.
8587 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
8588 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
8589 * misc/Makefile (tests): Add tst-warn-wide.
8590 * misc/tst-warn-wide.c: New file.
8591
8592 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
8593 Szabolcs Nagy <szabolcs.nagy@arm.com>
8594
8595 * NEWS: Mention sinf, cosf, sincosf.
8596 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
8597 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
8598 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
8599 constants rather than including generic sincosf.h.
8600 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
8601 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
8602 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
8603 (reduced_cos): Remove.
8604 (sinf_poly): New function.
8605 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
8606
8607 2018-08-14 Florian Weimer <fweimer@redhat.com>
8608
8609 [BZ #23521]
8610 [BZ #23522]
8611 * nss/nss_files/files-alias.c (get_next_alias): During :include:
8612 processing, bail out if no room, and close the stream before
8613 returning ERANGE.
8614 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
8615 (tst-nss-files-alias-leak): Link with libdl.
8616 (tst-nss-files-alias-leak.out): Depend on nss_files.
8617
8618 * nss/tst-nss-files-alias-leak.c: New file.
8619
8620 2018-08-14 Florian Weimer <fweimer@redhat.com>
8621
8622 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
8623 server_user, stat_user.
8624
8625 2018-08-13 Joseph Myers <joseph@codesourcery.com>
8626
8627 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
8628 version to 4.18.
8629 (io_pgetevents): New syscall.
8630 (rseq): Likewise.
8631
8632 * manual/install.texi (Configuring and compiling): Do not list
8633 tools used for testing pretty printers here.
8634 (Tools for Compilation): List Python, PExpect and GDB here.
8635 Update descriptions of uses of Perl and Python.
8636 * INSTALL: Regenerate.
8637
8638 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
8639 version to 4.18.
8640
8641 2018-08-13 Florian Weimer <fweimer@redhat.com>
8642
8643 * misc/error.c (error): Add missing va_end call.
8644 (error_at_line): Likewise.
8645
8646 2018-08-13 Florian Weimer <fweimer@redhat.com>
8647
8648 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
8649
8650 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
8651
8652 * benchtests/scripts/benchout.schema.json (properties): Add
8653 new properties.
8654
8655 * benchtests/bench-skeleton.c (main): Add duration and
8656 iterations attributes.
8657
8658 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
8659
8660 regex: Gnulib unibyte RRI uses bytes not chars
8661 Adjust the non-glibc code to agree with what Gawk needs for
8662 rational range interpretation (RRI) for regular expression ranges.
8663 In unibyte locales, Gawk wants ranges to use the underlying byte
8664 rather than the character code point. This change does not affect
8665 glibc proper.
8666 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
8667 In unibyte locales, use the byte value rather than
8668 running it through btowc.
8669
8670 2018-08-10 Joseph Myers <joseph@codesourcery.com>
8671
8672 * sysdeps/generic/math-tests-snan.h: New file.
8673 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
8674 (SNAN_TESTS_float): Do not define here.
8675 (SNAN_TESTS_double): Likewise.
8676 (SNAN_TESTS_long_double): Likewise.
8677 (SNAN_TESTS_float128): Likewise.
8678 * sysdeps/i386/fpu/math-tests-snan.h: New file.
8679 * sysdeps/i386/fpu/math-tests.h: Remove file.
8680 * sysdeps/ia64/math-tests-snan.h: New file.
8681 * sysdeps/ia64/math-tests.h: Remove file.
8682 * sysdeps/x86/math-tests.h: Likewise.
8683 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
8684
8685 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
8686 Szabolcs Nagy <szabolcs.nagy@arm.com>
8687
8688 * math/Makefile: Add s_sincosf_data.c.
8689 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
8690 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
8691 (sincosf_poly): Likewise.
8692 (reduce_small): Likewise.
8693 (reduce_large): Likewise.
8694 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
8695 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
8696 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
8697 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
8698
8699 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
8700 Szabolcs Nagy <szabolcs.nagy@arm.com>
8701
8702 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
8703 (converttoint): Use lround.
8704 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
8705 document the semantics when TOINT_INTRINSICS is set.
8706 (converttoint): Likewise.
8707 (TOINT_RINT): Remove.
8708 (TOINT_SHIFT): Remove.
8709 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
8710 path.
8711
8712 2018-08-10 Florian Weimer <fweimer@redhat.com>
8713
8714 [BZ #23497]
8715 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
8716 function.
8717 (__old_getdents64): Use getdents64. Convert entries without
8718 moving them.
8719 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
8720 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
8721 tst-readdir64-compat.
8722
8723 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8724
8725 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
8726 Fix unwind.
8727
8728 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8729
8730 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
8731 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
8732 code to s390x-mcount.h and #include it.
8733 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
8734 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
8735 (__fentry__): Add.
8736
8737 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8738
8739 * stdlib/Versions: Remove __fentry__.
8740 * sysdeps/i386/Versions: Add __fentry__.
8741 * sysdeps/x86_64/Versions: Add __fentry__.
8742
8743 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8744
8745 * sysdeps/s390/Makefile: Register the new tests.
8746 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
8747 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
8748 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
8749 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
8750 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
8751 * sysdeps/s390/tst-dl-runtime.c: New file.
8752
8753 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8754
8755 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8756 Do not clobber R0.
8757
8758 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8759
8760 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8761 Do not clobber R0.
8762
8763 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8764
8765 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8766 Do not clobber R0.
8767
8768 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8769
8770 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8771 Do not clobber R0.
8772
8773 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8774
8775 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8776 Use symbolic offsets for stack variables.
8777
8778 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8779
8780 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8781 Use symbolic offsets for stack variables.
8782
8783 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8784
8785 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8786 Use symbolic offsets for stack variables.
8787
8788 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8789
8790 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8791 Use symbolic offsets for stack variables.
8792
8793 2018-08-09 Joseph Myers <joseph@codesourcery.com>
8794
8795 * math/gen-libm-test.py: New file.
8796 * math/gen-libm-test.pl: Remove.
8797 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
8798 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
8799 gen-libm-test.pl.
8800 ($(libm-test-c-noauto-obj)): Likewise.
8801 ($(libm-test-c-auto-obj)): Likewise.
8802 ($(libm-test-c-narrow-obj)): Likewise.
8803 (regen-ulps): Likewise.
8804 * math/README.libm-test: Update references to gen-libm-test.pl.
8805 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
8806 referencing gen-libm-test.pl.
8807 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
8808 * math/libm-test-support.c: Likewise.
8809 * math/libm-test-support.h: Likewise.
8810 * sysdeps/generic/libm-test-ulps: Likewise.
8811
8812 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
8813
8814 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
8815 Fix value.
8816
8817 2018-08-08 Joseph Myers <joseph@codesourcery.com>
8818
8819 * math/libm-test-nextdown.inc (do_test): Move comment to ....
8820 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
8821
8822 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
8823
8824 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
8825 symbols.
8826 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
8827 __pthread_setspecific): Add hidden proto.
8828 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
8829 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
8830
8831 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
8832
8833 * benchtests/bench-string.h (buf1_size, buf2_size): New
8834 variables.
8835 (init_sizes): New function.
8836 (test_init): Use it.
8837 (alloc_buf, exit_error): New functions.
8838 (alloc_bufs): Use ALLOC_BUF.
8839 (realloc_bufs): Remove.
8840 * benchtests/bench-memcmp.c (do_test): Adjust.
8841 * benchtests/bench-memset-large.c (do_test): Likewise.
8842 * benchtests/bench-memset-walk.c (do_test): Likewise.
8843 * benchtests/bench-memset.c (do_test): Likewise.
8844 * benchtests/bench-strncmp.c (do_test): Likewise.
8845
8846 2018-08-06 Andreas Schwab <schwab@suse.de>
8847
8848 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
8849 of CONST_THREAD_AREA.
8850
8851 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
8852
8853 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
8854 (STATE_SAVE_MASK): Likewise.
8855 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
8856 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
8857 (STATE_SAVE_MASK): Likewise.
8858 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
8859 instead of <cpu-features.h>.
8860
8861 2018-08-03 DJ Delorie <dj@redhat.com>
8862
8863 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
8864 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
8865
8866 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
8867
8868 2018-08-03 Joseph Myers <joseph@codesourcery.com>
8869
8870 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
8871 after TEST_* calls.
8872 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
8873 * math/libm-test-logb.inc (logb_test_data): Likewise.
8874
8875 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
8876
8877 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
8878 * string/strstr.c (AVAILABLE): Likewise.
8879
8880 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
8881
8882 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
8883 <init-arch.h>.
8884 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
8885 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
8886 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
8887
8888 2018-08-03 Carlos O'Donell <carlos@redhat.com>
8889
8890 * po/be.po: Update translation.
8891
8892 * po/be.po: Update translation.
8893
8894 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
8895
8896 * sysdeps/x86/cpu-features-offsets.sym
8897 (rtld_global_ro_offsetof): Removed.
8898 (CPU_FEATURES_SIZE): Likewise.
8899 (CPUID_OFFSET): Likewise.
8900 (CPUID_SIZE): Likewise.
8901 (CPUID_EAX_OFFSET): Likewise.
8902 (CPUID_EBX_OFFSET): Likewise.
8903 (CPUID_ECX_OFFSET): Likewise.
8904 (CPUID_EDX_OFFSET): Likewise.
8905 (FAMILY_OFFSET): Likewise.
8906 (MODEL_OFFSET): Likewise.
8907 (FEATURE_OFFSET): Likewise.
8908 (FEATURE_SIZ): Likewise.
8909 (COMMON_CPUID_INDEX_1): Likewise.
8910 (COMMON_CPUID_INDEX_7): Likewise.
8911 (FEATURE_INDEX_1): Likewise.
8912 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
8913
8914 2018-08-02 Carlos O'Donell <carlos@redhat.com>
8915
8916 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
8917 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
8918 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
8919 (install-locales): Depend on install-locale-archive.
8920 (install-locale-archive): Define.
8921 (install-locale-files): Define.
8922 (build-one-locale): Define macro.
8923 * manual/install.texi (Running make install): Document.
8924 * manual/INSTALL: Regenerate.
8925
8926 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
8927
8928 * benchtests/scripts/compare_strings.py: Import traceback.
8929 (parse_file): Pretty-print error.
8930
8931 * NEWS: Mention the change.
8932 * elf/dl-tunables.list: Rename tune namespace to cpu.
8933 * sysdeps/powerpc/dl-tunables.list: Likewise.
8934 * sysdeps/x86/dl-tunables.list: Likewise.
8935 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
8936 cpu.name.
8937 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
8938 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
8939 * manual/README.tunables: Likewise.
8940 * manual/tunables.texi: Likewise.
8941 * sysdeps/powerpc/cpu-features.c: Likewise.
8942 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
8943 (init_cpu_features): Likewise.
8944 * sysdeps/x86/cpu-features.c: Likewise.
8945 * sysdeps/x86/cpu-features.h: Likewise.
8946 * sysdeps/x86/cpu-tunables.c: Likewise.
8947 * sysdeps/x86_64/Makefile: Likewise.
8948 * sysdeps/x86/dl-cet.c: Likewise.
8949
8950 2018-08-02 Joseph Myers <joseph@codesourcery.com>
8951
8952 [BZ #23479]
8953 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
8954 [__mips_hard_float].
8955 (FE_UNDERFLOW): Likewise.
8956 (FE_OVERFLOW): Likewise.
8957 (FE_DIVBYZERO): Likewise.
8958 (FE_INVALID): Likewise.
8959 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
8960 (FE_TOWARDZERO): Define only if [__mips_hard_float].
8961 (FE_UPWARD): Likewise.
8962 (FE_DOWNWARD): Likewise.
8963 (__FE_UNDEFINED): Define if [!__mips_hard_float]
8964 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
8965 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
8966 [__mips_hard_float].
8967 (FP_ROUNDMODE): Likewise.
8968 (FP_RND_NEAREST): Likewise.
8969 (FP_RND_ZERO): Likewise.
8970 (FP_RND_PINF): Likewise.
8971 (FP_RND_MINF): Likewise.
8972 (FP_EX_INVALID): Likewise.
8973 (FP_EX_OVERFLOW): Likewise.
8974 (FP_EX_UNDERFLOW): Likewise.
8975 (FP_EX_DIVZERO): Likewise.
8976 (FP_EX_INEXACT): Likewise.
8977 (FP_INIT_ROUNDMODE): Likewise.
8978 * sysdeps/mips/nofpu/fesetenv.c: New file.
8979 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
8980
8981 2018-08-01 Joseph Myers <joseph@codesourcery.com>
8982
8983 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
8984 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
8985 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
8986 conditional on [FE_UPWARD].
8987
8988 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
8989
8990 regex: fix memory leak in Gnulib
8991 Problem and fix reported by Assaf Gordon in:
8992 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
8993 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
8994 range_ends members too, as they are defined in 'struct
8995 re_charset_t' even if not _LIBC. This affects only Gnulib.
8996
8997 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
8998
8999 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
9000 ...
9001 (get_common_indices): This.
9002 (init_cpu_features): Updated.
9003
9004 2018-08-01 Joseph Myers <joseph@codesourcery.com>
9005
9006 * sysdeps/generic/math-tests-snan-payload.h: New file.
9007 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
9008 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
9009 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
9010 * sysdeps/generic/math-tests.h: Include
9011 <math-tests-snan-payload.h>.
9012 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
9013 * sysdeps/hppa/math-tests.h: Remove file.
9014 * sysdeps/mips/math-tests.h [!__mips_nan2008]
9015 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
9016 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
9017 Likewise.
9018
9019 * sysdeps/generic/math-tests-snan-cast.h: New file.
9020 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
9021 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
9022 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
9023 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
9024
9025 2018-08-01 Carlos O'Donel <carlos@redhat.com>
9026
9027 * version.h (RELEASE): Set to "development".
9028 (VERSION): Set to "2.28.9000".
9029 * NEWS (2.29): New section.
9030
9031 * version.h (RELEASE): Set to "stable".
9032 (VERSION): Set to "2.28".
9033 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
9034 * NEWS: Add the list of bugs fixed in 2.28.
9035
9036 * po/ca.po: Update to latest version.
9037 * po/cs.po: Likewise
9038 * po/da.po: Likewise
9039 * po/el.po: Likewise
9040 * po/eo.po: Likewise
9041 * po/es.po: Likewise
9042 * po/fi.po: Likewise
9043 * po/fr.po: Likewise
9044 * po/gl.po: Likewise
9045 * po/hu.po: Likewise
9046 * po/ia.po: Likewise
9047 * po/id.po: Likewise
9048 * po/it.po: Likewise
9049 * po/ja.po: Likewise
9050 * po/ko.po: Likewise
9051 * po/lt.po: Likewise
9052 * po/nb.po: Likewise
9053 * po/nl.po: Likewise
9054 * po/pt_BR.po: Likewise
9055 * po/ru.po: Likewise
9056 * po/rw.po: Likewise
9057 * po/sk.po: Likewise
9058 * po/sl.po: Likewise
9059 * po/tr.po: Likewise
9060 * po/zh_CN.po: Likewise
9061 * po/zh_TW.po: Likewise
9062
9063 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
9064
9065 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
9066 initialization...
9067 (init): ... before initializing libpthread.
9068
9069 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
9070 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
9071 (__mach_setup_tls): ... new function.
9072 (mach_setup_tls): New alias.
9073 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
9074 __mach_setup_thread.
9075 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
9076 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
9077 * mach/Versions [libc] (mach_setup_tls): Add symbol.
9078 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
9079
9080 2018-07-31 Carlos O'Donell <carlos@redhat.com>
9081
9082 * manual/install.texi: Update versions.
9083 * INSTALL: Regenerate.
9084
9085 * manual/contrib.texi (Contributors): Update contributions.
9086
9087 2018-07-31 Carlos O'Donell <carlos@redhat.com>
9088
9089 * po/be.po: Update translations.
9090
9091 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9092
9093 * sysdeps/sh/libm-test-ulps: Update.
9094
9095 2018-07-30 Carlos O'Donell <carlos@redhat.com>
9096
9097 * po/bg.po: Update translations.
9098 * po/de.po: Likewise.
9099 * po/hr.po: Likewise.
9100 * po/pt_BR.po: Likewise.
9101 * po/sv.po: Likewise.
9102 * po/vi.po: Likewise.
9103
9104 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
9105
9106 [BZ #23467]
9107 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
9108 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
9109 (CFLAGS-tst-cet-property-1.o): New.
9110 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
9111 ($(objpfx)tst-cet-property-2): Likewise.
9112 ($(objpfx)tst-cet-property-2.out): Likewise.
9113 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
9114 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
9115 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
9116 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
9117 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
9118
9119 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
9120
9121 [BZ #23458]
9122 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
9123
9124 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
9125
9126 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
9127 __sbrk): Do not set attribute_hidden.
9128 * sysdeps/mach/hurd/not-errno.h: New file.
9129 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
9130 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
9131
9132 2018-07-27 Carlos O'Donell <carlos@redhat.com>
9133
9134 * po/uk.po: Update translations.
9135 * po/cs.po: Likewise.
9136 * po/pl.po: Likewise.
9137
9138 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
9139
9140 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
9141 parse beyond the note end.
9142
9143 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9144
9145 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
9146 kernel does not support OFD locks.
9147 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
9148
9149 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
9150
9151 * sysdeps/mach/hurd/Versions (libc): Make __access and
9152 __access_noerrno external so they can override the ld symbols.
9153 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
9154 __writev, __open64, __access_noerrno extern so they can be overrided.
9155 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
9156 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
9157
9158 2018-07-26 Carlos O'Donell <carlos@redhat.com>
9159
9160 * po/libc.pot: Regenerate.
9161
9162 2018-07-26 Joseph Myers <joseph@codesourcery.com>
9163
9164 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
9165
9166 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
9167
9168 [BZ #23459]
9169 * sysdeps/x86/cpu-features.c (get_extended_indices): New
9170 function.
9171 (init_cpu_features): Call get_extended_indices for both Intel
9172 and AMD CPUs.
9173 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
9174 Remove "for AMD" comment.
9175
9176 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
9177
9178 [BZ # 23456]
9179 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
9180 COMMON_CPUID_INDEX_80000001.
9181
9182 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
9183
9184 * string/tst-xbzero-opt.c (use_test_buffer): New function.
9185 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
9186
9187 2018-07-26 Florian Weimer <fweimer@redhat.com>
9188
9189 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
9190 aliases for symbols not in the implementation namespace.
9191
9192 2018-07-25 Carlos O'Donell <carlos@redhat.com>
9193
9194 [BZ #23393]
9195 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
9196 lowercase in LATIN script.
9197 * localedata/Makefile (test-input): Add en_US.UTF-8.
9198 * localedata/en_US.UTF-8.in: New file.
9199 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
9200 and restore old tests.
9201 * posix/tst-regexloc.c (do_test): Add back range expression test.
9202
9203 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9204
9205 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
9206
9207 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9208
9209 * nptl/threads.h: Move to ...
9210 * sysdeps/nptl/threads.h: ... here.
9211 * sysdeps/hurd/stdc-predef.h: New file.
9212
9213 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9214
9215 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
9216 tst-cet-setcontext-1 if CET is enabled.
9217 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
9218 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
9219
9220 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9221
9222 * include/threads.h: Move to ...
9223 * sysdeps/nptl/threads.h: ... here.
9224 * sysdeps/htl/threads.h: New file.
9225 * conform/Makefile (linknamespace-libs-ISO11): Use
9226 static-thread-library instead of linking libpthread.
9227 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
9228
9229 2018-07-25 Florian Weimer <fweimer@redhat.com>
9230
9231 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
9232 nanoseconds into seconds.
9233 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
9234 (do_test): Likewise.
9235 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
9236 (do_test): Likewise. Avoid nanosecond overflow and spurious
9237 timeouts due to system load.
9238 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
9239 (child_wait): Increment it.
9240 (do_test): Wait as long as necessary until all expected threads
9241 have arrived.
9242
9243 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
9244 H.J. Lu <hongjiu.lu@intel.com>
9245
9246 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
9247 __ssp.
9248 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
9249 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
9250 (__push___start_context): New.
9251 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
9252 <asm/prctl.h>.
9253 (__getcontext): Record the current shadow stack base. Save the
9254 caller's shadow stack pointer and base.
9255 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
9256 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
9257 (__push___start_context): New prototype.
9258 (__makecontext): Call __push___start_context to allocate a new
9259 shadow stack, push __start_context onto the new stack as well
9260 as the new shadow stack.
9261 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
9262 <asm/prctl.h>.
9263 (__setcontext): Restore the target shadow stack.
9264 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
9265 <asm/prctl.h>.
9266 (__swapcontext): Record the current shadow stack base. Save
9267 the caller's shadow stack pointer and base. Restore the target
9268 shadow stack.
9269 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
9270 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
9271 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
9272
9273 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9274
9275 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
9276 tst-setcontext8 and tst-setcontext9.
9277 * stdlib/tst-setcontext6.c: New file.
9278 * stdlib/tst-setcontext7.c: Likewise.
9279 * stdlib/tst-setcontext8.c: Likewise.
9280 * stdlib/tst-setcontext9.c: Likewise.
9281
9282 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9283
9284 * stdlib/Makefile ((tests): Add tst-setcontext5.
9285 * stdlib/tst-setcontext5.c: New file.
9286
9287 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9288
9289 * stdlib/Makefile (tests): Add tst-setcontext4.
9290 * stdlib/tst-setcontext4.c: New file.
9291
9292 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9293
9294 * stdlib/Makefile (tests): Add tst-swapcontext1.
9295 * stdlib/tst-swapcontext1.c: New test.
9296
9297 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9298
9299 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
9300 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
9301 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
9302 and tst-cet-legacy-4c.
9303 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
9304 and tst-cet-legacy-mod-4.
9305 (CFLAGS-tst-cet-legacy-2.c): New.
9306 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
9307 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
9308 (CFLAGS-tst-cet-legacy-3.c): Likewise.
9309 (CFLAGS-tst-cet-legacy-4.c): Likewise.
9310 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
9311 ($(objpfx)tst-cet-legacy-1): Likewise.
9312 ($(objpfx)tst-cet-legacy-2): Likewise.
9313 ($(objpfx)tst-cet-legacy-2.out): Likewise.
9314 ($(objpfx)tst-cet-legacy-2a): Likewise.
9315 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
9316 ($(objpfx)tst-cet-legacy-4): Likewise.
9317 ($(objpfx)tst-cet-legacy-4.out): Likewise.
9318 ($(objpfx)tst-cet-legacy-4a): Likewise.
9319 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
9320 (tst-cet-legacy-4a-ENV): Likewise.
9321 ($(objpfx)tst-cet-legacy-4b): Likewise.
9322 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
9323 (tst-cet-legacy-4b-ENV): Likewise.
9324 ($(objpfx)tst-cet-legacy-4c): Likewise.
9325 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
9326 (tst-cet-legacy-4c-ENV): Likewise.
9327 * sysdeps/x86/tst-cet-legacy-1.c: New file.
9328 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
9329 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
9330 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
9331 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
9332 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
9333 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
9334 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
9335 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
9336 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
9337 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
9338
9339 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9340
9341 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
9342 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
9343 with ssp_base.
9344 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
9345 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
9346 with ssp_base.
9347
9348 2018-07-25 Andreas Schwab <schwab@suse.de>
9349
9350 [BZ #23442]
9351 * locale/weightwc.h (findidx): Handle the case where usrc is a
9352 prefix of cp but one character too short.
9353
9354 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9355
9356 * NEWS: Add ISO C threads addition.
9357
9358 2018-07-24 Florian Weimer <fweimer@redhat.com>
9359
9360 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9361 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
9362 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
9363 4.13.
9364
9365 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9366
9367 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
9368 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
9369 <sys/prctl.h> and <asm/prctl.h>.
9370 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
9371 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
9372 and <asm/prctl.h>.
9373 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
9374 ARCH_CET_LEGACY_BITMAP.
9375 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
9376 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
9377 * sysdeps/x86/libc-start.c: Include <startup.h>.
9378
9379 2018-07-24 Florian Weimer <fweimer@redhat.com>
9380
9381 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
9382 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
9383
9384 2018-07-24 Rical Jasan <rj@2c3t.io>
9385 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9386 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
9387
9388 [BZ #14092]
9389 * manual/debug.texi: Update adjacent chapter name.
9390 * manual/probes.texi: Likewise.
9391 * manual/threads.texi (ISO C Threads): New section.
9392 (POSIX Threads): Convert to a section.
9393
9394 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9395 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
9396
9397 [BZ# 14092]
9398 * nptl/Makefile (tests): Add new test files.
9399 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
9400 * nptl/tst-cnd-basic.c: Likewise.
9401 * nptl/tst-cnd-broadcast.c: Likewise.
9402 * nptl/tst-cnd-timedwait.c: Likewise.
9403 * nptl/tst-mtx-basic.c: Likewise.
9404 * nptl/tst-mtx-recursive.c: Likewise.
9405 * nptl/tst-mtx-timedlock.c: Likewise.
9406 * nptl/tst-mtx-trylock.c: Likewise.
9407 * nptl/tst-thrd-basic.c: Likewise.
9408 * nptl/tst-thrd-detach.c: Likewise.
9409 * nptl/tst-thrd-sleep.c: Likewise.
9410 * nptl/tst-tss-basic.c: Likewise.
9411
9412 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9413
9414 [BZ #14092]
9415 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
9416 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
9417 symbols.
9418 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9419 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
9420 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9421 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
9422 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9423 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9424 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9425 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9426 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9427 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9428 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9429 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9430 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9431 Likewise.
9432 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9433 Likewise.
9434 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
9435 Likewise.
9436 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
9437 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9438 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9439 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9440 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9441 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9442 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9443 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9444 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9445 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
9446 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
9447 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
9448 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
9449 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
9450 Likewise.
9451 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
9452 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
9453 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
9454 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
9455 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
9456 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
9457 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
9458 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
9459 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
9460 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
9461 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
9462 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
9463 ikewise.
9464 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
9465 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
9466 Likewise.
9467 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
9468 Likewise.
9469 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
9470 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
9471 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
9472 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
9473 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
9474 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
9475 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
9476 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
9477
9478 [BZ #14092]
9479 * conform/data/threads.h-data (thread_local): New macro.
9480 (TSS_DTOR_ITERATIONS): Likewise.
9481 (tss_t): New type.
9482 (tss_dtor_t): Likewise.
9483 (tss_create): New function.
9484 (tss_get): Likewise.
9485 (tss_set): Likewise.
9486 (tss_delete): Likewise.
9487 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
9488 tss_get, and tss_set objects.
9489 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
9490 * nptl/tss_create.c: New file.
9491 * nptl/tss_delete.c: Likewise.
9492 * nptl/tss_get.c: Likewise.
9493 * nptl/tss_set.c: Likewise.
9494 * sysdeps/nptl/threads.h (thread_local): New define.
9495 (TSS_DTOR_ITERATIONS): Likewise.
9496 (tss_t): New typedef.
9497 (tss_dtor_t): Likewise.
9498 (tss_create): New prototype.
9499 (tss_get): Likewise.
9500 (tss_set): Likewise.
9501 (tss_delete): Likewise.
9502
9503 [BZ #14092]
9504 * conform/data/threads.h-data (cnd_t): New type.
9505 (cnd_init): New function.
9506 (cnd_signal): Likewise.
9507 (cnd_broadcast): Likewise.
9508 (cnd_wait): Likewise.
9509 (cnd_timedwait): Likewise.
9510 (cnd_destroy): Likewise.
9511 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
9512 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
9513 object.
9514 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
9515 * nptl/cnd_broadcast.c: New file.
9516 * nptl/cnd_destroy.c: Likewise.
9517 * nptl/cnd_init.c: Likewise.
9518 * nptl/cnd_signal.c: Likewise.
9519 * nptl/cnd_timedwait.c: Likewise.
9520 * nptl/cnd_wait.c: Likewise.
9521 * sysdeps/nptl/threads.h (cnd_t): New type.
9522 (cnd_init): New prototype.
9523 (cnd_signa): Likewise.
9524 (cnd_broadcast): Likewise.
9525 (cnd_wait): Likewise.
9526 (cnd_timedwait): Likewise.
9527 (cnd_destroy): Likewise.
9528
9529 [BZ #14092]
9530 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
9531 (once_flag): New type.
9532 (call_once): New function.
9533 * nptl/Makefile (libpthread-routines): Add call_once object.
9534 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
9535 * nptl/call_once.c: New file.
9536 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
9537 (once_flag): New type.
9538 (call_once): New prototype.
9539
9540 [BZ #14092]
9541 * conform/data/threads.h-data (mtx_plain): New constant.
9542 (mtx_recursive): Likewise.
9543 (mtx_timed): Likewise.
9544 (mtx_t): New type.
9545 (mtx_init): New function.
9546 (mtx_lock): Likewise.
9547 (mtx_timedlock): Likewise.
9548 (mtx_trylock): Likewise.
9549 (mtx_unlock): Likewise.
9550 (mtx_destroy): Likewise.
9551 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
9552 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
9553 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
9554 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
9555 * nptl/mtx_destroy.c: New file.
9556 * nptl/mtx_init.c: Likewise.
9557 * nptl/mtx_lock.c: Likewise.
9558 * nptl/mtx_timedlock.c: Likewise.
9559 * nptl/mtx_trylock.c: Likewise.
9560 * nptl/mtx_unlock.c: Likewise.
9561 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
9562 (mtx_recursive): Likewise.
9563 (mtx_timed): Likewise.
9564 (mtx_t): New type.
9565 (mtx_init): New prototype.
9566 (mtx_lock): Likewise.
9567 (mtx_timedlock): Likewise.
9568 (mtx_trylock): Likewise.
9569 (mtx_unlock): Likewise.
9570 (mtx_destroy): Likewise.
9571
9572 [BZ #14092]
9573 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
9574 (linknamespace-libs-ISO11): Add libpthread.a.
9575 * conform/data/threads.h-data: New file: add C11 thrd_* types and
9576 functions.
9577 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
9578 * nptl/Makefile (headers): Add threads.h.
9579 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
9580 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
9581 thrd_yield.
9582 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
9583 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
9584 thrd_join, thrd_sleep, and thrd_yield symbols.
9585 * nptl/descr.h (struct pthread): Add c11 field.
9586 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
9587 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
9588 routine with expected function prototype.
9589 (__pthread_create_2_1): Add C11 threads check based on attribute
9590 value.
9591 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
9592 * nptl/thrd_create.c: New file.
9593 * nptl/thrd_current.c: Likewise.
9594 * nptl/thrd_detach.c: Likewise.
9595 * nptl/thrd_equal.c: Likewise.
9596 * nptl/thrd_exit.c: Likewise.
9597 * nptl/thrd_join.c: Likewise.
9598 * nptl/thrd_priv.h: Likewise.
9599 * nptl/thrd_sleep.c: Likewise.
9600 * nptl/thrd_yield.c: Likewise.
9601 * include/threads.h: Likewise.
9602
9603 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9604
9605 * bits/indirect-return.h: New file.
9606 * misc/sys/cdefs.h (__glibc_has_attribute): New.
9607 * sysdeps/x86/bits/indirect-return.h: Likewise.
9608 * stdlib/Makefile (headers): Add bits/indirect-return.h.
9609 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
9610 (swapcontext): Add __INDIRECT_RETURN.
9611 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
9612 (prepare_test_buffer): Use it.
9613
9614 2018-07-24 Andreas Schwab <schwab@suse.de>
9615
9616 [BZ #23448]
9617 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
9618 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
9619
9620 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9621
9622 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
9623 Redefine if shadow stack is enabled.
9624 (SYSCALL_ERROR_LABEL): Likewise.
9625 (__vfork): Pop shadow stack and jump back to to caller directly
9626 when shadow stack is in use.
9627 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
9628 Redefine if shadow stack is enabled.
9629 (SYSCALL_ERROR_LABEL): Likewise.
9630 (__vfork): Pop shadow stack and jump back to to caller directly
9631 when shadow stack is in use.
9632
9633 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9634
9635 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
9636 enabled.
9637 (foo): Likewise.
9638 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
9639 (foo): Likewise.
9640
9641 2018-07-20 Joseph Myers <joseph@codesourcery.com>
9642
9643 * scripts/build-many-glibcs.py (Context.checkout): Default
9644 binutils version to 2.31 branch.
9645
9646 2018-07-20 Zong Li <zong@andestech.com>
9647
9648 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
9649 URL of gcc's tarball.
9650
9651 2018-07-20 Florian Weimer <fweimer@redhat.com>
9652
9653 [BZ #23396]
9654 * posix/regcomp.c (build_equiv_class): When comparing weights, do
9655 not compare an extra byte after the end of the weights.
9656
9657 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
9658
9659 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
9660 to 1.
9661 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
9662 hidden prototypes.
9663 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
9664 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
9665 * scripts/check-execstack.awk: Consider `xfail' variable containing a
9666 list of libraries whose stack executability is expected.
9667 * elf/Makefile ($(objpfx)check-execstack.out): Pass
9668 $(check-execstack-xfail) to check-execstack.awk through `xfail'
9669 variable.
9670 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
9671 libc.so libpthread.so.
9672
9673 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
9674
9675 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
9676 SOCK_NONBLOCK.
9677 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
9678 and SOCK_NONBLOCK.
9679 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
9680 implement __pipe2.
9681 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
9682
9683 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9684
9685 * benchtests/scripts/compare_bench.py (__main__): use the argparse
9686 library to improve command line parsing.
9687 (__main__): make schema file as optional parameter (--schema),
9688 defaulting to benchtests/scripts/benchout.schema.json.
9689 (main): move out of the parsing stuff to __main_  and leave it
9690 only as caller of main comparison functions.
9691
9692 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
9693
9694 * NEWS: Add a note for Intel CET status.
9695 * manual/install.texi: Likewise.
9696 * INSTALL: Regenerated.
9697
9698 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
9699
9700 [BZ #23140]
9701 * localedata/locales/oc_FR (mon): Rename to...
9702 (alt_mon): This, then update October (typo fix).
9703 (mon): New content (genitive case, month names preceded by
9704 "de" or "d’").
9705
9706 [BZ #23422]
9707 * localedata/locales/oc_FR (abday): Update all items.
9708 (day): Update Wednesday and Saturday (typo fixes).
9709 (abmon): Update all items, except May.
9710 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
9711 (LC_IDENTIFICATION): Bump the revision number and date.
9712 Keep the "category" entries in alphabetic order.
9713 (LC_ADDRESS): Remove no longer needed comment.
9714 (LC_COLLATE): Use “copy "ca_ES"”.
9715 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
9716 "name_mrs".
9717
9718 2018-07-18 Joseph Myers <joseph@codesourcery.com>
9719
9720 * grp/tst_fgetgrent.c: Include <unistd.h>.
9721 (main): Use mkstemp instead of tmpnam.
9722 * io/test-utime.c (main): Likewise.
9723 * posix/annexc.c (macrofile): Change to modifiable array.
9724 (main): Remove macrofile here.
9725 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
9726 macrofile here.
9727 (check_header): Do not remove macrofile here.
9728 * posix/bug-getopt1.c: Include <stdlib.h>.
9729 (do_test): Use mkstemp instead of tmpnam.
9730 * posix/bug-getopt2.c: Include <stdlib.h>.
9731 (do_test): Use mkstemp instead of tmpnam.
9732 * posix/bug-getopt3.c: Include <stdlib.h>.
9733 (do_test): Use mkstemp instead of tmpnam.
9734 * posix/bug-getopt4.c: Include <stdlib.h>.
9735 (do_test): Use mkstemp instead of tmpnam.
9736 * posix/bug-getopt5.c: Include <stdlib.h>.
9737 (do_test): Use mkstemp instead of tmpnam.
9738 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
9739 (main): Use mkstemp instead of tmpnam.
9740 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
9741 (main): Use mkstemp instead of tmpnam.
9742 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
9743 (main): use mkstemp instead of tmpnam.
9744 * stdlib/isomac.c (macrofile): Change to modifiable array.
9745 (main): Remove macrofile here.
9746 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
9747 macrofile here.
9748 (check_header): Do not remove macrofile here.
9749
9750 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9751
9752 * manual/tunables.texi: Document glibc.tune.x86_ibt and
9753 glibc.tune.x86_shstk.
9754
9755 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9756
9757 * NEWS: Mention --enable-cet.
9758 * manual/install.texi: Document --enable-cet.
9759 * INSTALL: Regenerated.
9760
9761 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9762
9763 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
9764 Add _CET_NOTRACK before indirect jump to jump table.
9765
9766 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9767
9768 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
9769 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9770 to jump table.
9771
9772 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9773
9774 * sysdeps/i386/i686/multiarch/strcat-sse2.S
9775 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9776 to jump table.
9777
9778 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9779
9780 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
9781 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9782 to jump table.
9783
9784 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9785
9786 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
9787 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9788 to jump table.
9789
9790 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9791
9792 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
9793 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9794 to jump table.
9795 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
9796
9797 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9798
9799 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
9800 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9801 to jump table.
9802
9803 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9804
9805 * sysdeps/i386/i686/multiarch/memset-sse2.S
9806 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9807 to jump table.
9808
9809 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9810
9811 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
9812 indirect jump to jump table.
9813
9814 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9815
9816 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
9817 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9818 to jump table.
9819 (MEMCPY): Likewise.
9820
9821 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9822
9823 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
9824 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9825 to jump table.
9826 (MEMCPY): Likewise.
9827
9828 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9829
9830 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9831 _CET_NOTRACK before indirect jump to jump table.
9832
9833 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9834
9835 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
9836 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9837 to jump table.
9838
9839 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9840
9841 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
9842 indirect jump to jump table.
9843
9844 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
9845
9846 [BZ #22241]
9847 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
9848 (LOCALES): Likewise.
9849 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
9850 * localedata/locales/sah_RU: New file.
9851 * localedata/sah_RU.UTF-8.in: New file.
9852
9853 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9854
9855 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
9856 "sysdep.h".
9857 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
9858 _CET_ENDBR to indirect jump targets and adjust jump destination
9859 for _CET_ENDBR.
9860 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
9861 "sysdep.h".
9862 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
9863 _CET_ENDBR to indirect jump targets and adjust jump destination
9864 for _CET_ENDBR.
9865 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
9866 "sysdep.h".
9867 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
9868 _CET_ENDBR to indirect jump targets and adjust jump destination
9869 for _CET_ENDBR.
9870
9871 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9872
9873 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9874 _CET_ENDBR.
9875
9876 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9877
9878 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
9879 _CET_ENDBR.
9880 (_dl_tlsdesc_undefweak): Likewise.
9881 (_dl_tlsdesc_dynamic): Likewise.
9882 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
9883 (_dl_tlsdesc_resolve_rel): Likewise.
9884 (_dl_tlsdesc_resolve_rela): Likewise.
9885 (_dl_tlsdesc_resolve_hold): Likewise.
9886 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
9887 (_dl_tlsdesc_undefweak): Likewise.
9888 (_dl_tlsdesc_dynamic): Likewise.
9889 (_dl_tlsdesc_resolve_rela): Likewise.
9890 (_dl_tlsdesc_resolve_hold): Likewise.
9891
9892 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9893
9894 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
9895 (_fini): Likewise.
9896 * sysdeps/x86_64/crti.S (_init): Likewise.
9897 (_fini): Likewise.
9898
9899 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
9900
9901 [BZ #23140]
9902 * localedata/locales/os_RU (mon): Rename to...
9903 (alt_mon): This.
9904 (mon): Import from CLDR (genitive case).
9905
9906 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9907
9908 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
9909 cet-tunables.h> when CET is enabled.
9910
9911 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
9912
9913 [BZ #21598]
9914 * configure.ac: Add --enable-cet.
9915 * configure: Regenerated.
9916 * elf/Makefille (all-built-dso): Add a comment.
9917 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
9918 Include <dl-prop.h>.
9919 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
9920 segment.
9921 * elf/dl-open.c: Include <dl-prop.h>.
9922 (dl_open_worker): Call _dl_open_check.
9923 * elf/rtld.c: Include <dl-prop.h>.
9924 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
9925 _rtld_main_check.
9926 * sysdeps/generic/dl-prop.h: New file.
9927 * sysdeps/i386/dl-cet.c: Likewise.
9928 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
9929 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
9930 * sysdeps/x86/cet-tunables.h: Likewise.
9931 * sysdeps/x86/check-cet.awk: Likewise.
9932 * sysdeps/x86/configure: Likewise.
9933 * sysdeps/x86/configure.ac: Likewise.
9934 * sysdeps/x86/dl-cet.c: Likewise.
9935 * sysdeps/x86/dl-procruntime.c: Likewise.
9936 * sysdeps/x86/dl-prop.h: Likewise.
9937 * sysdeps/x86/libc-start.h: Likewise.
9938 * sysdeps/x86/link_map.h: Likewise.
9939 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
9940 _CET_ENDBR.
9941 (_dl_runtime_profile): Likewise.
9942 (_dl_runtime_resolve_shstk): New.
9943 (_dl_runtime_profile_shstk): Likewise.
9944 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
9945 if CET is enabled.
9946 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
9947 (CFLAGS-.os): Likewise.
9948 (CFLAGS-.op): Likewise.
9949 (CFLAGS-.oS): Likewise.
9950 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
9951 is enabled.
9952 (tests-special): Add $(objpfx)check-cet.out.
9953 (cet-built-dso): New.
9954 (+$(cet-built-dso:=.note)): Likewise.
9955 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
9956 ($(objpfx)check-cet.out): New.
9957 (generated): Add check-cet.out.
9958 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
9959 <cet-tunables.h>.
9960 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
9961 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9962 (init_cpu_features): Call get_cet_status to check CET status
9963 and update dl_x86_feature_1 with CET status. Call
9964 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
9965 (set_x86_shstk). Disable and lock CET in libc.a.
9966 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
9967 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
9968 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9969 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
9970 (_CET_ENDBR): Define if not defined.
9971 (ENTRY): Add _CET_ENDBR.
9972 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
9973 x86_shstk.
9974 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
9975 _CET_ENDBR.
9976 (_dl_runtime_profile): Likewise.
9977
9978 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
9979
9980 [BZ #21895]
9981 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
9982 restore r2 on longjmp.
9983 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
9984 test list.
9985 Added rules to build test tst-setjmp-bug21895-static.
9986 Added module setjmp-bug21895 and rules to build a shared object from it.
9987 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
9988 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
9989
9990 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
9991
9992 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
9993 * benchtests/bench-strstr.c: Likewise.
9994 * string/memmem.c (FASTSEARCH): Define.
9995 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
9996 Add support for FASTSEARCH.
9997 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
9998 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
9999 (FASTSEARCH): Define.
10000 * string/test-strcasestr.c: Rename __strnlen to strnlen.
10001 * string/test-strstr.c: Likewise.
10002
10003 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
10004
10005 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
10006 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
10007
10008 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
10009 H.J. Lu <hongjiu.lu@intel.com>
10010
10011 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
10012 (__longjmp): Restore shadow stack pointer if shadow stack is
10013 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
10014 isn't defined for __longjmp_cancel.
10015 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
10016 (_setjmp): Save shadow stack pointer if shadow stack is enabled
10017 and SHADOW_STACK_POINTER_OFFSET is defined.
10018 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
10019 (setjmp): Save shadow stack pointer if shadow stack is enabled
10020 and SHADOW_STACK_POINTER_OFFSET is defined.
10021 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
10022 (__sigsetjmp): Save shadow stack pointer if shadow stack is
10023 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
10024 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
10025 <jmp_buf-ssp.h>.
10026 (____longjmp_chk): Restore shadow stack pointer if shadow stack
10027 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
10028 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
10029 Remove jmp_buf-ssp.sym.
10030 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
10031 <jmp_buf-ssp.h>.
10032 (____longjmp_chk): Restore shadow stack pointer if shadow stack
10033 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
10034 * sysdeps/x86/Makefile (gen-as-const-headers): Add
10035 jmp_buf-ssp.sym.
10036 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
10037 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
10038 (__longjmp): Restore shadow stack pointer if shadow stack is
10039 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
10040 isn't defined for __longjmp_cancel.
10041 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
10042 (__sigsetjmp): Save shadow stack pointer if shadow stack is
10043 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
10044
10045 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
10046
10047 [BZ #22563]
10048 * nptl/pthread_create.c: Include <tls-setup.h>.
10049 (__pthread_create_2_1): Call tls_setup_tcbhead.
10050 * sysdeps/generic/tls-setup.h: New file.
10051 * sysdeps/x86/nptl/tls-setup.h: Likewise.
10052 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
10053 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
10054 Likewise.
10055 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
10056 to feature_1.
10057 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
10058 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
10059 (X86_FEATURE_1_SHSTK): Likewise.
10060 (CET_ENABLED): Likewise.
10061 (IBT_ENABLED): Likewise.
10062 (SHSTK_ENABLED): Likewise.
10063
10064 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
10065
10066 [BZ #23208]
10067 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
10068 (LOCALES): Likewise.
10069 * localedata/dsb_DE.UTF-8.in: New file.
10070 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
10071
10072 2018-07-12 Florian Weimer <fweimer@redhat.com>
10073
10074 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
10075 __mprotect, not mprotect.
10076
10077 2018-07-11 Florian Weimer <fweimer@redhat.com>
10078
10079 * io/Makefile (headers): Add bits/statx.h.
10080
10081 2018-07-10 Mike FABIAN <mfabian@redhat.com>
10082
10083 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
10084 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
10085 and headers.
10086 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
10087 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
10088 for utf8_gen.py
10089
10090 2018-07-10 Florian Weimer <fweimer@redhat.com>
10091
10092 * io/Makefile (routines): Add statx.
10093 (tests-internal): Add tst-statx.
10094 * io/Versions (GLIBC_2.28): Export statx.
10095 * io/bits/statx.h: New file.
10096 * io/sys/stat.h [__USE_GNU]: Include it.
10097 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
10098 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
10099 Define.
10100 * io/statx.c: New file.
10101 * io/statx_generic.: Likewise.
10102 * io/tst-statx.: Likewise.
10103 * include/bits/statx.h: Likewise.
10104 * sysdeps/unix/sysv/linux/kernel-features.h
10105 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
10106 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
10107 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
10108 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
10109 Undefine.
10110 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10111 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
10112 * sysdeps/unix/sysv/linux/statx.c: New file.
10113 * manual/filesys.texi: Note that statx is undocumented.
10114 * sysdeps/**/libc*.abilist: Update.
10115
10116 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10117
10118 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
10119 a kernel issue which lead to test failure in some cases.
10120
10121 2018-07-10 Florian Weimer <fweimer@redhat.com>
10122
10123 [BZ #23036]
10124 * posix/regexec.c (check_node_accept_bytes): When comparing
10125 weights, do not compare an extra byte after the end of the
10126 weights.
10127
10128 2018-07-10 Florian Weimer <fweimer@redhat.com>
10129
10130 * libio/readline.c: Fix copyright year.
10131 * libio/tst-readline.c Likewise.
10132 * nss/tst-nss-files-hosts-getent.c: Likewise.
10133
10134 2018-07-06 Florian Weimer <fweimer@redhat.com>
10135
10136 [BZ #18991]
10137 * nss/nss_files/files-XXX.c (internal_getent): Use
10138 __libc_readline_unlocked. Seek back to the start of the line if
10139 parsing failes with ERANGE.
10140 (get_contents_ret, get_contents): Remove.
10141 * nss/tst-nss-files-hosts-getent.c: New file.
10142 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
10143 (tst-nss-files-hosts-getent): Link with -ldl.
10144
10145 2018-07-06 Florian Weimer <fweimer@redhat.com>
10146
10147 * include/stdio.h (__libc_readline_unlocked): Declare.
10148 (__ftello64, __fseeko64): Declare aliases.
10149 * libio/readline.c: New file.
10150 * libio/tst-readline.c: Likewise.
10151 (routines): Add readline.
10152 (tests-internal): Add tst-readlime.
10153 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
10154 __libc_readline_unlocked.
10155 * libio/fseeko.c (__fseeko): Rename from fseeko.
10156 (fseeko): Add alias.
10157 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
10158 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
10159 (fseeko64): Add alias.
10160 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
10161 * libio/ftello64.c (__ftello64): Rename from ftello64.
10162 (ftello64): Add alias.
10163
10164 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
10165
10166 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
10167 HWCAP_ATOMICS.
10168
10169 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
10170
10171 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
10172 Use dl_hwcap without masking.
10173 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
10174 Remove HWCAP_CPUID.
10175
10176 2018-07-06 Florian Weimer <fweimer@redhat.com>
10177
10178 * conform/conformtest.pl (checknamespace): Escape literal braces
10179 in regular expressions.
10180
10181 2018-07-06 Amit Pawar <amit.pawar@amd.com>
10182
10183 * sysdeps/x86/cpu-features.c (get_common_indeces):
10184 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
10185 * sysdeps/x86/cpu-features.c (init_cpu_features):
10186 AVX_Fast_Unaligned_Load is disabled for Excavator core.
10187
10188 2018-07-05 Florian Weimer <fweimer@redhat.com>
10189
10190 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
10191 protector.
10192 (CFLAGS-elf-init.oS): Likewise.
10193
10194 2018-07-05 Florian Weimer <fweimer@redhat.com>
10195 Carlos O'Donell <carlos@redhat.com>
10196
10197 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
10198 $(no-stack-protector). stack_chk_fail_local.c can be compiled
10199 with stack protector enabled because there is no risk of infinite
10200 recursion.
10201
10202 2018-07-05 Maciej W. Rozycki <macro@mips.com>
10203
10204 [BZ #19818]
10205 [BZ #23307]
10206 * libc-abis (ABSOLUTE): New ABI.
10207 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
10208 * NEWS: Mention the new ABI.
10209
10210 2018-07-05 Florian Weimer <fweimer@redhat.com>
10211
10212 [BZ # 17662]
10213 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
10214 (RENAME_WHITEOUT): Define.
10215 [__USE_GNU] (renameat2): Declare.
10216 * stdio-common/Makefile (routines): Add renameat2.
10217 (tests): Add tst-renameat2.
10218 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
10219 * stdio-common/renameat2.c: New file.
10220 * stdio-common/tst-renameat2.c: Likewise.
10221 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
10222 * manual/filesys.texi (Temporary Files): Note that renameat2 is
10223 undocumented.
10224 * sysdeps/unix/sysv/linux/kernel-features.h
10225 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
10226 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
10227 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
10228 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10229 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
10230 * sysdeps/unix/sysv/linux/sh/kernel-features.h
10231 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
10232 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
10233 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
10234 * include/stdio.h (__renameat): Add alias for renameat.
10235 * stdio-common/renameat.c (__renameat): Rename from renameat.
10236 Add hidden definition and alias.
10237 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
10238 * sysdeps/mach/hurd/renameat.c: Likewise.
10239 * sysdeps/**/libc*.abilist: Add renameat2.
10240
10241 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10242
10243 * posix/bug-regex33.c: Fix build after regex sync.
10244
10245 2018-07-04 Carlos O'Donell <carlos@redhat.com>
10246
10247 [BZ #23164]
10248 * localedata/tst-langinfo-setlocale.c: New file.
10249 * localedata/tst-langinfo-setlocale-static.c: New file.
10250 * localedata/tst-langinfo-newlocale.c: New file.
10251 * localedata/tst-langinfo-newlocale-static.c: New file.
10252 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
10253 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
10254 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
10255 (tests-static): Remove tst-langinfo-static. Add
10256 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
10257 (tests-special): Remove $(objpfx)tst-langinfo.out,
10258 $(objpfx)tst-langinfo-static.out. Add
10259 $(objpfx)tst-langinfo-setlocale.out,
10260 $(objpfx)tst-langinfo-newlocale.out,
10261 $(objpfx)tst-langinfo-setlocale-static.out,
10262 $(objpfx)tst-langinfo-newlocale-static.out.
10263 ($(objpfx)tst-langinfo.out): Remove.
10264 ($(objpfx)tst-langinfo-static.out): Remove.
10265 ($(objpfx)tst-langinfo-newlocale.out): New target.
10266 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
10267 (test-xfail-tst-langinfo-newlocale-static): Add.
10268 ($(objpfx)tst-langinfo-setlocale.out): New target.
10269 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
10270 * localedata/tst-langinfo.c: Call test_locale.
10271 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
10272 data.
10273
10274 2018-07-04 Florian Weimer <fweimer@redhat.com>
10275
10276 testrun.sh: Implement --tool=strace, --tool=valgrind
10277 * Makefile (testrun-script): Define variable.
10278 (testrun.sh): Use variable.
10279 * manual/install.texi (Tools for Compilation): make 4.0 or later
10280 is required.
10281 * configure.ac: Check for make 4.0 or later.
10282 * INSTALL: Regenerate.
10283 * configure: Likewise.
10284
10285 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10286
10287 [BZ #23233]
10288 [BZ #21163]
10289 [BZ #18986]
10290 [BZ #13762]
10291 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
10292 * posix/PCRE.tests: Remove invalid test.
10293 * posix/bug-regex28.c: Fix expected values for used syntax.
10294 * posix/bug-regex37.c: New file.
10295 * posix/bug-regex38.c: Likewise.
10296 * posix/regcomp.c: Sync with gnulib.
10297 * posix/regex.c: Likewise.
10298 * posix/regex.h: Likewise.
10299 * posix/regex_internal.c: Likewise.
10300 * posix/regex_internal.h: Likewise.
10301 * posix/regexec.c: Likewise.
10302
10303 2018-06-26 Mike FABIAN <mfabian@redhat.com>
10304
10305 [BZ #23308]
10306 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
10307 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
10308 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
10309 * localedata/unicode-gen/PropList.txt: likewise.
10310 * localedata/unicode-gen/UnicodeData.txt: likewise.
10311 * localedata/charmaps/UTF-8: Regenerate.
10312 * localedata/locales/i18n_ctype: likewise.
10313 * localedata/locales/tr_TR: likewise.
10314 * localedata/locales/translit_circle: likewise.
10315 * localedata/locales/translit_cjk_compat: likewise.
10316 * localedata/locales/translit_combining: likewise.
10317 * localedata/locales/translit_compat: likewise.
10318 * localedata/locales/translit_font: likewise.
10319 * localedata/locales/translit_fraction: likewise.
10320
10321 2018-07-03 Florian Weimer <fweimer@redhat.com>
10322
10323 [BZ #23363]
10324 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
10325 * stdio-common/tst-printf.sh: Adjust expected output.
10326 * LICENSES: Update.
10327
10328 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10329
10330 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
10331 symbol.
10332
10333 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10334
10335 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
10336 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
10337 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
10338 * stdio-common/tst-printfsz-islongdouble.c: New file.
10339 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
10340 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
10341 [subdir == stdio-common] (routines): Add ieee128-printf_size.
10342 [subdir == stdio-common] (tests-internal): Add
10343 test-printf-size-ieee128, and test-printf-size-ibm128.
10344 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
10345 (CFLAGS-test-printf-size-ibm128.c): New variables.
10346 [subdir == stdio-common] (tests-special): Add
10347 $(objpfx)test-printf-size-ieee128.out and
10348 $(objpfx)test-printf-size-ibm128.out.
10349 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
10350 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
10351 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
10352 __printf_sizeieee128.
10353 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
10354 New file.
10355 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
10356 Likewise.
10357 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
10358 Likewise.
10359
10360 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
10361
10362 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
10363 (exp2f_inline): Likewise.
10364 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
10365 (__math_uflowf): Likewise.
10366 (__math_may_uflowf): Likewise.
10367 (__math_divzerof): Likewise.
10368 (__math_invalidf): Likewise.
10369 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
10370 (__math_oflowf): Likewise.
10371 (__math_uflowf): Likewise.
10372 (__math_may_uflowf): Likewise.
10373 (__math_divzerof): Likewise.
10374 (__math_invalidf): Likewise.
10375
10376 2018-06-29 DJ Delorie <dj@redhat.com>
10377 Carlos O'Donell <carlos@redhat.com>
10378
10379 [BZ #23329]
10380 * include/libc-symbols.h: Comment the freeres framework.
10381 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
10382 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
10383 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
10384 * dlfcn/dlerror.c: Include libc-symbols.h
10385 (__dlerror_main_freeres): New function.
10386 * dlfcn/dlfreeres.c: New file.
10387 * dlfcn/sdlfreeres.c: New file.
10388 * include/dlfcn.h: Declare __dlerror_main_freeres.
10389 * malloc/set-freeres.c: Declare __libdl_freeres, and
10390 __libpthread_freeres.
10391 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
10392 the releavant libraries are loaded.
10393 * malloc/thread-freeres.c: Add comments.
10394 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
10395 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
10396 * nptl/allocatestack.c (__nptl_free_stacks): New function.
10397 (__free_stacks): Rename to...
10398 (free_stacks): ...this. Mark static.
10399 (queue_stack): Call free_stacks.
10400 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
10401 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
10402 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
10403 ptr_freeres element from struct.
10404 (pthread_functions): Remove .ptr_freeres from struct initializer.
10405 [SHARED] (nptl_freeres): Remove.
10406 * nptl/nptlfreeres.c: New file.
10407 * nptl/pthreadP.h
10408 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
10409 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
10410 attribute_hidden.
10411 (__free_stacks): Rename to...
10412 (__nptl_stacks_freeres): ...this.
10413 (__shm_directory_freeres): Declare.
10414 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
10415 (__nptl_unwind_freeres): ...this.
10416 * resolv/res-close.c: Add comment.
10417 * resolv/resolv_conf.c: Include libc-symbols.h.
10418 * string/strerror_l.c: Include libc-symbols.h.
10419 * sunrpc/rpc_thread.c: Include libc-symbols.h.
10420 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
10421 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
10422 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
10423
10424 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10425
10426 * stdlib/tst-strfmon_l.c: Add tests for long double.
10427
10428 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
10429
10430 [BZ #23208]
10431 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
10432 * localedata/locales/dsb_DE: New file.
10433
10434 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
10435
10436 [BZ #23140]
10437 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
10438 genitive case).
10439 (alt_mon): New entry, import from CLDR (nominative case).
10440
10441 2018-06-29 Sylvain Lesage <severo@rednegra.net>
10442
10443 [BZ #22996]
10444 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
10445
10446 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
10447
10448 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
10449 Use vector registers.
10450
10451 * sysdeps/aarch64/multiarch/memmove_falkor.S
10452 (__memcpy_falkor): Use vector registers.
10453
10454 2018-06-29 Martin Sebor <msebor@redhat.com>
10455
10456 * manual/stdio.texi (Customizing Printf): Mention interaction
10457 with GCC built-ins.
10458
10459 2018-06-29 Maciej W. Rozycki <macro@mips.com>
10460
10461 [BZ #23307]
10462 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
10463 `st_value' is 0 if `st_shndx' is SHN_ABS.
10464 * elf/tst-absolute-zero.c: New file.
10465 * elf/tst-absolute-zero-lib.c: New file.
10466 * elf/tst-absolute-zero-lib.lds: New file.
10467 * elf/Makefile (tests): Add `tst-absolute-zero'.
10468 (modules-names): Add `tst-absolute-zero-lib'.
10469 (LDLIBS-tst-absolute-zero-lib.so): New variable.
10470 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
10471 ($(objpfx)tst-absolute-zero: New dependency.
10472
10473 2018-06-29 Zack Weinberg <zackw@panix.com>
10474
10475 * configure.ac: New command-line option --disable-crypt.
10476 Force --disable-nss-crypt when --disable-crypt is given, with a
10477 warning if it was explicitly enabled.
10478 * configure: Regenerate.
10479 * config.make.in: New boolean substitution variable $(build-crypt).
10480 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
10481 when $(build-crypt).
10482 * manual/install.texi: Document --disable-crypt.
10483 * INSTALL: Regenerate.
10484
10485 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
10486 which is never set.
10487 * conform/Makefile: Only include libcrypt.a in
10488 linknamespace-libs-xsi and linknamespace-libs-XPG4
10489 when $(build-crypt).
10490 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
10491 USE_CRYPT to 1 when $(build-crypt).
10492 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
10493 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
10494 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
10495
10496 2018-06-29 Zack Weinberg <zackw@panix.com>
10497
10498 * crypt/crypt.h, posix/unistd.h: Update comments and
10499 prototypes for crypt and crypt_r.
10500
10501 * manual/crypt.texi (Cryptographic Functions): New initial
10502 exposition.
10503 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
10504 (Unpredictable Bytes): Improve initial exposition. Clarify error
10505 behavior of getentropy and getrandom.
10506 * manual/examples/genpass.c: Generate a salt using getentropy
10507 instead of the current time. Use hash $5$ (SHA-2-256).
10508 * manual/examples/testpass.c: Demonstrate validation against
10509 hashes generated with three different one-way functions.
10510
10511 * manual/intro.texi: crypt.texi does not need an overview
10512 anymore.
10513
10514 * manual/nss.texi, manual/memory.texi, manual/socket.texi
10515 * manual/terminal.texi: Consistently refer to "passphrases"
10516 * instead of "passwords", and to the "user database" instead
10517 * of the "password database".
10518 * manual/users.texi: Similarly. Add notes about how actual
10519 passphrase hashes are now stored in the shadow database.
10520 Remove 20-year-old junk todo note.
10521
10522 2018-06-29 Zack Weinberg <zackw@panix.com>
10523
10524 * manual/crypt.texi: Use a normal top-level @node declaration.
10525 Move most of the introductory text to the 'crypt' section.
10526 Move the example programs below the @deftypefun for 'crypt_r'.
10527 Move the 'getpass' section...
10528 * manual/terminal.texi: ...here.
10529
10530 2018-06-29 Zack Weinberg <zackw@panix.com>
10531 Florian Weimer <fweimer@redhat.com>
10532
10533 * posix/unistd.h: Do not declare encrypt.
10534 (_XOPEN_CRYPT): Remove macro definition.
10535 (crypt): Declare only for _USE_MISC.
10536 * stdlib/stdlib.h: Do not declare setkey.
10537 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
10538 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
10539
10540 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
10541 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
10542 into compat symbols. Don't define initial_perm if it's not
10543 going to be used.
10544 * crypt/cert.c: Link explicitly with the expected versions for
10545 setkey and encrypt. If they are not available at all, mark
10546 the test as unsupported.
10547
10548 * sunrpc/des_crypt.c: Unconditionally block linkage with
10549 cbc_crypt and ecb_crypt for new binaries.
10550 * sunrpc/des_soft.c: Unconditionally block linkage with
10551 des_setparity for new binaries.
10552
10553 * manual/crypt.texi: Remove the entire "DES Encryption"
10554 section. Also remove the paragraph talking about FIPS 140-2
10555 from the introduction.
10556 * manual/string.texi (strfry, memfrob): Revise. Recommend use
10557 of libgcrypt for "real" encryption, not DES.
10558 * manual/conf.texi (Constants for Sysconf): Mention that
10559 _XOPEN_CRYPT is no longer impelemented.
10560
10561 * conform/data/unistd.h-data: Remove crypt function declaration.
10562
10563 2018-06-29 Florian Weimer <fweimer@redhat.com>
10564
10565 [BZ #23351]
10566 * malloc/hooks.c: Update comments on restoring of dumped heaps.
10567 (disallow_malloc_check): Remove variable.
10568 (__malloc_check_init): Adjust.
10569 (malloc_set_state): Update comment.
10570 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
10571 declarations.
10572
10573 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
10574
10575 [BZ #23140]
10576 * localedata/locales/ast_ES (mon): Rename to...
10577 (alt_mon): This.
10578 (mon): Import from CLDR (genitive case).
10579
10580 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
10581 Jakub Sitnicki <jkbs@redhat.com>
10582
10583 [BZ #21812]
10584 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
10585 on NLM_F_DUMP_INTR.
10586
10587 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
10588
10589 * manual/llio.texi: Remove spurious space.
10590
10591 2018-06-28 Florian Weimer <fweimer@redhat.com>
10592
10593 [BZ #23349]
10594 * time/bits/types/struct_timespec.h: Change header inclusion guard to
10595 _STRUCT_TIMESPEC.
10596
10597 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10598
10599 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
10600 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
10601 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
10602 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
10603 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
10604 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
10605 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
10606
10607 2018-06-27 Maciej W. Rozycki <macro@mips.com>
10608
10609 [BZ #23266]
10610 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
10611 Copy and null-terminate entries that are not terminated, in
10612 addition to empty ones.
10613
10614 2018-06-27 Florian Weimer <fweimer@redhat.com>
10615
10616 [BZ #18023]
10617 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
10618 (extend_alloca_account): Remove.
10619 * manual/stdio.texi (Variable Arguments Output): Update comment.
10620
10621 2018-06-27 Joseph Myers <joseph@codesourcery.com>
10622
10623 * nptl/sockperf.c: Remove file.
10624
10625 2018-06-27 Florian Weimer <fweimer@redhat.com>
10626
10627 [BZ #18023]
10628 * elf/dl-deps.c (_dl_map_object_deps): Use struct
10629 scratch_buffer instead of extend_alloca.
10630
10631 2018-06-27 Florian Weimer <fweimer@redhat.com>
10632
10633 [BZ #18023]
10634 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
10635 scratch_buffer instead of extend_alloca. Update comments.
10636
10637 2018-06-27 Florian Weimer <fweimer@redhat.com>
10638
10639 [BZ #18023]
10640 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
10641 instead of extend_alloca.
10642
10643 2018-06-26 Joseph Myers <joseph@codesourcery.com>
10644
10645 [BZ #13888]
10646 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
10647 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
10648 /tmp.
10649 * scripts/test-installation.pl: Put temporary files in build
10650 directory, not /tmp.
10651 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
10652 (CFLAGS-bug4.c): Likewise.
10653 (CFLAGS-bug5.c): Likewise.
10654 (CFLAGS-test-fseek.c): Likewise.
10655 (CFLAGS-test-popen.c): Likewise.
10656 (CFLAGS-test_rdwr.c): Likewise.
10657 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
10658 /tmp.
10659 * stdio-common/bug4.c (main): Likewise.
10660 * stdio-common/bug5.c (main): Likewise.
10661 * stdio-common/test-fseek.c (TESTFILE): Likewise.
10662 * stdio-common/test-popen.c (do_test): Likewise.
10663 * stdio-common/test_rdwr.c (main): Likewise.
10664
10665 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
10666
10667 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
10668 (sem_open): Set sem.newsem.pad to zero for valgrind.
10669
10670 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10671
10672 [BZ #20251]
10673 * NEWS: Mention fcntl64 addition.
10674 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
10675 * login/utmp_file.c: Likewise.
10676 * sysdeps/posix/fdopendir.c: Likewise.
10677 * sysdeps/posix/opendir.c: Likewise.
10678 * sysdeps/unix/pt-fcntl.c: Likewise.
10679 * include/fcntl.h (__libc_fcntl64, __fcntl64,
10680 __fcntl64_nocancel_adjusted): New prototype.
10681 (__fcntl_nocancel_adjusted): Remove prototype.
10682 * io/Makefile (routines): Add fcntl64.
10683 (CFLAGS-fcntl64.c): New rule.
10684 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
10685 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
10686 * io/fcntl.h (fcntl64): Add prototype and redirect if
10687 __USE_FILE_OFFSET64 is defined.
10688 * io/fcntl64.c: New file.
10689 * manual/llio.text: Add a note for which commands fcntl acts a
10690 cancellation point.
10691 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
10692 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
10693 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
10694 New symbols.
10695 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
10696 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
10697 non-LFS case.
10698 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
10699 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
10700 to __fcntl64_nocancel.
10701 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
10702 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
10703 to __fcntl64_nocancel.
10704 * sysdeps/generic/not-cancel.h: Likewise.
10705 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
10706 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
10707 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
10708 (fcntl64): New symbol.
10709 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
10710 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
10711 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
10712 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
10713 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
10714 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
10715 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
10716 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
10717 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
10718 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
10719 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
10720 fcntl64): Likewise.
10721 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
10722 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
10723 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
10724 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
10725 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
10726 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
10727 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
10728 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
10729 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
10730 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
10731 Likewise.
10732 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
10733 Likewise.
10734 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
10735 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
10736 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
10737
10738 2018-06-26 Florian Weimer <fweimer@redhat.com>
10739
10740 Run thread shutdown functions in an explicit order.
10741 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
10742 definition.
10743 (__libc_thread_freeres): Call thread shutdown functions
10744 explicitly.
10745 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
10746 * include/string.h (__strerror_thread_freeres): Declare.
10747 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
10748 arena_thread_freeres. No longer static. Remove thread shutdown
10749 hook registration.
10750 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
10751 Declare.
10752 * resolv/res-close.c (__res_thread_freeres): Renamed from
10753 res_thread_freeres. No longer static. Remove thread shutdown
10754 hook registration.
10755 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
10756 * resolv/resolv_conf.c (freeres): Remove incorrect section
10757 attribute and use libc_freeres_fn.
10758 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
10759 strerror_thread_freeres. No longer static. Remove thread
10760 shutdown hook registration.
10761 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
10762 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
10763 shutdown hook registration.
10764 * Makerules (shlib.lds): Do not provide section boundary symbols
10765 for __libc_thread_subfreeres.
10766 * manual/memory.texi (Basic Allocation): Update comment.
10767
10768 2018-06-26 Florian Weimer <fweimer@redhat.com>
10769
10770 Remove always-defined _RPC_THREAD_SAFE_ macro.
10771 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
10772 Do not define _RPC_THREAD_SAFE_.
10773 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
10774 conditional.
10775 * sunrpc/clnt_perr.c: Likewise.
10776 * sunrpc/clnt_raw.c: Likewise.
10777 * sunrpc/clnt_simp.c: Likewise.
10778 * sunrpc/key_call.c: Likewise.
10779 * sunrpc/rpc_common.c: Likewise.
10780 * sunrpc/rpc_main.c: Likewise.
10781 * sunrpc/rpc_thread.c: Likewise.
10782 * sunrpc/svc.c: Likewise.
10783 * sunrpc/svc_raw.c: Likewise.
10784 * sunrpc/svc_simple.c: Likewise.
10785 * sumrpc/svcauth_des.c: Likewise.
10786
10787 2018-06-26 Florian Weimer <fweimer@redhat.com>
10788
10789 * libio/Makefile (tests-internal): Add tst-vtables,
10790 tst-vtables-interposed.
10791 * libio/tst-vtables.c: New file.
10792 * libio/tst-vtables-common.c: Likewise.
10793 * libio/tst-vtables-interposed.c: Likewise.
10794
10795 2018-06-26 Florian Weimer <fweimer@redhat.com>
10796
10797 * support/support_test_main.c (support_test_main): Only call
10798 setvbuf if not disables.
10799 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
10800 * support/test-driver.h (struct test_config): Add no_setvbuf member.
10801
10802 2018-06-26 Florian Weimer <fweimer@redhat.com>
10803
10804 [BZ #23313]
10805 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
10806
10807 2018-06-25 Florian Weimer <fweimer@redhat.com>
10808
10809 [BZ #18023]
10810 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
10811 Use struct scratch_buffer instead of extend_alloca.
10812
10813 2018-06-25 Florian Weimer <fweimer@redhat.com>
10814
10815 [BZ #18023]
10816 * nss/getent.c (initgroups_keys): Use dynarray instead of
10817 extend_alloca.
10818
10819 2018-06-25 Florian Weimer <fweimer@redhat.com>
10820
10821 [BZ #18023]
10822 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
10823 Use struct scratch_buffer instead of extend_alloca.
10824
10825 2018-06-25 Florian Weimer <fweimer@redhat.com>
10826
10827 [BZ #18023]
10828 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
10829 back to malloc directly, without stack allocations.
10830
10831 2018-06-25 Florian Weimer <fweimer@redhat.com>
10832
10833 [BZ #18023]
10834 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
10835 of extend_alloca.
10836
10837 2018-06-25 Florian Weimer <fweimer@redhat.com>
10838
10839 [BZ #18023]
10840 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
10841 of extend_alloca.
10842 * nscd/hstcache.c (addhstbyX): Likewise.
10843 * nscd/pwdcache.c (addpwbyX): Likewise.
10844 * nscd/servicescache.c (addservbyX): Likewise.
10845
10846 2018-06-25 Florian Weimer <fweimer@redhat.com>
10847
10848 [BZ #18023]
10849 * nscd/connections.c (read_cmdline): New function.
10850 (restart): Use it. Update comment.
10851
10852 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
10853
10854 [BZ #23140]
10855 * localedata/locales/csb_PL (mon): Rename to...
10856 (alt_mon): This.
10857 (abmon): Rename to...
10858 (ab_alt_mon): This.
10859 (mon): Add with proper genitive forms, copy from Wikipedia.
10860 (abmon): Likewise.
10861
10862 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
10863
10864 [BZ #19485]
10865 * localedata/locales/csb_PL (mon): Fix typos:
10866 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
10867 (yesstr): Add, value is "jo".
10868 (nostr): Add, value is "nié".
10869
10870 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10871
10872 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
10873 all log1p and significand functions on m680x0.
10874 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
10875 of s_significand.c..
10876 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
10877 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
10878 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
10879 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
10880 s_log1p.c and include it..
10881
10882 2018-06-21 Vincent Chen <vincentc@andestech.com>
10883
10884 * elf/elf.h (R_NDS32_NONE): New define.
10885 (R_NDS32_32_RELA): Likewise.
10886 (R_NDS32_COPY): Likewise.
10887 (R_NDS32_GLOB_DAT): Likewise.
10888 (R_NDS32_JUMP_SLOT): Likewise.
10889 (R_NDS32_RELATIVE): Likewise.
10890 (R_NDS32_TLS_TPOFF): Likewise.
10891 (R_NDS32_TLS_DESC): Likewise.
10892
10893 2018-06-21 Mark Wielaard <mark@klomp.org>
10894
10895 * elf/elf.h (R_BPF_MAP_FD): Removed.
10896 (R_BPF_64_64, R_BPF_64_32): New.
10897
10898 2018-06-21 Florian Weimer <fweimer@redhat.com>
10899
10900 [BZ #23253]
10901 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
10902 Renamed from libc_feholdsetround_ctx.
10903 (default_libc_feresetround_ctx): Renamed from
10904 libc_feresetround_ctx.
10905 (default_libc_feholdsetround_noex_ctx): Renamed from
10906 libc_feholdsetround_noex_ctx.
10907 (default_libc_feresetround_noex_ctx): Renamed from
10908 libc_feresetround_noex_ctx.
10909 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
10910 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
10911 forwardning to the old implementations under the new names.
10912 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
10913 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
10914 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
10915 (libc_feresetround_ctx): Forward to default implements for i386
10916 and MATH_SET_BOTH_ROUNDING_MODES.
10917 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
10918 Add -DMATH_SET_BOTH_ROUNDING_MODES.
10919
10920 2018-06-20 Joseph Myers <joseph@codesourcery.com>
10921
10922 * string/tst-cmp.c: Include <libc-diag.h>.
10923 (strncmp_max): Disable -Wstringop-overflow= around call to
10924 strncmp.
10925 (strncasecmp_max): Disable -Wstringop-overflow= around call to
10926 strncasecmp.
10927
10928 * string/bug-strpbrk1.c: Include <libc-diag.h>.
10929 (main): Disable -Wunused-value around call to strpbrk.
10930 * string/bug-strspn1.c: Include <libc-diag.h>.
10931 (main): Disable -Wunused-value around call to strspn.
10932
10933 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10934 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10935
10936 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
10937 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
10938
10939 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10940
10941 * math/Makefile (libm-calls): Move s_significandF to...
10942 (gen-libm-calls): ... here.
10943 * math/s_significand_template.c: New file.
10944 * math/s_significand.c: Removed.
10945 * math/s_significandf.c: Removed.
10946 * math/s_significandl.c: Removed.
10947 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
10948 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
10949
10950 * math/e_exp2_template.c (declare_mgen_finite_alias,
10951 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
10952 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
10953 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
10954
10955 2018-06-20 Florian Weimer <fweimer@redhat.com>
10956
10957 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
10958
10959 2018-06-19 Joseph Myers <joseph@codesourcery.com>
10960
10961 [BZ #23280]
10962 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
10963 floating-point number to strtod functions rather than possibly
10964 negating result of those functions.
10965 * stdio-common/tst-scanf-round.c: New file.
10966 * stdio-common/Makefile (tests): Add tst-scanf-round.
10967 ($(objpfx)tst-scanf-round): Depend on $(libm).
10968
10969 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
10970
10971 * sysdeps/mach/hurd/localplt.data: Move to...
10972 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
10973 R_386_GLOB_DAT like on Linux i386.
10974
10975 2018-06-18 Joseph Myers <joseph@codesourcery.com>
10976
10977 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
10978 (SHM_STAT_ANY): New macro.
10979 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
10980 (SHM_STAT_ANY): Likewise.
10981 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
10982 (SHM_STAT_ANY): Likewise.
10983 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
10984 (SHM_STAT_ANY): Likewise.
10985 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
10986 (SHM_STAT_ANY): Likewise.
10987 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
10988 (SHM_STAT_ANY): Likewise.
10989 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
10990 (SHM_STAT_ANY): Likewise.
10991 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
10992 (SHM_STAT_ANY): Likewise.
10993 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
10994 (SHM_STAT_ANY): Likewise.
10995 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
10996 (SHM_STAT_ANY): Likewise.
10997 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
10998 (SHM_STAT_ANY): Likewise.
10999 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
11000 (SHM_STAT_ANY): Likewise.
11001
11002 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
11003 (SEM_STAT_ANY): New macro.
11004 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
11005 (SEM_STAT_ANY): Likewise.
11006 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
11007 (SEM_STAT_ANY): Likewise.
11008 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
11009 (SEM_STAT_ANY): Likewise.
11010 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
11011 (SEM_STAT_ANY): Likewise.
11012 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
11013 (SEM_STAT_ANY): Likewise.
11014 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
11015 (SEM_STAT_ANY): Likewise.
11016 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
11017 (SEM_STAT_ANY): Likewise.
11018 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
11019 (SEM_STAT_ANY): Likewise.
11020 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
11021 (SEM_STAT_ANY): Likewise.
11022
11023 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
11024 (MSG_STAT_ANY): New macro.
11025 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
11026 (MSG_STAT_ANY): Likewise.
11027 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
11028 (MSG_STAT_ANY): Likewise.
11029 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
11030 (MSG_STAT_ANY): Likewise.
11031 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
11032 (MSG_STAT_ANY): Likewise.
11033 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
11034 (MSG_STAT_ANY): Likewise.
11035 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
11036 (MSG_STAT_ANY): Likewise.
11037 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
11038 (MSG_STAT_ANY): Likewise.
11039 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
11040 (MSG_STAT_ANY): Likewise.
11041 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
11042 (MSG_STAT_ANY): Likewise.
11043
11044 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
11045 (MAP_TYPE): Change value to 0x2b.
11046
11047 2018-06-18 Florian Weimer <fweimer@redhat.com>
11048
11049 [BZ #15722]
11050 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
11051 socket with SOCK_CLOEXEC.
11052
11053 2018-06-18 Joseph Myers <joseph@codesourcery.com>
11054
11055 [BZ #23303]
11056 * sysdeps/powerpc/powerpc64/le/Makefile
11057 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
11058 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
11059 (gnulib-tests): Also add $(f128-loader-link) for
11060 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
11061
11062 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
11063
11064 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
11065 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
11066 of sendfile.
11067 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
11068 (sendfile64): New strong alias.
11069 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
11070 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
11071 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
11072 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
11073 attribute.
11074 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
11075 ___pthread_get_cleanup_stack.
11076 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
11077 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
11078 * mach/shortcut.awk: Make syscall stubs include
11079 <mach-shortcuts-hidden.h> and add hidden definition.
11080 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
11081 (__mach_msg): Add hidden prototype.
11082 * mach/msg.c: Include <mach.h>.
11083 (__mach_msg): Add hidden definition.
11084 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
11085 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
11086 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
11087 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
11088 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
11089 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
11090 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
11091 prototype and definition.
11092 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
11093 hidden target for _hurd_self_sigstate.
11094
11095 2018-06-15 Joseph Myers <joseph@codesourcery.com>
11096
11097 [BZ #23007]
11098 * stdlib/tst-strtod-nan-sign-main.c: New file.
11099 * stdlib/tst-strtod-nan-sign.c: Likewise.
11100 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
11101 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
11102 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
11103 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
11104 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
11105
11106 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
11107
11108 [BZ #23007]
11109 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
11110 appropriate sign.
11111
11112 2018-06-14 Florian Weimer <fweimer@redhat.com>
11113
11114 [BZ #23290]
11115 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
11116 that the result stays within the ISO-8859-1 range.
11117 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
11118 characters are defined in IBM273.
11119
11120 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
11121
11122 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
11123 __mach_task_self): Remove attribute_hidden.
11124
11125 2018-06-14 Joseph Myers <joseph@codesourcery.com>
11126
11127 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
11128 ignore -Wrestrict for one test.
11129
11130 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
11131 Szabolcs Nagy <szabolcs.nagy@arm.com>
11132
11133 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
11134
11135 2018-06-14 Florian Weimer <fweimer@redhat.com>
11136
11137 * scripts/update-abilist.sh: Accept empty list of files to patch.
11138
11139 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
11140
11141 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
11142 test-xfail-check-abi-libmachuser): Add.
11143 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
11144 __libc_read and __libc_write to __read and __write.
11145 * sysdeps/hurd/include/hurd/port.h: New file.
11146 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
11147 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
11148 __thread_switch, __evc_wait): Move declarations to...
11149 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
11150 attribute_hidden.
11151 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
11152 use PLT to call _hurd_self_sigstate.
11153
11154 2018-06-13 Joseph Myers <joseph@codesourcery.com>
11155
11156 [BZ #23279]
11157 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
11158 MAX_EXP as overflowing.
11159 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
11160 overflow flag.
11161 (round_str): Output also whether result overflows in each rounding
11162 mode.
11163 * stdlib/tst-strtod-round-data: Add more tests.
11164 * stdlib/tst-strtod-round-data.h: Regenerated.
11165 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
11166 (TEST): Handle extra arguments for overflow flags.
11167 (struct test_overflow): New type.
11168 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
11169 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
11170 (test_in_one_mode): Take argument with overflow information.
11171 (do_test): Update calls to test_in_one_mode.
11172
11173 2018-06-12 Carlos O'Donell <carlos@redhat.com>
11174
11175 * elf/dl-load (_dl_dst_substitute): Correct comment.
11176 (_dl_dst_count): Likewise.
11177
11178 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
11179 lll_futex_timed_wait.
11180
11181 2018-06-12 Joseph Myers <joseph@codesourcery.com>
11182
11183 [BZ #23277]
11184 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
11185 attribute.
11186 * math/test-nan-const.c: New file.
11187 * math/Makefile (tests): Add test-nan-const.
11188 (CFLAGS-test-nan-const.c): New variable.
11189
11190 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
11191
11192 * benchtests/scripts/compare_strings.py (process_results): Add
11193 funcs argument. Compare only functions which are selected.
11194 (main): Check if base function is among selected functions.
11195 Pass selected functions to process_results.
11196 (__main__): Add -f/--functions argument.
11197
11198 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
11199 Hongbo Zhang <hongbo.zhang@linaro.org>
11200
11201 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
11202 __memcpy_falkor for phecda core.
11203 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
11204 __memmove_falkor for phecda core.
11205 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
11206 __memset_falkor for phecda core.
11207 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
11208 for phecda core.
11209 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
11210 macro to identify phecda core.
11211
11212 2018-06-12 Carlos O'Donell <carlos@redhat.com>
11213 Andreas Schwab <schwab@suse.de>
11214 Dmitry V. Levin <ldv@altlinux.org>
11215 Florian Weimer <fweimer@redhat.com>
11216
11217 [BZ #23102]
11218 [BZ #21942]
11219 [BZ #18018]
11220 [BZ #23259]
11221 CVE-2011-0536
11222 * elf/dl-dst.h: Remove DL_DST_COUNT.
11223 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
11224 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
11225 (is_dst): Comment. Support ELF gABI.
11226 (_dl_dst_count): Comment. Simplify and count DSTs.
11227 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
11228 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
11229 locals.
11230
11231 2018-06-12 Zack Weinberg <zackw@panix.com>
11232
11233 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
11234 * sysdeps/unix/sysv/linux/dl-sysdep.c
11235 Include not-cancel.h. Use __close_nocancel instead of __close,
11236 __open64_nocancel instead of __open, __read_nocancel instead of
11237 __libc_read, and __write_nocancel instead of __libc_write.
11238
11239 * csu/check_fds.c (check_one_fd)
11240 * sysdeps/posix/fdopendir.c (__fdopendir)
11241 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
11242 instead of __fcntl and/or __libc_fcntl.
11243
11244 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
11245 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
11246 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
11247 Use __open64_nocancel instead of __open_nocancel.
11248
11249 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
11250 hidden_proto declarations to the end and issue them if either
11251 IS_IN(libc) or IS_IN(rtld).
11252 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
11253 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
11254 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
11255 read_nocancel, waitpid_nocancel, write_nocancel.
11256
11257 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
11258 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
11259 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
11260
11261 * nptl/pt-fcntl.c: New file.
11262 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
11263 (libpthread-routines): Add pt-fcntl.
11264 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
11265 (__libc_fcntl): Remove attribute_hidden.
11266 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
11267 __fcntl_nocancel_adjusted, not fcntl_common.
11268 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
11269 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
11270 to fcntl_nocancel.c.
11271 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
11272 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
11273 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
11274 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
11275
11276 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
11277 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
11278 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
11279 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
11280 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
11281 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
11282 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
11283 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
11284 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
11285 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
11286 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
11287 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
11288 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
11289 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
11290 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
11291 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
11292 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
11293 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
11294 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
11295 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
11296
11297 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
11298 libpthread-routines.
11299 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
11300 defines nothing.
11301
11302 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
11303 __libc_read, and __write instead of __libc_write. Define
11304 __open64 in addition to __open.
11305
11306 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
11307
11308 [BZ #23250]
11309 [BZ #10686]
11310 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
11311 to _private_tm[3] and add __glibc_reserved2.
11312 Add _Static_assert of offset of __private_ss == 0x30.
11313 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
11314 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
11315
11316 2018-06-12 Florian Weimer <fweimer@redhat.com>
11317
11318 x86: Make strncmp usable from rtld.
11319 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
11320 __strncmp_ia32 if in libc (and not in rtld).
11321 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
11322 strncmp if not in libc (and not to __strncmp_sse2).
11323
11324 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
11325
11326 [BZ #23140]
11327 * localedata/locales/gd_GB (mon): Rename to...
11328 (alt_mon): This.
11329 (mon): Import from CLDR (genitive case).
11330 * localedata/locales/hsb_DE (mon): Rename to...
11331 (alt_mon): This.
11332 (mon): Import from CLDR (genitive case).
11333 * localedata/locales/wa_BE (mon): Rename to...
11334 (alt_mon): This.
11335 (mon): Add, fill with the proper genitive forms, but CLDR data
11336 is incomplete; completed according to the comments in this file.
11337 (d_t_fmt): Do not use "di" before the month name, no longer needed.
11338
11339 * localedata/locales/wa_BE (country_name): Reword
11340 "Beljike" -> "Beldjike".
11341
11342 2018-06-11 Joseph Myers <joseph@codesourcery.com>
11343
11344 [BZ #23272]
11345 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
11346 cases of non-finite arguments.
11347 * math/libm-test-fma.inc (fma_test_data): Add more tests.
11348
11349 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
11350
11351 [BZ #23174]
11352 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
11353
11354 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11355
11356 [BZ #23264]
11357 * include/unistd.h (__execvpex): New prototype.
11358 * posix/Makefile (tests): Add tst-spawn4.
11359 (tests-internal): Add tst-spawn4-compat.
11360 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
11361 * posix/tst-spawn4-compat.c: New file.
11362 * posix/tst-spawn4.c: Likewise.
11363 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
11364 binaries as shell scripts.
11365 * sysdeps/posix/spawni.c (__spawni): Likewise.
11366
11367 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
11368
11369 [BZ #23145]
11370 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
11371 ($(all-built-dso:=.dynsym): New target.
11372 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
11373 ($(objpfx)check-initfini.out): New target.
11374 (generated): Add check-initfini.out.
11375 * scripts/check-initfini.awk: New file.
11376 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
11377 (_fini): Likewise.
11378 * sysdeps/alpha/crti.S (_init): Mark as hidden.
11379 (_fini): Likewise.
11380 * sysdeps/arm/crti.S (_init): Mark as hidden.
11381 (_fini): Likewise.
11382 * sysdeps/hppa/crti.S (_init): Mark as hidden.
11383 (_fini): Likewise.
11384 * sysdeps/i386/crti.S (_init): Mark as hidden.
11385 (_fini): Likewise.
11386 * sysdeps/ia64/crti.S (_init): Mark as hidden.
11387 (_fini): Likewise.
11388 * sysdeps/m68k/crti.S (_init): Mark as hidden.
11389 (_fini): Likewise.
11390 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
11391 (_fini): Likewise.
11392 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
11393 (_fini): Likewise.
11394 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
11395 (_fini): Likewise.
11396 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
11397 (_fini): Likewise.
11398 * sysdeps/nios2/crti.S (_init): Mark as hidden.
11399 (_fini): Likewise.
11400 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
11401 (_fini): Likewise.
11402 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
11403 (_fini): Likewise.
11404 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
11405 (_fini): Likewise.
11406 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
11407 (_fini): Likewise.
11408 * sysdeps/sh/crti.S (_init): Mark as hidden.
11409 (_fini): Likewise.
11410 * sysdeps/sparc/crti.S (_init): Mark as hidden.
11411 (_fini): Likewise.
11412 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
11413 (_fini): Likewise.
11414
11415 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11416
11417 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
11418 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
11419 and TF redirection to KFtype and KF only when the default
11420 long double type is not the IEEE 128-bit floating point type.
11421
11422 2018-06-05 Joseph Myers <joseph@codesourcery.com>
11423
11424 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
11425 macro.
11426 (HWCAP_USCAT): Likewise.
11427 (HWCAP_ILRCPC): Likewise.
11428 (HWCAP_FLAGM): Likewise.
11429 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
11430 Increase to 28.
11431 (_dl_aarch64_cap_flags): Add new flag names.
11432
11433 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
11434 (MAP_FIXED_NOREPLACE): New macro.
11435 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
11436 (MAP_FIXED_NOREPLACE): Likewise.
11437 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
11438 (MAP_FIXED_NOREPLACE): Likewise.
11439 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
11440 (MAP_FIXED_NOREPLACE): Likewise.
11441 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
11442 (MAP_FIXED_NOREPLACE): Likewise.
11443 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
11444 (MAP_FIXED_NOREPLACE): Likewise.
11445 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
11446 (MAP_FIXED_NOREPLACE): Likewise.
11447 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
11448 (MAP_FIXED_NOREPLACE): Likewise.
11449 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
11450 (MAP_FIXED_NOREPLACE): Likewise.
11451 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
11452 (MAP_FIXED_NOREPLACE): Likewise.
11453 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
11454 (MAP_FIXED_NOREPLACE): Likewise.
11455 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
11456 (MAP_FIXED_NOREPLACE): Likewise.
11457 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
11458 (MAP_FIXED_NOREPLACE): Likewise.
11459 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
11460 (MAP_FIXED_NOREPLACE): Likewise.
11461 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
11462 (MAP_FIXED_NOREPLACE): Likewise.
11463
11464 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
11465 version to 4.17.
11466
11467 2018-06-04 Joseph Myers <joseph@codesourcery.com>
11468
11469 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
11470 version to 4.17
11471
11472 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
11473
11474 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
11475 int.
11476 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
11477
11478 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11479
11480 * benchtests/scripts/compare_string.py: (process_results) Catch
11481 exception in non-existent base_func and catch exception in
11482 non-existent attribute.
11483 (parse_file) Catch exception if input file does not exist.
11484
11485 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11486
11487 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
11488 options to avoid diff calculation and omit header, respectively.
11489 (main): process --no-diff and --no-header
11490
11491 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11492 H.J. Lu <hongjiu.lu@intel.com>
11493
11494 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11495 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
11496 wcsncmp-sse2.
11497 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
11498 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
11499 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
11500 and __wcsncmp_sse2.
11501 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
11502 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
11503 AVX unaligned load is fast and vzeroupper is preferred.
11504 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
11505 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
11506 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
11507 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
11508 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
11509 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
11510 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
11511 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
11512 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
11513 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
11514 is undefined.
11515
11516 2018-06-01 Florian Weimer <fweimer@redhat.com>
11517
11518 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
11519 configuring with --disable-multi-arch, building with
11520 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
11521 Haswell-era CPU.
11522
11523 2018-06-01 Florian Weimer <fweimer@redhat.com>
11524
11525 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
11526 results from building with “-march=x86-64 -mtune=generic
11527 -mfpmath=sse” and running on a Haswell-era CPU.
11528
11529 2018-06-01 Joseph Myers <joseph@codesourcery.com>
11530
11531 [BZ #18473]
11532 * soft-fp/sqrttf2.c: Remove file.
11533 * soft-fp/sqrtdf2.c: Move to ....
11534 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
11535 <shlib-compat.h>.
11536 (__sqrtdf2): Make conditional on
11537 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
11538 symbol.
11539 * soft-fp/sqrtsf2.c: Move to ....
11540 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
11541 <shlib-compat.h>.
11542 (__sqrtsf2): Make conditional on
11543 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
11544 symbol.
11545 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
11546 (gcc-double-routines): Remove sqrtdf2.
11547 (gcc-quad-routines): Remove sqrttf2.
11548 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
11549 Do not filter out sqrtsf2 and sqrtdf2.
11550 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
11551 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
11552
11553 2018-06-01 Florian Weimer <fweimer@redhat.com>
11554
11555 * sysdeps/generic/libcidn.abilist: Remove file.
11556
11557 2018-06-01 Florian Weimer <fweimer@redhat.com>
11558
11559 [BZ #23236]
11560 * libio/strfile.h (struct _IO_str_fields): Rename members to
11561 discourage their use and add comment.
11562 (_IO_STR_DYNAMIC): Remove unused macro.
11563 * libio/strops.c (_IO_str_init_static_internal): Do not use
11564 callback pointers. Call malloc and free.
11565 (_IO_str_overflow): Do not use callback pointers. Call malloc
11566 and free.
11567 (enlarge_userbuf): Likewise.
11568 (_IO_str_finish): Call free.
11569 * libio/wstrops.c (_IO_wstr_init_static): Initialize
11570 _allocate_buffer_unused.
11571 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
11572 and free.
11573 (enlarge_userbuf): Likewise.
11574 (_IO_wstr_finish): Call free.
11575 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
11576 _allocate_buffer_unused, _free_buffer_unused.
11577 * libio/memstream.c (__open_memstream): Likewise.
11578 * libio/vasprintf.c (_IO_vasprintf): Likewise.
11579 * libio/wmemstream.c (open_wmemstream): Likewise.
11580
11581 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
11582
11583 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
11584 AMD Ryzen 7 1800X.
11585
11586 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
11587
11588 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
11589 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
11590 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
11591 New file.
11592 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
11593 Likewise.
11594 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
11595
11596 2018-05-29 Florian Weimer <fweimer@redhat.com>
11597
11598 * support/Makefile (libsupport-routines): Add
11599 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
11600 xpthread_barrierattr_setpshared.
11601 * support/xpthread_barrierattr_destroy.c: New file.
11602 * support/xpthread_barrierattr_init.c: Likewise.
11603 * support/xpthread_barrierattr_setpshared.c: Likewise.
11604
11605 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
11606
11607 [BZ #23206]
11608 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
11609 _r_debug and update DT_DEBUG for debugger.
11610
11611 2018-05-29 Florian Weimer <fweimer@redhat.com>
11612
11613 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
11614 (tst-strtod5i.out): Likewise.
11615
11616 2018-05-25 Joseph Myers <joseph@codesourcery.com>
11617
11618 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
11619 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
11620 (sparc64-quad-routines): New variable. Moved from ....
11621 [$(subdir) = soft-fp] (sysdep_routines): Add
11622 $(sparc64-quad-routines). Moved from ....
11623 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
11624 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
11625 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
11626 moved from ....
11627 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
11628 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
11629 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
11630 * sysdeps/sparc/sparc64/qp_add.c: ... here.
11631 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
11632 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
11633 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
11634 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
11635 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
11636 * sysdeps/sparc/sparc64/qp_div.c: ... here.
11637 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
11638 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
11639 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
11640 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
11641 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
11642 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
11643 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
11644 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
11645 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
11646 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
11647 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
11648 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
11649 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
11650 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
11651 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
11652 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
11653 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
11654 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
11655 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
11656 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
11657 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
11658 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
11659 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
11660 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
11661 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
11662 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
11663 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
11664 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
11665 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
11666 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
11667 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
11668 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
11669 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
11670 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
11671 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
11672 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
11673 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
11674 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
11675 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
11676 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
11677 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
11678 * sysdeps/sparc/sparc64/qp_util.c: ... here.
11679 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
11680 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
11681 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
11682 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
11683 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
11684 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
11685
11686 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
11687 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
11688 (sparc32-quad-routines): New variable. Moved from ....
11689 [$(subdir) = soft-fp] (sysdep_routines): Add
11690 $(sparc32-quad-routines). Moved from ....
11691 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
11692 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
11693 moved from ....
11694 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
11695 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
11696 * sysdeps/sparc/sparc32/q_add.c: ... here.
11697 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
11698 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
11699 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
11700 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
11701 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
11702 * sysdeps/sparc/sparc32/q_div.c: ... here.
11703 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
11704 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
11705 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
11706 * sysdeps/sparc/sparc32/q_feq.c: ... here.
11707 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
11708 * sysdeps/sparc/sparc32/q_fge.c: ... here.
11709 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
11710 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
11711 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
11712 * sysdeps/sparc/sparc32/q_fle.c: ... here.
11713 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
11714 * sysdeps/sparc/sparc32/q_flt.c: ... here.
11715 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
11716 * sysdeps/sparc/sparc32/q_fne.c: ... here.
11717 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
11718 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
11719 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
11720 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
11721 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
11722 * sysdeps/sparc/sparc32/q_mul.c: ... here.
11723 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
11724 * sysdeps/sparc/sparc32/q_neg.c: ... here.
11725 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
11726 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
11727 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
11728 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
11729 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
11730 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
11731 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
11732 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
11733 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
11734 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
11735 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
11736 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
11737 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
11738 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
11739 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
11740 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
11741 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
11742 * sysdeps/sparc/sparc32/q_sub.c: ... here.
11743 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
11744 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
11745 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
11746 * sysdeps/sparc/sparc32/q_util.c: ... here.
11747 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
11748 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
11749 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
11750 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
11751
11752 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11753 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11754
11755 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
11756 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
11757 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
11758 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
11759
11760 2018-05-24 Joseph Myers <joseph@codesourcery.com>
11761
11762 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
11763 powerpc/soft-fp.
11764 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
11765 Likewise.
11766 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
11767 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
11768
11769 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11770
11771 [BZ #23171]
11772 * math/math.h [C++] (iseqsig): Fix parameter type for the long
11773 double version.
11774
11775 2018-05-23 Joseph Myers <joseph@codesourcery.com>
11776
11777 * sysdeps/sh/Implies: Remove sh/soft-fp.
11778 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
11779 * sysdeps/sh/sfp-machine.h: ... here.
11780
11781 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
11782
11783 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
11784 (__mempcpy_erms): Skip zero length.
11785 (__memmove_erms): Likewise.
11786 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11787 (__memset_erms): Likewise.
11788
11789 2018-05-23 Joseph Myers <joseph@codesourcery.com>
11790
11791 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
11792 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
11793 Add functions moved from ....
11794 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
11795 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
11796 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
11797 from ....
11798 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
11799 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
11800 * sysdeps/alpha/e_sqrtl.c: ... here.
11801 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
11802 * sysdeps/alpha/local-soft-fp.h: ... here.
11803 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
11804 * sysdeps/alpha/ots_add.c: ... here.
11805 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
11806 * sysdeps/alpha/ots_cmp.c: ... here.
11807 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
11808 * sysdeps/alpha/ots_cmpe.c: ... here.
11809 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
11810 * sysdeps/alpha/ots_cvtqux.c: ... here.
11811 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
11812 * sysdeps/alpha/ots_cvtqx.c: ... here.
11813 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
11814 * sysdeps/alpha/ots_cvttx.c: ... here.
11815 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
11816 * sysdeps/alpha/ots_cvtxq.c: ... here.
11817 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
11818 * sysdeps/alpha/ots_cvtxt.c: ... here.
11819 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
11820 * sysdeps/alpha/ots_div.c: ... here.
11821 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
11822 * sysdeps/alpha/ots_mul.c: ... here.
11823 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
11824 * sysdeps/alpha/ots_nintxq.c: ... here.
11825 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
11826 * sysdeps/alpha/ots_sub.c: ... here.
11827 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
11828 * sysdeps/alpha/sfp-machine.h: ... here.
11829
11830 2018-05-23 Florian Weimer <fweimer@redhat.com>
11831
11832 [BZ #19728]
11833 [BZ #19729]
11834 [BZ #22247]
11835 CVE-2016-6261
11836 CVE-2016-6263
11837 CVE-2017-14062
11838 Switch to extern IDNA implementation (libidn2).
11839 * libidn: Remove subdirectory.
11840 * LICENSES: Do not mention licensing conditions for the removed
11841 libidn code.
11842 * config.h.in (HAVE_LIBIDN): Remove.
11843 * include/dlfcn.h (__libc_dlopen): Update comment.
11844 * include/idna.h: Remove file.
11845 * inet/Makefile (routines): Add idna.
11846 (tests-static, tests-internal): Add tst-idna_name_classify.
11847 (LOCALES): Generate locales for tests.
11848 (tst-idna_name_classify.out): Depend on generated locales.
11849 * inet/idna_name_classify.c: New file.
11850 * inet/tst-idna_name_classify.c: Likewise.
11851 * inet/net-internal.h (__idna_to_dns_encoding)
11852 (__idna_from_dns_encoding): Declare.
11853 * inet/net-internal.h (enum idna_name_classification): Define.
11854 (__idna_name_classify): Declare.
11855 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
11856 __idna_from_dns_encoding.
11857 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
11858 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
11859 name as a fallback in case of encoding errors.
11860 (getnameinfo): Use DEPRECATED_NI_IDN.
11861 * inet/idna.c: New file.
11862 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
11863 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
11864 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
11865 (modules-names): Add tst-no-libidn2.
11866 (extra-test-objs): Add tst-no-libidn2.os.
11867 (LDFLAGS-tst-no-libidn2.so): Set soname.
11868 (LOCALES): Set, and generate locales.
11869 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
11870 (tst-resolv-ai_idn-latin1): Likewise.
11871 (tst-resolv-ai_idn-nolibidn2): Likewise.
11872 (tst-resolv-ai_idn.out): Depend on locales.
11873 (tst-resolv-ai_idn-latin1.out): Depend on locales.
11874 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
11875 tst-no-libidn2.so.
11876 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
11877 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
11878 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
11879 * resolv/tst-resolv-ai_idn.c: New file.
11880 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
11881 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
11882 * resolv/tst-no-libidn2.c: Likewise.
11883 * support/support_format_addrinfo.c (format_ai_flags): Do not
11884 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
11885 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
11886 (gaih_inet): Call __idna_to_dns_encoding and
11887 __idna_from_dns_encoding, and use the original (punycode) name if
11888 __idna_from_dns_encoding fails due to an encoding error.
11889 (getaddrinfo): Use DEPRECATED_AI_IDN.
11890 * sysdeps/unix/inet/Subdirs (libidn): Remove.
11891 * sysdeps/unix/inet/configure: Remove file.
11892 * sysdeps/unix/inet/configure.ac: Likewise.
11893
11894 2018-05-23 Florian Weimer <fweimer@redhat.com>
11895
11896 Implement allocate_once.
11897 * include/allocate_once.h: New file.
11898 * misc/allocate_once.c: Likewise.
11899 * misc/tst-allocate_once.c: Likewise.
11900 * misc/Makefile (routines): Add allocate_once.
11901 (tests-internal): Add tst-allocate_once.
11902 (generated): Add tst-allocate_once.mtrace,
11903 tst-allocate_once-mem.out.
11904 (tests-special): Add tst-allocate_once-mem.out.
11905 (tst-allocate_once-ENV): Set MALLOC_TRACE.
11906 (tst-allocate_once-mem.out): Call mtrace.
11907 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
11908
11909 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
11910
11911 [BZ #23196]
11912 * string/test-memcpy.c (do_test1): New function.
11913 (test_main): Call it.
11914
11915 2018-05-23 Andreas Schwab <schwab@suse.de>
11916
11917 [BZ #23196]
11918 CVE-2018-11237
11919 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
11920 (L(preloop_large)): Save initial destination pointer in %r11 and
11921 use it instead of %rax after the loop.
11922 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
11923
11924 2018-05-22 Joseph Myers <joseph@codesourcery.com>
11925
11926 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
11927 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
11928 -I../soft-fp. Moved from ....
11929 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
11930 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
11931 * sysdeps/aarch64/e_sqrtl.c: ... here.
11932 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
11933 * sysdeps/aarch64/sfp-machine.h: ... here.
11934
11935 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
11936 -Wmaybe-uninitialized around access to fq[0].
11937 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
11938 Likewise.
11939
11940 [BZ #18471]
11941 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
11942 aliases for non-libc case of versioned symbols.
11943 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
11944 (llseek): Define as compat symbol if
11945 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
11946 with link warning.
11947 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
11948 Make into a compat symbol, disabled for minimum symbol version
11949 GLIBC_2.28 and later.
11950 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
11951
11952 2018-05-22 Florian Weimer <fweimer@redhat.com>
11953
11954 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
11955 not add -mpreferred-stack-boundary=4.
11956 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
11957 (stack-align-test-flags): Likewise.
11958 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
11959 Likewise.
11960 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
11961 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
11962 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
11963 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
11964 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
11965 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
11966 (CFLAGS-tst-align2.c): Likewise.
11967
11968 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
11969
11970 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
11971 (index_arch_Prefer_FSRM): Likewise.
11972 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
11973 Also check Prefer_FSRM.
11974 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
11975 Also return OPTIMIZE (erms) for Prefer_FSRM.
11976
11977 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
11978
11979 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
11980 (index_cpu_FSRM): Likewise.
11981 (reg_FSRM): Likewise.
11982
11983 2018-05-18 Joseph Myers <joseph@codesourcery.com>
11984
11985 * math/gen-tgmath-tests.py: Import sys.
11986 (Tests.__init__): Initialize macros_seen.
11987 (Tests.add_tests): Add macro to macros_seen. Only generate tests
11988 if requested to do so for this macro.
11989 (Tests.add_all_tests): Take argument for macro for which to
11990 generate tests.
11991 (Tests.check_macro_list): New function.
11992 (main): Handle check-list argument and argument specifying macro
11993 for which to generate tests.
11994 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
11995 [PYTHON] (tgmath3-macro-tests): Likewise.
11996 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
11997 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
11998 not test-tgmath3.c.
11999 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
12000 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
12001 to CFLAGS.
12002 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
12003 [PYTHON] ($(foreach
12004 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
12005 rule.
12006 [PYTHON] (tests-special): Add
12007 $(objpfx)test-tgmath3-macro-list.out.
12008 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
12009
12010 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
12011 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
12012 later.
12013
12014 [BZ #22639]
12015 * time/tzset.c (SECSPERDAY): Cast to time_t.
12016 * time/tst-y2039.c: New file.
12017 * time/Makefile (tests): Add tst-y2039.
12018
12019 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
12020
12021 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
12022 (PREFETCH_ONE_SET): Remove duplicate line.
12023
12024 2018-05-17 Florian Weimer <fweimer@redhat.com>
12025
12026 * sysdeps/generic/math-type-macros-double.h: Include
12027 <math-nan-payload-double.h> after <libm-alias-double.h>.
12028 * sysdeps/generic/math-type-macros-float.h: Include
12029 <math-nan-payload-float.h> after <libm-alias-float.h>.
12030 * sysdeps/generic/math-type-macros-float128.h: Include
12031 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
12032 * sysdeps/generic/math-type-macros-ldouble.h: Include
12033 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
12034
12035 2018-05-17 Andreas Schwab <schwab@suse.de>
12036
12037 * resolv/res_send.c (__res_context_send): Don't set errno when
12038 returing error after malloc failure.
12039
12040 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
12041
12042 * nptl/allocatestack.c (allocate_stack): Remove the
12043 !__ASSUME_PRIVATE_FUTEX paths.
12044 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
12045 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
12046 Likewise.
12047 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
12048 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
12049 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
12050 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
12051 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
12052 !__ASSUME_PRIVATE_FUTEX path.
12053 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
12054 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
12055 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
12056 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
12057 !__ASSUME_PRIVATE_FUTEX macros.
12058 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
12059 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
12060 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
12061 * sysdeps/unix/sysv/linux/kernel-features.h
12062 (__ASSUME_PRIVATE_FUTEX): Removed.
12063
12064 2018-05-17 Joseph Myers <joseph@codesourcery.com>
12065
12066 * math/Makefile (libm-narrow-fns): Add div.
12067 (libm-test-funcs-narrow): Likewise.
12068 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
12069 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
12070 * math/gen-auto-libm-tests.c (test_functions): Add div.
12071 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
12072 (NARROW_DIV_ROUND_TO_ODD): Likewise.
12073 (NARROW_DIV_TRIVIAL): Likewise.
12074 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
12075 macro.
12076 (__ddivl): Likewise.
12077 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
12078 ddiv.
12079 (CFLAGS-nldbl-ddiv.c): New variable.
12080 (CFLAGS-nldbl-fdiv.c): Likewise.
12081 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
12082 __nldbl_ddivl.
12083 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
12084 prototype.
12085 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
12086 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
12087 * math/auto-libm-test-in: Add tests of div.
12088 * math/auto-libm-test-out-narrow-div: New generated file.
12089 * math/libm-test-narrow-div.inc: New file.
12090 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
12091 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
12092 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
12093 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
12094 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
12095 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
12096 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
12097 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
12098 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
12099 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
12100 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
12101 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
12102 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
12103 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
12104 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
12105 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
12106 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
12107 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
12108 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12109 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12110 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12111 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12112 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12113 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12114 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12115 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12116 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12117 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12118 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12119 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12120 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12121 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12122 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12123 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
12124 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12125 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12126 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12127 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12128 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12129 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12130 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12131 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12132 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12133 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12134
12135 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12136
12137 [BZ #23178]
12138 * nscd/nscd-client.h (sendfileall): Remove prototype.
12139 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
12140 (handle_request): Use writeall instead of sendfileall.
12141 * nscd/aicache.c (addhstaiX): Likewise.
12142 * nscd/grpcache.c (cache_addgr): Likewise.
12143 * nscd/hstcache.c (cache_addhst): Likewise.
12144 * nscd/initgrcache.c (addinitgroupsX): Likewise.
12145 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
12146 * nscd/pwdcache.c (cache_addpw): Likewise.
12147 * nscd/servicescache.c (cache_addserv): Likewise.
12148 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
12149 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
12150 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
12151 Remove define.
12152
12153 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
12154
12155 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
12156 Include <string/strncat.c>.
12157 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
12158 alias.
12159 (__GI___strncat): New hidden alias.
12160
12161 2018-05-16 Joseph Myers <joseph@codesourcery.com>
12162
12163 * sysdeps/mips/mips32/libm-test-ulps: Update.
12164 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
12165
12166 2018-05-16 Florian Weimer <fweimer@redhat.com>
12167
12168 * support/Makefile (libsupport-routines): Add support_quote_blob,
12169 support_test_compare_blob.
12170 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
12171 * support/check.h (TEST_COMPARE_BLOB): Define.
12172 (support_test_compare_blob): Declare.
12173 * support/support.h (support_quote_blob): Declare.
12174 * support/support_quote_blob.c: New file.
12175 * support/support_test_compare_blob.c: Likewise.
12176 * support/tst-support_quote_blob.c: Likewise.
12177 * support/tst-test_compare_blob.c: Likewise.
12178
12179 2018-05-16 Florian Weimer <fweimer@redhat.com>
12180
12181 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
12182 of <strtod_nan_double.h>.
12183 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
12184 instead of SET_MANTISSA.
12185 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
12186 of include <strtod_nan_float.h>.
12187 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
12188 instead of <strtod_nan_ldouble.h>.
12189 * stdlib/strtod_nan_double.h: Move to ...
12190 * sysdeps/generic/math-nan-payload-double.h: ... here.
12191 (FLOAT): Remove definition.
12192 (SET_MANTISSA): Rename to ...
12193 (SET_NAN_PAYLOAD): ... this.
12194 * stdlib/strtod_nan_float.h: Move to ...
12195 * sysdeps/generic/math-nan-payload-float.h: ... here.
12196 (FLOAT): Remove definition.
12197 (SET_MANTISSA): Rename to ...
12198 (SET_NAN_PAYLOAD): ... this.
12199 * sysdeps/generic/math-type-macros-double.h: Include
12200 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
12201 instead of <math-svid-compat.h>.
12202 * sysdeps/generic/math-type-macros-float.h: Include
12203 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
12204 instead of <math-svid-compat.h>.
12205 * sysdeps/generic/math-type-macros-float128.h: Include
12206 <math-nan-payload-float128.h>.
12207 * sysdeps/generic/math-type-macros-ldouble.h: Include
12208 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
12209 instead of <math-svid-compat.h>.
12210 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
12211 check for definition.
12212 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
12213 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
12214 Include <ieee754_float128.h>.
12215 (FLOAT): Remove definition.
12216 (SET_MANTISSA): Rename to ...
12217 (SET_NAN_PAYLOAD): ... this.
12218 * sysdeps/ieee754/float128/strtof128_nan.c: Include
12219 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
12220 Do not include <float128_private.h>.
12221 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
12222 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
12223 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
12224 (FLOAT): Remove definition.
12225 (SET_MANTISSA): Rename to ...
12226 (SET_NAN_PAYLOAD): ... this.
12227 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
12228 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
12229 (FLOAT): Remove definition.
12230 (SET_MANTISSA): Rename to ...
12231 (SET_NAN_PAYLOAD): ... this.
12232 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
12233 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
12234 (FLOAT): Remove definition.
12235 (SET_MANTISSA): Rename to ...
12236 (SET_NAN_PAYLOAD): ... this.
12237 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
12238 of "../stdlib/strtod_nan_double.h".
12239 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
12240 of "../stdlib/strtod_nan_float.h".
12241 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
12242 instead of "../stdlib/strtod_nan_ldouble.h".
12243 * manual/arith.texi (Parsing of Floats): Adjust comment.
12244
12245 2018-05-16 Joseph Myers <joseph@codesourcery.com>
12246
12247 * math/Makefile (libm-narrow-fns): Add mul.
12248 (libm-test-funcs-narrow): Likewise.
12249 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
12250 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
12251 * math/gen-auto-libm-tests.c (test_functions): Add mul.
12252 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
12253 (NARROW_MUL_ROUND_TO_ODD): Likewise.
12254 (NARROW_MUL_TRIVIAL): Likewise.
12255 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
12256 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
12257 macro.
12258 (__dmull): Likewise.
12259 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
12260 dmul.
12261 (CFLAGS-nldbl-dmul.c): New variable.
12262 (CFLAGS-nldbl-fmul.c): Likewise.
12263 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
12264 __nldbl_dmull.
12265 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
12266 prototype.
12267 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
12268 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
12269 * math/auto-libm-test-in: Add tests of mul.
12270 * math/auto-libm-test-out-narrow-mul: New generated file.
12271 * math/libm-test-narrow-mul.inc: New file.
12272 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
12273 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
12274 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
12275 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
12276 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
12277 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
12278 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
12279 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
12280 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
12281 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
12282 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
12283 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
12284 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
12285 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
12286 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
12287 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
12288 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
12289 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
12290 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12291 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12292 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12293 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12294 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12295 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12296 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12297 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12298 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12299 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12300 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12301 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12302 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12303 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12304 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12305 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
12306 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12307 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12308 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12309 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12310 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12311 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12312 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12313 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12314 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12315 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12316
12317 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
12318
12319 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
12320 with *%eax in call.
12321
12322 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
12323
12324 * sysdeps/i386/ldsodefs.h: Removed.
12325 * sysdeps/x86_64/ldsodefs.h: Moved to ...
12326 * sysdeps/x86/ldsodefs.h: This.
12327 (La_i86_regs): New.
12328 (La_i86_retval): Likewise.
12329 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
12330 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
12331
12332 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
12333
12334 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
12335 unnecessary testl.
12336
12337 2018-05-13 Alan Modra <amodra@gmail.com>
12338
12339 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
12340 R_PARISC_TLS_DTPOFF32 reloc addend.
12341
12342 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12343
12344 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
12345 * math/math.h: Restrict the prototype definition for the functions
12346 issignaling(_Float128) and iszero(_Float128); and template
12347 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
12348 __HAVE_FLOAT128_UNLIKE_LDBL.
12349 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
12350 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
12351 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
12352 __f128() constants; define the type _Float128 as long double;
12353 and reuse long double in __CFLOAT128.
12354
12355 2018-05-11 Joseph Myers <joseph@codesourcery.com>
12356
12357 * sysdeps/generic/math_private.h: Do not include
12358 <math-barriers.h>.
12359 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
12360 <math_private.h>.
12361 * math/fromfp.h: Include <math-barriers.h>.
12362 * math/math-narrow.h: Likewise.
12363 * math/s_nextafter.c: Likewise.
12364 * math/s_nexttowardf.c: Likewise.
12365 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
12366 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
12367 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
12368 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
12369 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12370 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12371 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12372 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12373 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12374 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12375 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12376 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12377 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12378 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12379 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
12380 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
12381 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12382 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12383 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
12384 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12385 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12386 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12387 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12388 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12389 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12390 * sysdeps/ieee754/k_standardl.c: Likewise.
12391 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12392 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12393 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
12394 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
12395 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12396 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12397 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12398 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12399 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12400 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
12401 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
12402 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12403 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12404 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12405 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12406 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
12407 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
12408 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
12409 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12410 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12411 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
12412 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
12413
12414 2018-05-11 Florian Weimer <fweimer@redhat.com>
12415
12416 Use 64-bit epoch values in the time zone file parser.
12417 * include/time.h (internal_time_t): Define.
12418 (__tzfile_compute): Use it.
12419 * time/tzfile.c (struct leap): Use internal_time_t for epoch
12420 member.
12421 (transitions): Switch to internal_time_t.
12422 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
12423 types.
12424 (__tzfile_compute): Use internal_time_t for timer argument. Check
12425 for truncation before calling __offtime.
12426
12427 2018-05-11 Florian Weimer <fweimer@redhat.com>
12428
12429 [BZ #23166]
12430 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
12431 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
12432 Likewise.
12433 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
12434 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
12435 export without --enable-obsolete-rpc.
12436 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
12437 symbol. This should not have been exported, ever.
12438
12439 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
12440
12441 [BZ #23152]
12442 * localedata/locales/gd_GB (abmon): Fix typo in May:
12443 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
12444
12445 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
12446
12447 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
12448 Use multiple registers to copy data in loop tail.
12449
12450 * sysdeps/aarch64/multiarch/memmove_falkor.S
12451 (__memmove_falkor): Use multiple registers to move data in
12452 loop tail.
12453
12454 2018-05-10 Joseph Myers <joseph@codesourcery.com>
12455
12456 * math/math-underflow.h: New file.
12457 * sysdeps/generic/math_private.h: Do not include <float.h>.
12458 (fabs_tg): Remove macro. Moved to math-underflow.h.
12459 (min_of_type_f): Likewise.
12460 (min_of_type_): Likewise.
12461 (min_of_type_l): Likewise.
12462 (min_of_type_f128): Likewise.
12463 (min_of_type): Likewise.
12464 (math_check_force_underflow): Likewise.
12465 (math_check_force_underflow_nonneg): Likewise.
12466 (math_check_force_underflow_complex): Likewise.
12467 * math/e_exp2_template.c: Include <math-underflow.h>.
12468 * math/k_casinh_template.c: Likewise.
12469 * math/s_catan_template.c: Likewise.
12470 * math/s_catanh_template.c: Likewise.
12471 * math/s_ccosh_template.c: Likewise.
12472 * math/s_cexp_template.c: Likewise.
12473 * math/s_clog10_template.c: Likewise.
12474 * math/s_clog_template.c: Likewise.
12475 * math/s_csin_template.c: Likewise.
12476 * math/s_csinh_template.c: Likewise.
12477 * math/s_csqrt_template.c: Likewise.
12478 * math/s_ctan_template.c: Likewise.
12479 * math/s_ctanh_template.c: Likewise.
12480 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
12481 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12482 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12483 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12484 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12485 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12486 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12487 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12488 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12489 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12490 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12491 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12492 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12493 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12494 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12495 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12496 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12497 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12498 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12499 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12500 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12501 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12502 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12503 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12504 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12505 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12506 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
12507 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12508 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12509 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12510 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12511 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12512 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12513 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12514 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12515 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
12516 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12517 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12518 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12519 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12520 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
12521 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
12522 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12523 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12524 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
12525 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12526 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
12527 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
12528 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12529 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12530 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
12531 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
12532 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
12533 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
12534 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12535 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
12536 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12537 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
12538 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
12539 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12540 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12541 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
12542 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12543 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
12544 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12545 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12546 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12547 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
12548 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12549 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
12550 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12551 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
12552 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
12553 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
12554 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12555 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12556 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12557 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
12558 * sysdeps/x86/fpu/powl_helper.c: Likewise.
12559 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
12560 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
12561 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
12562 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
12563 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
12564
12565 2018-05-09 Joseph Myers <joseph@codesourcery.com>
12566
12567 * sysdeps/generic/math-barriers.h: New file.
12568 * sysdeps/generic/math_private.h [!math_opt_barrier]
12569 (math_opt_barrier): Move to math-barriers.h.
12570 [!math_opt_barrier] (math_force_eval): Likewise.
12571 * sysdeps/aarch64/fpu/math-barriers.h: New file.
12572 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
12573 math-barriers.h.
12574 (math_force_eval): Likewise.
12575 * sysdeps/alpha/fpu/math-barriers.h: New file.
12576 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
12577 math-barriers.h.
12578 (math_force_eval): Likewise.
12579 * sysdeps/x86/fpu/math-barriers.h: New file.
12580 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
12581 math-barriers.h.
12582 (math_force_eval): Likewise.
12583 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
12584 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
12585 multiple-include guard for rename.
12586 * sysdeps/powerpc/fpu/math-barriers.h: New file.
12587 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
12588 math-barriers.h.
12589 (math_force_eval): Likewise.
12590
12591 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
12592
12593 [BZ #22786]
12594 CVE-2018-11236
12595 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
12596 computation.
12597 * stdlib/Makefile (test-bz22786): New test.
12598 * stdlib/test-bz22786.c: New test.
12599
12600 2018-05-09 Joseph Myers <joseph@codesourcery.com>
12601
12602 * include/math-narrow-eval.h: New file. Contents moved from ....
12603 * sysdeps/generic/math_private.h: ... here.
12604 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
12605 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
12606 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
12607 * stdlib/strtod_l.c: Likewise.
12608 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
12609 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
12610 * sysdeps/i386/fpu/s_fdim.c: Likewise.
12611 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12612 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12613 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12614 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12615 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
12616 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12617 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
12618 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12619 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
12620 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12621 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12622 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12623 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12624 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
12625 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
12626 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12627 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12628 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12629 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12630 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12631 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12632 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
12633 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12634 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12635 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12636 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
12637
12638 2018-05-08 Andreas Schwab <schwab@suse.de>
12639
12640 * sysdeps/nptl/internaltypes.h: Fix comment.
12641
12642 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
12643
12644 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
12645 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
12646 hidden.
12647
12648 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
12649
12650 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
12651 of I into loop header.
12652 * benchtests/bench-memmove-walk.c
12653 (test_main): Likewise.
12654
12655 2018-05-07 Alexandre Oliva <oliva@gnu.org>
12656
12657 Revert:
12658 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
12659 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
12660
12661 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
12662
12663 [BZ #20419]
12664 * elf/dl-load.c (open_verify): Fix stack overflow.
12665 * elf/Makefile (tst-big-note): New test.
12666 * elf/tst-big-note-lib.S: New.
12667 * elf/tst-big-note.c: New.
12668
12669 2018-05-04 Joseph Myers <joseph@codesourcery.com>
12670
12671 * scripts/abilist.awk: Ignore absolute symbols.
12672 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
12673 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
12674 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
12675 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
12676 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
12677 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
12678 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12679 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
12680 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
12681 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
12682 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
12683 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
12684 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
12685 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
12686 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
12687 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
12688 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
12689 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
12690 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12691 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
12692 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
12693 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
12694 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
12695 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
12696 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
12697 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
12698 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
12699 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
12700 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12701 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
12702 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
12703 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12704 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
12705 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
12706 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
12707 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
12708 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
12709 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
12710 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
12711 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
12712 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
12713 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
12714 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
12715 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
12716 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12717 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
12718 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
12719 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
12720 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
12721 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
12722 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
12723 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
12724 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
12725 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
12726 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12727 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
12728 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
12729 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12730 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
12731 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
12732 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
12733 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
12734 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
12735 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
12736 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
12737 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
12738 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
12739 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
12740 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
12741 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
12742 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12743 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
12744 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
12745 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
12746 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
12747 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
12748 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
12749 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
12750 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
12751 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
12752 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12753 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
12754 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
12755 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12756 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
12757 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
12758 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
12759 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
12760 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
12761 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
12762 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
12763 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
12764 Likewise.
12765 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
12766 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12767 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
12768 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
12769 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12770 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
12771 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
12772 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
12773 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
12774 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
12775 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
12776 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
12777 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
12778 Likewise.
12779 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
12780 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12781 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
12782 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
12783 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12784 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
12785 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
12786 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
12787 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
12788 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
12789 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
12790 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
12791 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
12792 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
12793 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12794 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
12795 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
12796 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12797 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
12798 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
12799 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
12800 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
12801 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
12802 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
12803 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12804 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
12805 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
12806 Likewise.
12807 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
12808 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
12809 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
12810 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
12811 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12812 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
12813 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
12814 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
12815 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
12816 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
12817 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
12818 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
12819 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
12820 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
12821 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
12822 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
12823 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
12824 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
12825 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
12826 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
12827 Likewise.
12828 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
12829 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
12830 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
12831 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12832 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
12833 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
12834 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
12835 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
12836 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
12837 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
12838 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12839 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
12840 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
12841 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12842 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
12843 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
12844 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
12845 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
12846 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12847 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
12848 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
12849 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12850 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
12851 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
12852 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
12853 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
12854 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
12855 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
12856 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
12857 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12858 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
12859 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
12860 Likewise.
12861 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
12862 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
12863 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
12864 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
12865 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
12866 Likewise.
12867 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
12868 Likewise.
12869 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
12870 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
12871 Likewise.
12872 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
12873 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12874 Likewise.
12875 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
12876 Likewise.
12877 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
12878 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
12879 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
12880 Likewise.
12881 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
12882 Likewise.
12883 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
12884 Likewise.
12885 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
12886 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
12887 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
12888 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
12889 Likewise.
12890 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
12891 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
12892 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
12893 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12894 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12895 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
12896 Likewise.
12897 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
12898 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
12899 Likewise.
12900 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
12901 Likewise.
12902 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
12903 Likewise.
12904 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
12905 Likewise.
12906 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
12907 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
12908 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
12909 Likewise.
12910 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
12911 Likewise.
12912 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
12913 Likewise.
12914 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
12915 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
12916 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
12917 Likewise.
12918 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
12919 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
12920 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
12921 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
12922 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12923 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
12924 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
12925 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
12926 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
12927 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
12928 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
12929 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
12930 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
12931 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
12932 Likewise.
12933 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12934 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
12935 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
12936 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12937 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
12938 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
12939 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
12940 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
12941 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
12942 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
12943 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
12944 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
12945 Likewise.
12946 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12947 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
12948 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
12949 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12950 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
12951 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
12952 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
12953 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
12954 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
12955 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
12956 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
12957 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
12958 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
12959 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12960 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
12961 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
12962 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12963 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
12964 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
12965 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
12966 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
12967 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
12968 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
12969 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
12970 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
12971 Likewise.
12972 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
12973 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12974 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
12975 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
12976 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12977 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
12978 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
12979 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
12980 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
12981 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
12982 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
12983 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
12984 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
12985 Likewise.
12986 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
12987 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
12988 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
12989 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
12990 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12991 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
12992 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
12993 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
12994 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
12995 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
12996 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
12997 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
12998 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
12999 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
13000 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
13001 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
13002 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
13003 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13004 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
13005 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
13006 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
13007 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
13008 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
13009 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
13010 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
13011 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
13012 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
13013 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
13014 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
13015 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
13016 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
13017 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13018 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
13019 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
13020 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
13021 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
13022 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
13023 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
13024
13025 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
13026
13027 [BZ #23137]
13028 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
13029 Use atomic_load_acquire to load __tid.
13030
13031 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
13032
13033 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
13034 Restore the pointer into %rdx, after syscall and use %rdx,
13035 instead of %rsi, to restore context.
13036
13037 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
13038
13039 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
13040 Pop the pointer into %rdx after syscall and use %rdx, instead
13041 of %rsi, to restore context.
13042
13043 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
13044
13045 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
13046 handlers after setjmp.
13047 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
13048 defined.
13049 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
13050 <libc-pointer-arith.h>.
13051 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
13052 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
13053 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
13054 _JUMP_BUF_SIGSET_BITS_PER_WORD.
13055 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
13056 * sysdeps/x86/__longjmp_cancel.S: New file.
13057 * sysdeps/x86/longjmp.c: Likewise.
13058 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
13059
13060 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13061
13062 * NEWS: Add ustat.h deprecation entry.
13063 * bits/ustat.h: Remove file.
13064 * misc/sys/ustat.h: Likewise.
13065 * misc/ustat.h: Likewise.
13066 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
13067 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
13068 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
13069 compatibility mode.
13070 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
13071 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
13072 generic Linux implementation.
13073
13074 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13075
13076 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
13077 * math/w_expl_compat.c: Likewise.
13078 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
13079
13080 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
13081
13082 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
13083
13084 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13085
13086 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
13087 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
13088 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
13089 Remove.
13090 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
13091 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
13092 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
13093 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
13094 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
13095 and SYSCALL_LL64.
13096
13097 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13098
13099 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
13100
13101 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
13102 * math/w_asin_template.c: Likewise.
13103 * math/w_atanh_template.c: Likewise.
13104
13105 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
13106
13107 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
13108 to powerpc/powerpc64/be for big-endian.
13109 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
13110 little-endian.
13111
13112 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
13113 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
13114 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
13115 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
13116 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
13117 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
13118 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
13119 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
13120 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
13121 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
13122 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
13123 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
13124 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
13125 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
13126 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
13127 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
13128 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
13129 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
13130 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
13131 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
13132 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
13133 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
13134 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
13135 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
13136 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
13137 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
13138 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
13139 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
13140 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
13141 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
13142 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
13143 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
13144
13145 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
13146 adjusted to imply powerpc64 and older processors on powerpc64/be.
13147 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
13148 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
13149 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
13150 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
13151 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
13152 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
13153 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
13154 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
13155 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
13156 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
13157 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
13158 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
13159 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
13160 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
13161 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
13162 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
13163 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
13164 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
13165 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
13166 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
13167 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
13168 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
13169 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
13170 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
13171 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
13172 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
13173 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
13174 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
13175 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
13176 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
13177 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
13178
13179 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
13180 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
13181 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
13182 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
13183
13184 * sysdeps/powerpc/powerpc64/be/Implies: New file.
13185 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
13186 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
13187 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
13188
13189 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
13190 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
13191 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
13192 * sysdeps/powerpc/powerpc64le/configure: Likewise.
13193 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
13194 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
13195 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
13196 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
13197 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
13198 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
13199 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
13200
13201 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
13202 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
13203 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
13204 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
13205 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
13206 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
13207 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
13208 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
13209 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
13210 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
13211 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
13212
13213 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
13214 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
13215 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
13216 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
13217 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
13218 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
13219 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
13220 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
13221 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
13222 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
13223 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
13224 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
13225
13226 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
13227 and adjusted to imply olders processors.
13228 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
13229 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
13230 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
13231 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
13232 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
13233 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
13234 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
13235 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
13236 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
13237 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
13238 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
13239
13240 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
13241 powerpc64/le.
13242 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
13243 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
13244
13245 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
13246 powerpc64le.
13247 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
13248 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
13249
13250 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
13251 powerpc64/be.
13252 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
13253 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
13254 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
13255
13256 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
13257 powerpc64 and adjusted.
13258 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
13259 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
13260 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
13261 Likewise.
13262
13263 2018-04-27 Joseph Myers <joseph@codesourcery.com>
13264
13265 * sysdeps/tile: Remove.
13266 * sysdeps/unix/sysv/linux/tile: Likewise.
13267 * README (tilegx-*-linux-gnu): Remove from list of supported
13268 configurations.
13269 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
13270 contribution of support for generic Linux kernel syscall
13271 interface.
13272 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
13273 tilegx configurations.
13274 (Config.install_linux_headers): Do not handle tile.
13275 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
13276 in comment.
13277 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
13278 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
13279 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
13280 conditional undefine and redefine.
13281 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
13282 in comment.
13283 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
13284 conditional undefine and redefine.
13285
13286 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
13287
13288 * signal/tst-sigaction.c: New file to test BZ #23069.
13289 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
13290
13291 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13292
13293 [BZ #22766]
13294 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
13295 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
13296 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
13297 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
13298
13299 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13300
13301 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
13302 _DIRENT_MATCHES_DIRENT64 is not defined.
13303 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
13304 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
13305 is defined.
13306 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
13307 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
13308
13309 2018-04-25 Joseph Myers <joseph@codesourcery.com>
13310
13311 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
13312 version to GCC 8 branch.
13313
13314 2018-04-24 Joseph Myers <joseph@codesourcery.com>
13315
13316 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
13317 (check_no_hidden): Use type of original function when declaring
13318 alias.
13319
13320 * sysdeps/unix/sysv/linux/sys/ptrace.h
13321 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
13322 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
13323 (struct __ptrace_seccomp_metadata): New type.
13324 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
13325 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13326 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
13327 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13328 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
13329 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13330 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
13331 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13332 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
13333 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13334 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
13335 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13336 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
13337 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13338 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
13339 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13340
13341 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13342
13343 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
13344 defined.
13345 * dirent/versionsort.c (versionsort): Likewise.
13346 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
13347 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
13348 * dirent/versionsort64.c (versionsort64): Likewise.
13349 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
13350 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
13351 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
13352 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
13353 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
13354 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
13355 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
13356 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
13357 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
13358 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
13359 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
13360 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
13361 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
13362 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
13363
13364 2018-04-23 Joseph Myers <joseph@codesourcery.com>
13365
13366 * elf/elf.h (NT_PPC_PKEY): New macro.
13367
13368 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
13369
13370 [BZ #23094]
13371 * localedata/locales/hr_HR: fix thousands_sep and
13372 mon_thousands_sep
13373
13374 2018-04-20 Joseph Myers <joseph@codesourcery.com>
13375
13376 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
13377 (XTABS): Define to TAB3.
13378
13379 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13380
13381 * sysdeps/hppa/fpu/libm-test-ulps: Update.
13382
13383 * dirent/scandir-tail-common.c: New file.
13384 * dirent/scandir-tail.c: Use scandir-tail-common.c.
13385 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
13386 * dirent/scandir.c: Use scandir-tail-common.c.
13387 * dirent/scandirat.c: Likewise.
13388 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
13389 * dirent/scandir64.c (scandir64): Always build and alias to scandir
13390 if _DIRENT_MATCHES_DIRENT64 is defined.
13391 * dirent/scandirat64.c (scandirat64): Likewise.
13392 * include/dirent.h (__scandir_tail): Only define iff
13393 _DIRENT_MATCHES_DIRENT64 is not defined.
13394 (__scandir64_tail): Define regardless.
13395 (__scandirat, scandirat64): Remove libc_hidden_proto.
13396 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
13397 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
13398 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
13399 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
13400 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
13401 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
13402 * sysdeps/unix/sysv/linux/scandir64.c: New file.
13403
13404 2018-04-20 Joseph Myers <joseph@codesourcery.com>
13405
13406 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
13407 New macro.
13408 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
13409 Increase to 24.
13410 (_dl_aarch64_cap_flags): Add asimdfhm.
13411
13412 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
13413
13414 * sysdeps/nios2/libm-test-ulps: Update.
13415
13416 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13417
13418 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
13419 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
13420
13421 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
13422 requirements.
13423 (_DIRENT_MATCHES_DIRENT64): Undef
13424 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
13425 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
13426 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
13427 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
13428 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
13429 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
13430 use getdents64 syscalls as base.
13431 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
13432 symbol if required.
13433 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
13434 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
13435 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
13436 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
13437 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
13438 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
13439 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
13440 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
13441 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13442 (__get_clockfreq_via_proc_openprom): Use __getdents64.
13443 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
13444
13445 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
13446
13447 * scripts/test_printers_common.py (init_test): Disable lock elision.
13448
13449 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
13450
13451 * math/test-tgmath.c (count_double, count_float,
13452 count_ldouble, count_cdouble, count_cfloat,
13453 count_cldouble): Use volatile int.
13454
13455 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
13456
13457 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
13458 (conformtest-xfail-conds): Add i386-gnu.
13459 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
13460 i386-gnu.
13461 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
13462 ipc_perm.cuid, ipc_perm.cgid): Likewise.
13463 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
13464 msqid_ds.msg_lrpid): Likewise.
13465 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
13466 Likewise.
13467 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
13468 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
13469 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
13470 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
13471 unsigned int.
13472 (struct statvfs64): Likewise.
13473 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
13474 Likewise.
13475 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
13476 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
13477 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
13478 instead of wait_queue.
13479 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
13480 instead of vm_area_struct.
13481 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
13482 struct sched_param definition to it.
13483 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
13484 * bits/types/struct_sched_param.h: New file.
13485 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
13486 <bits/types/struct_sched_param.h> instead of <sched.h>.
13487 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
13488 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
13489 generic version but include <bits/pthreadtypes.h> to make struct
13490 sigevent's sigev_notify_attributes field a pthread_attr_t*.
13491 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
13492 non-compliant.
13493 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
13494 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
13495 [__USE_XOPEN] (OFDEL): New macro.
13496 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
13497 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
13498 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
13499 prototypes.
13500 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
13501 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
13502 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
13503 non-compliant.
13504 * sysdeps/i386/sys/ucontext.h: Likewise.
13505 * sysdeps/m68k/sys/ucontext.h: Likewise.
13506 * sysdeps/mips/sys/ucontext.h: Likewise.
13507 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
13508 * sysdeps/mach/hurd/i386/Makefile
13509 (test-xfail-POSIX/fcntl.h/conform): Add.
13510 (test-xfail-POSIX/signal.h/conform): Add.
13511 (test-xfail-POSIX/semaphore.h/conform): Add.
13512 (test-xfail-POSIX/regex.h/conform): Add.
13513 (test-xfail-POSIX/aio.h/conform): Add.
13514 (test-xfail-POSIX/mqueue.h/conform): Add.
13515 (test-xfail-POSIX/sys/types.h/conform): Add.
13516 (test-xfail-UNIX98/fcntl.h/conform): Add.
13517 (test-xfail-UNIX98/netdb.h/conform): Add.
13518 (test-xfail-UNIX98/signal.h/conform): Add.
13519 (test-xfail-UNIX98/semaphore.h/conform): Add.
13520 (test-xfail-UNIX98/regex.h/conform): Add.
13521 (test-xfail-UNIX98/aio.h/conform): Add.
13522 (test-xfail-UNIX98/ftw.h/conform): Add.
13523 (test-xfail-UNIX98/mqueue.h/conform): Add.
13524 (test-xfail-UNIX98/netinet/in.h/conform): Add.
13525 (test-xfail-UNIX98/sys/wait.h/conform): Add.
13526 (test-xfail-UNIX98/sys/sem.h/conform): Add.
13527 (test-xfail-UNIX98/sys/uio.h/conform): Add.
13528 (test-xfail-UNIX98/sys/socket.h/conform): Add.
13529 (test-xfail-UNIX98/sys/types.h/conform): Add.
13530 (test-xfail-UNIX98/stdlib.h/conform): Add.
13531 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
13532 (test-xfail-POSIX2008/fcntl.h/conform): Add.
13533 (test-xfail-POSIX2008/netdb.h/conform): Add.
13534 (test-xfail-POSIX2008/signal.h/conform): Add.
13535 (test-xfail-POSIX2008/semaphore.h/conform): Add.
13536 (test-xfail-POSIX2008/regex.h/conform): Add.
13537 (test-xfail-POSIX2008/aio.h/conform): Add.
13538 (test-xfail-POSIX2008/mqueue.h/conform): Add.
13539 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
13540 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
13541 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
13542 (test-xfail-POSIX2008/sys/types.h/conform): Add.
13543 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
13544 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
13545 (test-xfail-XOPEN2K/netdb.h/conform): Add.
13546 (test-xfail-XOPEN2K/signal.h/conform): Add.
13547 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
13548 (test-xfail-XOPEN2K/regex.h/conform): Add.
13549 (test-xfail-XOPEN2K/aio.h/conform): Add.
13550 (test-xfail-XOPEN2K/ftw.h/conform): Add.
13551 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
13552 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
13553 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
13554 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
13555 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
13556 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
13557 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
13558 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
13559 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
13560 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
13561 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
13562 (test-xfail-XOPEN2K8/signal.h/conform): Add.
13563 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
13564 (test-xfail-XOPEN2K8/regex.h/conform): Add.
13565 (test-xfail-XOPEN2K8/aio.h/conform): Add.
13566 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
13567 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
13568 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
13569 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
13570 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
13571 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
13572 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
13573 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
13574 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
13575 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
13576 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
13577 i386-gnu.
13578 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
13579 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
13580
13581 2018-04-18 Joseph Myers <joseph@codesourcery.com>
13582
13583 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
13584 --enable-obsolete for powerpc-linux-gnuspe.
13585
13586 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
13587
13588 * conform/data/sys/un.h-data: Allow sun_ prefix.
13589 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
13590 prototypes.
13591 * sysdeps/mach/include/mach.h: Likewise.
13592 * sysdeps/mach/include/mach/mig_support.h: Likewise.
13593 * sysdeps/mach/include/mach_error.h: Likewise.
13594
13595 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13596
13597 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
13598 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
13599 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
13600 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
13601
13602 2018-04-16 Andreas Schwab <schwab@suse.de>
13603
13604 [BZ #19527]
13605 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
13606
13607 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
13608
13609 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
13610 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
13611
13612 2018-04-12 DJ Delorie <dj@redhat.com>
13613
13614 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13615 version to 4.16.
13616
13617 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
13618
13619 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
13620 (struct kernel_sigaction): Use the same definition on 31bit as is used
13621 on 64bit.
13622
13623 2018-04-09 Florian Weimer <fweimer@redhat.com>
13624
13625 [BZ #23037]
13626 * resolv/res_send.c (send_dg): Use designated initializers instead
13627 of assignment to zero-initialize other fields of struct mmsghdr.
13628
13629 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13630
13631 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
13632 __READDIR_ALIAS): Undefine after usage.
13633 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
13634 __READDIR_R_ALIAS): Likewise.
13635 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
13636 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
13637 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
13638 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
13639 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
13640 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
13641 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
13642 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
13643 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
13644 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
13645 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
13646 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
13647 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
13648 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
13649 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
13650 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
13651 * sysdeps/unix/sysv/linux/readdir.c: New file.
13652 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
13653 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
13654 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
13655
13656 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
13657
13658 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
13659
13660 * manual/charset.texi (Converting a Character): Fix typo.
13661
13662 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13663
13664 * sysdeps/sparc/fpu/libm-test-ulps: Update.
13665
13666 * sysdeps/arm/libm-test-ulps: Update.
13667
13668 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
13669 as base implementation.
13670 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
13671 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
13672 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
13673 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
13674 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
13675 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
13676 remove unrequired definitions and update comments.
13677 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
13678 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
13679 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
13680 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
13681 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
13682 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
13683 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
13684 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
13685 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
13686 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
13687 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
13688 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
13689 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
13690 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
13691 and RESET_SA_RESTORER hooks.
13692
13693 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
13694
13695 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
13696
13697 2018-04-05 Florian Weimer <fweimer@redhat.com>
13698
13699 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
13700 integer overflow, memory leak on error, and indeterminate errno
13701 value. Add a null wide character to terminate the result string.
13702 * manual/charset.texi (Converting a Character): Mention embedded
13703 null bytes in the mbrtowc input string. Explain what happens in
13704 the -2 result case. Do not claim that mbrtowc is simple or
13705 obvious to use. Adjust the description of the code example. Use
13706 @code, not @var, for concrete variables.
13707
13708 2018-04-05 Florian Weimer <fweimer@redhat.com>
13709
13710 * manual/examples/mbstouwcs.c: New file.
13711 * manual/charset.texi (Converting a Character): Include it.
13712
13713 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
13714
13715 * include/dirent.h (dirfd): Add hidden proto.
13716 * dirent/dirfd.c (dirfd): Add hidden def.
13717 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
13718 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
13719
13720 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13721
13722 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
13723 sin, cos and sincos to 1 ULP.
13724
13725 2018-04-04 Maciej W. Rozycki <macro@mips.com>
13726
13727 [BZ #19818]
13728 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
13729 symbols.
13730 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
13731 * elf/tst-absolute-sym.c: New file.
13732 * elf/tst-absolute-sym-lib.c: New file.
13733 * elf/tst-absolute-sym-lib.lds: New file.
13734 * elf/Makefile (tests): Add `tst-absolute-sym'.
13735 (modules-names): Add `tst-absolute-sym-lib'.
13736 (LDLIBS-tst-absolute-sym-lib.so): New variable.
13737 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
13738 ($(objpfx)tst-absolute-sym): New dependency.
13739
13740 [BZ #19818]
13741 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
13742 parameter.
13743 (SYMBOL_ADDRESS): New macro.
13744 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
13745 SYMBOL_ADDRESS for symbol address calculation.
13746 * elf/dl-runtime.c (_dl_fixup): Likewise.
13747 (_dl_profile_fixup): Likewise.
13748 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
13749 * elf/rtld.c (dl_main): Likewise.
13750 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
13751 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
13752 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
13753 (elf_machine_rela): Likewise.
13754 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
13755 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
13756 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
13757 (elf_machine_rela): Likewise.
13758 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
13759 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
13760 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
13761 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
13762 Likewise.
13763 (elf_machine_reloc): Likewise.
13764 (elf_machine_got_rel): Likewise.
13765 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
13766 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
13767 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
13768 Likewise.
13769 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
13770 Likewise.
13771 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
13772 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
13773 Likewise.
13774 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
13775 Likewise.
13776 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
13777 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
13778 Likewise.
13779 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13780 Likewise.
13781 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
13782 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
13783
13784 2018-04-04 Zack Weinberg <zackw@panix.com>
13785
13786 * sysdeps/generic/internal-signals.h: Include signal.h,
13787 sigsetops.h, and stdbool.h.
13788 (__libc_signal_block_all): Actually block all signals.
13789 (__libc_signal_block_app): Likewise.
13790 (__libc_signal_restore_set): Actually restore the signal mask.
13791
13792 2018-04-04 Florian Weimer <fweimer@redhat.com>
13793
13794 inet: Actually build and run tst-deadline.
13795 * inet/Makefile (tests-internal): Add tst-deadline and do not
13796 overwrite the variable.
13797 (tests-static-internal): Remove variable.
13798
13799 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
13800
13801 [BZ #22947]
13802 * bits/uio-ext.h (RWF_APPEND): New.
13803 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
13804 * manual/llio.texi: Document RWF_APPEND.
13805 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
13806 (RWF_SUPPORTED): Add RWF_APPEND.
13807
13808 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13809
13810 [BZ #22391]
13811 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
13812 check for internal nptl signals.
13813 * nptl/sigaction.c (__sigaction): Likewise.
13814 * signal/sigaddset.c (sigaddset): Likewise.
13815 * signal/sigdelset.c (sigdelset): Likewise.
13816 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
13817 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
13818 value.
13819 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
13820 to filter out internal nptl signals.
13821 * signal/tst-sigset.c (do_test): Check ech signal indidually and
13822 also check realtime signals using standard macros.
13823 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
13824 __is_internal_signal, __libc_signal_block_all,
13825 __libc_signal_block_app, __libc_signal_restore_set): New functions.
13826 * sysdeps/nptl/sigfillset.c: Remove file.
13827 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
13828 Change return to bool.
13829 (__clear_internal_signals): Remove SIGTIMER clean since it is
13830 equal to SIGCANEL on Linux.
13831 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
13832 signal set was constructed using standard functions.
13833
13834 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
13835
13836 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
13837 ifname is too long.
13838 * hurd/hurdsig.c (interrupted_reply_port_location): Use
13839 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
13840 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
13841 hidden def.
13842 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
13843 * signal/sigaddset.c: Include <sigsetopts.h>.
13844 * signal/sigdelset.c: Likewise.
13845
13846 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13847
13848 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
13849 (__cos): Likewise.
13850 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
13851 logic as sin and cos.
13852
13853 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13854
13855 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
13856 inputs. Return correct sign.
13857 (do_sincos): Remove small input check before do_sin, let do_sin set
13858 the sign.
13859 (__sin): Likewise.
13860 (__cos): Likewise.
13861
13862 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13863
13864 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
13865 (do_cos_slow): Likewise.
13866 (do_sin_slow): Likewise.
13867 (reduce_and_compute): Likewise.
13868 (slow): Likewise.
13869 (slow1): Likewise.
13870 (slow2): Likewise.
13871 (sloww): Likewise.
13872 (sloww1): Likewise.
13873 (sloww2): Likewise.
13874 (bslow): Likewise.
13875 (bslow1): Likewise.
13876 (bslow2): Likewise.
13877 (cslow2): Likewise.
13878
13879 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13880
13881 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
13882 (do_cos): Remove corp parameter and calculations.
13883 (do_sin): Likewise.
13884 (do_sincos): Remove cor variable.
13885 (__sin): Use do_sincos for huge inputs.
13886 (__cos): Likewise.
13887 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13888 (reduce_and_compute_sincos): Remove unused function.
13889
13890 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13891
13892 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
13893 reduce_sincos, improve accuracy to 136 bits.
13894 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
13895 (__sin): Use improved reduction and simplified do_sincos calculation.
13896 (__cos): Likewise.
13897 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13898
13899 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13900
13901 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
13902 (do_sincos_2): Likewise.
13903 (__sin): Remove middle range reduction case.
13904 (__cos): Likewise.
13905 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
13906 reduction case.
13907
13908 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13909
13910 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
13911 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
13912 inputs.
13913 (__cos): Likewise.
13914 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
13915
13916 2018-04-03 Joseph Myers <joseph@codesourcery.com>
13917
13918 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13919 version to 4.16
13920
13921 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13922
13923 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
13924 Remove definitions.
13925 (opendir_oflags): Use O_DIRECTORY regardless.
13926 (__opendir, __opendirat): Remove need_isdir_precheck usage.
13927 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
13928
13929 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13930
13931 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
13932 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
13933 macros.
13934 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
13935 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
13936 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
13937 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
13938 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
13939 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
13940
13941 * htl/Makefile: Bump licence to LGPL 2.1+.
13942 * htl/alloca_cutoff.c: Likewise.
13943 * htl/cthreads-compat.c: Likewise.
13944 * htl/lockfile.c: Likewise.
13945 * htl/pt-alloc.c: Likewise.
13946 * htl/pt-cancel.c: Likewise.
13947 * htl/pt-cleanup.c: Likewise.
13948 * htl/pt-create.c: Likewise.
13949 * htl/pt-dealloc.c: Likewise.
13950 * htl/pt-detach.c: Likewise.
13951 * htl/pt-exit.c: Likewise.
13952 * htl/pt-getattr.c: Likewise.
13953 * htl/pt-initialize.c: Likewise.
13954 * htl/pt-internal.h: Likewise.
13955 * htl/pt-join.c: Likewise.
13956 * htl/pt-self.c: Likewise.
13957 * htl/pt-setcancelstate.c: Likewise.
13958 * htl/pt-setcanceltype.c: Likewise.
13959 * htl/pt-sigmask.c: Likewise.
13960 * htl/pt-spin-inlines.c: Likewise.
13961 * htl/pt-testcancel.c: Likewise.
13962 * htl/pt-yield.c: Likewise.
13963 * htl/tests/test-1.c: Likewise.
13964 * htl/tests/test-10.c: Likewise.
13965 * htl/tests/test-11.c: Likewise.
13966 * htl/tests/test-12.c: Likewise.
13967 * htl/tests/test-13.c: Likewise.
13968 * htl/tests/test-14.c: Likewise.
13969 * htl/tests/test-15.c: Likewise.
13970 * htl/tests/test-16.c: Likewise.
13971 * htl/tests/test-17.c: Likewise.
13972 * htl/tests/test-2.c: Likewise.
13973 * htl/tests/test-3.c: Likewise.
13974 * htl/tests/test-4.c: Likewise.
13975 * htl/tests/test-5.c: Likewise.
13976 * htl/tests/test-6.c: Likewise.
13977 * htl/tests/test-7.c: Likewise.
13978 * htl/tests/test-8.c: Likewise.
13979 * htl/tests/test-9.c: Likewise.
13980 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
13981 * sysdeps/htl/bits/cancelation.h: Likewise.
13982 * sysdeps/htl/bits/pthread-np.h: Likewise.
13983 * sysdeps/htl/bits/pthread.h: Likewise.
13984 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
13985 * sysdeps/htl/bits/semaphore.h: Likewise.
13986 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
13987 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
13988 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
13989 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
13990 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
13991 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
13992 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
13993 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
13994 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
13995 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
13996 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
13997 * sysdeps/htl/old_pt-atfork.c: Likewise.
13998 * sysdeps/htl/pt-atfork.c: Likewise.
13999 * sysdeps/htl/pt-attr-destroy.c: Likewise.
14000 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
14001 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
14002 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
14003 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
14004 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
14005 * sysdeps/htl/pt-attr-getscope.c: Likewise.
14006 * sysdeps/htl/pt-attr-getstack.c: Likewise.
14007 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
14008 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
14009 * sysdeps/htl/pt-attr-init.c: Likewise.
14010 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
14011 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
14012 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
14013 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
14014 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
14015 * sysdeps/htl/pt-attr-setscope.c: Likewise.
14016 * sysdeps/htl/pt-attr-setstack.c: Likewise.
14017 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
14018 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
14019 * sysdeps/htl/pt-attr.c: Likewise.
14020 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
14021 * sysdeps/htl/pt-barrier-init.c: Likewise.
14022 * sysdeps/htl/pt-barrier-wait.c: Likewise.
14023 * sysdeps/htl/pt-barrier.c: Likewise.
14024 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
14025 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
14026 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
14027 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
14028 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
14029 * sysdeps/htl/pt-cond-destroy.c: Likewise.
14030 * sysdeps/htl/pt-cond-init.c: Likewise.
14031 * sysdeps/htl/pt-cond-signal.c: Likewise.
14032 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
14033 * sysdeps/htl/pt-cond-wait.c: Likewise.
14034 * sysdeps/htl/pt-cond.c: Likewise.
14035 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
14036 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
14037 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
14038 * sysdeps/htl/pt-condattr-init.c: Likewise.
14039 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
14040 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
14041 * sysdeps/htl/pt-destroy-specific.c: Likewise.
14042 * sysdeps/htl/pt-equal.c: Likewise.
14043 * sysdeps/htl/pt-getconcurrency.c: Likewise.
14044 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
14045 * sysdeps/htl/pt-getschedparam.c: Likewise.
14046 * sysdeps/htl/pt-getspecific.c: Likewise.
14047 * sysdeps/htl/pt-init-specific.c: Likewise.
14048 * sysdeps/htl/pt-key-create.c: Likewise.
14049 * sysdeps/htl/pt-key-delete.c: Likewise.
14050 * sysdeps/htl/pt-key.h: Likewise.
14051 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
14052 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
14053 * sysdeps/htl/pt-mutex-init.c: Likewise.
14054 * sysdeps/htl/pt-mutex-lock.c: Likewise.
14055 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
14056 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
14057 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
14058 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
14059 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
14060 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
14061 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
14062 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
14063 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
14064 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
14065 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
14066 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
14067 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
14068 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
14069 * sysdeps/htl/pt-mutexattr.c: Likewise.
14070 * sysdeps/htl/pt-once.c: Likewise.
14071 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
14072 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
14073 * sysdeps/htl/pt-rwlock-init.c: Likewise.
14074 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
14075 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
14076 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
14077 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
14078 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
14079 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
14080 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
14081 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
14082 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
14083 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
14084 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
14085 * sysdeps/htl/pt-setconcurrency.c: Likewise.
14086 * sysdeps/htl/pt-setschedparam.c: Likewise.
14087 * sysdeps/htl/pt-setschedprio.c: Likewise.
14088 * sysdeps/htl/pt-setspecific.c: Likewise.
14089 * sysdeps/htl/pt-spin.c: Likewise.
14090 * sysdeps/htl/pt-startup.c: Likewise.
14091 * sysdeps/htl/pthread.h: Likewise.
14092 * sysdeps/htl/sem-close.c: Likewise.
14093 * sysdeps/htl/sem-destroy.c: Likewise.
14094 * sysdeps/htl/sem-getvalue.c: Likewise.
14095 * sysdeps/htl/sem-init.c: Likewise.
14096 * sysdeps/htl/sem-open.c: Likewise.
14097 * sysdeps/htl/sem-post.c: Likewise.
14098 * sysdeps/htl/sem-timedwait.c: Likewise.
14099 * sysdeps/htl/sem-trywait.c: Likewise.
14100 * sysdeps/htl/sem-unlink.c: Likewise.
14101 * sysdeps/htl/sem-wait.c: Likewise.
14102 * sysdeps/hurd/htl/pt-kill.c: Likewise.
14103 * sysdeps/i386/htl/pt-machdep.h: Likewise.
14104 * sysdeps/mach/htl/pt-block.c: Likewise.
14105 * sysdeps/mach/htl/pt-spin.c: Likewise.
14106 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
14107 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
14108 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
14109 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
14110 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
14111 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
14112 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
14113 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
14114 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
14115 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
14116 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
14117 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
14118 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
14119 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
14120 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
14121 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
14122 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
14123 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
14124 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
14125 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
14126 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
14127 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
14128 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
14129 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
14130 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
14131 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
14132 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
14133 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
14134 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
14135 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
14136 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
14137 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
14138 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
14139 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
14140 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
14141 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
14142 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
14143 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
14144 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
14145 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
14146 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
14147 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
14148 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
14149
14150 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
14151 * README: Remove the mention of out-of-tree patches needed for
14152 GNU/Hurd.
14153
14154 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
14155 (UTIME_NOW, UTIME_OMIT): Define macros.
14156
14157 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
14158 instead of pthread_detach.
14159 (__cthread_fork): Call __pthread_create instead of pthread_create.
14160 (__cthread_keycreate): Call __pthread_key_create instead of
14161 pthread_key_create.
14162 (__cthread_getspecific): Call __pthread_getspecific instead of
14163 pthread_getspecific.
14164 (__cthread_setspecific): Call __pthread_setspecific instead of
14165 pthread_setspecific.
14166 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
14167 __pthread_mutex_unlock instead of pthread_mutex_lock and
14168 pthread_mutex_unlock.
14169 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
14170 ___pthread_get_cleanup_stack.
14171 (__pthread_get_cleanup_stack): New strong alias.
14172 * htl/pt-create.c: Include <pthreadP.h>.
14173 (entry_point): Call __pthread_exit instead of pthread_exit.
14174 (pthread_create): Rename to __pthread_create.
14175 (pthread_create): New strong alias.
14176 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
14177 (pthread_detach): New strong alias.
14178 (__pthread_detach): Call __pthread_cond_broadcast instead of
14179 pthread_cond_broadcast.
14180 * htl/pt-exit.c: Include <pthreadP.h>.
14181 (__pthread_exit): Call __pthread_setcancelstate and
14182 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
14183 __pthread_get_cleanup_stack.
14184 * htl/pt-testcancel.c: Include <pthreadP.h>.
14185 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
14186 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
14187 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
14188 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
14189 pthread_attr_getstacksize.
14190 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
14191 Rename to __pthread_attr_getstackaddr.
14192 (pthread_attr_getstackaddr): New strong alias.
14193 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
14194 Rename to __pthread_attr_getstacksize.
14195 (pthread_attr_getstacksize): New strong alias.
14196 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
14197 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
14198 (pthread_attr_setstack): New strong alias.
14199 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
14200 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
14201 pthread_attr_getstacksize, pthread_attr_setstacksize and
14202 pthread_attr_setstackaddr.
14203 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
14204 Rename to __pthread_attr_setstackaddr.
14205 (pthread_attr_setstackaddr): New strong alias.
14206 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
14207 Rename to __pthread_attr_setstacksize.
14208 (pthread_attr_setstacksize): New strong alias.
14209 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
14210 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
14211 pthread_exit.
14212 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
14213 (__pthread_key_create): New hidden def.
14214 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
14215 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
14216 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
14217 __pthread_exit, __pthread_key_create, __pthread_getspecific,
14218 __pthread_setspecific, __pthread_setcancelstate,
14219 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
14220 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
14221 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
14222 declarations.
14223 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
14224 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
14225 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
14226 (pthread_attr_setstackaddr): New strong alias.
14227 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
14228 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
14229 (pthread_attr_setstacksize): New strong alias.
14230 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
14231 (call_exit): Call __pthread_exit instead of pthread_exit.
14232 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
14233 (_pthread_mutex_init): New hidden definition.
14234 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
14235 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
14236 instead of pthread_attr_init and pthread_attr_setstack.
14237
14238 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
14239 __vm_deallocate instead of vm_allocate and vm_deallocate.
14240 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
14241 setenv.
14242 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
14243 of geteuid.
14244 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
14245 strdup.
14246 * hurd/siginfo.c: Include <libioP.h>.
14247 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
14248 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
14249 munmap.
14250 * mach/devstream.c: Include <libioP.h>.
14251 (dealloc_ref): Call __mach_port_deallocate instead of
14252 mach_port_deallocate.
14253 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
14254 Call __mach_port_deallocate instead of mach_port_deallocate.
14255 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
14256 pathconf.
14257 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
14258 munmap.
14259 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
14260 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
14261 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
14262 of munmap.
14263 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
14264 of close.
14265 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
14266 instead of sysconf.
14267 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
14268 __clock_gettime instead of clock_gettime.
14269 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
14270 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
14271 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
14272 * sysdeps/unix/bsd/stty.c (stty): Likewise.
14273 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
14274 tcgetattr.
14275 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
14276 __clock_gettime and __nanosleep instead of clock_gettime and
14277 nanosleep.
14278 * hurd/catch-signal.c (hurd_catch_signal): Rename to
14279 __hurd_catch_signal.
14280 (hurd_catch_signal): New strong alias.
14281 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
14282 __hurd_catch_signal instead of hurd_catch_signal.
14283 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
14284 * hurd/hurdexec.c (_hurd_init): Add hidden def.
14285 * hurd/hurdinit.c (_hurd_init): Add hidden def.
14286 * hurd/hurdsig.c: Include <mach/mig_support.h>.
14287 (_hurd_thread_sigstate): Add hidden def.
14288 (_hurd_internal_post_signal): Use __mutex_unlock instead of
14289 mutex_unlock.
14290 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
14291 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
14292 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
14293 __hurd_file_name_path_lookup.
14294 (hurd_file_name_path_lookup): New strong alias.
14295 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
14296 hurd_file_name_path_lookup.
14297 * mach/errstring.c (mach_error_type): Add hidden def.
14298 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
14299 * mach/mutex-init.c (__mutex_init): Add hidden def.
14300 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
14301 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
14302 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
14303 * sysdeps/mach/hurd/getcwd.c
14304 (_hurd_canonicalize_directory_name_internal): Rename to
14305 __hurd_canonicalize_directory_name_internal.
14306 (_hurd_canonicalize_directory_name_internal): New strong alias.
14307 (__canonicalize_directory_name_internal, __getcwd): Call
14308 __hurd_canonicalize_directory_name_internal instead of
14309 _hurd_canonicalize_directory_name_internal.
14310 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
14311 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
14312 hidden defs.
14313 * sysdeps/hurd/include/hurd.h: New file.
14314 * sysdeps/hurd/include/hurd/fd.h: New file.
14315 * sysdeps/hurd/include/hurd/signal.h: New file.
14316 * sysdeps/mach/include/lock-intern.h: New file.
14317 * sysdeps/mach/include/mach.h: New file.
14318 * sysdeps/mach/include/mach/mig_support.h: New file.
14319 * sysdeps/mach/include/mach_error.h: New file.
14320 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
14321 prototype.
14322 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
14323 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
14324 _HEADER_H_HIDDEN_DEF macro.
14325 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
14326 _hurd_fd_error_signal): Add hidden prototype.
14327 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
14328 hidden def.
14329 * libio/iolibio.h (_IO_puts): New hidden prototype.
14330 * libio/ioputs.c (_IO_puts): New hidden def.
14331 * sysdeps/mach/hurd/localplt.data: New file.
14332
14333 2018-04-02 Agustina Arzille <avarzille@riseup.net>
14334 Amos Jeffries <squid3@treenet.co.nz>
14335 David Michael <fedora.dm0@gmail.com>
14336 Marco Gerards <marco@gnu.org>
14337 Marcus Brinkmann <marcus@gnu.org>
14338 Neal H. Walfield <neal@gnu.org>
14339 Pino Toscano <toscano.pino@tiscali.it>
14340 Richard Braun <rbraun@sceen.net>
14341 Roland McGrath <roland@gnu.org>
14342 Samuel Thibault <samuel.thibault@ens-lyon.org>
14343 Thomas DiModica <ricinwich@yahoo.com>
14344 Thomas Schwinge <tschwinge@gnu.org>
14345
14346 * htl: New directory.
14347 * sysdeps/htl: New directory.
14348 * sysdeps/hurd/htl: New directory.
14349 * sysdeps/i386/htl: New directory.
14350 * sysdeps/mach/htl: New directory.
14351 * sysdeps/mach/hurd/htl: New directory.
14352 * sysdeps/mach/hurd/i386/htl: New directory.
14353 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
14354 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
14355 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
14356
14357 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
14358
14359 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
14360 signals in thread created for runing timers.
14361
14362 2018-04-01 Florian Weimer <fweimer@redhat.com>
14363
14364 * support/support_format_addrinfo.c (support_format_addrinfo):
14365 Include unknown error number in formatted result.
14366
14367 2018-03-29 Florian Weimer <fweimer@redhat.com>
14368
14369 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
14370 capture SIGBUS.
14371
14372 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14373
14374 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
14375 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
14376 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
14377 (__ASSUME_CLONE_BACKWARDS): Define.
14378
14379 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
14380
14381 [BZ #23024]
14382 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
14383 early when linux sentinel value is set.
14384
14385 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
14386
14387 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
14388
14389 2018-03-27 Andreas Schwab <schwab@suse.de>
14390
14391 [BZ #23005]
14392 * resolv/res_send.c (__res_context_send): Return ENOMEM if
14393 allocation of private copy of nsaddr_list fails.
14394
14395 2018-03-26 Joseph Myers <joseph@codesourcery.com>
14396
14397 [BZ #16552]
14398 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
14399 * sysdeps/unix/sysv/linux/umount.c: ... here.
14400 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
14401 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
14402 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
14403 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
14404 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
14405 * sysdeps/unix/sysv/linux/umount.S: Likewise.
14406 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
14407
14408 2018-03-26 Andreas Schwab <schwab@suse.de>
14409
14410 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
14411 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
14412 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
14413 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
14414 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
14415 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
14416 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
14417 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
14418 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
14419 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
14420 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
14421 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
14422 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
14423 (R_RISCV_NUM): Define.
14424
14425 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
14426
14427 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
14428 TLS declaration of errno.
14429 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
14430 __libc_setup_tls.
14431 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
14432 (ARCH_SETUP_TLS): Likewise.
14433 * sysdeps/mach/hurd/libc-start.h: New file copied from
14434 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
14435 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
14436 instead of __libc_setup_tls.
14437 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
14438 __libc_setup_tls before initializing libpthread and running _hurd_init
14439 which starts the signal thread.
14440 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
14441 Declare function.
14442 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14443
14444 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
14445
14446 [BZ #22998]
14447 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
14448 after it is defined.
14449
14450 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
14451 Max Horn <max@quendi.de>
14452
14453 [BZ #22644]
14454 CVE-2017-18269
14455 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
14456 branch conditions.
14457 * string/test-memmove.c (do_test2): New testcase.
14458
14459 2018-03-22 Joseph Myers <joseph@codesourcery.com>
14460
14461 * sysdeps/generic/frame.h: Remove file.
14462 * sysdeps/arm/frame.h: Likewise.
14463 * sysdeps/hppa/frame.h: Likewise.
14464 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
14465 macro.
14466 (GET_FRAME): Likewise.
14467 (GET_STACK): Likewise.
14468 (CALL_SIGHANDLER): Likewise.
14469 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
14470 Likewise.
14471 (GET_FRAME): Likewise.
14472 (GET_STACK): Likewise.
14473 (CALL_SIGHANDLER): Likewise.
14474 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
14475 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14476 (GET_FRAME): Likewise.
14477 (GET_STACK): Likewise.
14478 (CALL_SIGHANDLER): Likewise.
14479 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
14480 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14481 (GET_FRAME): Likewise.
14482 (GET_STACK): Likewise.
14483 (ADVANCE_STACK_FRAME): Likewise.
14484 (CALL_SIGHANDLER): Likewise.
14485 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
14486 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14487 (GET_FRAME): Likewise.
14488 (GET_STACK): Likewise.
14489 (CALL_SIGHANDLER): Likewise.
14490 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
14491 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14492 (GET_FRAME): Likewise.
14493 (GET_STACK): Likewise.
14494 (CALL_SIGHANDLER): Likewise.
14495 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
14496 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14497 (GET_FRAME): Likewise.
14498 (GET_STACK): Likewise.
14499 (CALL_SIGHANDLER): Likewise.
14500 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
14501 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14502 (GET_FRAME): Likewise.
14503 (GET_STACK): Likewise.
14504 (CALL_SIGHANDLER): Likewise.
14505 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
14506 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14507 (GET_FRAME): Likewise.
14508 (GET_STACK): Likewise.
14509 (CALL_SIGHANDLER): Likewise.
14510 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
14511 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14512 (GET_FRAME): Likewise.
14513 (GET_STACK): Likewise.
14514 (CALL_SIGHANDLER): Likewise.
14515 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
14516 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14517 (GET_FRAME): Likewise.
14518 (GET_STACK): Likewise.
14519 (CALL_SIGHANDLER): Likewise.
14520 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
14521 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14522 (GET_FRAME): Likewise.
14523 (GET_STACK): Likewise.
14524 (CALL_SIGHANDLER): Likewise.
14525 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
14526 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14527 (GET_FRAME): Likewise.
14528 (GET_STACK): Likewise.
14529 (CALL_SIGHANDLER): Likewise.
14530 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
14531 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14532 (FIRST_FRAME_POINTER): Likewise.
14533 (ADVANCE_STACK_FRAME): Likewise.
14534 (GET_STACK): Likewise.
14535 (GET_FRAME): Likewise.
14536 (CALL_SIGHANDLER): Likewise.
14537 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
14538 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14539 (ADVANCE_STACK_FRAME): Likewise.
14540 (GET_STACK): Likewise.
14541 (GET_FRAME): Likewise.
14542 (CALL_SIGHANDLER): Likewise.
14543 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
14544 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14545 (GET_FRAME): Likewise.
14546 (GET_STACK): Likewise.
14547 (CALL_SIGHANDLER): Likewise.
14548 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
14549 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14550 (GET_FRAME): Likewise.
14551 (GET_STACK): Likewise.
14552 (CALL_SIGHANDLER): Likewise.
14553
14554 2018-03-21 Joseph Myers <joseph@codesourcery.com>
14555
14556 * sysdeps/x86_64/backtrace.c: Move to ....
14557 * debug/backtrace.c: ... here.
14558 * sysdeps/aarch64/backtrace.c: Remove file.
14559 * sysdeps/alpha/backtrace.c: Likewise.
14560 * sysdeps/hppa/backtrace.c: Likewise.
14561 * sysdeps/ia64/backtrace.c: Likewise.
14562 * sysdeps/mips/backtrace.c: Likewise.
14563 * sysdeps/nios2/backtrace.c: Likewise.
14564 * sysdeps/riscv/backtrace.c: Likewise.
14565 * sysdeps/sh/backtrace.c: Likewise.
14566 * sysdeps/tile/backtrace.c: Likewise.
14567
14568 2018-03-20 Joseph Myers <joseph@codesourcery.com>
14569
14570 [BZ #22987]
14571 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
14572 function.
14573 (fdimf): Likewise.
14574 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
14575
14576 [BZ #17343]
14577 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
14578 possibly overflowing computations.
14579
14580 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
14581
14582 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
14583 values from Linux-specific section now that it is in the GNU section.
14584 * sysdeps/gnu/errlist.c: Regenerate.
14585
14586 2018-03-20 Joseph Myers <joseph@codesourcery.com>
14587
14588 * math/Makefile (libm-narrow-fns): Add sub.
14589 (libm-test-funcs-narrow): Likewise.
14590 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
14591 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
14592 * math/gen-auto-libm-tests.c (test_functions): Add sub.
14593 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
14594 (NARROW_SUB_ROUND_TO_ODD): Likewise.
14595 (NARROW_SUB_TRIVIAL): Likewise.
14596 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
14597 macro.
14598 (__dsubl): Likewise.
14599 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
14600 dsub.
14601 (CFLAGS-nldbl-dsub.c): New variable.
14602 (CFLAGS-nldbl-fsub.c): Likewise.
14603 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
14604 __nldbl_dsubl.
14605 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
14606 prototype.
14607 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
14608 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
14609 * math/auto-libm-test-in: Add tests of sub.
14610 * math/auto-libm-test-out-narrow-sub: New generated file.
14611 * math/libm-test-narrow-sub.inc: New file.
14612 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
14613 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
14614 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
14615 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
14616 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
14617 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
14618 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
14619 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
14620 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
14621 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
14622 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
14623 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
14624 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
14625 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
14626 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
14627 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
14628 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
14629 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
14630 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14631 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14632 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14633 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14634 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14635 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14636 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14637 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14638 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14639 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14640 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14641 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14642 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14643 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14644 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14645 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
14646 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14647 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14648 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14649 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14650 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14651 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14652 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14653 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14654 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
14655 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
14656 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14657 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14658
14659 2018-03-19 Joseph Myers <joseph@codesourcery.com>
14660
14661 [BZ #20079]
14662 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
14663
14664 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
14665
14666 * benchtests/bench-timing.h (attribute_hidden): Undefine.
14667
14668 2018-03-18 Richard Braun <rbraun@sceen.net>
14669
14670 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
14671 thread reference.
14672
14673 2018-03-18 Agustina Arzille <avarzille@riseup.net>
14674
14675 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
14676 (__libc_cleanup_fct): Define function.
14677 (__libc_cleanup_region_start, __libc_cleanup_region_end,
14678 __libc_cleanup_end): Rewrite implementation using
14679 __attribute__ ((__cleanup__)).
14680 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
14681 * hurd/Makefile (routines): Add hurdlock.
14682 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
14683 interface.
14684 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
14685 * hurd/hurdpid.c: Include <lowlevellock.h>
14686 (_S_msg_proc_newids): Use lll_wait to synchronize.
14687 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
14688 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
14689 * mach/Makefile (lock-headers): Remove machine-lock.h.
14690 * mach/lock-intern.h: Include <lowlevellock.h> instead of
14691 <machine-lock.h>.
14692 (__spin_lock_t): New type.
14693 (__SPIN_LOCK_INITIALIZER): New macro.
14694 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
14695 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
14696 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
14697 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
14698 (__mutex_init): Initialize with lll.
14699 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
14700 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
14701 needing lll.
14702 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14703 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
14704 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
14705 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
14706 (__setpgid): Use lll for synchronization.
14707 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
14708 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
14709 instead of <cthreads.h>.
14710 (_IO_lock_inexpensive): New macro
14711 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
14712 (__libc_lock_self0): New declaration.
14713 (__libc_lock_owner_self): New macro.
14714 (__libc_key_t): Remove type.
14715 (_LIBC_LOCK_INITIALIZER): New macro.
14716 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
14717 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
14718 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
14719 __libc_lock_define_initialized_recursive,
14720 __rtld_lock_define_initialized_recursive,
14721 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
14722 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
14723 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
14724 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
14725 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
14726 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
14727 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
14728 New macros.
14729 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
14730 * hurd/hurdlock.c: New file.
14731 * hurd/hurdlock.h: New file.
14732 * mach/lowlevellock.h: New file
14733
14734 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
14735
14736 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
14737 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
14738 when opening a symlink with O_NOFOLLOW.
14739 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
14740 path when flags contains O_NOFOLLOW.
14741 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
14742 if flags contains O_DIRECTORY and the result is a directory.
14743 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
14744 oneself when the pointer given in D is nul (as set by ext2fs).
14745 * sysdeps/mach/hurd/mlockall.c: New file.
14746 * sysdeps/mach/hurd/munlockall.c: New file.
14747
14748 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
14749
14750 * hurd/hurdsig.c: Include <pthread.h>.
14751 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
14752 get the signal thread stack layout.
14753 * hurd/Makefile (headers): Remove threadvar.h.
14754 (inline-headers): Remove threadvar.h.
14755 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
14756 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
14757 __hurd_threadvar_max, __hurd_errno_location.
14758 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
14759 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
14760 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
14761 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
14762 unless TLS is not initialized yet, in which case we do not need a
14763 critical section yet anyway.
14764 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
14765 <machine-sp.h>.
14766 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
14767 declarations.
14768 (__hurd_threadvar_index): Remove enum.
14769 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
14770 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
14771 inlines.
14772 (__hurd_reply_port0): New variable declaration.
14773 (__hurd_local_reply_port): New macro.
14774 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
14775 (interrupted_reply_port_location): Add thread_t parameter. Use it
14776 with THREAD_TCB to access thread-local variables.
14777 (_hurdsig_abort_rpcs): Pass ss->thread to
14778 interrupted_reply_port_location.
14779 (_hurd_internal_post_signal): Likewise.
14780 (_hurdsig_init): Use presence of cthread_fork instead of
14781 __hurd_threadvar_stack_mask to start signal thread by hand.
14782 Remove signal thread threadvar initialization.
14783 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
14784 * hurd/sigunwind.c: Include <hurd/threadvar.h>
14785 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
14786 of threadvar.
14787 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
14788 __libc_lock_self0.
14789 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
14790 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
14791 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
14792 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
14793 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
14794 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
14795 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
14796 define variables.
14797 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
14798 <hurd/threadvar.h>.
14799 [IS_IN(rtld)] (rtld_errno): New variable.
14800 [IS_IN(rtld)] (__errno_location): New weak function.
14801 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
14802 * sysdeps/mach/hurd/errno.c: Remove file.
14803 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
14804 (__fork): Remove THREADVAR_SPACE macro and its use.
14805 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
14806 variable.
14807 (init): Do not initialize threadvar.
14808 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
14809 symbol.
14810 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
14811 __hurd_local_reply_port instead of threadvar.
14812 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
14813 _hurd_sigstate fields.
14814 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
14815 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
14816 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
14817 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
14818 instead of threadvar.
14819 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
14820 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
14821 (use_threadvar, global_reply_port): Remove variables.
14822 (__hurd_reply_port0): New variable.
14823 (__mig_get_reply_port): Use __hurd_local_reply_port and
14824 __hurd_reply_port0 instead of threadvar.
14825 (__mig_dealloc_reply_port): Likewise.
14826 (__mig_init): Do not initialize threadvar.
14827 * sysdeps/mach/hurd/profil.c: Fix comment.
14828 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
14829 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
14830 cthread_keycreate, cthread_getspecific, cthread_setspecific to
14831 __cthread_fork, __cthread_detach, __pthread_getattr_np,
14832 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
14833 __cthread_setspecific.
14834 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
14835 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
14836 __cthread_t instead of cthread_fork, cthread_detach,
14837 pthread_getattr_np, pthread_attr_getstack.
14838 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
14839 __cthread_keycreate.
14840 (cthread_getspecific): Rename to __cthread_getspecific.
14841 (cthread_setspecific): Rename to __cthread_setspecific.
14842 (__libc_getspecific): Use __cthread_getspecific instead of
14843 cthread_getspecific.
14844 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
14845 __cthread_keycreate instead of cthread_keycreate.
14846 (__libc_setspecific): Use __cthread_setspecific instead of
14847 cthread_setspecific.
14848 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
14849 Likewise.
14850 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
14851 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
14852 testing whether it is defined.
14853
14854 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
14855
14856 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
14857 Define macro.
14858 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
14859 * sysdeps/mach/i386/thread_state.h
14860 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
14861 i386_THREAD_STATE.
14862 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
14863 i386_THREAD_STATE.
14864 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
14865
14866 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
14867 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
14868
14869 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
14870 macros.
14871 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
14872 descriptor instead of creating a new one.
14873 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
14874
14875 * mach/setup-thread.c: Include <ldsodefs.h>.
14876 (__mach_setup_thread): Call _dl_allocate_tls, pass
14877 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
14878 MACHINE_THREAD_STATE_FLAVOR, before getting
14879 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
14880 MACHINE_THREAD_STATE_FLAVOR with the result.
14881 * hurd/hurdfault.c (_hurdsig_fault_init): Call
14882 MACHINE_THREAD_STATE_FIX_NEW.
14883 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
14884 too. Add original thread parameter.
14885
14886 2018-03-16 Joseph Myers <joseph@codesourcery.com>
14887
14888 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
14889 Remove inline function.
14890
14891 * sysdeps/i386/fpu/libm-test-ulps: Update.
14892 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
14893
14894 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
14895
14896 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
14897 commit.
14898
14899 2018-03-15 Joseph Myers <joseph@codesourcery.com>
14900
14901 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
14902 (__sincos_code): Remove define and undefine.
14903 [__FAST_MATH__] (__sincos): Remove inline function.
14904 [__FAST_MATH__] (__sincosf): Remove inline function.
14905 [__FAST_MATH__] (__sincosl): Remove inline function.
14906 (__atan2l): Remove inline functions.
14907 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
14908 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
14909 function.
14910 (floor): Remove inline function.
14911 (ceil): Likewise.
14912 [__FAST_MATH__] (__ldexp_code): Remove macro.
14913 [__FAST_MATH__] (ldexp): Remove inline function.
14914 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
14915 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
14916 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
14917 [__USE_ISOC99] (__lrint_code): Remove macro.
14918 [__USE_ISOC99] (__llrint_code): Likewise.
14919 [__USE_ISOC99] (lrintf): Remove inline function.
14920 [__USE_ISOC99] (lrint): Likewise.
14921 [__USE_ISOC99] (lrintl): Likewise.
14922 [__USE_ISOC99] (llrint): Likewise.
14923 [__USE_ISOC99] (llrintf): Likewise.
14924 [__USE_ISOC99] (llrintl): Likewise.
14925
14926 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14927
14928 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
14929 (__ieee754_sqrtf): Remove.
14930 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
14931 (__ieee754_sqrtf): Remove.
14932 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
14933 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14934 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
14935 (__ieee754_sqrtf): Remove.
14936 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
14937 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
14938 (sqrtf): Remove.
14939 (sqrtl): Remove.
14940 (__ieee754_sqrt): Remove.
14941 (__ieee754_sqrtf): Remove.
14942 (__ieee754_sqrtl): Remove.
14943 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14944 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
14945 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
14946 (__ieee754_sqrtf): Remove.
14947 (__ieee754_sqrtl): Remove.
14948
14949 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14950
14951 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
14952 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
14953 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
14954 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
14955 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
14956 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
14957 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
14958 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
14959 Likewise.
14960 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
14961 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
14962 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
14963 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
14964 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
14965 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
14966 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
14967 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
14968 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
14969 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
14970 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
14971 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
14972 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
14973 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
14974 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
14975 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
14976 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
14977 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
14978 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
14979 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
14980 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
14981 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
14982 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
14983 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
14984 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
14985 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
14986 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
14987 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
14988 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
14989 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
14990 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
14991 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
14992 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
14993 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
14994 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14995 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
14996 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
14997 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
14998 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
14999 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
15000
15001 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
15002
15003 * include/math.h (sqrt): Declare with asm redirect.
15004 (sqrtf): Likewise.
15005 (sqrtl): Likewise.
15006 (sqrtf128): Likewise.
15007 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
15008 nonlib and libnldbl with -fmath-errno.
15009 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
15010 * math/w_sqrt_template.c: Likewise.
15011 * math/w_sqrtf_compat.c: Likewise.
15012 * math/w_sqrtl_compat.c: Likewise.
15013 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
15014 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
15015 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
15016 complex.h.
15017
15018 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
15019
15020 * benchtests/Makefile: Define _ISOMAC.
15021 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
15022 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
15023 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
15024 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
15025 * benchtests/bench-timing.h: Define attribute_hidden.
15026
15027 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
15028
15029 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
15030 mov + lsr.
15031
15032 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
15033
15034 [BZ #22963]
15035 * localedata/locales/cs_CZ (mon): Rename to...
15036 (alt_mon): This.
15037 (mon): Import from CLDR (genitive case).
15038
15039 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
15040
15041 [BZ #22937]
15042 * localedata/locales/el_CY (abmon): Rename to...
15043 (ab_alt_mon): This.
15044 (abmon): Import from CLDR (abbreviated genitive case).
15045 * localedata/locales/el_GR (abmon): Rename to...
15046 (ab_alt_mon): This.
15047 (abmon): Import from CLDR (abbreviated genitive case).
15048
15049 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
15050
15051 [BZ #22932]
15052 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
15053
15054 2018-03-15 Robert Buj <robert.buj@gmail.com>
15055
15056 [BZ #22848]
15057 * localedata/locales/ca_ES (abmon): Rename to...
15058 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
15059 (mon): Rename to...
15060 (alt_mon): This.
15061 (abmon): Import from CLDR (genitive case, month names preceded by
15062 "de" or "d’").
15063 (mon): Likewise.
15064 (abday): Synchronize with CLDR.
15065 (d_t_fmt): Likewise.
15066 (d_fmt): Likewise.
15067 (am_pm): Likewise.
15068
15069 (LC_TIME): Improve indentation.
15070 (LC_TELEPHONE): Likewise.
15071 (LC_NAME): Likewise.
15072 (LC_ADDRESS): Likewise.
15073
15074 2018-03-14 Joseph Myers <joseph@codesourcery.com>
15075
15076 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
15077 (lrintf): Remove definitions used only with old GCC.
15078 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
15079 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
15080 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
15081 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
15082 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
15083 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
15084 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
15085 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
15086 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
15087 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
15088 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
15089 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
15090 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
15091 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
15092 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
15093 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
15094 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
15095 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
15096 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
15097 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
15098 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
15099 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
15100 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
15101 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
15102 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
15103 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
15104 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
15105 [__FAST_MATH__] (__M_SQRT2): Remove macro.
15106
15107 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
15108
15109 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
15110 instruction to unbreak builds with binutils 2.26 and older.
15111
15112 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
15113
15114 * sysdeps/aarch64/strncmp.S (count): New macro.
15115 (strncmp): Store misaligned length in SRC1 in COUNT.
15116 (mutual_align): Adjust.
15117 (misaligned8): Load dword at a time when it is safe.
15118
15119 2018-03-12 Zack Weinberg <zackw@panix.com>
15120
15121 [BZ #1190]
15122 [BZ #19476]
15123 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
15124 if the _IO_EOF_SEEN bit is already set; update commentary.
15125 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
15126 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
15127
15128 * support/support_openpty.c, support/tty.h: New files.
15129 * support/Makefile (libsupport-routines): Add support_openpty.
15130
15131 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
15132 New test cases.
15133 * libio/Makefile (tests): Add tst-fgetc-after-eof.
15134 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
15135
15136 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
15137
15138 * po/pt_BR.po: Update translations.
15139
15140 2018-03-12 David Michael <fedora.dm0@gmail.com>
15141
15142 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
15143 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
15144 get a port to the startup server.
15145
15146 2018-03-11 Zack Weinberg <zackw@panix.com>
15147
15148 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
15149 before nldbl-compat.h.
15150
15151 2018-03-10 Zack Weinberg <zackw@panix.com>
15152
15153 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
15154 math.h or math_private.h.
15155
15156 * sysdeps/alpha/fpu/s_isnan.c
15157 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
15158 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
15159 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
15160 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
15161 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
15162 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
15163 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
15164 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
15165 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
15166 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
15167 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
15168 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
15169 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
15170 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
15171 Include math_private.h.
15172
15173 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
15174 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
15175 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
15176 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
15177 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
15178 * sysdeps/powerpc/power7/fpu/s_logb.c:
15179 Include math.h and math_private.h.
15180
15181 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
15182 uses of $at in .set noat / .set at.
15183
15184 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
15185
15186 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
15187 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
15188 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
15189 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
15190 Likewise.
15191
15192 2018-03-09 Florian Weimer <fweimer@redhat.com>
15193
15194 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
15195 in comment.
15196
15197 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
15198
15199 [BZ #22919]
15200 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
15201 Add nop before __startcontext, add explaining comments.
15202
15203 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15204
15205 [BZ #22926]
15206 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
15207 empty for __SPE__.
15208 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
15209 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
15210 Do not build hardware transactional code for __SPE__.
15211 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
15212 (__lll_trylock_elision): Likewise.
15213 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
15214 (__lll_unlock_elision): Likewise.
15215
15216 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
15217 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
15218 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
15219 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
15220 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
15221 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
15222 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
15223 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
15224 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
15225 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
15226 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
15227 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
15228 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
15229 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
15230 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
15231 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
15232 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
15233 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
15234 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
15235 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
15236 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
15237 * sysdeps/unix/sysv/linux/arm/kernel-features.h
15238 (__ASSUME_CLONE_BACKWARDS): Define.
15239 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
15240 __clone2 if __NR_clone2 is defined.
15241 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
15242 (__ASSUME_CLONE_BACKWARDS): Likewise.
15243 * sysdeps/unix/sysv/linux/i386/kernel-features.h
15244 (__ASSUME_CLONE_BACKWARDS): Likewise.
15245 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
15246 (__ASSUME_CLONE2): Likewise.
15247 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
15248 (__ASSUME_CLONE_BACKWARDS3): Likewise.
15249 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
15250 variants and the define architecture can use.
15251 (__ASSUME_CLONE_DEFAULT): Define as default.
15252 * sysdeps/unix/sysv/linux/mips/kernel-features.h
15253 (__ASSUME_CLONE_BACKWARDS): Likewise.
15254 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
15255 (__ASSUME_CLONE_BACKWARDS): Likewise.
15256 * sysdeps/unix/sysv/linux/s390/kernel-features.h
15257 (__ASSUME_CLONE_BACKWARDS2): Likewise.
15258
15259 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
15260
15261 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
15262
15263 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
15264 time.
15265
15266 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
15267 (do_test_limit): Likewise.
15268
15269 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
15270 for every implementation.
15271 (do_test): Likewise.
15272
15273 * benchtests/bench-strncmp.c: Convert output to json.
15274
15275 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
15276
15277 * io/futimens.c: Add missing start-of-file descriptive comment.
15278 * io/utime.c: Likewise.
15279 * misc/futimesat.c: Likewise.
15280 * misc/utimes.c: Likewise.
15281 * sysdeps/mach/hurd/futimesat.c: Likewise.
15282 * sysdeps/mach/hurd/utimes.c: Likewise.
15283 * sysdeps/posix/utime.c: Likewise.
15284 * sysdeps/posix/utimes.c: Likewise.
15285 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
15286 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
15287 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
15288 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
15289
15290 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
15291
15292 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
15293 hurd_futimes.
15294 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
15295 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
15296 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
15297 (__futimens): Move implementation to...
15298 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
15299 utime_tvalue_from_tspec): ... new helper functions.
15300 (hurd_futimens): New function.
15301 * sysdeps/mach/hurd/futimesat.c: New file.
15302 * sysdeps/mach/hurd/utimensat.c: New file.
15303
15304 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
15305
15306 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
15307 UTIME_OMIT): New macros.
15308 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
15309 before reverting to converting time spec to time value and calling
15310 __file_utimes.
15311 * sysdeps/mach/hurd/utime-helper.c: New file.
15312 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
15313 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
15314 reverting to utime_tvalue_from_tval and __file_utimes.
15315 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
15316 (__lutimes): Just call hurd_futimens after lookup.
15317 * sysdeps/mach/hurd/utimes.c: Likewise.
15318
15319 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
15320
15321 * bits/sigaction.h: Add include guard.
15322 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
15323 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
15324 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
15325 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
15326 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
15327 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
15328 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
15329 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
15330 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
15331
15332 2018-03-05 Joseph Myers <joseph@codesourcery.com>
15333
15334 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
15335 -Wmaybe-uninitialized for -Os.
15336 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
15337 this disabling.
15338
15339 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15340
15341 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
15342 __INO_T_MATCHES_INO64_T is defined.
15343 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
15344 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
15345 of definition.
15346 * dirent/alphasort64.c: Likewise.
15347 * dirent/scandir.c: Likewise.
15348 * dirent/scandir64-tail.c: Likewise.
15349 * dirent/scandir64.c: Likewise.
15350 * dirent/scandirat.c: Likewise.
15351 * dirent/scandirat64.c: Likewise.
15352 * dirent/versionsort.c: Likewise.
15353 * dirent/versionsort64.c: Likewise.
15354 * include/dirent.h: Likewise.
15355
15356 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
15357 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
15358 for socketpair endpoint.
15359 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
15360 WRITE_BUFFER_SIZE as buffer size for sending socket.
15361 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
15362 issue on system where send is implemented with sendto syscall.
15363 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
15364 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
15365 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
15366 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
15367
15368 [BZ #21269]
15369 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
15370 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
15371 sa_restorer for vDSO case.
15372 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
15373
15374 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
15375
15376 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
15377 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
15378 * hurd/hurd/ioctl.h: Include <mach/port.h>
15379 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
15380 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
15381 <mach/mach_types.h> and <mach/message.h>.
15382 (headers): Move mach/param.h to bits/mach/param.h.
15383 * sysdeps/mach/i386/mach/param.h: Move file to ...
15384 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
15385 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
15386 of <mach/param.h>.
15387 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
15388 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
15389 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
15390 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
15391 trivial, for C++ conformity.
15392 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
15393 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
15394 Process mig output through $(migheadersed).
15395 * hurd/Makefile (migheadersed): Define variable.
15396 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
15397 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
15398 headers.
15399 * hurd/hurd.h: Include <bits/types/sigset_t.h>
15400 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
15401 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
15402 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
15403 <bits/types/sigset_t.h>.
15404 [!defined __USE_GNU]: Do not #error out.
15405 (struct hurd_sigstate): Use _NSIG instead of NSIG.
15406 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
15407 Include <stddef.h> and <bits/types/sigset_t.h>
15408 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
15409 instead of sighandler_t.
15410 * stdlib/errno.h (error_t): Move definition to...
15411 * bits/types/error_t.h: ... new header.
15412 * stdlib/Makefile (headers): Add bits/types/error_t.h.
15413 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
15414 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
15415 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
15416 * hurd/hurd.h: Include <bits/types/error_t.h>
15417 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
15418 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
15419 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
15420 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
15421 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
15422 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
15423 * sysdeps/mach/hurd/futimens.c: New file.
15424
15425 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
15426
15427 [BZ #22918]
15428 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
15429 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
15430 * nscd/gai.c (__nss_hosts_database): Readd definition.
15431 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
15432 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
15433 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
15434
15435 2018-03-02 Joseph Myers <joseph@codesourcery.com>
15436
15437 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
15438 (ifunc_one): Likewise.
15439
15440 2018-03-01 DJ Delorie <dj@delorie.com>
15441
15442 [BZ #22342]
15443 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
15444 key value.
15445
15446 2018-03-01 Maciej W. Rozycki <macro@mips.com>
15447
15448 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
15449 `match_pid' parameter.
15450 (td_ta_thr_iter): Update accordingly.
15451
15452 2018-03-01 Florian Weimer <fweimer@redhat.com>
15453
15454 * nptl/Makefile (install-lib-ldscripts): Remove.
15455 (install): Remove rule.
15456 ($(inst_libdir)/libpthread.so): Likewise.
15457
15458 2018-03-01 Mike FABIAN <mfabian@redhat.com>
15459
15460 [BZ #22896]
15461 * localedata/locales/an_ES: update month and day names,
15462 improve d_fmt, improve postal_fmt, add country_post,
15463 add country_isbn
15464
15465 2018-03-01 Mike FABIAN <mfabian@redhat.com>
15466
15467 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
15468 Ukrainian instead of Bulgarian.
15469
15470 2018-03-01 Florian Weimer <fweimer@redhat.com>
15471
15472 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
15473 reference.
15474
15475 2018-03-01 Florian Weimer <fweimer@redhat.com>
15476
15477 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
15478 * nptl/Makefile (routines): Add pthread_atfork.
15479 (static-only-routines): Set to pthread_atfork.
15480 (libpthread-routines): Remove pthread_atfork.
15481 (libpthread-static-only-routines): Remove.
15482 (install): Update comment.
15483 (libpthread.so): Do not install libpthread_nonshared.a.
15484 (tests): Do not link with libpthread_nonshared.a.
15485 (generated): Remove libpthread_nonshared.a.
15486 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
15487 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
15488 with libpthread_nonshared.a.
15489
15490 2018-02-28 Joseph Myers <joseph@codesourcery.com>
15491
15492 [BZ #22902]
15493 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
15494 (libc_feholdexcept_setroundf128): New macro.
15495 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
15496
15497 [BZ #15105]
15498 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
15499 libc_hidden_def.
15500 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
15501 * include/inttypes.h: New file.
15502
15503 2018-02-27 Joseph Myers <joseph@codesourcery.com>
15504
15505 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
15506 -Os in two more places.
15507
15508 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15509
15510 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
15511 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
15512 be sorted correctly at the moment because of a bug.
15513
15514 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15515
15516 [BZ #22550] - es_ES locale (and other es_* locales): collation should
15517 treat ñ as a primary different character, sync the collation
15518 for Spanish with CLDR.
15519 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
15520 * localedata/Makefile: Add new test files.
15521 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
15522 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
15523 collation order.
15524 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
15525 * localedata/am_ET.UTF-8.in: New test file.
15526 * localedata/az_AZ.UTF-8.in: Likewise.
15527 * localedata/be_BY.UTF-8.in: Likewise.
15528 * localedata/ber_DZ.UTF-8.in: Likewise.
15529 * localedata/ber_MA.UTF-8.in: Likewise.
15530 * localedata/bg_BG.UTF-8.in: Likewise.
15531 * localedata/br_FR.UTF-8.in: Likewise.
15532 * localedata/cmn_TW.UTF-8.in: Likewise.
15533 * localedata/crh_UA.UTF-8.in: Likewise.
15534 * localedata/csb_PL.UTF-8.in: Likewise.
15535 * localedata/cv_RU.UTF-8.in: Likewise.
15536 * localedata/cy_GB.UTF-8.in: Likewise.
15537 * localedata/dz_BT.UTF-8.in: Likewise.
15538 * localedata/eo.UTF-8.in: Likewise.
15539 * localedata/es_ES.UTF-8.in: Likewise.
15540 * localedata/fa_IR.UTF-8.in: Likewise.
15541 * localedata/fi_FI.UTF-8.in: Likewise.
15542 * localedata/fil_PH.UTF-8.in: Likewise.
15543 * localedata/fur_IT.UTF-8.in: Likewise.
15544 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
15545 * localedata/ha_NG.UTF-8.in: Likewise.
15546 * localedata/ig_NG.UTF-8.in: Likewise.
15547 * localedata/ik_CA.UTF-8.in: Likewise.
15548 * localedata/kk_KZ.UTF-8.in: Likewise.
15549 * localedata/ku_TR.UTF-8.in: Likewise.
15550 * localedata/ky_KG.UTF-8.in: Likewise.
15551 * localedata/ln_CD.UTF-8.in: Likewise.
15552 * localedata/mi_NZ.UTF-8.in: Likewise.
15553 * localedata/ml_IN.UTF-8.in: Likewise.
15554 * localedata/mn_MN.UTF-8.in: Likewise.
15555 * localedata/mr_IN.UTF-8.in: Likewise.
15556 * localedata/mt_MT.UTF-8.in: Likewise.
15557 * localedata/nb_NO.UTF-8.in: Likewise.
15558 * localedata/om_KE.UTF-8.in: Likewise.
15559 * localedata/os_RU.UTF-8.in: Likewise.
15560 * localedata/ps_AF.UTF-8.in: Likewise.
15561 * localedata/ro_RO.UTF-8.in: Likewise.
15562 * localedata/ru_RU.UTF-8.in: Likewise.
15563 * localedata/sc_IT.UTF-8.in: Likewise.
15564 * localedata/se_NO.UTF-8.in: Likewise.
15565 * localedata/sq_AL.UTF-8.in: Likewise.
15566 * localedata/sv_SE.UTF-8.in: Likewise.
15567 * localedata/szl_PL.UTF-8.in: Likewise.
15568 * localedata/tg_TJ.UTF-8.in: Likewise.
15569 * localedata/tk_TM.UTF-8.in: Likewise.
15570 * localedata/tt_RU.UTF-8.in: Likewise.
15571 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
15572 * localedata/ug_CN.UTF-8.in: Likewise.
15573 * localedata/uz_UZ.UTF-8.in: Likewise.
15574 * localedata/vi_VN.UTF-8.in: Likewise.
15575 * localedata/yi_US.UTF-8.in: Likewise.
15576 * localedata/yo_NG.UTF-8.in: Likewise.
15577 * localedata/zh_CN.UTF-8.in: Likewise.
15578 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
15579 file and fix bugs in the collation.
15580 * localedata/locales/az_AZ: Likewise.
15581 * localedata/locales/be_BY: Likewise.
15582 * localedata/locales/ber_DZ: Likewise.
15583 * localedata/locales/ber_MA: Likewise.
15584 * localedata/locales/bg_BG: Likewise.
15585 * localedata/locales/br_FR: Likewise.
15586 * localedata/locales/br_FR@euro: Likewise.
15587 * localedata/locales/ca_ES: Likewise.
15588 * localedata/locales/cns11643_stroke: Likewise.
15589 * localedata/locales/crh_UA: Likewise.
15590 * localedata/locales/cs_CZ: Likewise.
15591 * localedata/locales/csb_PL: Likewise.
15592 * localedata/locales/cv_RU: Likewise.
15593 * localedata/locales/cy_GB: Likewise.
15594 * localedata/locales/da_DK: Likewise.
15595 * localedata/locales/dz_BT: Likewise.
15596 * localedata/locales/en_CA: Likewise.
15597 * localedata/locales/eo: Likewise.
15598 * localedata/locales/es_CU: Likewise.
15599 * localedata/locales/es_EC: Likewise.
15600 * localedata/locales/es_ES: Likewise.
15601 * localedata/locales/es_US: Likewise.
15602 * localedata/locales/et_EE: Likewise.
15603 * localedata/locales/fa_IR: Likewise.
15604 * localedata/locales/fi_FI: Likewise.
15605 * localedata/locales/fil_PH: Likewise.
15606 * localedata/locales/fur_IT: Likewise.
15607 * localedata/locales/gez_ER@abegede: Likewise.
15608 * localedata/locales/ha_NG: Likewise.
15609 * localedata/locales/hr_HR: Likewise.
15610 * localedata/locales/hsb_DE: Likewise.
15611 * localedata/locales/hu_HU: Likewise.
15612 * localedata/locales/ig_NG: Likewise.
15613 * localedata/locales/ik_CA: Likewise.
15614 * localedata/locales/is_IS: Likewise.
15615 * localedata/locales/iso14651_t1_pinyin: Likewise.
15616 * localedata/locales/kk_KZ: Likewise.
15617 * localedata/locales/ku_TR: Likewise.
15618 * localedata/locales/ky_KG: Likewise.
15619 * localedata/locales/ln_CD: Likewise.
15620 * localedata/locales/lt_LT: Likewise.
15621 * localedata/locales/lv_LV: Likewise.
15622 * localedata/locales/mi_NZ: Likewise.
15623 * localedata/locales/ml_IN: Likewise.
15624 * localedata/locales/mn_MN: Likewise.
15625 * localedata/locales/mr_IN: Likewise.
15626 * localedata/locales/mt_MT: Likewise.
15627 * localedata/locales/nb_NO: Likewise.
15628 * localedata/locales/om_KE: Likewise.
15629 * localedata/locales/os_RU: Likewise.
15630 * localedata/locales/pl_PL: Likewise.
15631 * localedata/locales/ps_AF: Likewise.
15632 * localedata/locales/ro_RO: Likewise.
15633 * localedata/locales/ru_RU: Likewise.
15634 * localedata/locales/ru_UA: Likewise.
15635 * localedata/locales/sc_IT: Likewise.
15636 * localedata/locales/se_NO: Likewise.
15637 * localedata/locales/si_LK: Likewise.
15638 * localedata/locales/sq_AL: Likewise.
15639 * localedata/locales/sv_FI: Likewise.
15640 * localedata/locales/sv_FI@euro: Likewise.
15641 * localedata/locales/sv_SE: Likewise.
15642 * localedata/locales/szl_PL: Likewise.
15643 * localedata/locales/tg_TJ: Likewise.
15644 * localedata/locales/ti_ER: Likewise.
15645 * localedata/locales/tk_TM: Likewise.
15646 * localedata/locales/tl_PH: Likewise.
15647 * localedata/locales/tr_TR: Likewise.
15648 * localedata/locales/tt_RU: Likewise.
15649 * localedata/locales/tt_RU@iqtelif: Likewise.
15650 * localedata/locales/ug_CN: Likewise.
15651 * localedata/locales/uk_UA: Likewise.
15652 * localedata/locales/uz_UZ: Likewise.
15653 * localedata/locales/uz_UZ@cyrillic: Likewise.
15654 * localedata/locales/vi_VN: Likewise.
15655 * localedata/locales/yi_US: Likewise.
15656 * localedata/locales/yo_NG: Likewise.
15657
15658 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15659
15660 * gen-locales.mk: Make test files which contain @ modifiers in their
15661 name work.
15662 * localedata/gen-locale.sh: Likewise.
15663
15664 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15665
15666 * posix/tst-fnmatch.input: Fix results for range expressions
15667 for non C locales.
15668 * posix/tst-regexloc.c: Do not use a range expression for
15669 de_DE.ISO-8859-1 locale.
15670
15671 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15672
15673 * posix/bug-regex5.c: Fix test case because with the new
15674 iso14651_t1_common file, the da_DK locale now has 6 collating elements
15675 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
15676 file.
15677
15678 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15679
15680 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
15681 downloaded from ISO, the collation order of @-. and space has changed.
15682 Therefore, this test file needed to be adapted.
15683 * localedata/fr_CA.UTF-8.in: Likewise.
15684 * localedata/fr_FR.UTF-8.in: Likewise.
15685 * localedata/uk_UA.UTF-8.in: Likewise.
15686
15687 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15688
15689 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
15690 order of ȥ in the new iso14651_t1_common file.
15691 * localedata/pl_PL.UTF-8.in: Likewise.
15692
15693 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15694
15695 * localedata/locales/iso14651_t1_common: Add sections for various
15696 scripts to the iso14651_t1_common file.
15697
15698 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15699
15700 * localedata/locales/iso14651_t1_common: Use the code point of a
15701 character in the fourth collation level instead of IGNORE for all
15702 entries which have IGNORE on all 4 levels.
15703
15704 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15705
15706 * localedata/locales/iso14651_t1_common: Add some convenient collation
15707 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
15708 rules similar to those in CLDR.
15709
15710 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15711
15712 * localedata/locales/iso14651_t1_common: The new version of this
15713 file downloaded from ISO contained several syntax errors which
15714 are fixed by this patch.
15715
15716 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15717
15718 * localedata/locales/iso14651_t1_common: replace all <U.....>
15719 with <U000.....> because glibc understands only 4 digit or 8 digit
15720
15721 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15722
15723 * localedata/locales/iso14651_t1_common: Necessary changes
15724 to make the file downloaded from ISO usable by glibc.
15725
15726 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15727
15728 [BZ #14095]
15729 * localedata/locales/iso14651_t1_common: Update file to
15730 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
15731
15732 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
15733
15734 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
15735 of <nptl/pthreadP.h>
15736 (thread_attr_compare): Move function to...
15737 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
15738 * sysdeps/nptl/timer_routines.h: ... new header.
15739 * sysdeps/mach/hurd/gai_misc.h: New file.
15740
15741 2018-02-26 Joseph Myers <joseph@codesourcery.com>
15742
15743 * string/strcoll_l.c: Include <libc-diag.h>.
15744 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
15745 declarations of seq1 and seq2.
15746
15747 [BZ #15105]
15748 * stdlib/atoi.c (atoi): Use libc_hidden_def.
15749 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
15750
15751 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
15752
15753 [BZ #22433]
15754 [BZ #22807]
15755 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
15756 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
15757 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
15758 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
15759 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
15760 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
15761
15762 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15763
15764 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
15765 macros used in __ptrace_request.
15766
15767 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
15768
15769 [BZ #22792]
15770 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
15771 to $(CC).
15772 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
15773 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
15774 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
15775 <tcb-offsets.h>.
15776
15777 2018-02-23 Joseph Myers <joseph@codesourcery.com>
15778
15779 [BZ #15105]
15780 * ctype/ctype.c (tolower): Use libc_hidden_def.
15781 (toupper): Likewise.
15782 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
15783 [!_ISOMAC] (toupper): Likewise.
15784
15785 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15786
15787 * localedata/Makefile: Remove --quiet argument when
15788 installing locales
15789
15790 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15791
15792 [BZ #17438]
15793 * localedata/locales/pt_BR (LC_TIME): use / instead of -
15794 in d_fmt.
15795 * localedata/locales/pt_PT (LC_TIME): likewise
15796
15797 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15798
15799 [BZ #22646]
15800 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
15801 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
15802 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
15803
15804 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15805
15806 * sysdeps/sparc/fpu/libm-test-ulps: Update.
15807
15808 * nptl/Makefile (routines): Remove unregister-atfork.
15809 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
15810 (fork_handler_alloc): Remove function.
15811 (fork_handlers, fork_handler_init): New variables.
15812 (__fork_lock): Rename to atfork_lock.
15813 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
15814 to use a dynamic array to add/remove atfork handlers.
15815 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
15816 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
15817 Remove declaration.
15818 (fork_handler): Remove next, refcntr, and need_signal member.
15819 (__run_fork_handler_type): New enum.
15820 (__run_fork_handlers): New prototype.
15821 * nptl/register-atfork.c: Remove file.
15822 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
15823
15824 * sysdeps/nptl/nptl-signals.h: Move to ...
15825 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
15826 comments.
15827 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
15828 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
15829 unnecessary check for SIGTIMER.
15830 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
15831 remove unnecessary removal of SIGTIMER.
15832 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
15833 include-signals.h rename.
15834 * nptl/pthreadP.h: Likewise.
15835 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
15836 __is_internal_signal instead of __nptl_is_internal_signal.
15837
15838 2018-02-22 Andrew Waterman <andrew@sifive.com>
15839
15840 [BZ # 22884]
15841 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
15842 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
15843 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
15844 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
15845
15846 2018-02-22 DJ Delorie <dj@delorie.com>
15847
15848 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
15849
15850 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
15851
15852 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
15853 do_misaligned, not misaligned8.
15854
15855 2018-02-22 Steve Ellcey <sellcey@cavium.com>
15856
15857 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
15858 Add memcpy_thunderx2.
15859 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
15860 Increment to 4.
15861 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
15862 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
15863 and IS_THUNDERX2PA checks.
15864 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
15865 Use macro to set name appropriately.
15866 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
15867 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
15868 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
15869 New macro.
15870 (IS_THUNDERX2): New macro.
15871
15872 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
15873
15874 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15875
15876 2018-02-21 Zack Weinberg <zackw@panix.com>
15877
15878 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
15879 Define here, unconditionally.
15880 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
15881 * libio/libioP.h: Remove #if 0 blocks.
15882 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
15883 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
15884 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
15885
15886 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
15887 Assume weak_alias is always defined.
15888
15889 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
15890 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
15891 Remove #if 0 and #ifdef TODO blocks.
15892 Assume text_set_element is always defined.
15893
15894 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
15895 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
15896 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
15897
15898 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
15899 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
15900 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
15901 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
15902 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
15903 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
15904 Reformat bit flags for _flags field to make occupancy clearer.
15905 Update commentary.
15906 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
15907 Keep definitions consistent with those in libio/libio.h.
15908
15909 * libio/libio.h (_IO_file_flags): Remove macro.
15910 All uses changed to _flags.
15911
15912 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
15913 (__HAVE_COLUMN, _IO_BE): Don't define.
15914 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
15915 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
15916 * libio/libioP.h (EOF): Don't define.
15917 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
15918 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
15919 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
15920 testing _IO_UNIFIED_JUMPTABLES.
15921
15922 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
15923 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
15924 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
15925 (_IO_size_t): Delete; all uses changed to size_t.
15926 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
15927 (_IO_off_t): Delete; all uses changed to off_t.
15928 (_IO_off64_t): Delete; all uses changed to off64_t.
15929 (_IO_pid_t): Delete; all uses changed to pid_t.
15930 (_IO_uid_t): Delete; all uses changed to uid_t.
15931 (_IO_wint_t): Delete; all uses changed to wint_t.
15932 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
15933 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
15934 (_IO_cookie_io_functions_t): Delete; all uses changed to
15935 cookie_io_functions_t.
15936 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
15937 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
15938 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
15939 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
15940
15941 * libio/iofopncook.c: Remove unnecessary forward declarations.
15942 * libio/iolibio.h: Correct outdated commentary.
15943 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
15944 * stdio-common/fxprintf.c (__fxprintf_nocancel):
15945 Remove unnecessary casts.
15946 * stdio-common/getline.c: Use _IO_getdelim directly.
15947 Don't redefine ssize_t.
15948 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
15949 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
15950 Remove outdated comments.
15951 * stdio-common/vfscanf.c: Don't redefine va_list.
15952
15953 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
15954 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
15955 Remove preprocessor conditionals on _LIBC and __USE_GNU,
15956 which are always true, and __cplusplus, which is always false.
15957
15958 2018-02-21 Joseph Myers <joseph@codesourcery.com>
15959
15960 [BZ #15105]
15961 [BZ #19463]
15962 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
15963 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
15964 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
15965 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
15966 libc_hidden_proto.
15967 [!_ISOMAC] (putc_unlocked): Likewise.
15968 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
15969 define inline if [__USE_EXTERN_INLINES].
15970 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
15971 putc_unlocked.
15972
15973 [BZ #15105]
15974 [BZ #19463]
15975 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
15976 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
15977 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
15978 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
15979 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
15980 getc_unlocked.
15981 * time/tzfile.c (__tzfile_read): Likewise.
15982
15983 2018-02-21 Mike FABIAN <mfabian@redhat.com>
15984
15985 [BZ #22517]
15986 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
15987
15988 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
15989
15990 * io/fcntl.h: Fix a typo in a comment.
15991
15992 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
15993
15994 [BZ #22862]
15995 * include/features.h: Add _ISOC11_SOURCE to test for whether to
15996 define _DEFAULT_SOURCE.
15997 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
15998
15999 2018-02-21 Florian Weimer <fweimer@redhat.com>
16000
16001 [BZ #20890]
16002 * elf/cache.c (save_cache): Call fsync on temporary file before
16003 renaming it.
16004 (save_aux_cache): Call fdatasync on temporary file before renaming
16005 it.
16006
16007 2018-02-21 Florian Weimer <fweimer@redhat.com>
16008
16009 [BZ #22787]
16010 * include/caller.h: Remove file.
16011 * elf/dl-caller.c: Likewise.
16012 * elf/Makefile (dl-routines): Remove dl-caller.
16013 (shared-only-routines): Do not add dl-caller.
16014 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
16015 __check_caller.
16016 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
16017 member.
16018 (dl_open_worker): Do not call __check_caller.
16019 (_dl_open): Do not set caller_dl_open member.
16020 * elf/rtld.c (_rtld_global_ro): Do not initialize
16021 _dl_check_caller member.
16022 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
16023 _dl_check_caller member.
16024 (_dl_check_caller): Remove declaration.
16025 * sysdeps/unix/sysv/linux/dl-execstack.c
16026 (_dl_make_stack_executable): Do not call __check_caller.
16027
16028 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
16029
16030 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
16031 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
16032
16033 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
16034
16035 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
16036 description.
16037
16038 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
16039
16040 [BZ #16335]
16041 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
16042 of 199606L, 200112L, and 200809L.
16043 (_XOPEN_SOURCE): Document special values of 600 and 700.
16044 (_ISOC11_SOURCE): Document macro.
16045 (_ATFILE_SOURCE): Likewise.
16046 (_FORTIFY_SOURCE): Likewise.
16047
16048 2018-02-19 Joseph Myers <joseph@codesourcery.com>
16049
16050 [BZ #15105]
16051 [BZ #19463]
16052 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
16053 and define as weak alias of __ferror_unlocked. Use
16054 libc_hidden_weak.
16055 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
16056 libc_hidden_proto.
16057 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
16058 function if [__USE_EXTERN_INLINES].
16059 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
16060 ferror_unlocked.
16061
16062 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
16063
16064 [BZ #6889]
16065 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
16066
16067 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
16068
16069 [BZ #22818]
16070 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
16071 the GLIBC_2.1 version.
16072
16073 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
16074
16075 [BZ #21508]
16076 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
16077 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
16078 intl/tst-gettext-de.po from po/de.po by removing the
16079 POT-Creation-Date line.
16080 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
16081 ../po/de.po.
16082 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
16083 ../po/de.po.
16084
16085 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
16086
16087 * mach/Makefile (headers): Add mach/param.h.
16088 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
16089 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
16090 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
16091 (__ptsname_r): Move implementation to...
16092 (__ptsname_internal): ... new function. Add filling the STP
16093 structure.
16094
16095 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
16096
16097 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
16098 idouble to 1 ULP.
16099
16100 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
16101
16102 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
16103 syntax.
16104
16105 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
16106
16107 * nptl/Makefile (tst-mutex8-ENV): Delete.
16108 * nptl/tst-mutex8.c (check_type):
16109 Add runtime check if mutex will be elided.
16110
16111 2018-02-15 Joseph Myers <joseph@codesourcery.com>
16112
16113 [BZ #20980]
16114 [BZ #21234]
16115 * manual/install.texi (Configuring and compiling): Describe
16116 passing CC and CFLAGS on configure command line, not as
16117 environment variables. Use @code markup on those variables.
16118 Specify what options go in CC and what go in CFLAGS. Note the
16119 requirement to compile with optimization.
16120 * INSTALL: Regenerated.
16121
16122 [BZ #18124]
16123 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
16124 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
16125 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
16126 __sigprocmask instead of sigprocmask.
16127 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
16128 Likewise.
16129 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
16130 __sigsetjmp and sigprocmask.
16131
16132 [BZ #15105]
16133 * include/argz.h (argz_next): Use libc_hidden_proto.
16134 (__argz_next): Likewise.
16135 * string-argz-next.c (__argz_next): Use libc_hidden_def.
16136 (argz_next): Use libc_hidden_weak.
16137
16138 [BZ #15105]
16139 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
16140 libc_hidden_proto.
16141 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
16142 libc_hidden_def.
16143
16144 [BZ #15105]
16145 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
16146 libc_hidden_proto.
16147 * libio/iofputs.c (fputs): Use libc_hidden_weak.
16148
16149 [BZ #15105]
16150 [BZ #19463]
16151 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
16152 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
16153 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
16154 (__feof_unlocked): New declaration, and inline function if
16155 [__USE_EXTERN_INLINES].
16156 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
16157 instead of feof_unlocked.
16158 * intl/localealias.c [_LIBC] (FEOF): Likewise.
16159 * nss/nsswitch.c (nss_parse_file): Likewise.
16160 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
16161 Likewise.
16162 * time/getdate.c (__getdate_r): Likewise.
16163 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
16164 Define as macro to call __feof_unlocked.
16165
16166 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
16167
16168 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
16169
16170 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
16171
16172 * math/Makefile: Remove mpexp.c and mplog.c
16173 * sysdeps/i386/fpu/mpexp.c: Delete file.
16174 * sysdeps/i386/fpu/mplog.c: Likewise.
16175 * sysdeps/ia64/fpu/mpexp.c: Likewise.
16176 * sysdeps/ia64/fpu/mplog.c: Likewise.
16177 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
16178 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
16179 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
16180 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
16181 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
16182 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
16183 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
16184 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
16185 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
16186 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
16187 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
16188 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
16189 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
16190 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
16191 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
16192 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
16193
16194 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
16195
16196 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
16197
16198 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16199
16200 * sysdeps/sh/libm-test-ulps: Update.
16201
16202 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16203
16204 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
16205 idouble to 1 ULP.
16206
16207 2018-02-12 Zack Weinberg <zackw@panix.com>
16208
16209 [BZ #19239]
16210 * posix/sys/types.h: Don't include sys/sysmacros.h.
16211 * misc/sys/sysmacros.h: Remove the conditional deprecation
16212 warnings for the macros defined by this header.
16213
16214 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
16215
16216 * manual/probes.texi: Remove slowexp probes.
16217 * math/Makefile: Remove slowexp.
16218 * sysdeps/generic/math_private.h (__slowexp): Remove.
16219 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
16220 document error bounds.
16221 * sysdeps/i386/fpu/slowexp.c: Remove.
16222 * sysdeps/ia64/fpu/slowexp.c: Remove.
16223 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
16224 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
16225 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
16226 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
16227 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
16228 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
16229 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
16230 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
16231 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
16232 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
16233 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
16234
16235 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
16236
16237 [BZ #13932]
16238 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
16239 * benchtests/pow-inputs: Update comment for slow path cases.
16240 * manual/probes.texi (slowpow_p10): Delete removed probe.
16241 (slowpow_p10): Likewise.
16242 * math/Makefile: Remove halfulp.c and slowpow.c.
16243 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
16244 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
16245 (__halfulp): Remove.
16246 (__slowpow): Remove.
16247 * sysdeps/i386/fpu/halfulp.c: Delete file.
16248 * sysdeps/i386/fpu/slowpow.c: Likewise.
16249 * sysdeps/ia64/fpu/halfulp.c: Likewise.
16250 * sysdeps/ia64/fpu/slowpow.c: Likewise.
16251 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
16252 improve comments and add error analysis.
16253 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
16254 (power1): Remove function:
16255 (log1): Remove error argument, add error analysis.
16256 (my_log2): Remove function.
16257 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
16258 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
16259 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
16260 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
16261 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
16262 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
16263 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
16264 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
16265 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
16266 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
16267 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
16268 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
16269 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
16270 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
16271
16272 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
16273
16274 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
16275 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
16276
16277 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
16278
16279 [BZ #22433]
16280 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
16281 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
16282 and PTRACE_SETHBPREGS.
16283
16284 2018-02-10 Zack Weinberg <zackw@panix.com>
16285
16286 [BZ #22830]
16287 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
16288 correctly.
16289 * malloc/tst-malloc-stats-cancellation.c: New test case.
16290 * malloc/Makefile: Add new test case.
16291
16292 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
16293
16294 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
16295
16296 2018-02-10 Joseph Myers <joseph@codesourcery.com>
16297
16298 * math/Makefile (libm-narrow-fns): Add add.
16299 (libm-test-funcs-narrow): Likewise.
16300 * math/Versions (GLIBC_2.28): Add narrowing add functions.
16301 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
16302 * math/gen-auto-libm-tests.c (test_functions): Add add.
16303 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
16304 (NARROW_ADD_ROUND_TO_ODD): Likewise.
16305 (NARROW_ADD_TRIVIAL): Likewise.
16306 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
16307 macro.
16308 (__daddl): Likewise.
16309 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
16310 dadd.
16311 (CFLAGS-nldbl-dadd.c): New variable.
16312 (CFLAGS-nldbl-fadd.c): Likewise.
16313 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
16314 __nldbl_daddl.
16315 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
16316 prototype.
16317 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
16318 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
16319 * math/auto-libm-test-in: Add tests of add.
16320 * math/auto-libm-test-out-narrow-add: New generated file.
16321 * math/libm-test-narrow-add.inc: New file.
16322 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
16323 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
16324 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
16325 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
16326 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
16327 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
16328 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
16329 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
16330 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
16331 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
16332 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
16333 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
16334 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
16335 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
16336 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
16337 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
16338 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
16339 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
16340 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16341 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
16342 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
16343 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
16344 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
16345 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
16346 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
16347 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
16348 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
16349 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
16350 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
16351 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
16352 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
16353 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
16354 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
16355 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
16356 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
16357 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
16358 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16359 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
16360 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
16361 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
16362 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
16363 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
16364 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
16365 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
16366 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
16367 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
16368
16369 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
16370 (f128-pairs): New variable.
16371 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
16372 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
16373 to CFLAGS.
16374 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
16375 Also make tests add $(f128-loader-link) to gnulib-tests.
16376
16377 2018-02-09 DJ Delorie <dj@redhat.com>
16378
16379 [BZ #22827]
16380 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
16381 64-bit ELF type for 64-bit ELF objects.
16382
16383 2018-02-09 Joseph Myers <joseph@codesourcery.com>
16384
16385 * math/libm-test-driver.c (snan_tests_arg): New variable.
16386 * math/libm-test-support.h (snan_tests_arg): New declaration.
16387 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
16388
16389 * math/Makefile (test-type-pairs): New variable.
16390 (test-type-pairs-f64xf128-yes): Likewise.
16391 (tests): Add test-narrow-macros.
16392 (libm-test-funcs-narrow): New variable.
16393 (libm-test-c-narrow): Likewise.
16394 (generated): Add $(libm-test-c-narrow).
16395 (libm-tests-base-narrow): New variable.
16396 (libm-tests-narrow): Likewise.
16397 (libm-tests): Add $(libm-tests-narrow).
16398 (libm-tests-for-type): Handle $(libm-tests-narrow).
16399 (libm-test-c-narrow-obj): New variable.
16400 ($(libm-test-c-narrow-obj)): New rule.
16401 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
16402 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
16403 $(o-iterator) to set dependencies and CFLAGS.
16404 * math/gen-auto-libm-tests.c: Document use for narrowing
16405 functions.
16406 (output_for_one_input_case): Take argument NARROW.
16407 (generate_output): Likewise. Update call to
16408 output_for_one_input_case.
16409 (main): Take --narrow option. Update call to generate_output.
16410 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
16411 (apply_lit): Update call to _apply_lit.
16412 (apply_arglit): New function.
16413 (parse_args): Handle "a" arguments.
16414 (parse_auto_input): Handle format names using ":".
16415 * math/README.libm-test: Document "a" parameter type.
16416 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
16417 (ARG_TYPE_TRUE_MIN): Likewise.
16418 (ARG_TYPE_MAX): Likwise.
16419 (ARG_MIN_EXP): Likewise.
16420 (ARG_MAX_EXP): Likewise.
16421 (ARG_MANT_DIG): Likewise.
16422 (TEST_COND_arg_ibm128): Likewise.
16423 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
16424 (TEST_COND_arg_fmt): New macro.
16425 (init_max_error): Update prototype.
16426 * math/libm-test-support.c (test_ibm128): New variable.
16427 (init_max_error): Take argument testing_ibm128 and set test_ibm128
16428 instead of using [TEST_COND_ibm128] conditional.
16429 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
16430 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
16431 [TEST_NARROW] (TEST_MSG): New definition.
16432 (arg_plus_zero): New macro.
16433 (arg_minus_zero): Likewise.
16434 (arg_plus_infty): Likewise.
16435 (arg_minus_infty): Likewise.
16436 (arg_qnan_value_pl): Likewise.
16437 (arg_qnan_value): Likewise.
16438 (arg_snan_value_pl): Likewise.
16439 (arg_snan_value): Likewise.
16440 (arg_max_value): Likewise.
16441 (arg_min_value): Likewise.
16442 (arg_min_subnorm_value): Likewise.
16443 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
16444 (RUN_TEST_LOOP_aa_f): New macro.
16445 (TEST_SUFF): New macro.
16446 (TEST_SUFF_STR): Likewise.
16447 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
16448 (TEST_COND_any_ibm128): New macro.
16449 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
16450 this_func. Update call to init_max_error.
16451 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
16452 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
16453 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
16454 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
16455 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
16456 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
16457 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
16458 * math/test-math-scalar.h (TEST_NARROW): Likewise.
16459 * math/test-math-vector.h (TEST_NARROW): Likewise.
16460 * math/test-arg-double.h: New file.
16461 * math/test-arg-float128.h: Likewise.
16462 * math/test-arg-float32x.h: Likewise.
16463 * math/test-arg-float64.h: Likewise.
16464 * math/test-arg-float64x.h: Likewise.
16465 * math/test-arg-ldouble.h: Likewise.
16466 * math/test-math-narrow.h: Likewise.
16467 * math/test-narrow-macros.c: Likewise.
16468 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
16469 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
16470 test-narrow-macros-ldbl-64.
16471 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
16472
16473 * math/bits/mathcalls-narrow.h: New file.
16474 * include/bits/mathcalls-narrow.h: Likewise.
16475 * math/math-narrow.h: Likewise.
16476 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
16477 (__MATHCALL_NARROW_ARGS_2): Likewise.
16478 (__MATHCALL_NARROW_ARGS_3): Likewise.
16479 (__MATHCALL_NARROW_NORMAL): Likewise.
16480 (__MATHCALL_NARROW_REDIR): Likewise.
16481 (__MATHCALL_NARROW): Likewise.
16482 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
16483 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
16484 defined.
16485 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
16486 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
16487 (libm-narrow-fns): New variable.
16488 (libm-narrow-types-basic): Likewise.
16489 (libm-narrow-types-ldouble-yes): Likewise.
16490 (libm-narrow-types-float128-yes): Likewise.
16491 (libm-narrow-types-float128-alias-yes): Likewise.
16492 (libm-narrow-types): Likewise.
16493 (libm-routines): Add narrowing functions.
16494 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
16495 (libc_feholdexcept_setroundf128): New macro.
16496 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
16497 * sysdeps/ieee754/float128/float128_private.h: Include
16498 <math/math-narrow.h>.
16499 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
16500 Undefine and redefine.
16501 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
16502 (libm_alias_float_ldouble): Undefine and redefine.
16503 (libm_alias_double_ldouble): Likewise.
16504
16505 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
16506
16507 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
16508
16509 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
16510 FPCR/FPSR.
16511
16512 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
16513
16514 * manual/creature.texi: Convert references to gcc.info to gcc.
16515 * manual/stdio.texi: Likewise.
16516 * manual/string.texi: Likewise.
16517
16518 2018-02-07 Joseph Myers <joseph@codesourcery.com>
16519
16520 [BZ #17979]
16521 * posix/bits/types.h (__int_least8_t): New typedef.
16522 (__uint_least8_t): Likewise.
16523 (__int_least16_t): Likewise.
16524 (__uint_least16_t): Likewise.
16525 (__int_least32_t): Likewise.
16526 (__uint_least32_t): Likewise.
16527 (__int_least64_t): Likewise.
16528 (__uint_least64_t): Likewise.
16529 * sysdeps/generic/stdint.h (int_least8_t): Define using
16530 __int_least8_t.
16531 (int_least16_t): Define using __int_least16_t.
16532 (int_least32_t): Define using __int_least32_t.
16533 (int_least64_t): Define using __int_least64_t.
16534 (uint_least8_t): Define using __uint_least8_t.
16535 (uint_least16_t): Define using __uint_least16_t.
16536 (uint_least32_t): Define using __uint_least32_t.
16537 (uint_least64_t): Define using __uint_least64_t.
16538 * wcsmbs/uchar.h: Include <bits/types.h>.
16539 (char16_t): Define using __uint_least16_t conditional only on
16540 [!__USE_ISOCXX11].
16541 (char32_t): Define using __uint_least32_t conditional only on
16542 [!__USE_ISOCXX11].
16543 * wcsmbs/test-char-types.c: New file.
16544 * wcsmbs/Makefile (tests): Add test-char-types.
16545
16546 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
16547 version to 4.0.1.
16548
16549 2018-02-07 Zack Weinberg <zackw@panix.com>
16550
16551 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
16552 Delete all contents except for definitions of _G_HAVE_MMAP and
16553 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
16554 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
16555 sysdeps/unix/sysv/linux/_G_config.h. Make same content
16556 change as above.
16557
16558 * libio/libio.h: Don't include bits/_G_config.h here.
16559 Include stddef.h with __need_wchar_t defined. Include
16560 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
16561 Define _IO_iconv_t here, directly.
16562 Don't define _IO_HAVE_ST_BLKSIZE.
16563 * libio/libioP.h: Include _G_config.h here. Move include of
16564 shlib-compat.h up with rest of includes. Simplify conditionals
16565 controlling definition of _IO_JUMPS_OFFSET.
16566
16567 * csu/init.c: Remove always-true #if around entire file.
16568 Don't include stdio.h. Set _IO_stdin_used to hardwired
16569 constant 0x20001, and update commentary.
16570 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
16571 Replace all uses of _G_va_list with __gnuc_va_list.
16572 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
16573 instead of #if _IO_HAVE_ST_BLKSIZE.
16574 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
16575 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
16576 not #ifdef.
16577
16578 * libio/bits/libio.h: Move back to libio/libio.h and adjust
16579 multiple-include guard to match.
16580 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
16581 into this file.
16582 Remove preprocessor conditionals that are always true and/or
16583 redundant to other preprocessor conditionals in the same nest.
16584 Include shlib-compat.h unconditionally.
16585 Error out if _LIBC is not defined, or if _ISOMAC is defined,
16586 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
16587 defined after including stdio.h.
16588 Use __BEGIN_DECLS/__END_DECLS.
16589
16590 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
16591 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
16592 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
16593
16594 2018-02-07 Zack Weinberg <zackw@panix.com>
16595
16596 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
16597 New single-type headers split from _G_config.h.
16598 * libio/bits/types/cookie_io_functions_t.h
16599 * libio/bits/types/struct_FILE.h
16600 New single-type headers split from libio.h.
16601
16602 * libio/Makefile: Install the above new headers. Don't install
16603 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
16604 bits/libio-ldbl.h.
16605 * libio/_G_config.h, libio/libio.h: Delete file.
16606
16607 * libio/bits/libio.h: Remove improper-inclusion guard.
16608 Include stdio.h and don't repeat anything that it does.
16609 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
16610 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
16611 __io_read_fn as cookie_read_function_t,
16612 __io_write_fn as cookie_write_function_t,
16613 __io_seek_fn as cookie_seek_function_t,
16614 __io_close_fn as cookie_close_function_t,
16615 and _IO_cookie_io_functions_t as cookie_io_functions_t.
16616 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
16617 here, in the "compatibility defines" section. Remove an #if 0
16618 block. Use the "body" macros from bits/types/struct_FILE.h to
16619 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
16620 and _IO_ferror_unlocked.
16621 Move prototypes of __uflow and __overflow...
16622
16623 * libio/stdio.h: ...here. Don't include bits/libio.h.
16624 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
16625 directly from stdarg.h. Include bits/types/__fpos_t.h,
16626 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
16627 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
16628 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
16629 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
16630 cookie_io_functions_t, not _IO_cookie_io_functions_t;
16631 __ssize_t, not _IO_ssize_t. Unconditionally define
16632 BUFSIZ as 8192 and EOF as (-1).
16633
16634 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
16635 macros from bits/types/struct_FILE.h instead of _IO_* macros
16636 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
16637 instead of _IO_ssize_t.
16638 * libio/bits/stdio2.h: Similarly.
16639
16640 * libio/iolibio.h: Add multiple-include guard.
16641 Include bits/libio.h after stdio.h.
16642 * libio/libioP.h: Add multiple-include guard.
16643 Include stdio.h and bits/libio.h before iolibio.h.
16644
16645 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
16646 * include/bits/types/cookie_io_functions_t.h
16647 * include/bits/types/struct_FILE.h: New wrappers.
16648
16649 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
16650 Get definitions of _G_fpos_t and _G_fpos64_t from
16651 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
16652 respectively. Remove improper-inclusion guards.
16653
16654 * conform/data/stdio.h-data: Update expectations of va_list.
16655 * scripts/check-installed-headers.sh: Remove special case for
16656 libio.h and _G_config.h.
16657
16658 2018-02-07 Joseph Myers <joseph@codesourcery.com>
16659
16660 [BZ #15105]
16661 [BZ #19463]
16662 * include/sys/sysmacros.h [!_ISOMAC]
16663 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
16664 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
16665 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
16666 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
16667 libc_hidden_proto.
16668 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
16669 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
16670 Likewise.
16671 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
16672 Undefine and redefine to add use __gnu_dev_ prefix.
16673 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
16674 Likewise.
16675 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
16676 and define as hidden inline function.
16677 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
16678 Likewise.
16679 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
16680 Likewise.
16681 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
16682 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
16683 (gnu_dev_minor): Likewise.
16684 (gnu_dev_makedev): Likewise.
16685 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
16686 makedev.
16687 * posix/wordexp.c (exec_comm_child): Likewise.
16688 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
16689 instead of minor and __gnu_dev_major instead of major.
16690 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
16691 __gnu_dev_major instead of major.
16692 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
16693 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
16694 instead of gnu_dev_minor.
16695 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
16696 (SLAVE_P): Likewise.
16697 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
16698 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
16699 instead of major.
16700
16701 [BZ #21313]
16702 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
16703 in another place.
16704 * locale/weightwc.h (findidx): Likewise.
16705
16706 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
16707
16708 * manual/probes.texi (slowlog): Delete documentation of removed probe.
16709 (slowlog_inexact): Likewise
16710 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
16711 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
16712
16713 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
16714
16715 [BZ #22797]
16716 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
16717 missing second underscore to parameter name.
16718
16719 2018-02-06 Joseph Myers <joseph@codesourcery.com>
16720
16721 [BZ #14508]
16722 [BZ #15512]
16723 [BZ #17082]
16724 [BZ #20530]
16725 * bits/byteswap.h: Update file comment. Do not include
16726 <bits/byteswap-16.h>.
16727 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
16728 constant.
16729 (__bswap_16): Define as inline function.
16730 (__bswap_constant_32): Reformat definition.
16731 (__bswap_32): Always define as inline function, not macro, using
16732 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
16733 otherwise __bswap_constant_32.
16734 (__bswap_constant_64): Reformat definition. Do not use
16735 __extension__ here.
16736 (__bswap_64): Always define as inline function, not macro. Use
16737 __extension__ on function definition. Use __builtin_bswap64 if
16738 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
16739 * string/test-endian-file-scope.c: New file.
16740 * string/test-endian-sign-conversion.c: Likewise.
16741 * string/Makefile (headers): Remove bits/byteswap-16.h.
16742 (tests): Add test-endian-file-scope and
16743 test-endian-sign-conversion.
16744 (CFLAGS-test-endian-sign-conversion.c): New variable.
16745 * bits/byteswap-16.h: Remove file.
16746 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
16747 * sysdeps/ia64/bits/byteswap.h: Likewise.
16748 * sysdeps/m68k/bits/byteswap.h: Likewise.
16749 * sysdeps/s390/bits/byteswap-16.h: Likewise.
16750 * sysdeps/s390/bits/byteswap.h: Likewise.
16751 * sysdeps/tile/bits/byteswap.h: Likewise.
16752 * sysdeps/x86/bits/byteswap-16.h: Likewise.
16753 * sysdeps/x86/bits/byteswap.h: Likewise.
16754
16755 [BZ #17721]
16756 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
16757 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
16758 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
16759 199901L] (__restrict): Define to restrict.
16760
16761 [BZ #19667]
16762 * string/testcopy.c: Include <support/support.h>. Do not include
16763 <malloc.h>. Use <support/test-driver.c>.
16764 (main): Rename to do_test. Make static. Use xmalloc instead of
16765 malloc.
16766
16767 [BZ #13575]
16768 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
16769 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
16770 (SSIZE_MAX): Define to INT_MAX.
16771 * posix/test-ssize-max.c: New file.
16772 * posix/Makefile (tests): Add test-ssize-max.
16773
16774 [BZ #19668]
16775 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
16776 <support/support.h>. Do not include <malloc.h>.
16777 (query_auxv): Use xmalloc instead of malloc.
16778
16779 [BZ #14553]
16780 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
16781 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
16782 instead of loff_t.
16783
16784 2018-02-06 Florian Weimer <fweimer@redhat.com>
16785
16786 [BZ #18023]
16787 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
16788 Use scratch_buffer instead of extend_alloca.
16789
16790 2018-02-06 Zack Weinberg <zackw@panix.com>
16791
16792 * libio/stdio.h: Don't define getc or putc as macros.
16793 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
16794 not _IO_getc and _IO_putc.
16795
16796 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
16797 * stdio-common/tstgetln.c: Don't redefine ssize_t.
16798
16799 2018-02-06 Joseph Myers <joseph@codesourcery.com>
16800
16801 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
16802 (TCP_FASTOPEN_NO_COOKIE): Likewise.
16803
16804 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
16805
16806 [BZ #14890]
16807 * elf/elf.h (NT_PRFPREG): New macro.
16808 (NT_S390_VXRS_LOW): Likewise.
16809 (NT_S390_VXRS_HIGH): Likewise.
16810 (NT_S390_GS_CB): Likewise.
16811 (NT_S390_GS_BC): Likewise.
16812 (NT_S390_RI_CB): Likewise.
16813
16814 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
16815 (MAP_SYNC): New macro.
16816 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
16817 Likewise.
16818 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
16819 (MAP_SYNC): Likewise.
16820 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
16821 (MAP_SYNC): Likewise.
16822 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
16823 (MAP_SYNC): Likewise.
16824 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
16825 (MAP_SYNC): Likewise.
16826 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
16827 (MAP_SYNC): Likewise.
16828 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
16829 (MAP_SYNC): Likewise.
16830 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
16831 Likewise.
16832 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
16833 Likewise.
16834
16835 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
16836 (MAP_SHARED_VALIDATE): New macro.
16837 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16838 (MAP_SHARED_VALIDATE): Likewise.
16839
16840 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16841
16842 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
16843 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
16844 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
16845
16846 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16847
16848 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
16849 (DT_NUM): Updated to 35.
16850
16851 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16852
16853 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
16854 __builtin_expect with __glibc_likely and __glibc_unlikely.
16855 (elf_machine_rela): Likewise.
16856 (elf_machine_lazy_rel): Likewise.
16857
16858 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16859
16860 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
16861 __builtin_expect with __glibc_likely and __glibc_unlikely.
16862 (elf_machine_lazy_rel): Likewise.
16863
16864 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16865
16866 [BZ #22638]
16867 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
16868 SHARED.
16869 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
16870
16871 2018-02-05 Andreas Schwab <schwab@suse.de>
16872
16873 [BZ #22761]
16874 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
16875 string.
16876
16877 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
16878
16879 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
16880 not check against PTHREAD_STACK_MIN.
16881
16882 2018-02-02 Sean McKean <smckean83@gmail.com>
16883
16884 [BZ #22735]
16885 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
16886
16887 2018-02-02 Florian Weimer <fweimer@redhat.com>
16888
16889 [BZ #22753]
16890 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
16891 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
16892 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
16893 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
16894 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
16895 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
16896 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
16897 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
16898 * manual/llio.texi (Scatter-Gather): Mention offset -1.
16899 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
16900 * misc/tst-preadvwritev2.c (do_test): Call it.
16901 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
16902
16903 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
16904
16905 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
16906
16907 * benchtests/bench-memcmp.c: Print json instead of plain text.
16908
16909 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
16910 every test run.
16911
16912 2018-02-01 Joseph Myers <joseph@codesourcery.com>
16913
16914 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
16915 version to 4.15.
16916 (s390_sthyi): New syscall.
16917
16918 * sysdeps/generic/ldbl-classify-compat.h: New file.
16919 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
16920 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
16921 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
16922 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
16923 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
16924 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
16925 * sysdeps/ieee754/dbl-64/s_finite.c: Include
16926 <ldbl-classify-compat.h>.
16927 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16928 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
16929 <ldbl-classify-compat.h>.
16930 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16931 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
16932 <ldbl-classify-compat.h>.
16933 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16934 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
16935 <ldbl-classify-compat.h>.
16936 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16937 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
16938 <ldbl-classify-compat.h>.
16939 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16940 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
16941 <ldbl-classify-compat.h>.
16942 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16943 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
16944 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
16945 * sysdeps/m68k/coldfire/math_private.h: Remove file.
16946 * sysdeps/microblaze/math_private.h: Likewise.
16947 * sysdeps/nios2/math_private.h: Likewise.
16948 * sysdeps/sh/math_private.h: Likewise.
16949
16950 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
16951 * sysdeps/m68k/coldfire/math_private.h: ... here.
16952 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
16953 * sysdeps/tile/math_private.h: Likewise.
16954 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
16955 Remove macro.
16956 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
16957 Likewise.
16958
16959 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
16960 Remove macro.
16961 (libc_fetestexcept): Likewise.
16962 (libc_feupdateenv_test): Likewise.
16963 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
16964 (libc_fetestexcept): Likewise.
16965 (libc_feupdateenv_test): Likewise.
16966 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
16967 (libc_fetestexcept): Likewise.
16968 (libc_feupdateenv_test): Likewise.
16969 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
16970 (libc_fetestexcept): Likewise.
16971 (libc_feupdateenv_test): Likewise.
16972
16973 * sysdeps/generic/math_private.h
16974 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
16975 New inline function.
16976 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
16977 Likewise.
16978
16979 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
16980 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
16981 * sysdeps/generic/math_private.h
16982 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
16983 inline function.
16984 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
16985 Likewise.
16986 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
16987 Likewise.
16988 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
16989 Likewise.
16990 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
16991 Likewise.
16992 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
16993 Likewise.
16994 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
16995 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
16996 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
16997 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
16998 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
16999 (__fegetenv): Likewise.
17000 (fesetenv): Likewise.
17001 (__fesetenv): Likewise.
17002 (feupdateenv): Likewise.
17003 (__feupdateenv): Likewise.
17004 (fegetround): Likewise.
17005 (__fegetround): Likewise.
17006 (fesetround): Likewise.
17007 (__fesetround): Likewise.
17008
17009 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
17010 (feraiseexcept): New macro.
17011 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
17012 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
17013 Remove macro.
17014 (__feraiseexcept): Likewise.
17015 (feclearexcept): Likewise.
17016 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
17017 (__feraiseexcept): Likewise.
17018 (feclearexcept): Likewise.
17019 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
17020 (__feraiseexcept): Likewise.
17021 (feclearexcept): Likewise.
17022 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
17023 (__feraiseexcept): Likewise.
17024 (feclearexcept): Likewise.
17025 (fetestexcept): Likewise.
17026
17027 * sysdeps/m68k/coldfire/math-tests.h: New file.
17028
17029 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
17030 * sysdeps/m68k/bits/fenv.h: ... here.
17031 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
17032 not define.
17033 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
17034 Likewise.
17035 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
17036 Likewise.
17037 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
17038 Likewise.
17039 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
17040 Likewise.
17041 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
17042 Define to 0.
17043 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
17044 (__FE_UNDEFINED): New enum constant.
17045 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
17046 Do not define.
17047 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
17048 Likewise.
17049 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
17050 Likewise.
17051 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
17052 to match generic bits/fenv.h.
17053 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
17054 Do not define.
17055
17056 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
17057 packed on bits.
17058 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
17059 * soft-fp/half.h (union _FP_UNION_H): Likewise.
17060 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
17061 * soft-fp/single.h (union _FP_UNION_S): Likewise.
17062
17063 2018-02-01 Carlos O'Donell <carlos@redhat.com>
17064 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
17065 Joseph Myers <joseph@codesourcery.com>
17066
17067 [BZ #21314]
17068 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
17069 (__log1p): Disable -Wmaybe-uninitialized for -Os around
17070 computation using c.
17071 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
17072 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
17073 computation using c.
17074
17075 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
17076
17077 * version.h (RELEASE): Set to "development".
17078 (VERSION): Set to "2.27.9000".
17079 * NEWS (2.28): New section.
17080
17081 * version.h (RELEASE): Set to "stable".
17082 (VERSION): Set to "2.27".
17083 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
17084
17085 * NEWS: Add the list of bugs fixed in 2.27.
17086
17087 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17088
17089 * stdlib/test-atexit-race-common.c (do_test): Check stack size
17090 against PTHREAD_STACK_MIN.
17091
17092 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
17093
17094 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
17095 New entries.
17096 (Rafal Luzynski, Andreas Schwab): Update.
17097
17098 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
17099
17100 [BZ #10871]
17101 * NEWS: List the languages which actually use the alternative
17102 months feature in this release. Also explain that "alt_mon" and
17103 "ab_alt_mon" are optional.
17104
17105 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
17106
17107 [BZ #22765]
17108 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
17109
17110 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
17111
17112 * manual/install.texi (Tools for Compilation): Update the newest
17113 versions of gcc, binutils, texinfo, gawk, bison, and sed.
17114 * INSTALL: Regenerated.
17115
17116 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
17117
17118 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
17119 instead of __builtin_expect.
17120
17121 2018-01-30 Florian Weimer <fweimer@redhat.com>
17122
17123 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
17124 data.
17125 * nss/tst-nss-getpwent.c (do_test): Likewise.
17126
17127 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
17128
17129 [BZ #10871]
17130 * localedata/locales/hr_HR (mon): Rename to...
17131 (alt_mon): This.
17132 (mon): Import from CLDR (genitive case).
17133 (d_t_fmt): Update the comment.
17134
17135 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
17136
17137 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
17138 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
17139 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
17140
17141 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
17142
17143 * mach/Versions: Fix version when __mach_host_self_ was added.
17144 * hurd/Versions: Fix version when _hurd_exec_paths was added.
17145 * sysdeps/mach/hurd/i386/ld.abilist: New file.
17146 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
17147 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
17148 * sysdeps/mach/hurd/i386/libc.abilist: New file.
17149 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
17150 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
17151 * sysdeps/mach/hurd/i386/libm.abilist: New file.
17152 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
17153 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
17154 * sysdeps/mach/hurd/i386/librt.abilist: New file.
17155 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
17156 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
17157 || to respect codestyle.
17158 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
17159 (do_test_bz20181): Rename accordingly.
17160 * malloc/malloc.c: Include <assert.h>.
17161 (assert): Do not define.
17162 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
17163 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
17164 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
17165 * sysdeps/mach/hurd/hp-timing.h: New file.
17166 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
17167
17168 2018-01-29 Darius Rad <darius@bluespec.com>
17169
17170 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
17171
17172 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
17173
17174 * sysdeps/init_array/crti.S (.section .init_array): Add
17175 PREINIT_FUNCTION when defined.
17176 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
17177 * config.h.in: Regenerate.
17178 * manual/platform.texi: Add RISC-V documenation for
17179 __riscv_flush_icache.
17180 * sysdeps/riscv/__longjmp.S: New file.
17181 * sysdeps/riscv/backtrace.c: Likewise.
17182 * sysdeps/riscv/bits/endian.h: Likewise.
17183 * sysdeps/riscv/bits/setjmp.h: Likewise.
17184 * sysdeps/riscv/bits/wordsize.h: Likewise.
17185 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
17186 * sysdeps/riscv/bsd-setjmp.c: Likewise.
17187 * sysdeps/riscv/dl-trampoline.S: Likewise.
17188 * sysdeps/riscv/gccframe.h: Likewise.
17189 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
17190 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
17191 * sysdeps/riscv/machine-gmon.h: Likewise.
17192 * sysdeps/riscv/memusage.h: Likewise.
17193 * sysdeps/riscv/setjmp.S: Likewise.
17194 * sysdeps/riscv/sys/asm.h: Likewise.
17195 * sysdeps/riscv/tls-macros.h: Likewise.
17196 * sysdeps/riscv/dl-tls.h: New file.
17197 * sysdeps/riscv/libc-tls.c: Likewise.
17198 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
17199 * sysdeps/riscv/nptl/tls.h: Likewise.
17200 * sysdeps/riscv/stackinfo.h: Likewise.
17201 * sysdeps/riscv/bits/fenv.h: New file.
17202 * sysdeps/riscv/e_sqrtl.c: Likewise.
17203 * sysdeps/riscv/fpu_control.h: Likewise.
17204 * sysdeps/riscv/math-tests.h: Likewise.
17205 * sysdeps/riscv/nofpu/Implies: Likewise.
17206 * sysdeps/riscv/sfp-machine.h: Likewise.
17207 * sysdeps/riscv/tininess.h: Likewise.
17208 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
17209 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
17210 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
17211 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
17212 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
17213 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
17214 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
17215 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
17216 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
17217 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
17218 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
17219 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
17220 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
17221 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
17222 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
17223 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
17224 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
17225 * sysdeps/riscv/rvd/s_finite.c: Likewise.
17226 * sysdeps/riscv/rvd/s_fma.c: Likewise.
17227 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
17228 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
17229 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
17230 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
17231 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
17232 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
17233 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
17234 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
17235 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
17236 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
17237 * sysdeps/riscv/rvf/fegetround.c: Likewise.
17238 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
17239 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
17240 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
17241 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
17242 * sysdeps/riscv/rvf/fesetround.c: Likewise.
17243 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
17244 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
17245 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
17246 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
17247 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
17248 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
17249 * sysdeps/riscv/rvf/math_private.h: Likewise.
17250 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
17251 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
17252 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
17253 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
17254 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
17255 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
17256 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
17257 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
17258 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
17259 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
17260 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
17261 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
17262 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
17263 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
17264 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
17265 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
17266 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
17267 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
17268 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
17269 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
17270 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
17271 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
17272 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
17273 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
17274 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
17275 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
17276 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
17277 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
17278 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
17279 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
17280 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
17281 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
17282 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
17283 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
17284 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
17285 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
17286 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
17287 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
17288 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
17289 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
17290 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
17291 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
17292 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
17293 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
17294 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
17295 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
17296 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
17297 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
17298 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
17299 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
17300 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
17301 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
17302 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
17303 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
17304 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
17305 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
17306 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
17307 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
17308 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
17309 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
17310 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
17311 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
17312 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
17313 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
17314 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17315 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
17316 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
17317 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
17318 * sysdeps/riscv/Implies: New file.
17319 * sysdeps/riscv/Makefile: Likewise.
17320 * sysdeps/riscv/configure: Likewise.
17321 * sysdeps/riscv/configure.ac: Likewise.
17322 * sysdeps/riscv/nptl/Makefile: Likewise.
17323 * sysdeps/riscv/preconfigure: Likewise.
17324 * sysdeps/riscv/rv64/Implies-after: Likewise.
17325 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
17326 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
17327 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
17328 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
17329 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
17330 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
17331 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
17332 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
17333 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
17334 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
17335 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
17336 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
17337 (Config): Likewise.
17338
17339 2018-01-29 Florian Weimer <fweimer@redhat.com>
17340
17341 [BZ #22701]
17342 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
17343 libnsl_hidden_proto.
17344 * include/rpcsvc/yp.h (yp_xdrall): Declare with
17345 libnsl_hidden_proto.
17346 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
17347 * nis/Makefile (libnsl-routines): Add nss-default only for
17348 build-obsolete-nsl.
17349 * nis/nis_defaults.c (__nis_default_ttl): Add
17350 libnsl_hidden_nolink_def.
17351 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
17352 declaration.
17353 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
17354 * nis/ypclnt.c (yp_maplist): Likewise.
17355
17356 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
17357
17358 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
17359 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
17360
17361 2018-01-29 Joseph Myers <joseph@codesourcery.com>
17362
17363 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
17364 clean -dxfq for git updates when replacing sources.
17365
17366 * scripts/build-many-glibcs.py (Config.build_gcc): Use
17367 --disable-libcilkrts unconditionally, not just for the final GCC
17368 build for Hurd.
17369
17370 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
17371 version to 4.15.
17372
17373 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17374
17375 [BZ #10871]
17376 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
17377 case).
17378
17379 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17380
17381 [BZ #10871]
17382 * localedata/locales/be_BY (mon): Rename to...
17383 (alt_mon): This, then synchronize with CLDR (nominative case).
17384 (abmon): Rename to...
17385 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
17386 (mon): Import from CLDR (genitive case).
17387 (abmon): Likewise.
17388 * localedata/locales/be_BY@latin (mon): Rename to...
17389 (alt_mon): This.
17390 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
17391
17392 * localedata/locales/be_BY@latin (lang_name): Reworded to
17393 "biełaruskaja mova".
17394
17395 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17396
17397 [BZ #10871]
17398 * localedata/locales/el_CY (mon): Renamed to...
17399 (alt_mon): This.
17400 (mon): Import from CLDR (genitive case).
17401 * localedata/locales/el_GR: Likewise.
17402
17403 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17404
17405 [BZ #10871]
17406 * localedata/locales/ru_RU (mon): Rename to...
17407 (alt_mon): This.
17408 (abmon): Rename to...
17409 (ab_alt_mon): This.
17410 (mon): Import from CLDR (genitive case).
17411 (abmon): Copy from the old content except the 5th month which is
17412 now in the genitive case, even when abbreviated.
17413 * localedata/locales/ru_UA: Likewise.
17414 * time/tst-strptime.c (day_tests): Add an actual example of
17415 a difference between %b and %Ob in Russian.
17416
17417 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
17418
17419 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
17420 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
17421 a `c' variable.
17422 * resolv/res-close.c: Include <stdlib.h>.
17423 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
17424 <sys/wait.h>, <time.h>, <sys/uio.h>.
17425 (NOT_CANCEL_H): Add inclusion guard.
17426 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
17427 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
17428 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
17429 return 0.
17430 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
17431 vm_address_t * to ElfW(Addr) * for dl_main parameter.
17432 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
17433 instead of void *.
17434 * sysdeps/pthread/timer_create.c (timer_create): Do not use
17435 timer_ptr2id to cast struct timer_node * to void *.
17436 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
17437 --disable-libcilkrts to gcc configure.
17438 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
17439 and make them the default for now.
17440 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
17441 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
17442 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
17443 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
17444 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
17445 MACH_IPC_COMPAT.
17446 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
17447 __task_terminate would ever return successfully.
17448 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
17449 to global scope.
17450 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
17451 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
17452 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
17453 critical section to make code simpler and avoid warning.
17454 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
17455 critical section to make code simpler and avoid warning.
17456 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
17457 const char * instead of char *.
17458 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
17459 __hurd_file_name_split, hurd_file_name_split,
17460 __hurd_directory_name_split, hurd_directory_name_split,
17461 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
17462 hurd_file_name_path_lookup): Make lookup function parameter take a
17463 const char *name instead of char *name.
17464 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
17465 __hurd_directory_name_split): Likewise.
17466 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
17467 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
17468 * sysdeps/mach/hurd/check_native.c: New file.
17469 * sysdeps/mach/hurd/check_pf.c: New file.
17470 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
17471 (__freeifaddrs): Define macro to freeifaddrs.
17472 * sysdeps/mach/hurd/libhurduser.abilist: New file.
17473 * sysdeps/mach/libmachuser.abilist: New file.
17474 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
17475 (do_test_bz20181): Rename accordingly.
17476 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
17477 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
17478 <sys/mount.h>.
17479 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
17480 version only if __USE_EXTERN_INLINES is defined.
17481 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
17482 __hurd_sockfail): Likewise.
17483 (_hurd_fd_get): Always declare functions, and provide inline versions
17484 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
17485 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
17486 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
17487 _hurd_port_set): Always declare functions, and provide inline versions
17488 only if __USE_EXTERN_INLINES and _LIBC are defined and
17489 IS_IN(libc).
17490 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
17491 _hurd_critical_section_unlock): Likewise.
17492 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
17493 * __hurd_threadvar_location): Likewise.
17494 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
17495 _hurd_userlink_clear): Likewise.
17496 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
17497 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
17498 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
17499 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
17500 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
17501 __spin_lock_locked): Likewise.
17502 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
17503 __spin_lock_locked): Likewise.
17504 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
17505 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
17506 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
17507 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
17508 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
17509 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
17510 _POSIX_NO_TRUNC): Define to 0.
17511 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
17512 check size against PTHREAD_STACK_MIN.
17513 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
17514 IS_IN(libpthread)]: Include <sigsetops.h>.
17515 * mach/Makefile (user-interfaces): Add mach/gnumach.
17516 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
17517 * sysdeps/mach/configure (mach_interface_list): Regenerate.
17518 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
17519 instead of invalid -1.
17520 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
17521 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
17522 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
17523 <net/ppp_defs.h>.
17524
17525 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
17526
17527 * hurd/fcntl-internal.h: New file.
17528
17529 2018-01-27 James Clarke <jrtc27@jrtc27.com>
17530
17531 * sysdeps/hppa/fpu/libm-test-ulps: Update.
17532
17533 * sysdeps/alpha/fpu/libm-test-ulps: Update.
17534
17535 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
17536
17537 [BZ #22701]
17538 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
17539 Build only shared objects.
17540
17541 2018-01-26 Carlos O'Donell <carlos@redhat.com>
17542
17543 * README: Update for hppa.
17544
17545 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17546
17547 * sysdeps/sparc/fpu/libm-test-ulps: Update
17548 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
17549
17550 2018-01-26 Carlos O'Donell <carlos@redhat.com>
17551
17552 Revert:
17553
17554 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17555
17556 [BZ #22563]
17557 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17558 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
17559 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17560 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
17561 to feature_1.
17562
17563 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17564
17565 [BZ #22563]
17566 * bits/types/__cancel_jmp_buf_tag.h: New file.
17567 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
17568 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
17569 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
17570 * nptl/Makefile (headers): Add
17571 bits/types/__cancel_jmp_buf_tag.h.
17572 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
17573 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
17574 * sysdeps/nptl/pthread.h: Include
17575 <bits/types/__cancel_jmp_buf_tag.h>.
17576 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
17577 __cancel_jmp_buf.
17578 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
17579
17580 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
17581
17582 [BZ #10871]
17583 * localedata/locales/uk_UA (mon): Renamed to...
17584 (alt_mon): This.
17585 (alt_digits): "0" removed and then renamed to...
17586 (mon): This.
17587 (date_fmt): Definition changed not to use the alternative
17588 digits hack.
17589
17590 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
17591
17592 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
17593 FLAG_RISCV_FLOAT_ABI_DOUBLE.
17594 * elf/elf.h (EF_RISCV_RVC): New define.
17595 (EF_RISCV_FLOAT_ABI): Likewise.
17596 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
17597 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
17598 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
17599 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
17600 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
17601 define.
17602 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
17603
17604 2018-01-25 Andreas Schwab <schwab@suse.de>
17605
17606 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
17607 single quotes.
17608 * sysdeps/gnu/configure: Regenerate.
17609 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
17610 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
17611 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
17612 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
17613 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
17614 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
17615 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
17616 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
17617
17618 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
17619
17620 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
17621 URL, and run autoconf, make it the default for now.
17622
17623 2018-01-24 Joseph Myers <joseph@codesourcery.com>
17624
17625 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17626 soft-float ColdFire configuration.
17627
17628 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
17629 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
17630 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
17631
17632 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
17633 MicroBlaze file.
17634
17635 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
17636 ....
17637 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
17638 ... here.
17639 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
17640 New file.
17641
17642 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
17643 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
17644 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
17645 file.
17646
17647 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
17648
17649 [BZ #22742]
17650 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
17651 Rename to __reserved and add comment.
17652 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
17653 Rename to __reserved.
17654
17655 2018-01-24 Joseph Myers <joseph@codesourcery.com>
17656
17657 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17658 i686-gnu configurations.
17659 (Context.run_builds): Include mig, gnumach and hurd in components
17660 considered.
17661 (Context.checkout): Add mig, gnumach and hurd to components.
17662 (Context.checkout_tar): Add URL mappings for mig, gnumach and
17663 hurd.
17664 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
17665 (Config.build): Install gnumach headers, build mig and install
17666 hurd headers for 'gnu' OS.
17667 (Config.install_gnumach_headers): New function.
17668 (Config.install_hurd_headers): Likewise.
17669 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
17670 when building for 'gnu' OS.
17671
17672 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
17673
17674 * manual/tunables.texi (Hardware Capability Tunables): Fix
17675 spelling.
17676
17677 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
17678
17679 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
17680 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
17681 (ALTMON_11, ALTMON_12): Improve documentation.
17682 * manual/time.texi (strftime): Likewise.
17683
17684 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17685
17686 [BZ #10871]
17687 * localedata/locales/pl_PL: Alternative month names added,
17688 primary month names are genitive now.
17689 * time/tst-strptime.c (day_tests): Actually use a genitive case
17690 of a month name in Polish language.
17691
17692 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17693
17694 [BZ #10871]
17695 * manual/locale.texi: Document ALTMON_1..12 constants for
17696 nl_langinfo. Specify when to use ALTMON instead of MON.
17697 * manual/time.texi (strftime, strptime): Document GNU extension
17698 permitting O modifier with %B and %b. Specify when to use
17699 %OB instead of %B.
17700
17701 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17702
17703 [BZ #10871]
17704 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
17705 names, define them as the same as abbreviated month names explicitly.
17706 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
17707 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
17708 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
17709 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
17710 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
17711 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
17712 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
17713 _NL_WABALTMON_12): New enum constants.
17714 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
17715 wab_alt_mon, and ab_alt_mon_defined members.
17716 (time_output): Output ab_alt_mon and wab_alt_mon members.
17717 (time_read): Read them, initialize them as copies of abmon and wabmon
17718 respectively if they are missing, initialize ab_alt_mon_defined.
17719 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
17720 * locale/programs/locfile-kw.h: Regenerate.
17721 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
17722 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
17723 and ru_RU.UTF-8.
17724 * time/strftime_l.c (a_altmonth, aam_len): New macros.
17725 [!COMPILE_WIDE] (ABALTMON_1): New macro.
17726 (__strftime_internal): Handle %Ob and %Oh formats.
17727 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
17728 (__strptime_internal): Handle %Ob and %Oh formats.
17729 * time/tst-strptime.c (day_tests): Add more tests to parse different
17730 forms of month names including the new %Ob format specifier.
17731
17732 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17733
17734 [BZ #10871]
17735 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
17736 define them as the same as primary full month names explicitly.
17737 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
17738 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
17739 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
17740 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
17741 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
17742 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
17743 _NL_WALTMON_12): New enum constants.
17744 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
17745 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
17746 macros.
17747 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
17748 walt_mon, and alt_mon_defined members.
17749 (time_output): Output alt_mon and walt_mon members.
17750 (time_read): Read them, initialize them as copies of mon and wmon
17751 respectively if they are missing, initialize alt_mon_defined.
17752 * locale/programs/locfile-kw.gperf (alt_mon): Define.
17753 * locale/programs/locfile-kw.h: Regenerate.
17754 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
17755 * localedata/tst-langinfo.c (map): Add tests for the new constants
17756 ALTMON_1 .. ALTMON_12.
17757 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
17758 and pl_PL.UTF-8.
17759 * time/strftime_l.c (f_altmonth): New macro.
17760 (__strftime_internal): Handle %OB format.
17761 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
17762 (__strptime_internal): Handle %OB format.
17763 * time/tst-strptime.c (day_tests): Add tests to parse different forms
17764 of month names including the new %OB format specifier.
17765
17766 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17767
17768 [BZ #22685]
17769 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
17770 from ABORT_TRANSACTION.
17771 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
17772 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
17773 ABORT_TRANSACTION_IMPL): Likewise.
17774 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
17775 Linux code, but remove the code that aborts transactions.
17776
17777 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
17778
17779 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
17780
17781 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
17782
17783 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
17784 in date: "2004-14-09" should be "2004-09-14".
17785 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
17786 "2003-15-09" should be "2003-09-15".
17787
17788 2018-01-18 Arjun Shankar <arjun@redhat.com>
17789
17790 [BZ #22343]
17791 [BZ #22774]
17792 CVE-2018-6485
17793 CVE-2018-6551
17794 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
17795 after padding.
17796 (_int_memalign): check for integer overflow before calling
17797 _int_malloc.
17798 * malloc/tst-malloc-too-large.c: New test.
17799 * malloc/Makefile: Add tst-malloc-too-large.
17800
17801 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
17802
17803 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
17804 in date: "2017-24-07" should be "2017-07-24".
17805 * localedata/locales/mai_IN: Likewise.
17806 * localedata/locales/mai_NP: Likewise.
17807
17808 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
17809
17810 * po/ru.po: Update translations.
17811
17812 2018-01-17 Joseph Myers <joseph@codesourcery.com>
17813
17814 [BZ #22719]
17815 * sysdeps/hppa/backtrace.c: New file.
17816
17817 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
17818
17819 [BZ #22715]
17820 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
17821 align La_x86_64_retval to VEC_SIZE.
17822
17823 2018-01-16 Joseph Myers <joseph@codesourcery.com>
17824
17825 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
17826 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
17827
17828 2018-01-16 Florian Weimer <fweimer@redhat.com>
17829
17830 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
17831 Move tst-thread-exit-clobber ...
17832 [$(CXX)] (tests-unsupported): ... to here.
17833
17834 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
17835
17836 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
17837 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
17838 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17839 (_dl_aarch64_cap_flags): Update.
17840 (_DL_HWCAP_COUNT): Update.
17841
17842 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
17843
17844 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
17845 (_DL_HWCAP_LAST): Remove.
17846 (_DL_HWCAP_COUNT): Move to ...
17847 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17848 (_DL_HWCAP_COUNT): ... here.
17849
17850 2018-01-16 Florian Weimer <fweimer@redhat.com>
17851
17852 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
17853 mode with GNU extensions.
17854
17855 2018-01-15 Alan Hayward <alan.hayward@arm.com>
17856
17857 * elf/elf.h (NT_ARM_SVE): Define.
17858
17859 2018-01-15 Florian Weimer <fweimer@redhat.com>
17860
17861 [BZ #22636]
17862 * nptl/tst-minstack-throw.cc: New file.
17863 * nptl/Makefile (tests): Add tst-minstack-throw.
17864 (LDLIBS-tst-minstack-throw): Link with libstdc++.
17865 [!CXX] (tests-unsupported): Add tst-minstack-throw.
17866
17867 2018-01-15 Joseph Myers <joseph@codesourcery.com>
17868
17869 * scripts/build-many-glibcs.py (Context.checkout): Default
17870 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
17871 version to 1.1.0.
17872
17873 2018-01-13 Carlos O'Donell <carlos@redhat.com>
17874
17875 [BZ #22707]
17876 * elf/elf.h (DF_1_STUB): Define.
17877 (DF_1_PIE): Define.
17878
17879 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17880
17881 [BZ #22697]
17882 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
17883 Do not add 0.5 to integer or out-of-range arguments.
17884
17885 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
17886
17887 * po/bg.po: Update translations.
17888 * po/cs.po: Likewise.
17889 * po/de.po: Likewise.
17890 * po/ko.po: Likewise.
17891 * po/pl.po: Likewise.
17892 * po/sv.po: Likewise.
17893 * po/uk.po: Likewise.
17894 * po/vi.po: Likewise.
17895
17896 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
17897
17898 * aarch64/start.S (_start): Use __wrap_main.
17899 (__wrap_main): New local symbol.
17900
17901 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
17902
17903 [BZ #22679]
17904 CVE-2018-1000001
17905 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
17906 generic_getcwd if the path returned by getcwd syscall is not absolute.
17907 * io/tst-getcwd-abspath.c: New test.
17908 * io/Makefile (tests): Add tst-getcwd-abspath.
17909
17910 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
17911
17912 * malloc/malloc.c (malloc_consolidate): Add size check.
17913
17914 2018-01-12 Florian Weimer <fweimer@redhat.com>
17915
17916 * support/write_message.c (write_message): Preserve errno.
17917 * support/check.c (print_failure): Likewise.
17918 * support/support_test_verify_impl.c (support_test_verify_impl):
17919 Likewise.
17920 * support/support_test_compare_failure.c
17921 (support_test_compare_failure): Likewise.
17922
17923 2018-01-12 Florian Weimer <fweimer@redhat.com>
17924
17925 [BZ #22701]
17926 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
17927 Prevent installation of libnsl.so.
17928 (libnsl-inhibit-o): Do not build (or install) static libraries.
17929
17930 2018-01-12 Egmont Koblinger <egmont@gmail.com>
17931
17932 [BZ #22657]
17933 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
17934 before the day number which may produce a double space.
17935 (date_fmt): Likewise.
17936
17937 2018-01-12 Joseph Myers <joseph@codesourcery.com>
17938
17939 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
17940 instead of fegetenv.
17941
17942 2018-01-11 Joseph Myers <joseph@codesourcery.com>
17943
17944 [BZ #22702]
17945 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
17946 comment to say exceptions are discarded.
17947 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
17948 __fegetenv.
17949 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
17950 be enabled.
17951
17952 2018-01-11 Florian Weimer <fweimer@redhat.com>
17953
17954 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
17955 and error message.
17956
17957 2018-01-11 Florian Weimer <fweimer@redhat.com>
17958
17959 [BZ #22636]
17960 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
17961 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
17962
17963 2018-01-10 Joseph Myers <joseph@codesourcery.com>
17964
17965 [BZ #22693]
17966 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
17967 negative arguments in test for NaN or infinity argument.
17968
17969 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
17970
17971 * po/libc.pot: Regenerate.
17972
17973 2018-01-10 Florian Weimer <fweimer@redhat.com>
17974
17975 [BZ #22636]
17976 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
17977 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
17978
17979 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
17980
17981 * hurd/hurd/fd.h: Include <fcntl.h>
17982 (__hurd_at_flags): New function.
17983 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
17984 with call to __hurd_at_flags.
17985 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
17986 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
17987 __faccessat
17988 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
17989 (__access_noerrno): Use __faccessat_common instead of access_common.
17990 (__access): Likewise.
17991 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
17992 with a call to __faccessat.
17993 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
17994 (__faccessat_common): ... this. Move implementation of __access into it when
17995 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
17996 reauthenticate_cwdir_at helper to implement AT mechanism.
17997 (__faccessat_noerrno): New function, just calls __faccessat_common.
17998 (__faccessat): New function, just calls __faccessat_common.
17999 (faccessat): Define weak alias.
18000
18001 2018-01-10 Joseph Myers <joseph@codesourcery.com>
18002
18003 [BZ #22691]
18004 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
18005 (CFLAGS-s_fmaxmagl.c): New variable.
18006 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
18007
18008 [BZ #22690]
18009 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
18010 long int for arguments of possibly overflowing addition or
18011 subtraction.
18012 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
18013
18014 2018-01-09 Joseph Myers <joseph@codesourcery.com>
18015
18016 [BZ #22688]
18017 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
18018 (CFLAGS-e_remainderl.c): New variable.
18019
18020 [BZ #22687]
18021 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
18022 variable.
18023 (CFLAGS-s_cacoshl.c): Likewise.
18024 (CFLAGS-s_casinhl.c): Likewise.
18025 (CFLAGS-s_catanl.c): Likewise.
18026 (CFLAGS-s_catanhl.c): Likewise.
18027 (CFLAGS-s_cexpl.c): Likewise.
18028 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
18029 (CFLAGS-s_csinhl.c): Likewise.
18030 (CFLAGS-s_clogl.c): Likewise.
18031 (CFLAGS-s_clog10l.c): Likewise.
18032 (CFLAGS-s_csinl.c): Likewise.
18033 (CFLAGS-s_csqrtl.c): Likewise.
18034
18035 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
18036 2017-01-09 Svante Signell <svante.signell@gmail.com>
18037
18038 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
18039 (_hurd_exec_paths): New function.
18040 * hurd/hurd.h (_hurd_exec): Deprecate function.
18041 (_hurd_exec_paths): Declare function.
18042 * hurd/Versions: Export _hurd_exec_paths.
18043 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
18044 (__execve): Use __getcwd to build absolute path, and use
18045 _hurd_exec_paths instead of _hurd_exec.
18046 * sysdeps/mach/hurd/spawni.c: Likewise.
18047 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
18048 _hurd_exec.
18049
18050 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
18051
18052 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
18053 test instead of failing in case of ENOENT returned by posix_openpt.
18054
18055 2018-01-08 Florian Weimer <fweimer@redhat.com>
18056
18057 resolv: Support binary labels in test framework.
18058 * support/resolv_test.c (struct to_be_freed): Remove.
18059 (struct compressed_name): New.
18060 (allocate_compressed_name, ascii_tolower)
18061 (compare_compressed_name): New functions.
18062 (struct resolv_response_builder): Update type of
18063 compression_offsets for use with tsearch. Rempve to_be_freed.
18064 (response_push_pointer_to_free): Remove function.
18065 (resolv_response_add_name): Rewrite using struct compressed_name
18066 and tsearch instead of hsearch_r.
18067 (response_builder_allocate): Remove initialization of
18068 compression_offsets.
18069 (response_builder_free): Update for removal of to_be_freed. Use
18070 tdestroy instead of hdestroy_r.
18071 * resolv/Makefile (tests): Add tst-resolv-binary.
18072 (tst-resolv-binary): Link with -lresolv -lpthread.
18073
18074 2018-01-08 Florian Weimer <fweimer@redhat.com>
18075
18076 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
18077 time. Pass positive flag instead of negative flag to
18078 support_test_compare_failure.
18079 (support_test_compare_failure): Change negative parameter to
18080 positive.
18081 * support/support_test_compare_failure.c (report)
18082 (support_test_compare_failure): Likewise.
18083 * support/tst-test_compare.c (return_ssize_t, return_int): New.
18084 (do_test): Check int/size_t, ssize_t/size_t comparisons.
18085
18086 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
18087
18088 [BZ #22637]
18089 * nptl/descr.h (stackblock, stackblock_size): Update comments.
18090 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
18091 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
18092 stacksize.
18093 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
18094
18095 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
18096
18097 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18098 Add s_sincosf-sse2 and s_sincosf-fma.
18099 (CFLAGS-s_sincosf-fma.c): New.
18100 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
18101 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
18102 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
18103 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
18104 __sincosf is defined.
18105
18106 2018-01-08 Florian Weimer <fweimer@redhat.com>
18107
18108 * nptl/tst-thread-exit-clobber.cc: New file.
18109 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
18110 C++11 mode.
18111 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
18112 (tests): Add tst-thread-exit-clobber.
18113 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
18114
18115 2018-01-08 Florian Weimer <fweimer@redhat.com>
18116
18117 * support/check.h (support_static_assert): Define.
18118 (TEST_COMPARE): Use it.
18119
18120 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
18121
18122 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
18123 [!__RLIM_T_MATCHES_RLIM64_T]
18124 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
18125 __getrlimit64. Add libc_hidden_weak.
18126
18127 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
18128
18129 * elf/elf.h (R_RISCV_NONE): New define.
18130 (R_RISCV_32): Likewise.
18131 (R_RISCV_64): Likewise.
18132 (R_RISCV_RELATIVE): Likewise.
18133 (R_RISCV_COPY): Likewise.
18134 (R_RISCV_JUMP_SLOT): Likewise.
18135 (R_RISCV_TLS_DTPMOD32): Likewise.
18136 (R_RISCV_TLS_DTPMOD64): Likewise.
18137 (R_RISCV_TLS_DTPREL32): Likewise.
18138 (R_RISCV_TLS_DTPREL64): Likewise.
18139 (R_RISCV_TLS_TPREL32): Likewise.
18140 (R_RISCV_TLS_TPREL64): Likewise.
18141 * Makerules (make-link-multidir): Make directories before linking into
18142 them.
18143 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
18144 define.
18145 (VDSO_HASH_LINUX_4_15): Likewise.
18146 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
18147 in subdirectories of lib.
18148 * nptl/Makefile (/librt.so): Always depend on
18149 "$(shared-thread-library)".
18150
18151 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
18152
18153 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
18154 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
18155 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
18156 (___tls_get_addr).
18157 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
18158 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
18159 "-O2 -march=i686".
18160 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
18161 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
18162 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
18163 * sysdeps/gnu/glob-lstat-compat.c: New file.
18164 * sysdeps/gnu/glob64-lstat-compat.c: New file.
18165 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
18166
18167 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
18168
18169 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
18170 Reserve 16 chars to reloc_addr before calling _itoa_word.
18171
18172 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
18173
18174 [BZ #22678]
18175 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
18176 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
18177
18178 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
18179 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
18180
18181 * resource/tst-getrlimit.c: Add copyright header.
18182
18183 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
18184 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18185
18186 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
18187 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
18188 Define __GI_getrlimit64 as weak alias of __getrlimit64.
18189 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
18190 instead.
18191 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
18192 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
18193 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
18194 RLIM64_INFINITY): Fix values to match the kernel ones.
18195 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
18196 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
18197 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
18198 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
18199 getrlimit64@@GLIBC_2_27.
18200 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
18201 and setrlimit64.
18202 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
18203 getrlimit, setrlimit, getrlimit64 and setrlimit64.
18204 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
18205 setrlimit, getrlimit64 and setrlimit64.
18206
18207 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
18208
18209 [BZ #22648]
18210 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
18211 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
18212
18213 2018-01-04 Joseph Myers <joseph@codesourcery.com>
18214
18215 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
18216 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
18217 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
18218
18219 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18220
18221 [BZ #15479]
18222 [BZ #22666]
18223 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
18224 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
18225
18226 [BZ #15479]
18227 [BZ #22665]
18228 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
18229 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
18230 * sysdeps/alpha/fpu/s_floor.c: Likewise.
18231 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
18232
18233 2018-01-04 Florian Weimer <fweimer@redhat.com>
18234
18235 [BZ #22667]
18236 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
18237 Align the stack before calling exit.
18238 * stdlib/tst-makecontext-align.c: New file.
18239 * stdlib/Makefile (tests): Add tst-makecontext-align.
18240
18241 2018-01-04 Florian Weimer <fweimer@redhat.com>
18242
18243 Add support for calling dlvsym from libc.so.
18244 * include/dlfcn.h (__libc_dlvsym): Declare.
18245 * elf/Makefile (tests-static-internal): Add
18246 tst-libc_dlvsym-static.
18247 (tests-internal): Add tst-libc_dlvsym.
18248 (modules-names): Add tst-libc_dlvsym-dso.
18249 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
18250 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
18251 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
18252 object tst-libc_dlvsym-dso.so needs to be built before running
18253 these tests.
18254 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
18255 * elf/Versions: Export __libc_dlvsym.
18256 * elf/dl-libc.c (struct do_dlvsym_args): New.
18257 (do_dlvsym, __libc_dlvsym): New functions.
18258 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
18259 (_dl_open_hook2): New variable.
18260 (__libc_register_dl_open_hook): Set it.
18261 * elf/tst-libc_dlvsym-dso.c: New file.
18262 * elf/tst-libc_dlvsym-static.c: Likewise.
18263 * elf/tst-libc_dlvsym.c: Likewise.
18264 * elf/tst-libc_dlvsym.h: Likewise.
18265
18266 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
18267
18268 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
18269 include <sys/mount.h>.
18270
18271 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
18272
18273 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
18274 Add __NO_MATH_ERRNO__ check.
18275
18276 2018-01-02 Joseph Myers <joseph@codesourcery.com>
18277
18278 * sysdeps/mips/mips32/libm-test-ulps: Update.
18279 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
18280
18281 2018-01-02 Florian Weimer <fweimer@redhat.com>
18282
18283 * misc/tst-pselect.c: Add copyright header.
18284
18285 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
18286
18287 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
18288 comment.
18289 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
18290 comment.
18291 (settrlimit): Rename into setrlimit.
18292 (__sttrlimit): Rename into __setrlimit.
18293
18294 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
18295 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
18296 never defined in that case.
18297
18298 2018-01-02 Joseph Myers <joseph@codesourcery.com>
18299
18300 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
18301
18302 * sysdeps/arm/libm-test-ulps: Update.
18303
18304 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
18305 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
18306
18307 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18308
18309 * NEWS: Add cosf and sincosf to list of optimized functions.
18310
18311 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
18312
18313 [BZ #22660]
18314 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
18315 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
18316 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
18317 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
18318
18319 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
18320
18321 [BZ #22433]
18322 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
18323
18324 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
18325 making a copy of it.
18326
18327 2018-01-01 Joseph Myers <joseph@codesourcery.com>
18328
18329 * manual/texinfo.tex: Update to version 2017-12-26.21 with
18330 trailing whitespace removed.
18331 * scripts/config.guess: Update to version 2018-01-01.
18332 * scripts/config.sub: Update to version 2018-01-01.
18333 * scripts/move-if-change: Update from gnulib.
18334
18335 * NEWS: Update copyright dates.
18336 * catgets/gencat.c (print_version): Likewise.
18337 * csu/version.c (banner): Likewise.
18338 * debug/catchsegv.sh: Likewise.
18339 * debug/pcprofiledump.c (print_version): Likewise.
18340 * debug/xtrace.sh (do_version): Likewise.
18341 * elf/ldconfig.c (print_version): Likewise.
18342 * elf/ldd.bash.in: Likewise.
18343 * elf/pldd.c (print_version): Likewise.
18344 * elf/sotruss.sh: Likewise.
18345 * elf/sprof.c (print_version): Likewise.
18346 * iconv/iconv_prog.c (print_version): Likewise.
18347 * iconv/iconvconfig.c (print_version): Likewise.
18348 * locale/programs/locale.c (print_version): Likewise.
18349 * locale/programs/localedef.c (print_version): Likewise.
18350 * login/programs/pt_chown.c (print_version): Likewise.
18351 * malloc/memusage.sh (do_version): Likewise.
18352 * malloc/memusagestat.c (print_version): Likewise.
18353 * malloc/mtrace.pl: Likewise.
18354 * manual/libc.texinfo: Likewise.
18355 * nptl/version.c (banner): Likewise.
18356 * nscd/nscd.c (print_version): Likewise.
18357 * nss/getent.c (print_version): Likewise.
18358 * nss/makedb.c (print_version): Likewise.
18359 * posix/getconf.c (main): Likewise.
18360 * scripts/test-installation.pl: Likewise.
18361 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
18362
18363 * All files with FSF copyright notices: Update copyright dates
18364 using scripts/update-copyrights.
18365 * locale/programs/charmap-kw.h: Regenerated.
18366 * locale/programs/locfile-kw.h: Likewise.
18367
18368 2017-12-31 Zack Weinberg <zackw@panix.com>
18369
18370 * libio/bits/libio-ldbl.h: Correct check for improper
18371 inclusion. Add own multiple include guard.
18372
18373 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
18374 Dmitry V. Levin <ldv@altlinux.org>
18375
18376 [BZ #22625]
18377 CVE-2017-16997
18378 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
18379 string token expansion. Check for NULL pointer or empty string possibly
18380 returned by expand_dynamic_string_token.
18381 (decompose_rpath): Check for empty path after dynamic string
18382 token expansion.
18383
18384 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
18385
18386 [BZ #22433]
18387 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
18388
18389 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
18390 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
18391 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
18392 and PTRACE_SYSCALL.
18393 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
18394 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18395 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18396 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18397 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18398 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
18399
18400 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
18401 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
18402 __ptrace_peeksiginfo_flags, ptrace): Move to ...
18403 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
18404 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18405 bits/ptrace-shared.h.
18406 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
18407 <bits/ptrace-shared.h>.
18408 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
18409 __ptrace_peeksiginfo_flags, ptrace): Remove.
18410 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18411 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18412 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18413 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18414 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
18415
18416 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
18417
18418 [BZ #17804]
18419 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
18420 end of the loop. Improve comments.
18421
18422 2017-12-29 Zack Weinberg <zackw@panix.com>
18423
18424 [BZ #22615]
18425 * manual/errno.texi (Checking for Errors): Explicitly say that errno
18426 might be set on success.
18427
18428 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
18429
18430 [BZ #22611]
18431 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
18432 is unchanged on success.
18433
18434 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
18435
18436 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
18437 updated.
18438 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
18439 expand_dynamic_string_token): Likewise.
18440 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
18441 is_path argument.
18442
18443 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
18444 contains ':'.
18445
18446 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
18447 is set and name contains ':', and all code depending on these checks.
18448
18449 2017-12-24 Zack Weinberg <zackw@panix.com>
18450
18451 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
18452 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
18453 respectively.
18454 * libio/libio.h: Rename the original version of this file to
18455 libio/bits/libio.h. Error out if not included by stdio.h or the
18456 stub libio.h.
18457 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
18458 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
18459 if not included by bits/libio.h or the stub _G_config.h.
18460 * sysdeps/unix/sysv/linux/_G_config.h: Move to
18461 sysdeps/unix/sysv/linux/bits. Error out if not included by
18462 bits/libio.h or the stub _G_config.h.
18463 * libio/stdio.h: Include bits/libio.h, not libio.h.
18464 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
18465 well as libio.h and _G_config.h.
18466
18467 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
18468 * libio/strfile.h, stdio-common/vfscanf.c
18469 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
18470 Include stdio.h, not _G_config.h nor libio.h.
18471 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
18472 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
18473
18474 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
18475
18476 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
18477
18478 [BZ #22347]
18479 * stdlib/getrandom.c (getrandom): Fix comment.
18480 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
18481
18482 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
18483
18484 [BZ #21161]
18485 * manual/arith.texi (strtoul): Fix a typo.
18486
18487 [BZ #22596]
18488 * manual/arith.texi (finite): Fix the description of the return
18489 value.
18490
18491 2017-12-22 Eric Blake <ebb9@byu.net>
18492
18493 Avoid gcc warnings on cygwin
18494 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
18495 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
18496 Avoid unused variable.
18497
18498 2017-12-22 Florian Weimer <fweimer@redhat.com>
18499
18500 * io/Makefile (routines): Add copy_file_range.
18501 (tests): Add tst-copy_file_range.
18502 (tests-static, tests-internal): Add tst-copy_file_range-compat.
18503 * io/Versions (GLIBC_2.27): Export copy_file_range.
18504 * io/copy_file_range-compat.c: New file.
18505 * io/copy_file_range.c: Likewise.
18506 * io/tst-copy_file_range-compat.c: Likewise.
18507 * io/tst-copy_file_range.c: Likewise.
18508 * manual/llio.texi (Copying File Data): New section.
18509 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
18510 * support/Makefile (libsupport-routines): Add support-xfstat,
18511 xftruncate, xlseek.
18512 * support/support-xfstat.c: New file.
18513 * support/xftruncate.c: Likewise.
18514 * support/xlseek.c: Likewise.
18515 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
18516 * sysdeps/unix/sysv/linux/**.abilist: Update.
18517 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
18518
18519 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
18520
18521 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18522 disable-multi-arch variant to aarch64-linux-gnu.
18523
18524 2017-12-20 Joseph Myers <joseph@codesourcery.com>
18525
18526 * manual/texinfo.tex: Update to version 2017-12-18.20 with
18527 trailing whitespace removed.
18528 * scripts/config.guess: Update to version 2017-12-17.
18529 * scripts/config.sub: Update to version 2017-11-23.
18530 * scripts/install-sh: Update to version 2017-09-23.17.
18531 * scripts/move-if-change: Update to version 2017-09-13 06:45.
18532
18533 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18534
18535 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
18536 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
18537 * sysdeps/tile/_mcount.S (__mcount): Likewise.
18538 * sysdeps/tile/crti.S (_init, _fini): Likewise.
18539 * sysdeps/tile/crtn.S: Likewise.
18540 * sysdeps/tile/dl-start.S (_start): Likewise.
18541 * sysdeps/tile/dl-trampoline.S: Likewise.
18542 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
18543 * sysdeps/tile/start.S (_start): Likewise.
18544 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
18545 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
18546 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
18547 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
18548 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
18549 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
18550 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
18551
18552 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
18553 comment.
18554 * sysdeps/tile/preconfigure: Remove tilegx folder.
18555 * sysdeps/tile/tilegx/Implies: Move definitions to ...
18556 * sysdeps/tile/Implies: ... here.
18557 * sysdeps/tile/tilegx/Makefile: Move rules to ...
18558 * sysdeps/tile/Makefile: ... here.
18559 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
18560 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
18561 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
18562 * sysdeps/tile/bits/wordsize.h: ... here.
18563 * sysdeps/tile/tilegx/*: Move to ...
18564 * sysdeps/tile/*: ... here.
18565 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
18566 * sysdeps/tile/tilegx32/Implies: ... here.
18567 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
18568 * sysdeps/tile/tilegx64/Implies: ... here.
18569 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
18570 to ...
18571 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
18572 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
18573 * sysdeps/unix/sysv/linux/tile/*: ... here.
18574 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
18575 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
18576 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
18577 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
18578
18579 * README: Remove tilepro-*-linux-gnu from supported architecture.
18580 * scripts/build-many-glibcs.py: Likewise.
18581 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
18582 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
18583 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
18584 elf_machine_matches_host, elf_machine_dynamic,
18585 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
18586 howto, elf_machine_rela): Likewise.
18587 * sysdeps/tile/dl-start.S (_start): Likewise.
18588 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
18589 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
18590 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
18591 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
18592 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
18593 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
18594 Likewise.
18595 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
18596 * sysdeps/tile/preconfigure: Likewise.
18597 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
18598 POINTER_CHK_GUARD): Likewise.
18599 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
18600 * sysdeps/tile/start.S (_start): Likewise.
18601 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
18602 Likewise.
18603 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
18604 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
18605 CMOVNEZ): Remove.
18606 * sysdeps/unix/sysv/linux/tile/bits/environments.h
18607 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
18608 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
18609 Likewise.
18610 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
18611 * sysdeps/tile/tilepro/Implies: Remove file.
18612 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
18613 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
18614 * sysdeps/tile/tilepro/memchr.c: Likewise.
18615 * sysdeps/tile/tilepro/memcpy.S: Likewise.
18616 * sysdeps/tile/tilepro/memset.c: Likewise.
18617 * sysdeps/tile/tilepro/memusage.h: Likewise.
18618 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
18619 * sysdeps/tile/tilepro/strchr.c: Likewise.
18620 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
18621 * sysdeps/tile/tilepro/strlen.c: Likewise.
18622 * sysdeps/tile/tilepro/strrchr.c: Likewise.
18623 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
18624 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
18625 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
18626 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
18627 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
18628 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
18629 Likewise.
18630 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
18631 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18632 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
18633 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
18634 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18635 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
18636 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
18637 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
18638 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
18639 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
18640 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
18641 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
18642 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
18643 tilepro mention in comment.
18644
18645 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
18646 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
18647 * nptl/pthread_join_common.c: New file: common function used on
18648 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
18649 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
18650 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
18651 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
18652 (cleanup): Move definition to pthread_join_common.c.
18653 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
18654 Remove superflous checks.
18655 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
18656 Likewise.
18657
18658 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
18659
18660 * sysdeps/aarch64/libm-test-ulps: Update.
18661
18662 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18663
18664 * sysdeps/aarch64/memset.S (MEMSET): Define.
18665
18666 2017-12-20 Florian Weimer <fweimer@redhat.com>
18667
18668 [BZ #22635]
18669 nptl: Provide full implementation of pthread_self in libc.so.
18670 * nptl/Makefile (routines): Add pthread_self.
18671 (libpthread-routines): Replace pthread_self with
18672 compat-pthread_self.
18673 * nptl/forward.c (pthread_self): Remove.
18674 * nptl/nptl-init.c (pthread_functions): Do not initialize
18675 ptr_pthread_self.
18676 * nptl/pthread_self.c (pthread_self): Remove weak alias.
18677 * nptl/compat-pthread_self.c: New file.
18678 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
18679 Remove ptr_pthread_self.
18680
18681 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
18682
18683 * posix/regcomp.c: Fix spelling in comments.
18684 * posix/regex.h: Likewise.
18685 * posix/regex_internal.c: Likewise.
18686 * posix/regexec.c: Likewise.
18687
18688 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
18689
18690 [BZ #22377]
18691 * math/Makefile [C++] (tests): Add test for iseqsig.
18692 * math/math.h [C++] (iseqsig): New implementation, which does
18693 not rely on __MATH_TG/__builtin_types_compatible_p.
18694 * math/test-math-iseqsig.cc: New file.
18695 * sysdeps/powerpc/powerpc64le/Makefile
18696 (CFLAGS-test-math-iseqsig.cc): New variable.
18697
18698 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
18699
18700 * elf/dl-load.c (is_trusted_path): Remove.
18701 (fillin_rpath): Remove check_trusted argument and its use,
18702 all callers changed.
18703
18704 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18705
18706 [BZ #22630]
18707 * Makeconfig (link-pie-before-libc): Replace -pie with
18708 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
18709 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
18710 (tst-dlopen-aout-no-pie): New.
18711 (LDFLAGS-tst-prelink): Removed.
18712 (tst-prelink-no-pie): New.
18713 (LDFLAGS-tst-main1): Removed.
18714 (tst-main1-no-pie): New.
18715 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
18716 (tst-gmon-no-pie): New.
18717
18718 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18719
18720 * manual/install.texi: Document that --enable-static-pie
18721 implies PIE.
18722 * INSTALL: Regenerated.
18723
18724 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
18725
18726 [BZ #21309]
18727 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
18728 unsigned.
18729
18730 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18731
18732 Revert:
18733
18734 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18735
18736 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18737
18738 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18739
18740 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18741 <errno.h>. Include "eexp.tbl".
18742 (half): New constant.
18743 (one): Likewise.
18744 (__ieee754_exp): Rewrite.
18745 (__slowexp): Remove prototype.
18746 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18747 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18748 * sysdeps/i386/fpu/slowexp.c: Likewise.
18749 * sysdeps/ia64/fpu/slowexp.c: Likewise.
18750 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18751 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18752 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18753 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18754 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18755 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18756 comment.
18757 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18758 (CPPFLAGS-slowexp.c): Remove variable.
18759 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18760 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18761 (CFLAGS-slowexp-fma.c): Remove variable.
18762 (CFLAGS-slowexp-fma4.c): Likewise.
18763 (CFLAGS-slowexp-avx.c): Likewise.
18764 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18765 define as macro.
18766 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18767 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18768 * math/Makefile (type-double-routines): Remove slowexp.
18769 * manual/probes.texi (slowexp_p6): Remove.
18770 (slowexp_p32): Likewise.
18771
18772 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18773
18774 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
18775 arithmetic.
18776
18777 * lib/glob.c (glob): Do not pass NULL to mempcpy.
18778
18779 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18780
18781 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18782
18783 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18784
18785 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18786 <errno.h>. Include "eexp.tbl".
18787 (half): New constant.
18788 (one): Likewise.
18789 (__ieee754_exp): Rewrite.
18790 (__slowexp): Remove prototype.
18791 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18792 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18793 * sysdeps/i386/fpu/slowexp.c: Likewise.
18794 * sysdeps/ia64/fpu/slowexp.c: Likewise.
18795 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18796 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18797 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18798 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18799 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18800 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18801 comment.
18802 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18803 (CPPFLAGS-slowexp.c): Remove variable.
18804 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18805 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18806 (CFLAGS-slowexp-fma.c): Remove variable.
18807 (CFLAGS-slowexp-fma4.c): Likewise.
18808 (CFLAGS-slowexp-avx.c): Likewise.
18809 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18810 define as macro.
18811 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18812 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18813 * math/Makefile (type-double-routines): Remove slowexp.
18814 * manual/probes.texi (slowexp_p6): Remove.
18815 (slowexp_p32): Likewise.
18816
18817 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18818 James Clarke <jrtc27@jrtc27.com>
18819
18820 [BZ #22603]
18821 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
18822 addition.
18823
18824 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18825
18826 [BZ #22605]
18827 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
18828 code.
18829
18830 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18831
18832 [BZ #22563]
18833 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18834 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
18835 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18836 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
18837 to feature_1.
18838
18839 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18840
18841 [BZ #22563]
18842 * bits/types/__cancel_jmp_buf_tag.h: New file.
18843 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
18844 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
18845 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
18846 * nptl/Makefile (headers): Add
18847 bits/types/__cancel_jmp_buf_tag.h.
18848 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
18849 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
18850 * sysdeps/nptl/pthread.h: Include
18851 <bits/types/__cancel_jmp_buf_tag.h>.
18852 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
18853 __cancel_jmp_buf.
18854 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
18855
18856 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
18857
18858 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18859 --enable-static-pie variants to x86_64, x32 and i686.
18860
18861 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18862
18863 [BZ #22631]
18864 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
18865 argument for attrubutes. All callers changed.
18866 (__inline_mathop1): Likewise. All callers changed.
18867 (__inline_mathop): Likewise. All callers changed.
18868 [__USE_MISC] (scalbn): Use __inline_forward instead of
18869 __inline_forward_c.
18870 [__USE_ISOC99] (scalbln): Likewise.
18871 [__USE_ISOC99] (nearbyint): Likewise.
18872 [__USE_ISOC99] (lrint): Likewise.
18873 [__USE_MISC] (scalbnf): Likewise.
18874 [__USE_ISOC99] (scalblnf): Likewise.
18875 [__USE_ISOC99] (nearbyintf): Likewise.
18876 [__USE_ISOC99] (lrintf): Likewise.
18877 [__USE_MISC] (scalbnl): Likewise.
18878 [__USE_ISOC99] (scalblnl): Likewise.
18879 [__USE_ISOC99] (nearbyintl): Likewise.
18880 [__USE_ISOC99] (lrintl): Likewise.
18881 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
18882 __inline_mathop and __m81_defun changed.
18883
18884 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
18885 CPU or FPU for ARM hard-float configurations.
18886
18887 2017-12-18 Joseph Myers <joseph@codesourcery.com>
18888
18889 * nptl/tst-attr3.c: Include <libc-diag.h>.
18890 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
18891
18892 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
18893
18894 * string/tester.c (test_strncat): Also disable -Warray-bounds
18895 warnings for two tests.
18896
18897 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
18898
18899 [BZ #22614]
18900 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
18901 $(cc-pie-default) == yes.
18902 * config.make.in (cc-pie-default): New.
18903 * configure.ac (libc_cv_pie_default): Renamed to ...
18904 (libc_cv_cc_pie_default): This.
18905 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
18906 * configure: Regenerated.
18907
18908 2017-12-18 Florian Weimer <fweimer@redhat.com>
18909
18910 [BZ #20204]
18911 ld.so: Harden dl-libc/libdl hooks.
18912 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
18913 (rtld_active): New function.
18914 * dlfcn/dladdr.c (__dladdr): Call it.
18915 * dlfcn/dladdr1.c (__dladdr1): Likewise.
18916 * dlfcn/dlclose.c (__dlcose): Likewise.
18917 * dlfcn/dlerror.c (__dlerror): Likewise.
18918 * dlfcn/dlinfo.c (__dlinfo): Likewise.
18919 * dlfcn/dlmopen.c (__dlmopen): Likewise.
18920 * dlfcn/dlopen.c (__dlopen): Likewise.
18921 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
18922 * dlfcn/dlsym.c (__dlsym): Likewise.
18923 * dlfcn/dlvsym.c (__dlvsym): Likewise.
18924 * libio/vtables.c (_IO_vtable_check): Likewise.
18925 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
18926 (__libc_dlclose): Likewise.
18927 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
18928 assignment.
18929
18930 2017-12-18 Joseph Myers <joseph@codesourcery.com>
18931
18932 [BZ #22446]
18933 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
18934 buffers for readlink input and output.
18935
18936 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
18937
18938 [BZ #22624]
18939 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
18940 inhibit_stack_protector.
18941
18942 [BZ #22624]
18943 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
18944 inhibit_stack_protector.
18945
18946 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
18947
18948 [BZ #22627]
18949 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
18950 code and invocation.
18951
18952 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
18953
18954 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
18955
18956 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
18957
18958 [BZ #22505]
18959 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
18960
18961 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18962
18963 * sysdeps/s390/fpu/libm-test-ulps: Update.
18964
18965 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18966
18967 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18968
18969 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18970
18971 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
18972 constants to s_sincosf.h file.
18973 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
18974 * sysdeps/ieee754/flt-32/s_sincosf.c: New
18975 implementation.
18976 * sysdeps/ieee754/flt-32/s_sincosf.h:
18977 New file.
18978
18979 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18980
18981 [BZ #14681]
18982 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
18983 before mtrace.
18984
18985 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
18986
18987 [BZ #19574]
18988 * INSTALL: Regenerated.
18989 * Makeconfig (real-static-start-installed-name): New.
18990 (pic-default): Updated for --enable-static-pie.
18991 (pie-default): New for --enable-static-pie.
18992 (default-pie-ldflag): Likewise.
18993 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
18994 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
18995 Replace $(static-start-installed-name) with
18996 $(real-static-start-installed-name).
18997 (+prectorT): Updated for --enable-static-pie.
18998 (+postctorT): Likewise.
18999 (CFLAGS-.o): Add $(pie-default).
19000 (CFLAGS-.op): Likewise.
19001 * NEWS: Mention --enable-static-pie.
19002 * config.h.in (ENABLE_STATIC_PIE): New.
19003 * configure.ac (--enable-static-pie): New configure option.
19004 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
19005 (have-static-pie): Likewise.
19006 Enable static PIE if linker supports --no-dynamic-linker.
19007 (ENABLE_STATIC_PIE): New AC_DEFINE.
19008 (enable-static-pie): New LIBC_CONFIG_VAR.
19009 * configure: Regenerated.
19010 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
19011 gr$(start-installed-name) for --enable-static-pie.
19012 (extra-objs): Likewise.
19013 (install-lib): Likewise.
19014 (extra-objs): Add static-reloc.o and static-reloc.os
19015 ($(objpfx)$(start-installed-name)): Also depend on
19016 $(objpfx)static-reloc.o.
19017 ($(objpfx)r$(start-installed-name)): New.
19018 ($(objpfx)g$(start-installed-name)): Also depend on
19019 $(objpfx)static-reloc.os.
19020 ($(objpfx)gr$(start-installed-name)): New.
19021 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
19022 in libc.a.
19023 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
19024 initimage.
19025 * csu/static-reloc.c: New file.
19026 * elf/Makefile (routines): Add dl-reloc-static-pie.
19027 (elide-routines.os): Likewise.
19028 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
19029 (tst-tls1-static-non-pie-no-pie): New.
19030 * elf/dl-reloc-static-pie.c: New file.
19031 * elf/dl-support.c (_dl_get_dl_main_map): New function.
19032 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
19033 STATIC_PIE_BOOTSTRAP.
19034 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
19035 * gmon/Makefile (tests): Add tst-gmon-static-pie.
19036 (tests-static): Likewise.
19037 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
19038 (tst-gmon-static-no-pie): New.
19039 (CFLAGS-tst-gmon-static-pie.c): Likewise.
19040 (CRT-tst-gmon-static-pie): Likewise.
19041 (tst-gmon-static-pie-ENV): Likewise.
19042 (tests-special): Likewise.
19043 ($(objpfx)tst-gmon-static-pie.out): Likewise.
19044 (clean-tst-gmon-static-pie-data): Likewise.
19045 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
19046 * gmon/tst-gmon-static-pie.c: New file.
19047 * manual/install.texi: Document --enable-static-pie.
19048 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
19049 (_dl_get_dl_main_map): Likewise.
19050 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
19051 * sysdeps/x86_64/configure.ac: Likewise.
19052 * sysdeps/i386/configure: Regenerated.
19053 * sysdeps/x86_64/configure: Likewise.
19054 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
19055 (ASFLAGS-.op): Likewise.
19056
19057 2017-12-15 Joseph Myers <joseph@codesourcery.com>
19058
19059 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
19060 * posix/tst-mmap-offset.c (fname): Use /tmp.
19061 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
19062
19063 2017-12-15 Steve Ellcey <sellcey@cavium.com>
19064
19065 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
19066
19067 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
19068
19069 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
19070 errno.
19071
19072 2017-12-15 Joseph Myers <joseph@codesourcery.com>
19073
19074 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
19075 --with-float=hard for arm-linux-gnueabihf configurations.
19076
19077 [BZ #14121]
19078 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
19079 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
19080 ($(mo-installed)): Use $(objpfx)%.mo.
19081 (realclean): Remove rule.
19082
19083 * po/Makefile (linguas): Remove rule and dependencies.
19084 (linguas.mo): Likewise.
19085 (.PHONY): Do not depend on linguas and linguas.mo.
19086 (podir): Remove variable.
19087 (pofiles): Likewise.
19088 [$(pofiles)] (%.po): Remove rule.
19089
19090 * sysdeps/sparc/sparc32/Makefile
19091 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
19092 start-of-line whitespace in argument of echo.
19093 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
19094 with whitespace. Generate __wrap_.udiv alias.
19095 * sysdeps/sparc/sparc32/rem.S: Regenerated.
19096 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
19097 * sysdeps/sparc/sparc32/udiv.S: Likewise.
19098 * sysdeps/sparc/sparc32/urem.S: Likewise.
19099
19100 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19101
19102 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
19103 for aligned inputs.
19104
19105 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
19106
19107 * benchtests/bench-strcmp.c: Print output in JSON format.
19108
19109 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
19110
19111 2017-12-14 Florian Weimer <fweimer@redhat.com>
19112
19113 [BZ #22607]
19114 CVE-2017-1000409
19115 * elf/dl-load.c (_dl_init_paths): Compute number of components in
19116 the expanded path string.
19117
19118 2017-12-14 Florian Weimer <fweimer@redhat.com>
19119
19120 [BZ #22606]
19121 CVE-2017-1000408
19122 * elf/dl-load.c (system_dirs): Update comment.
19123 (nsystem_dirs_len): Use array_length.
19124 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
19125
19126 2017-12-14 Florian Weimer <fweimer@redhat.com>
19127
19128 Simplify compiling most of support/ outside of glibc.
19129 * support/check_addrinfo.c: Include <string.h>.
19130 * support/check_dns_packet.c: Likewise.
19131 * support/check_hostent.c: Likewise.
19132 * support/support_can_chroot.c: Include <support/xunistd.h>.
19133 * support/support_format_addrinfo.c: Include <stdlib.h>
19134 * support/support_format_dns_packet.c: Include <stdbool.h>.
19135 * support/support_format_hostent.c: Include <stdlib.h>.
19136 * support/support_format_netent.c: Likewise.
19137 * support/support_write_string.c: Include <support/xunistd.h>.
19138 * support/xdlfcn.c: Include <stddef.h>.
19139
19140 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
19141
19142 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
19143
19144 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
19145 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19146
19147 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
19148 (sysdeps_routines): Add memset-niagara7.
19149 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
19150 Likewise.
19151 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
19152 file.
19153 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
19154 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
19155 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
19156 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
19157 Add niagara7 option.
19158 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
19159 memset.
19160
19161 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
19162 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
19163 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
19164 Likewise.
19165 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
19166 New file.
19167 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
19168 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
19169 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
19170 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
19171 and __memmove_niagara7.
19172 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
19173 Add niagara7 option.
19174 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
19175 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
19176 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
19177 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
19178 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
19179
19180 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
19181
19182 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
19183 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
19184 * sysdeps/sparc/sparc64/memmove.S: Likewise.
19185 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
19186
19187 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
19188 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
19189 _dl_sparc_cap_flags array.
19190 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
19191
19192 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
19193
19194 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
19195 time whenever possible.
19196
19197 2017-12-12 Carlos O'Donell <carlos@redhat.com>
19198
19199 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
19200 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
19201
19202 2017-12-12 Joseph Myers <joseph@codesourcery.com>
19203
19204 * soft-fp/fmadf4.c: Move to ....
19205 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
19206 * soft-fp/fmasf4.c: Move to ....
19207 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
19208 * soft-fp/fmatf4.c: Move to ....
19209 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
19210 * sysdeps/ieee754/soft-fp/Makefile: New file.
19211 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
19212 * sysdeps/arm/preconfigure: Regenerated.
19213 * sysdeps/arm/nofpu/Implies: New file.
19214 * sysdeps/arm/s_fma.c: Remove file.
19215 * sysdeps/arm/s_fmaf.c: Likewise.
19216 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
19217 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
19218 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
19219 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
19220 * sysdeps/microblaze/s_fma.c: Remove file.
19221 * sysdeps/microblaze/s_fmaf.c: Likewise.
19222 * sysdeps/mips/mips32/nofpu/Implies: New file.
19223 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
19224 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
19225 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
19226 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
19227 * sysdeps/mips/ieee754/s_fma.c: Remove file.
19228 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
19229 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
19230 implementation.
19231 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
19232 * sysdeps/nios2/s_fma.c: Remove file.
19233 * sysdeps/nios2/s_fmaf.c: Likewise.
19234 * sysdeps/sh/nofpu/Implies: New file.
19235 * sysdeps/sh/s_fma.c: Remove file.
19236 * sysdeps/sh/s_fmaf.c: Likewise.
19237 * sysdeps/tile/Implies: Add ieee754/soft-fp.
19238 * sysdeps/tile/s_fma.c: Remove file.
19239 * sysdeps/tile/s_fmaf.c: Likewise.
19240
19241 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
19242
19243 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19244 Add s_cosf-sse2 and s_cosf-fma.
19245 (CFLAGS-s_cosf-fma.c): New.
19246 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
19247 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
19248 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
19249
19250 2017-12-12 Steve Ellcey <sellcey@cavium.com>
19251
19252 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
19253
19254 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19255
19256 * libio/Makefile (tests): Add tst-bz22415.
19257 (tst-bz22415-ENV): New rule.
19258 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
19259 (tests-special): Add tst-bz22415-mem.out.
19260 ($(objpfx)tst-bz22415-mem.out): New rule.
19261 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
19262 in case of a successful seek operation.
19263 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
19264 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
19265 buffer is required.
19266 * libio/tst-bz22415.c: New test.
19267
19268 * sysdeps/ia64/fpu/libm-test-ulps: Update.
19269
19270 2017-12-12 James Clarke <jrtc27@jrtc27.com>
19271
19272 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
19273 __IPC_64 to 0 to avoid IPC_64 being set.
19274
19275 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
19276
19277 [BZ #22593]
19278 * math/bits/mathcalls.h (nextafter): Remove const.
19279 (nexttoward): Likewise.
19280
19281 2017-12-12 Joseph Myers <joseph@codesourcery.com>
19282
19283 * configure.ac (--with-fp): Remove configure option.
19284 (with_fp_cond): New variable.
19285 (libc_cv_with_fp): New configure test. Use this variable instead
19286 of with_fp.
19287 * configure: Regenerated.
19288 * config.make.in (with-fp): Use @libc_cv_with_fp@.
19289 * manual/install.texi (Configuring and compiling): Remove
19290 --without-fp.
19291 * INSTALL: Regenerated.
19292 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
19293 * sysdeps/mips/preconfigure (with_fp_cond): Define.
19294 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
19295 * sysdeps/sh/preconfigure (with_fp_cond): Define.
19296 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
19297 use --without-fp to configure glibc.
19298
19299 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
19300
19301 * manual/locale.texi (nl_langinfo): Fix a typo.
19302
19303 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
19304
19305 [BZ #22588]
19306 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
19307
19308 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
19309
19310 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
19311 (CFLAGS-argp-parse.c): Likewise.
19312 (CFLAGS-argp-fmtstream.c): Likewise.
19313 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
19314 (CPPFLAGS-sha512-crypt.c): Likewise.
19315 (CPPFLAGS-md5-crypt.c): Likewise.
19316 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
19317 (CFLAGS-stack_chk_fail_local.c): Likewise.
19318 (CFLAGS-backtrace.c): Likewise.
19319 (CFLAGS-sprintf_chk.c): Likewise.
19320 (CFLAGS-snprintf_chk.c): Likewise.
19321 (CFLAGS-vsprintf_chk.c): Likewise.
19322 (CFLAGS-vsnprintf_chk.c): Likewise.
19323 (CFLAGS-asprintf_chk.c): Likewise.
19324 (CFLAGS-vasprintf_chk.c): Likewise.
19325 (CFLAGS-obprintf_chk.c): Likewise.
19326 (CFLAGS-dprintf_chk.c): Likewise.
19327 (CFLAGS-vdprintf_chk.c): Likewise.
19328 (CFLAGS-printf_chk.c): Likewise.
19329 (CFLAGS-fprintf_chk.c): Likewise.
19330 (CFLAGS-vprintf_chk.c): Likewise.
19331 (CFLAGS-vfprintf_chk.c): Likewise.
19332 (CFLAGS-gets_chk.c): Likewise.
19333 (CFLAGS-fgets_chk.c): Likewise.
19334 (CFLAGS-fgets_u_chk.c): Likewise.
19335 (CFLAGS-fread_chk.c): Likewise.
19336 (CFLAGS-fread_u_chk.c): Likewise.
19337 (CFLAGS-swprintf_chk.c): Likewise.
19338 (CFLAGS-vswprintf_chk.c): Likewise.
19339 (CFLAGS-wprintf_chk.c): Likewise.
19340 (CFLAGS-fwprintf_chk.c): Likewise.
19341 (CFLAGS-vwprintf_chk.c): Likewise.
19342 (CFLAGS-vfwprintf_chk.c): Likewise.
19343 (CFLAGS-fgetws_chk.c): Likewise.
19344 (CFLAGS-fgetws_u_chk.c): Likewise.
19345 (CFLAGS-read_chk.c): Likewise.
19346 (CFLAGS-pread_chk.c): Likewise.
19347 (CFLAGS-pread64_chk.c): Likewise.
19348 (CFLAGS-recv_chk.c): Likewise.
19349 (CFLAGS-recvfrom_chk.c): Likewise.
19350 (CFLAGS-tst-longjmp_chk.c): Likewise.
19351 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
19352 (CFLAGS-tst-longjmp_chk2.c): Likewise.
19353 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
19354 (CFLAGS-tst-longjmp_chk3.c): Likewise.
19355 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
19356 (CFLAGS-tst-chk1.c): Likewise.
19357 (CFLAGS-tst-chk2.c): Likewise.
19358 (CFLAGS-tst-chk3.c): Likewise.
19359 (CFLAGS-tst-chk4.cc): Likewise.
19360 (CFLAGS-tst-chk5.cc): Likewise.
19361 (CFLAGS-tst-chk6.cc): Likewise.
19362 (CFLAGS-tst-lfschk1.c): Likewise.
19363 (CFLAGS-tst-lfschk2.c): Likewise.
19364 (CFLAGS-tst-lfschk3.c): Likewise.
19365 (CFLAGS-tst-lfschk4.cc): Likewise.
19366 (CFLAGS-tst-lfschk5.cc): Likewise.
19367 (CFLAGS-tst-lfschk6.cc): Likewise.
19368 (CFLAGS-tst-ssp-1.c): Likewise.
19369 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
19370 (CFLAGS-scandir64.c): Likewise.
19371 (CFLAGS-scandir-tail.c): Likewise.
19372 (CFLAGS-scandir64-tail.c): Likewise.
19373 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
19374 (CFLAGS-dl-tunables.c): Likewise.
19375 (CFLAGS-dl-runtime.c): Likewise.
19376 (CFLAGS-dl-lookup.c): Likewise.
19377 (CFLAGS-dl-iterate-phdr.c): Likewise.
19378 (CFLAGS-vismain.c): Likewise.
19379 (CFLAGS-tst-linkall-static.c): Likewise.
19380 (CFLAGS-tst-linkall-static.c): Likewise.
19381 (CPPFLAGS-dl-load.c): Likewise.
19382 (CFLAGS-ldconfig.c): Likewise.
19383 (CFLAGS-dl-cache.c): Likewise.
19384 (CFLAGS-cache.c): Likewise.
19385 (CFLAGS-rtld.c): Likewise.
19386 (CFLAGS-multiload.c): Likewise.
19387 (CFLAGS-filtmod1.c): Likewise.
19388 (CFLAGS-tst-align.c): Likewise.
19389 (CFLAGS-tst-align2.c): Likewise.
19390 (CFLAGS-tst-alignmod.c): Likewise.
19391 (CFLAGS-tst-alignmod2.c): Likewise.
19392 (CPPFLAGS-tst-execstack.c): Likewise.
19393 (CFLAGS-tst-ptrguard1-static.c): Likewise.
19394 (CFLAGS-tst-latepthreadmod.c): Likewise.
19395 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
19396 (CFLAGS-getgrnam_r.c): Likewise.
19397 (CFLAGS-getgrent_r.c): Likewise.
19398 (CFLAGS-getgrent.c): Likewise.
19399 (CFLAGS-fgetgrent.c): Likewise.
19400 (CFLAGS-fgetgrent_r.c): Likewise.
19401 (CFLAGS-putgrent.c): Likewise.
19402 (CFLAGS-initgroups.c): Likewise.
19403 (CFLAGS-getgrgid.c): Likewise.
19404 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
19405 (CFLAGS-getsgent.c): Likewise.
19406 (CFLAGS-fgetsgent.c): Likewise.
19407 (CFLAGS-fgetsgent_r.c): Likewise.
19408 (CFLAGS-putsgent.c): Likewise.
19409 (CFLAGS-getsgnam.c): Likewise.
19410 (CFLAGS-getsgnam_r.c): Likewise.
19411 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
19412 (CFLAGS-iconv_charmap.c): Likewise.
19413 (CFLAGS-dummy-repertoire.c): Likewise.
19414 (CFLAGS-charmap.c): Likewise.
19415 (CFLAGS-linereader.c): Likewise.
19416 (CFLAGS-simple-hash.c): Likewise.
19417 (CFLAGS-gconv_conf.c): Likewise.
19418 (CFLAGS-iconvconfig.c): Likewise.
19419 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
19420 (CFLAGS-gethstbyad.c): Likewise.
19421 (CFLAGS-gethstbynm_r.c): Likewise.
19422 (CFLAGS-gethstbynm.c): Likewise.
19423 (CFLAGS-gethstbynm2_r.c): Likewise.
19424 (CFLAGS-gethstbynm2.c): Likewise.
19425 (CFLAGS-gethstent_r.c): Likewise.
19426 (CFLAGS-gethstent.c): Likewise.
19427 (CFLAGS-rcmd.c): Likewise.
19428 (CFLAGS-getnetbynm_r.c): Likewise.
19429 (CFLAGS-getnetbynm.c): Likewise.
19430 (CFLAGS-getnetbyad_r.c): Likewise.
19431 (CFLAGS-getnetbyad.c): Likewise.
19432 (CFLAGS-getnetent_r.c): Likewise.
19433 (CFLAGS-getnetent.c): Likewise.
19434 (CFLAGS-getaliasent_r.c): Likewise.
19435 (CFLAGS-getaliasent.c): Likewise.
19436 (CFLAGS-getrpcent_r.c): Likewise.
19437 (CFLAGS-getrpcent.c): Likewise.
19438 (CFLAGS-getservent_r.c): Likewise.
19439 (CFLAGS-getservent.c): Likewise.
19440 (CFLAGS-getprtent_r.c): Likewise.
19441 (CFLAGS-getprtent.c): Likewise.
19442 (CFLAGS-either_ntoh.c): Likewise.
19443 (CFLAGS-either_hton.c): Likewise.
19444 (CFLAGS-getnetgrent.c): Likewise.
19445 (CFLAGS-getnetgrent_r.c): Likewise.
19446 (CFLAGS-tst-checks-posix.c): Likewise.
19447 (CFLAGS-tst-sockaddr.c): Likewise.
19448 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
19449 (CFLAGS-tst-translit.c): Likewise.
19450 (CFLAGS-tst-gettext2.c): Likewise.
19451 (CFLAGS-tst-codeset.c): Likewise.
19452 (CFLAGS-tst-gettext3.c): Likewise.
19453 (CFLAGS-tst-gettext4.c): Likewise.
19454 (CFLAGS-tst-gettext5.c): Likewise.
19455 (CFLAGS-tst-gettext6.c): Likewise.
19456 * io/Makefile (CFLAGS-open.c): Likewise.
19457 (CFLAGS-open64.c): Likewise.
19458 (CFLAGS-creat.c): Likewise.
19459 (CFLAGS-creat64.c): Likewise.
19460 (CFLAGS-fcntl.c): Likewise.
19461 (CFLAGS-poll.c): Likewise.
19462 (CFLAGS-ppoll.c): Likewise.
19463 (CFLAGS-lockf.c): Likewise.
19464 (CFLAGS-statfs.c): Likewise.
19465 (CFLAGS-fstatfs.c): Likewise.
19466 (CFLAGS-statvfs.c): Likewise.
19467 (CFLAGS-fstatvfs.c): Likewise.
19468 (CFLAGS-fts.c): Likewise.
19469 (CFLAGS-fts64.c): Likewise.
19470 (CFLAGS-ftw.c): Likewise.
19471 (CFLAGS-ftw64.c): Likewise.
19472 (CFLAGS-lockf.c): Likewise.
19473 (CFLAGS-posix_fallocate.c): Likewise.
19474 (CFLAGS-posix_fallocate64.c): Likewise.
19475 (CFLAGS-fallocate.c): Likewise.
19476 (CFLAGS-fallocate64.c): Likewise.
19477 (CFLAGS-read.c): Likewise.
19478 (CFLAGS-write.c): Likewise.
19479 (CFLAGS-test-stat.c): Likewise.
19480 (CFLAGS-test-lfs.c): Likewise.
19481 * libio/Makefile (CFLAGS-fileops.c): Likewise.
19482 (CFLAGS-fputc.c): Likewise.
19483 (CFLAGS-fputwc.c): Likewise.
19484 (CFLAGS-freopen64.c): Likewise.
19485 (CFLAGS-freopen.c): Likewise.
19486 (CFLAGS-fseek.c): Likewise.
19487 (CFLAGS-fseeko64.c): Likewise.
19488 (CFLAGS-fseeko.c): Likewise.
19489 (CFLAGS-ftello64.c): Likewise.
19490 (CFLAGS-ftello.c): Likewise.
19491 (CFLAGS-fwide.c): Likewise.
19492 (CFLAGS-genops.c): Likewise.
19493 (CFLAGS-getc.c): Likewise.
19494 (CFLAGS-getchar.c): Likewise.
19495 (CFLAGS-getwc.c): Likewise.
19496 (CFLAGS-getwchar.c): Likewise.
19497 (CFLAGS-iofclose.c): Likewise.
19498 (CFLAGS-iofflush.c): Likewise.
19499 (CFLAGS-iofgetpos64.c): Likewise.
19500 (CFLAGS-iofgetpos.c): Likewise.
19501 (CFLAGS-iofgets.c): Likewise.
19502 (CFLAGS-iofgetws.c): Likewise.
19503 (CFLAGS-iofputs.c): Likewise.
19504 (CFLAGS-iofputws.c): Likewise.
19505 (CFLAGS-iofread.c): Likewise.
19506 (CFLAGS-iofsetpos64.c): Likewise.
19507 (CFLAGS-iofsetpos.c): Likewise.
19508 (CFLAGS-ioftell.c): Likewise.
19509 (CFLAGS-iofwrite.c): Likewise.
19510 (CFLAGS-iogetdelim.c): Likewise.
19511 (CFLAGS-iogetline.c): Likewise.
19512 (CFLAGS-iogets.c): Likewise.
19513 (CFLAGS-iogetwline.c): Likewise.
19514 (CFLAGS-ioputs.c): Likewise.
19515 (CFLAGS-ioseekoff.c): Likewise.
19516 (CFLAGS-ioseekpos.c): Likewise.
19517 (CFLAGS-iosetbuffer.c): Likewise.
19518 (CFLAGS-iosetvbuf.c): Likewise.
19519 (CFLAGS-ioungetc.c): Likewise.
19520 (CFLAGS-ioungetwc.c): Likewise.
19521 (CFLAGS-oldfileops.c): Likewise.
19522 (CFLAGS-oldiofclose.c): Likewise.
19523 (CFLAGS-oldiofgetpos64.c): Likewise.
19524 (CFLAGS-oldiofgetpos.c): Likewise.
19525 (CFLAGS-oldiofsetpos64.c): Likewise.
19526 (CFLAGS-oldiofsetpos.c): Likewise.
19527 (CFLAGS-peekc.c): Likewise.
19528 (CFLAGS-putc.c): Likewise.
19529 (CFLAGS-putchar.c): Likewise.
19530 (CFLAGS-putwc.c): Likewise.
19531 (CFLAGS-putwchar.c): Likewise.
19532 (CFLAGS-rewind.c): Likewise.
19533 (CFLAGS-wfileops.c): Likewise.
19534 (CFLAGS-wgenops.c): Likewise.
19535 (CFLAGS-oldiofopen.c): Likewise.
19536 (CFLAGS-iofopen.c): Likewise.
19537 (CFLAGS-iofopen64.c): Likewise.
19538 (CFLAGS-oldtmpfile.c): Likewise.
19539 (CFLAGS-tst_putwc.c): Likewise.
19540 * locale/Makefile (CFLAGS-md5.c): Likewise.
19541 (CFLAGS-charmap.c): Likewise.
19542 (CFLAGS-locfile.c): Likewise.
19543 (CFLAGS-charmap-dir.c): Likewise.
19544 * login/Makefile (CFLAGS-grantpt.c): Likewise.
19545 (CFLAGS-getpt.c): Likewise.
19546 (CFLAGS-pt_chown.c): Likewise.
19547 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
19548 (CFLAGS-obstack.c): Likewise.
19549 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
19550 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
19551 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
19552 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
19553 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
19554 (CFLAGS-test-tgmath.c): Likewise.
19555 (CFLAGS-test-tgmath2.c): Likewise.
19556 (CFLAGS-test-tgmath-ret.c): Likewise.
19557 (CFLAGS-test-powl.c): Likewise.
19558 (CFLAGS-test-snan.c): Likewise.
19559 (CFLAGS-test-signgam-finite.c): Likewise.
19560 (CFLAGS-test-signgam-finite-c99.c): Likewise.
19561 (CFLAGS-test-signgam-finite-c11.c): Likewise.
19562 (CFLAGS-test-signgam-uchar.c): Likewise.
19563 (CFLAGS-test-signgam-uchar-init.c): Likewise.
19564 (CFLAGS-test-signgam-uchar-static.c): Likewise.
19565 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
19566 (CFLAGS-test-signgam-uint.c): Likewise.
19567 (CFLAGS-test-signgam-uint-init.c): Likewise.
19568 (CFLAGS-test-signgam-uint-static.c): Likewise.
19569 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
19570 (CFLAGS-test-signgam-ullong.c): Likewise.
19571 (CFLAGS-test-signgam-ullong-init.c): Likewise.
19572 (CFLAGS-test-signgam-ullong-static.c): Likewise.
19573 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
19574 (CFLAGS-test-math-cxx11.cc): Likewise.
19575 (CFLAGS-test-math-isinff.cc): Likewise.
19576 (CFLAGS-test-math-iszero.cc): Likewise.
19577 (CFLAGS-test-math-issignaling.cc): Likewise.
19578 (CFLAGS-test-math-iscanonical.cc): Likewise.
19579 (CFLAGS-test-iszero-excess-precision.c): Likewise.
19580 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
19581 (CFLAGS-test-flt-eval-method.c): Likewise.
19582 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
19583 (CFLAGS-test-finite-macros.c): Likewise.
19584 * misc/Makefile (CFLAGS-select.c): Likewise.
19585 (CFLAGS-tsearch.c): Likewise.
19586 (CFLAGS-lsearch.c): Likewise.
19587 (CFLAGS-pselect.c): Likewise.
19588 (CFLAGS-readv.c): Likewise.
19589 (CFLAGS-writev.c): Likewise.
19590 (CFLAGS-preadv.c): Likewise.
19591 (CFLAGS-preadv64.c): Likewise.
19592 (CFLAGS-pwritev.c): Likewise.
19593 (CFLAGS-pwritev64.c): Likewise.
19594 (CFLAGS-preadv2.c): Likewise.
19595 (CFLAGS-preadv64v2.c): Likewise.
19596 (CFLAGS-pwritev2.c): Likewise.
19597 (CFLAGS-pwritev64v2.c): Likewise.
19598 (CFLAGS-usleep.c): Likewise.
19599 (CFLAGS-syslog.c): Likewise.
19600 (CFLAGS-error.c): Likewise.
19601 (CFLAGS-getpass.c): Likewise.
19602 (CFLAGS-mkstemp.c): Likewise.
19603 (CFLAGS-mkstemp64.c): Likewise.
19604 (CFLAGS-getsysstats.c): Likewise.
19605 (CFLAGS-getusershell.c): Likewise.
19606 (CFLAGS-err.c): Likewise.
19607 (CFLAGS-tst-tsearch.c): Likewise.
19608 (CFLAGS-msync.c): Likewise.
19609 (CFLAGS-fdatasync.c): Likewise.
19610 (CFLAGS-fsync.c): Likewise.
19611 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
19612 (CFLAGS-unwind.c): Likewise.
19613 (CFLAGS-unwind-forcedunwind.c): Likewise.
19614 (CFLAGS-pthread_cancel.c): Likewise.
19615 (CFLAGS-pthread_setcancelstate.c): Likewise.
19616 (CFLAGS-pthread_setcanceltype.c): Likewise.
19617 (CFLAGS-cancellation.c): Likewise.
19618 (CFLAGS-libc-cancellation.c): Likewise.
19619 (CFLAGS-pthread_exit.c): Likewise.
19620 (CFLAGS-forward.c): Likewise.
19621 (CFLAGS-pthread_testcancel.c): Likewise.
19622 (CFLAGS-pthread_join.c): Likewise.
19623 (CFLAGS-pthread_timedjoin.c): Likewise.
19624 (CFLAGS-pthread_once.c): Likewise.
19625 (CFLAGS-pthread_cond_wait.c): Likewise.
19626 (CFLAGS-sem_wait.c): Likewise.
19627 (CFLAGS-sem_timedwait.c): Likewise.
19628 (CFLAGS-fcntl.c): Likewise.
19629 (CFLAGS-lockf.c): Likewise.
19630 (CFLAGS-pread.c): Likewise.
19631 (CFLAGS-pread64.c): Likewise.
19632 (CFLAGS-pwrite.c): Likewise.
19633 (CFLAGS-pwrite64.c): Likewise.
19634 (CFLAGS-wait.c): Likewise.
19635 (CFLAGS-waitpid.c): Likewise.
19636 (CFLAGS-sigwait.c): Likewise.
19637 (CFLAGS-msgrcv.c): Likewise.
19638 (CFLAGS-msgsnd.c): Likewise.
19639 (CFLAGS-tcdrain.c): Likewise.
19640 (CFLAGS-open.c): Likewise.
19641 (CFLAGS-open64.c): Likewise.
19642 (CFLAGS-pause.c): Likewise.
19643 (CFLAGS-recv.c): Likewise.
19644 (CFLAGS-send.c): Likewise.
19645 (CFLAGS-accept.c): Likewise.
19646 (CFLAGS-sendto.c): Likewise.
19647 (CFLAGS-connect.c): Likewise.
19648 (CFLAGS-recvfrom.c): Likewise.
19649 (CFLAGS-recvmsg.c): Likewise.
19650 (CFLAGS-sendmsg.c): Likewise.
19651 (CFLAGS-close.c): Likewise.
19652 (CFLAGS-read.c): Likewise.
19653 (CFLAGS-write.c): Likewise.
19654 (CFLAGS-nanosleep.c): Likewise.
19655 (CFLAGS-sigsuspend.c): Likewise.
19656 (CFLAGS-msync.c): Likewise.
19657 (CFLAGS-fdatasync.c): Likewise.
19658 (CFLAGS-fsync.c): Likewise.
19659 (CFLAGS-pt-system.c): Likewise.
19660 (CFLAGS-tst-cleanup2.c): Likewise.
19661 (CFLAGS-tst-cleanupx2.c): Likewise.
19662 (CFLAGS-flockfile.c): Likewise.
19663 (CFLAGS-ftrylockfile.c): Likewise.
19664 (CFLAGS-funlockfile.c): Likewise.
19665 (CFLAGS-tst-initializers1.c): Likewise.
19666 (CFLAGS-tst-initializers1-c89.c): Likewise.
19667 (CFLAGS-tst-initializers1-c99.c): Likewise.
19668 (CFLAGS-tst-initializers1-c11.c): Likewise.
19669 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
19670 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
19671 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
19672 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
19673 (CFLAGS-nscd_getgr_r.c): Likewise.
19674 (CFLAGS-nscd_gethst_r.c): Likewise.
19675 (CFLAGS-nscd_getai.c): Likewise.
19676 (CFLAGS-nscd_initgroups.c): Likewise.
19677 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
19678 (CFLAGS-pause.c): Likewise.
19679 (CFLAGS-pread.c): Likewise.
19680 (CFLAGS-pread64.c): Likewise.
19681 (CFLAGS-pwrite.c): Likewise.
19682 (CFLAGS-pwrite64.c): Likewise.
19683 (CFLAGS-sleep.c): Likewise.
19684 (CFLAGS-wait.c): Likewise.
19685 (CFLAGS-waitid.c): Likewise.
19686 (CFLAGS-waitpid.c): Likewise.
19687 (CFLAGS-getopt.c): Likewise.
19688 (CFLAGS-wordexp.c): Likewise.
19689 (CFLAGS-sysconf.c): Likewise.
19690 (CFLAGS-pathconf.c): Likewise.
19691 (CFLAGS-fpathconf.c): Likewise.
19692 (CFLAGS-spawn.c): Likewise.
19693 (CFLAGS-spawnp.c): Likewise.
19694 (CFLAGS-spawni.c): Likewise.
19695 (CFLAGS-glob.c): Likewise.
19696 (CFLAGS-glob64.c): Likewise.
19697 (CFLAGS-getconf.c): Likewise.
19698 (CFLAGS-nanosleep.c): Likewise.
19699 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
19700 (CFLAGS-getpwent.c): Likewise.
19701 (CFLAGS-getpw.c): Likewise.
19702 (CFLAGS-fgetpwent_r.c): Likewise.
19703 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
19704 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
19705 (CFLAGS-mq_timedreceive.c): Likewise.
19706 (CFLAGS-mq_timedsend.c): Likewise.
19707 (CFLAGS-clock_nanosleep.c): Likewise.
19708 (CFLAGS-librt-cancellation.c): Likewise.
19709 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
19710 (CFLAGS-getspent.c): Likewise.
19711 (CFLAGS-fgetspent.c): Likewise.
19712 (CFLAGS-fgetspent_r.c): Likewise.
19713 (CFLAGS-putspent.c): Likewise.
19714 (CFLAGS-getspnam.c): Likewise.
19715 (CFLAGS-getspnam_r.c): Likewise.
19716 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
19717 (CFLAGS-sigsuspend.c): Likewise.
19718 (CFLAGS-sigtimedwait.c): Likewise.
19719 (CFLAGS-sigwait.c): Likewise.
19720 (CFLAGS-sigwaitinfo.c): Likewise.
19721 (CFLAGS-sigreturn.c): Likewise.
19722 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
19723 (CFLAGS-vfwprintf.c): Likewise.
19724 (CFLAGS-tmpfile.c): Likewise.
19725 (CFLAGS-tmpfile64.c): Likewise.
19726 (CFLAGS-tempname.c): Likewise.
19727 (CFLAGS-psignal.c): Likewise.
19728 (CFLAGS-vprintf.c): Likewise.
19729 (CFLAGS-cuserid.c): Likewise.
19730 (CFLAGS-errlist.c): Likewise.
19731 (CFLAGS-siglist.c): Likewise.
19732 (CFLAGS-scanf15.c): Likewise.
19733 (CFLAGS-scanf17.c): Likewise.
19734 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
19735 (CFLAGS-msort.c): Likewise.
19736 (CFLAGS-qsort.c): Likewise.
19737 (CFLAGS-system.c): Likewise.
19738 (CFLAGS-fmtmsg.c): Likewise.
19739 (CFLAGS-strfmon.c): Likewise.
19740 (CFLAGS-strfmon_l.c): Likewise.
19741 (CFLAGS-strfromd.c): Likewise.
19742 (CFLAGS-strfromf.c): Likewise.
19743 (CFLAGS-strfroml.c): Likewise.
19744 (CFLAGS-tst-bsearch.c): Likewise.
19745 (CFLAGS-tst-qsort.c): Likewise.
19746 (CFLAGS-tst-makecontext2.c): Likewise.
19747 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
19748 (CFLAGS-xnlm_prot.c): Likewise.
19749 (CFLAGS-xrstat.c): Likewise.
19750 (CFLAGS-xyppasswd.c): Likewise.
19751 (CFLAGS-xklm_prot.c): Likewise.
19752 (CFLAGS-xrex.c): Likewise.
19753 (CFLAGS-xsm_inter.c): Likewise.
19754 (CFLAGS-xmount.c): Likewise.
19755 (CFLAGS-xrusers.c): Likewise.
19756 (CFLAGS-xspray.c): Likewise.
19757 (CFLAGS-xnfs_prot.c): Likewise.
19758 (CFLAGS-xrquota.c): Likewise.
19759 (CFLAGS-xkey_prot.c): Likewise.
19760 (CFLAGS-auth_unix.c): Likewise.
19761 (CFLAGS-key_call.c): Likewise.
19762 (CFLAGS-pmap_rmt.c): Likewise.
19763 (CFLAGS-clnt_perr.c): Likewise.
19764 (CFLAGS-openchild.c): Likewise.
19765 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
19766 (CFLAGS-msgsnd.c): Likewise.
19767 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
19768 * time/Makefile (CFLAGS-tzfile.c): Likewise.
19769 (CFLAGS-tzset.c): Likewise.
19770 (CFLAGS-getdate.c): Likewise.
19771 (CFLAGS-test_time.c): Likewise.
19772 (CPPFLAGS-tst-tzname.c): Likewise.
19773 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
19774 (CFLAGS-zic.c): Likewise.
19775 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
19776 (CFLAGS-wcswidth.c): Likewise.
19777 (CFLAGS-wcstol.c): Likewise.
19778 (CFLAGS-wcstoul.c): Likewise.
19779 (CFLAGS-wcstoll.c): Likewise.
19780 (CFLAGS-wcstoull.c): Likewise.
19781 (CFLAGS-wcstod.c): Likewise.
19782 (CFLAGS-wcstold.c): Likewise.
19783 (CFLAGS-wcstof128.c): Likewise.
19784 (CFLAGS-wcstof.c): Likewise.
19785 (CFLAGS-wcstol_l.c): Likewise.
19786 (CFLAGS-wcstoul_l.c): Likewise.
19787 (CFLAGS-wcstoll_l.c): Likewise.
19788 (CFLAGS-wcstoull_l.c): Likewise.
19789 (CFLAGS-wcstod_l.c): Likewise.
19790 (CFLAGS-wcstold_l.c): Likewise.
19791 (CFLAGS-wcstof128_l.c): Likewise.
19792 (CFLAGS-wcstof_l.c): Likewise.
19793 (CPPFLAGS-tst-wchar-h.c): Likewise.
19794 (CPPFLAGS-wcstold_l.c): Likewise.
19795
19796 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
19797
19798 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
19799
19800 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
19801 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19802
19803 * manual/tunables.texi (Hardware Capability Tunables): Document
19804 glibc.tune.cached_memopt.
19805 * sysdeps/powerpc/cpu-features.c: New file.
19806 * sysdeps/powerpc/cpu-features.h: New file.
19807 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
19808 _dl_powerpc_cpu_features.
19809 * sysdeps/powerpc/dl-tunables.list: New file.
19810 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
19811 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
19812 (INIT_ARCH): Initialize use_aligned_memopt.
19813 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
19814 IS_IN(rtld))]: Restrict dl_platform_init availability and
19815 initialize CPU features used by tunables.
19816 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
19817 Add memcpy-power8-cached.
19818 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
19819 __memcpy_power8_cached.
19820 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
19821 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
19822 New file.
19823
19824 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
19825
19826 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
19827 (CFLAGS-noinl-tester.c): Likewise.
19828 (CFLAGS-tst-strlen.c): Likewise.
19829 (CFLAGS-stratcliff.c): Likewise.
19830 (CFLAGS-test-ffs.c): Likewise.
19831 (CFLAGS-tst-inlcall.c): Likewise.
19832 (CFLAGS-tst-xbzero-opt.c): Likewise.
19833 (CFLAGS-memcpy.c): Likewise.
19834 (CFLAGS-wordcopy.c): Likewise.
19835
19836 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
19837
19838 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
19839 Store r15 on stack and add cfi rule.
19840 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
19841 Likewise.
19842
19843 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
19844
19845 [BZ #22577]
19846 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
19847 call.
19848
19849 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
19850
19851 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19852 Add s_sinf-sse2 and s_sinf-fma.
19853 (CFLAGS-s_sinf-fma.c): New.
19854 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
19855 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
19856 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
19857
19858 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
19859
19860 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
19861
19862 2017-12-07 Joseph Myers <joseph@codesourcery.com>
19863
19864 [BZ #22568]
19865 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
19866 part of result to imaginary part of argument if it is zero and the
19867 real part of the argument is not finite.
19868 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
19869 of result to real part of argument if it is zero and the imaginary
19870 part of the argument is not finite.
19871
19872 2017-12-07 Mike FABIAN <mfabian@redhat.com>
19873
19874 [BZ #22524]
19875 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
19876 and to the list of locales to be built for testing.
19877 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
19878 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
19879 and build the collation rules upon that.
19880
19881 2017-12-07 Joseph Myers <joseph@codesourcery.com>
19882
19883 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
19884 * manual/math.texi (Mathematics): Document support for _Float32.
19885 * math/Makefile (test-types): Add float32.
19886 * math/Versions (GLIBC_2.27): Add _Float32 functions.
19887 * stdlib/Versions (GLIBC_2.27): Likewise.
19888 * wcsmbs/Versions (GLIBC_2.27): Likewise.
19889 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19890 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19891 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19892 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19893 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19894 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19895 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19896 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19897 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19898 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19899 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19900 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19901 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19902 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19903 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19904 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19905 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19906 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19907 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19908 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19909 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19910 Likewise.
19911 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19912 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19913 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19914 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19915 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19916 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19917 Likewise.
19918 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19919 Likewise.
19920 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19921 Likewise.
19922 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19923 Likewise.
19924
19925 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19926 Likewise.
19927 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19928 Likewise.
19929 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19930 Likewise.
19931 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19932 Likewise.
19933 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19934 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19935 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19936 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19937 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19938 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19939 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19940 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19941 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19942 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19943 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19944 Likewise.
19945 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19946 Likewise.
19947 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19948 Likewise.
19949 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19950 Likewise.
19951 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19952 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19953 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19954 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19955 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19956 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19957 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19958 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19959
19960 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19961
19962 * stdlib/strtof.c: Include <bits/floatn.h>
19963 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
19964 and later undefine as macro. Define as weak alias if
19965 [!USE_WIDE_CHAR].
19966 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
19967 and later undefine as macro. Define as weak alias if
19968 [USE_WIDE_CHAR].
19969 * stdlib/strtof_l.c: Include <bits/floatn.h>
19970 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
19971 and later undefine as macro. Define as weak alias if
19972 [!USE_WIDE_CHAR].
19973 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
19974 and later undefine as macro. Define as weak alias if
19975 [USE_WIDE_CHAR].
19976
19977 * stdlib/strfromf.c: Include <bits/floatn.h>.
19978 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
19979 and later undefine as macro and define as weak alias.
19980
19981 * math/test-float32.h: New file.
19982
19983 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
19984 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
19985 (libm_alias_float_other_r): Create f32 alias.
19986 (libm_alias_float_r): Use semicolon before call to
19987 libm_alias_float_other_r.
19988
19989 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
19990 second argument to libm_alias_float_other.
19991 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
19992 second argument to libm_alias_float_other.
19993 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
19994 argument to libm_alias_float_other.
19995
19996 [BZ #22561]
19997 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
19998 real part of result for argument 0 + i * NaN.
19999 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
20000 results for tests of 0 + i * NaN.
20001
20002 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20003
20004 * sysdeps/alpha/fpu/libm-test-ulps: Update.
20005
20006 2017-12-06 David S. Miller <davem@davemloft.net>
20007
20008 * sysdeps/sparc/fpu/libm-test-ulps: Update
20009 exp_{downward,towardzero,upward} ulps.
20010
20011 2017-12-06 Joseph Myers <joseph@codesourcery.com>
20012
20013 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
20014 variables static.
20015
20016 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
20017 (Y0_2D): Likewise.
20018 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
20019 (Y0_2D): Likewise.
20020 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
20021 (Y0_2D): Likewise.
20022 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
20023 (Y0_2D): Likewise.
20024
20025 2017-12-06 Mike FABIAN <mfabian@redhat.com>
20026
20027 [BZ #22515]
20028 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
20029 and to the list of locales to be built for testing.
20030 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
20031 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
20032 and build the collation rules upon that.
20033
20034 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20035
20036 * NEWS: Add sinf to list of optimized functions.
20037
20038 2017-12-06 Joseph Myers <joseph@codesourcery.com>
20039
20040 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
20041 (__HAVE_FLOAT32X): Likewise.
20042 * manual/math.texi (Mathematics): Document support for _Float64
20043 and _Float32x.
20044 * math/Makefile (test-types): Add float64 and float32x.
20045 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
20046 functions.
20047 * stdlib/Versions (GLIBC_2.27): Likewise.
20048 * wcsmbs/Versions (GLIBC_2.27): Likewise.
20049 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
20050 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
20051 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
20052 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
20053 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
20054 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
20055 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
20056 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
20057 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
20058 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
20059 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
20060 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
20061 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
20062 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
20063 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
20064 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
20065 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
20066 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
20067 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
20068 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
20069 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
20070 Likewise.
20071 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
20072 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
20073 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
20074 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
20075 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
20076 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
20077 Likewise.
20078 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
20079 Likewise.
20080 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
20081 Likewise.
20082 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
20083 Likewise.
20084 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
20085 Likewise.
20086 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
20087 Likewise.
20088 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
20089 Likewise.
20090 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
20091 Likewise.
20092 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
20093 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
20094 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
20095 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
20096 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
20097 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
20098 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
20099 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
20100 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
20101 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
20102 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
20103 Likewise.
20104 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
20105 Likewise.
20106 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
20107 Likewise.
20108 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
20109 Likewise.
20110 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
20111 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
20112 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
20113 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
20114 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
20115 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
20116 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
20117 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
20118
20119 2017-12-05 Joseph Myers <joseph@codesourcery.com>
20120
20121 * bits/floatn-common.h: Include <bits/long-double.h>.
20122 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
20123 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
20124 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
20125 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
20126 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
20127 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
20128 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
20129 (__builtin_huge_valf64): Use __builtin_huge_vall.
20130 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
20131 (__builtin_inff64): Use __builtin_infl.
20132 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
20133 (__builtin_nanf64): Use __builtin_nanl.
20134 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
20135 (__builtin_nansf64): Use __builtin_nansl.
20136
20137 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
20138 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
20139 Carlos O'Donnell <carlos@redhat.com>
20140
20141 * elf/dl-tunables.list: Add elision parameters.
20142 * manual/tunables.texi: Add entries about elision tunable.
20143 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
20144 Add callback functions to dynamically enable/disable elision.
20145 Add multiple callbacks functions to set elision parameters.
20146 Deleted __libc_enable_secure check.
20147 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
20148 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
20149 * configure: Regenerated.
20150 * configure.ac: Option enable_lock_elision was deleted.
20151 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
20152 * config.make.in: Remove references to enable_lock_elision.
20153 * manual/install.texi: Elision configure option was removed.
20154 * INSTALL: Regenerated to remove enable_lock_elision.
20155 * nptl/Makefile:
20156 Disable elision so it can verify error case for destroying a mutex.
20157 * sysdeps/powerpc/nptl/elide.h:
20158 Cleanup ENABLE_LOCK_ELISION check.
20159 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
20160 * sysdeps/s390/configure: Regenerated.
20161 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
20162 * nptl/tst-mutex8.c:
20163 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
20164 * sysdeps/powerpc/powerpc32/sysdep.h:
20165 Deleted all ENABLE_LOCK_ELISION checks.
20166 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
20167 * sysdeps/powerpc/sysdep.h: Likewise.
20168 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
20169 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
20170 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
20171 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
20172 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
20173 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
20174 enable-lock-elision.
20175
20176 2017-12-05 Joseph Myers <joseph@codesourcery.com>
20177
20178 * stdlib/strtod.c: Include <bits/floatn.h>.
20179 (BUILD_DOUBLE): New macro.
20180 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
20181 (strtof64): Define and later undefine as macro. Define as weak
20182 alias if [!USE_WIDE_CHAR].
20183 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
20184 (wcstof64): Define and later undefine as macro. Define as weak
20185 alias if [USE_WIDE_CHAR].
20186 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
20187 (strtof32x): Define and later undefine as macro. Define as weak
20188 alias if [!USE_WIDE_CHAR].
20189 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
20190 (wcstof32x): Define and later undefine as macro. Define as weak
20191 alias if [USE_WIDE_CHAR].
20192 * stdlib/strtod_l.c: Include <bits/floatn.h>.
20193 (BUILD_DOUBLE): New macro.
20194 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
20195 (strtof64_l): Define and later undefine as macro. Define as weak
20196 alias if [!USE_WIDE_CHAR].
20197 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
20198 (wcstof64_l): Define and later undefine as macro. Define as weak
20199 alias if [USE_WIDE_CHAR].
20200 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
20201 (strtof32x_l): Define and later undefine as macro. Define as weak
20202 alias if [!USE_WIDE_CHAR].
20203 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
20204 (wcstof32x_l): Define and later undefine as macro. Define as weak
20205 alias if [USE_WIDE_CHAR].
20206
20207 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20208
20209 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
20210 (reduced): Use ones as double instead of integer.
20211
20212 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
20213
20214 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
20215
20216 2017-12-05 Joseph Myers <joseph@codesourcery.com>
20217
20218 * stdlib/strfromd.c: Include <bits/floatn.h>.
20219 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
20220 and later undefine as macro and define as weak alias.
20221 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
20222 Likewise.
20223
20224 * math/test-float32x.h: New file.
20225 * math/test-float64.h: Likewise.
20226
20227 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
20228 (libm_alias_double_other_r_f64): New macro.
20229 (libm_alias_double_other_r_f32x): Likewise.
20230 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
20231 libm_alias_double_other_r_f32x.
20232 (libm_alias_double_r): Use semicolon before call to
20233 libm_alias_double_other_r.
20234 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
20235 <bits/floatn.h>.
20236 (libm_alias_double_other_r_f64): New macro.
20237 (libm_alias_double_other_r_f32x): Likewise.
20238 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
20239 libm_alias_double_other_r_f32x.
20240
20241 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
20242
20243 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
20244 int.
20245 (SINF_FUNC): Likewise. Replace floor with simple casts.
20246
20247 2017-12-05 Mike FABIAN <mfabian@redhat.com>
20248
20249 [BZ #22517]
20250 * localedata/Makefile: Add et_EE.UTF-8 to test-input
20251 and to the list of locales to be built for testing.
20252 * localedata/et_EE.UTF-8.in: New file for testing the collation.
20253 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
20254 and build the collation rules upon that.
20255
20256 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
20257
20258 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
20259 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
20260 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
20261 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
20262 instead of __insn__xxx.
20263 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
20264 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
20265 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
20266 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
20267 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
20268 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
20269
20270 2017-12-05 Florian Weimer <fweimer@redhat.com>
20271
20272 Linux: Implement interfaces for memory protection keys
20273 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
20274 xsignal, xsysconf.
20275 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
20276 * support/xunistd.h (xsysconf): Declare.
20277 * support/xraise.c: New file.
20278 * support/xsigaction.c: Likewise.
20279 * support/xsignal.c: Likewise.
20280 * support/xsysconf.c: Likewise.
20281 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
20282 pkey_set, pkey_get, pkey_mprotect.
20283 [misc] (tests): Add tst-pkey.
20284 (tst-pkey): Link with -lpthread.
20285 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
20286 pkey_free, pkey_set, pkey_get, pkey_mprotect.
20287 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
20288 (PKEY_DISABLE_WRITE): Define.
20289 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
20290 Declare.
20291 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
20292 (SEGV_PKUERR): Add.
20293 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
20294 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
20295 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
20296 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
20297 Add.
20298 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
20299 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
20300 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
20301 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
20302 * sysdeps/unix/sysv/linux/**.abilist: Update.
20303
20304 2017-12-05 Florian Weimer <fweimer@redhat.com>
20305
20306 * support/tst-test_compare.c (subprocess): Use long long instead
20307 of long argument for consistent type width across 32-bit and
20308 64-bit architectures.
20309 (do_test): Adjust expected output.
20310
20311 2017-12-05 Joseph Myers <joseph@codesourcery.com>
20312
20313 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
20314 (cosf): Define using libm_alias_float.
20315 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
20316 (fabsf): Define using libm_alias_float.
20317 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
20318 (fmaf): Define using libm_alias_float.
20319 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
20320 (rintf): Define using libm_alias_float.
20321 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
20322 (sinf): Define using libm_alias_float.
20323 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
20324 <libm-alias-float.h>.
20325 (modff): Define using libm_alias_float.
20326 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
20327 <libm-alias-float.h>.
20328 (logbf): Define using libm_alias_float.
20329 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
20330 <libm-alias-float.h>.
20331 (ceilf): Define using libm_alias_float.
20332 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
20333 <libm-alias-float.h>.
20334 (copysignf): Define using libm_alias_float.
20335 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
20336 <libm-alias-float.h>.
20337 (floorf): Define using libm_alias_float.
20338 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
20339 <libm-alias-float.h>.
20340 (llrintf): Define using libm_alias_float.
20341 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
20342 <libm-alias-float.h>.
20343 (llroundf): Define using libm_alias_float.
20344 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
20345 <libm-alias-float.h>.
20346 (lrintf): Define using libm_alias_float.
20347 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
20348 <libm-alias-float.h>.
20349 (lroundf): Define using libm_alias_float.
20350 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
20351 <libm-alias-float.h>.
20352 (nearbyintf): Define using libm_alias_float.
20353 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
20354 <libm-alias-float.h>.
20355 (rintf): Define using libm_alias_float.
20356 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
20357 <libm-alias-float.h>.
20358 (roundf): Define using libm_alias_float.
20359 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
20360 <libm-alias-float.h>.
20361 (truncf): Define using libm_alias_float.
20362 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
20363 Include <libm-alias-float.h>.
20364 (ceilf): Define using libm_alias_float.
20365 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
20366 Include <libm-alias-float.h>.
20367 (copysignf): Define using libm_alias_float.
20368 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
20369 Include <libm-alias-float.h>.
20370 (floorf): Define using libm_alias_float.
20371 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
20372 Include <libm-alias-float.h>.
20373 (llrintf): Define using libm_alias_float.
20374 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
20375 Include <libm-alias-float.h>.
20376 (llroundf): Define using libm_alias_float.
20377 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
20378 Include <libm-alias-float.h>.
20379 (logbf): Define using libm_alias_float.
20380 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
20381 Include <libm-alias-float.h>.
20382 (lrintf): Define using libm_alias_float.
20383 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
20384 Include <libm-alias-float.h>.
20385 (lroundf): Define using libm_alias_float.
20386 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
20387 Include <libm-alias-float.h>.
20388 (modff): Define using libm_alias_float.
20389 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
20390 Include <libm-alias-float.h>.
20391 (roundf): Define using libm_alias_float.
20392 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
20393 Include <libm-alias-float.h>.
20394 (truncf): Define using libm_alias_float.
20395 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
20396 <libm-alias-float.h>.
20397 (llrintf): Define using libm_alias_float.
20398 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
20399 <libm-alias-float.h>.
20400 (llroundf): Define using libm_alias_float.
20401 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
20402 <libm-alias-float.h>.
20403 (ceilf): Define using libm_alias_float.
20404 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
20405 <libm-alias-float.h>.
20406 (floorf): Define using libm_alias_float.
20407 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
20408 <libm-alias-float.h>.
20409 (llroundf): Define using libm_alias_float.
20410 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
20411 <libm-alias-float.h>.
20412 (lroundf): Define using libm_alias_float.
20413 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
20414 <libm-alias-float.h>.
20415 (roundf): Define using libm_alias_float.
20416 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
20417 <libm-alias-float.h>.
20418 (truncf): Define using libm_alias_float.
20419 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
20420 <libm-alias-float.h>.
20421 (copysignf): Define using libm_alias_float.
20422 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
20423 <libm-alias-float.h>.
20424 (llrintf): Define using libm_alias_float.
20425 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
20426 <libm-alias-float.h>.
20427 (llroundf): Define using libm_alias_float.
20428 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
20429 <libm-alias-float.h>.
20430 (lrintf): Define using libm_alias_float.
20431 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
20432 <libm-alias-float.h>.
20433 (lroundf): Define using libm_alias_float.
20434 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
20435 <libm-alias-float.h>.
20436 (ceilf): Define using libm_alias_float.
20437 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
20438 <libm-alias-float.h>.
20439 (copysignf): Define using libm_alias_float.
20440 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
20441 <libm-alias-float.h>.
20442 (cosf): Define using libm_alias_float.
20443 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
20444 <libm-alias-float.h>.
20445 (floorf): Define using libm_alias_float.
20446 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
20447 <libm-alias-float.h>.
20448 (llrintf): Define using libm_alias_float.
20449 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
20450 <libm-alias-float.h>.
20451 (llroundf): Define using libm_alias_float.
20452 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
20453 <libm-alias-float.h>.
20454 (logbf): Define using libm_alias_float.
20455 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
20456 <libm-alias-float.h>.
20457 (modff): Define using libm_alias_float.
20458 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
20459 <libm-alias-float.h>.
20460 (roundf): Define using libm_alias_float.
20461 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
20462 <libm-alias-float.h>.
20463 (sinf): Define using libm_alias_float.
20464 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
20465 <libm-alias-float.h>.
20466 (truncf): Define using libm_alias_float.
20467 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
20468 <libm-alias-float.h>.
20469 (ceilf): Define using libm_alias_float.
20470 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
20471 <libm-alias-float.h>.
20472 (copysignf): Define using libm_alias_float.
20473 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
20474 <libm-alias-float.h>.
20475 (floorf): Define using libm_alias_float.
20476 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
20477 <libm-alias-float.h>.
20478 (llrintf): Define using libm_alias_float.
20479 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
20480 <libm-alias-float.h>.
20481 (llroundf): Define using libm_alias_float.
20482 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
20483 <libm-alias-float.h>.
20484 (nearbyintf): Define using libm_alias_float.
20485 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
20486 <libm-alias-float.h>.
20487 (rintf): Define using libm_alias_float.
20488 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
20489 <libm-alias-float.h>.
20490 (roundf): Define using libm_alias_float.
20491 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
20492 <libm-alias-float.h>.
20493 (truncf): Define using libm_alias_float.
20494 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
20495 <libm-alias-float.h>.
20496 (ceilf): Define using libm_alias_float.
20497 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
20498 <libm-alias-float.h>.
20499 (floorf): Define using libm_alias_float.
20500 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
20501 <libm-alias-float.h>.
20502 (llroundf): Define using libm_alias_float.
20503 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
20504 <libm-alias-float.h>.
20505 (roundf): Define using libm_alias_float.
20506 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
20507 <libm-alias-float.h>.
20508 (truncf): Define using libm_alias_float.
20509 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
20510 <libm-alias-float.h>.
20511 (copysignf): Define using libm_alias_float.
20512 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
20513 <libm-alias-float.h>.
20514 (llrintf): Define using libm_alias_float.
20515 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
20516 <libm-alias-float.h>.
20517 (llroundf): Define using libm_alias_float.
20518 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
20519 <libm-alias-float.h>.
20520 (cosf): Define using libm_alias_float.
20521 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
20522 <libm-alias-float.h>.
20523 (llrintf): Define using libm_alias_float.
20524 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
20525 <libm-alias-float.h>.
20526 (llroundf): Define using libm_alias_float.
20527 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
20528 <libm-alias-float.h>.
20529 (sinf): Define using libm_alias_float.
20530
20531 2017-12-04 Florian Weimer <fweimer@redhat.com>
20532
20533 * support/check.h (TEST_COMPARE): Define.
20534 (support_test_compare_failure): Declare.
20535 * support/Makefile (libsupport-routines): Add
20536 support_test_compare_failure.
20537 (tests): Add tst-test_compare.
20538 * support /support_test_compare_failure.c: New file.
20539 * support/tst-test_compare.c: Likewise.
20540
20541 2017-12-04 Mike FABIAN <mfabian@redhat.com>
20542
20543 [BZ #22527]
20544 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
20545 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
20546 available, this rewrite of the collation rules does reproduce
20547 the test file in the same order.
20548
20549 2017-12-04 Mike FABIAN <mfabian@redhat.com>
20550
20551 [BZ #10580]
20552 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
20553 digraphs in the month and day names. Using single code points for
20554 digraphs is deprecated. While there are dedicated Unicode
20555 codepoints, for the digraphs, these are included for backwards
20556 compatibility and modern texts use a sequence of Basic Latin
20557 characters. See: https://www.unicode.org/faq/ligature_digraph.html
20558 This makes the month and day names agree exactly with CLDR now,
20559 CLDR does not use the single code points for the digraphs either.
20560
20561 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
20562
20563 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
20564
20565 2017-12-04 Joseph Myers <joseph@codesourcery.com>
20566
20567 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
20568 of floor.
20569
20570 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
20571
20572 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
20573 Define only for libc.so.
20574
20575 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
20576
20577 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
20578 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
20579 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
20580 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
20581 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
20582
20583 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20584
20585 [BZ #5997]
20586 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
20587
20588 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
20589
20590 [BZ libc/19170]
20591 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
20592 PREINIT_FUNCTION_WEAK is nonzero.
20593 (gmon_initializer): New function. Put procedure label for it in
20594 .init_array section.
20595 (_init): Don't call PREINIT_FUNCTION.
20596 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
20597 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
20598 value when map argument is null.
20599
20600 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
20601 depi instruction from PIC pc-relative sequence.
20602 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
20603 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
20604 (elf_machine_load_address): Likewise.
20605 (elf_machine_runtime_setup): Likewise.
20606
20607 2017-12-02 Joseph Myers <joseph@codesourcery.com>
20608
20609 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
20610 <libm-alias-double.h>.
20611 (logb): Define using libm_alias_double.
20612 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
20613 <libm-alias-double.h>.
20614 (copysign): Define using libm_alias_double.
20615 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
20616 <libm-alias-double.h>.
20617 (llrint): Define using libm_alias_double.
20618 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
20619 <libm-alias-double.h>.
20620 (llround): Define using libm_alias_double.
20621 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
20622 <libm-alias-double.h>.
20623 (lrint): Define using libm_alias_double.
20624 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
20625 <libm-alias-double.h>.
20626 (lround): Define using libm_alias_double.
20627 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
20628 Include <libm-alias-double.h>.
20629 (copysign): Define using libm_alias_double.
20630 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
20631 Include <libm-alias-double.h>.
20632 (llrint): Define using libm_alias_double.
20633 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
20634 Include <libm-alias-double.h>.
20635 (llround): Define using libm_alias_double.
20636 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
20637 <libm-alias-double.h>.
20638 (logb): Define using libm_alias_double.
20639 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
20640 Include <libm-alias-double.h>.
20641 (lrint): Define using libm_alias_double.
20642 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
20643 Include <libm-alias-double.h>.
20644 (lround): Define using libm_alias_double.
20645 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
20646 <libm-alias-double.h>.
20647 (llrint): Define using libm_alias_double.
20648 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
20649 <libm-alias-double.h>.
20650 (llround): Define using libm_alias_double.
20651 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
20652 <libm-alias-double.h>.
20653 (llround): Define using libm_alias_double.
20654 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
20655 <libm-alias-double.h>.
20656 (lround): Define using libm_alias_double.
20657 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
20658 <libm-alias-double.h>.
20659 (copysign): Define using libm_alias_double.
20660 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
20661 <libm-alias-double.h>.
20662 (llrint): Define using libm_alias_double.
20663 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
20664 <libm-alias-double.h>.
20665 (llround): Define using libm_alias_double.
20666 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
20667 <libm-alias-double.h>.
20668 (lrint): Define using libm_alias_double.
20669 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
20670 <libm-alias-double.h>.
20671 (lround): Define using libm_alias_double.
20672 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
20673 <libm-alias-double.h>.
20674 (copysign): Define using libm_alias_double.
20675 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
20676 <libm-alias-double.h>.
20677 (llrint): Define using libm_alias_double.
20678 (lrint): Likewise.
20679 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
20680 <libm-alias-double.h>.
20681 (llround): Define using libm_alias_double.
20682 (lround): Likewise.
20683 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
20684 <libm-alias-double.h>.
20685 (logb): Define using libm_alias_double.
20686 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
20687 <libm-alias-double.h>.
20688 (copysign): Define using libm_alias_double.
20689 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
20690 <libm-alias-double.h>.
20691 (llrint): Define using libm_alias_double.
20692 (lrint): Likewise.
20693 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
20694 <libm-alias-double.h>.
20695 (llround): Define using libm_alias_double.
20696 (lround): Likewise.
20697 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
20698 <libm-alias-double.h>.
20699 (llround): Define using libm_alias_double.
20700 (lround): Likewise.
20701 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
20702 <libm-alias-double.h>.
20703 (copysign): Define using libm_alias_double.
20704 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
20705 <libm-alias-double.h>.
20706 (llrint): Define using libm_alias_double.
20707 (lrint): Likewise.
20708 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
20709 <libm-alias-double.h>.
20710 (llround): Define using libm_alias_double.
20711 (lround): Likewise.
20712 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
20713 <libm-alias-double.h>.
20714 (llrint): Define using libm_alias_double.
20715 (lrint): Likewise.
20716 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
20717 <libm-alias-double.h>.
20718 (llround): Define using libm_alias_double.
20719 (lround): Likewise.
20720
20721 2017-12-01 Joseph Myers <joseph@codesourcery.com>
20722
20723 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
20724 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
20725 compat symbol based on llround.
20726
20727 * sysdeps/powerpc/power7/fpu/s_logb.c
20728 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
20729 symbol based on __logb, not on logb.
20730 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
20731 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20732 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
20733 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20734
20735 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
20736 (rint): Define using libm_alias_double.
20737 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
20738 <libm-alias-double.h>.
20739 (modf): Define using libm_alias_double.
20740 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
20741 <libm-alias-double.h>.
20742 (ceil): Define using libm_alias_double.
20743 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
20744 <libm-alias-double.h>.
20745 (floor): Define using libm_alias_double.
20746 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
20747 <libm-alias-double.h>.
20748 (nearbyint): Define using libm_alias_double.
20749 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
20750 <libm-alias-double.h>.
20751 (rint): Define using libm_alias_double.
20752 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
20753 <libm-alias-double.h>.
20754 (round): Define using libm_alias_double.
20755 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
20756 <libm-alias-double.h>.
20757 (trunc): Define using libm_alias_double.
20758 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
20759 <libm-alias-double.h>.
20760 (ceil): Define using libm_alias_double.
20761 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
20762 Include <libm-alias-double.h>.
20763 (floor): Define using libm_alias_double.
20764 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
20765 <libm-alias-double.h>.
20766 (modf): Define using libm_alias_double.
20767 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
20768 Include <libm-alias-double.h>.
20769 (round): Define using libm_alias_double.
20770 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
20771 Include <libm-alias-double.h>.
20772 (trunc): Define using libm_alias_double.
20773 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
20774 <libm-alias-double.h>.
20775 (ceil): Define using libm_alias_double.
20776 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
20777 <libm-alias-double.h>.
20778 (floor): Define using libm_alias_double.
20779 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
20780 <libm-alias-double.h>.
20781 (round): Define using libm_alias_double.
20782 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
20783 <libm-alias-double.h>.
20784 (trunc): Define using libm_alias_double.
20785 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
20786 <libm-alias-double.h>.
20787 (ceil): Define using libm_alias_double.
20788 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
20789 <libm-alias-double.h>.
20790 (floor): Define using libm_alias_double.
20791 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
20792 <libm-alias-double.h>.
20793 (modf): Define using libm_alias_double.
20794 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
20795 <libm-alias-double.h>.
20796 (round): Define using libm_alias_double.
20797 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
20798 <libm-alias-double.h>.
20799 (trunc): Define using libm_alias_double.
20800 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
20801 <libm-alias-double.h>.
20802 (ceil): Define using libm_alias_double.
20803 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
20804 <libm-alias-double.h>.
20805 (floor): Define using libm_alias_double.
20806 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
20807 <libm-alias-double.h>.
20808 (nearbyint): Define using libm_alias_double.
20809 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
20810 <libm-alias-double.h>.
20811 (rint): Define using libm_alias_double.
20812 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
20813 <libm-alias-double.h>.
20814 (round): Define using libm_alias_double.
20815 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
20816 <libm-alias-double.h>.
20817 (trunc): Define using libm_alias_double.
20818 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
20819 <libm-alias-double.h>.
20820 (ceil): Define using libm_alias_double.
20821 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
20822 <libm-alias-double.h>.
20823 (floor): Define using libm_alias_double.
20824 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
20825 <libm-alias-double.h>.
20826 (round): Define using libm_alias_double.
20827 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
20828 <libm-alias-double.h>.
20829 (trunc): Define using libm_alias_double.
20830
20831 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
20832 (fabs): Define using libm_alias_double.
20833 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
20834 (fma): Define using libm_alias_double.
20835 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
20836 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
20837 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
20838 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
20839
20840 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20841
20842 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
20843
20844 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
20845 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
20846 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
20847
20848 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
20849 due redirect macro.
20850
20851 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
20852
20853 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
20854
20855 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20856
20857 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
20858 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
20859 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
20860 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
20861
20862 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20863 (libm-sysdep_routines): Add s_nearbyintf-generic and
20864 s_nearbyint-generic.
20865 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
20866 New file.
20867 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
20868 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
20869 Likewise.
20870 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
20871 Likewise.
20872 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
20873 file.
20874 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20875 Likewise.
20876
20877 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20878 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
20879 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
20880 file.
20881 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
20882 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
20883 Likewise.
20884 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
20885 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
20886 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
20887
20888 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20889 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
20890 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
20891 file.
20892 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
20893 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
20894 Likewise.
20895 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
20896 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
20897 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
20898
20899 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20900 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
20901 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
20902 file.
20903 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
20904 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
20905 Likewise.
20906 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
20907 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
20908 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
20909
20910 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20911 (sysdep_calls): New rule.
20912 (sysdep_routines): Use sysdep_calls as base.
20913 (libm-sysdep_routines): Add generic rule for symbols shared with
20914 libc. Add s_copysign-generic and s_copysign-generic objects.
20915 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
20916 New file.
20917 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
20918 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
20919 Likewise.
20920 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
20921 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
20922 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
20923
20924 2017-12-01 Mike FABIAN <mfabian@redhat.com>
20925
20926 [BZ #22519]
20927 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
20928 the list of locales to be built for testing.
20929 * localedata/is_IS.UTF-8.in: New file.
20930 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
20931 on iso14651_t1.
20932
20933 2017-12-01 Joseph Myers <joseph@codesourcery.com>
20934
20935 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
20936 <libm-alias-float.h>.
20937 (fabsf): Define using libm_alias_float.
20938
20939 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20940
20941 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
20942
20943 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20944
20945 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
20946 <libm-alias-float.h>.
20947 (fabsf): Define using libm_alias_float.
20948 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
20949 <libm-alias-float.h>.
20950 (lrintf): Define using libm_alias_float.
20951 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
20952 <libm-alias-float.h>.
20953 (rintf): Define using libm_alias_float.
20954
20955 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
20956 <libm-alias-double.h>.
20957 (fabs): Define using libm_alias_double.
20958 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
20959 <libm-alias-double.h>.
20960 (lrint): Define using libm_alias_double.
20961 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
20962 <libm-alias-double.h>.
20963 (rint): Define using libm_alias_double.
20964
20965 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
20966 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
20967 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
20968 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
20969 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
20970 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
20971 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
20972 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
20973 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
20974 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
20975 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
20976 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
20977 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
20978 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
20979 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
20980 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
20981 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
20982 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
20983 s_atan_template.c.
20984 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
20985 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
20986 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
20987 s_ceil_template.c.
20988 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
20989 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
20990 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
20991 s_cos_template.c.
20992 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
20993 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
20994 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
20995 s_expm1_template.c.
20996 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
20997 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
20998 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
20999 s_fabs_template.c.
21000 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
21001 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
21002 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
21003 s_floor_template.c.
21004 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
21005 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
21006 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
21007 s_frexp_template.c.
21008 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
21009 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
21010 s_lrint_template.c.
21011 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
21012 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
21013 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
21014 s_modf_template.c.
21015 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
21016 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
21017 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
21018 s_nearbyint_template.c.
21019 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
21020 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
21021 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
21022 s_remquo_template.c.
21023 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
21024 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
21025 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
21026 s_rint_template.c.
21027 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
21028 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
21029 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
21030 s_sin_template.c.
21031 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
21032 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
21033 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
21034 s_sincos_template.c.
21035 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
21036 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
21037 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
21038 s_tan_template.c.
21039 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
21040 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
21041 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
21042 s_tanh_template.c.
21043 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
21044 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
21045 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
21046 s_trunc_template.c.
21047 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
21048 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
21049 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
21050 s_atan.c instead of including s_atan.c.
21051 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
21052 s_atanf.c instead of including s_atanf.c.
21053 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
21054 s_atanl.c instead of including s_atanl.c.
21055 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
21056 instead of s_atan.c.
21057 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
21058 instead of s_atanf.c.
21059 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
21060 instead of s_atanl.c.
21061
21062 * scripts/update-copyrights: Do not handle intl/plural.c
21063 specially.
21064
21065 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
21066
21067 [BZ #22432]
21068 * configure.ac (BISON): Require to be present.
21069 * configure: Regenerated.
21070 * intl/Makefile (generated): Add plural.c.
21071 [$(BISON) != no]: Make code unconditional.
21072 (plural.c): Change rule to $(objpfx)plural.c.
21073 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
21074 * intl/plural.c: Remove.
21075 * manual/install.texi (Tools for Compilation): Document bison as
21076 required.
21077 * INSTALL: Regenerated.
21078
21079 2017-11-30 Joseph Myers <joseph@codesourcery.com>
21080
21081 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
21082 <libm-alias-double.h>.
21083 (llrint): Define using libm_alias_double.
21084 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
21085 <libm-alias-float.h>.
21086 (llrintf): Define using libm_alias_float.
21087 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
21088 <libm-alias-ldouble.h>.
21089 (llrintl): Define using libm_alias_ldouble.
21090
21091 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
21092 declare_mgen_alias instead of weak_alias.
21093 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
21094 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
21095 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
21096
21097 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21098
21099 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
21100 Add add_n-generic.
21101 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
21102 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
21103 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
21104
21105 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
21106 Add submul_1-generic.
21107 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
21108 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
21109 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
21110
21111 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
21112 Add addmul_1-generic.
21113 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
21114 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
21115 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
21116
21117 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
21118 Add sub_n-generic.
21119 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
21120 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
21121 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
21122
21123 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
21124 Add mul_1-generic.
21125 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
21126 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
21127 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
21128
21129 2017-11-30 Mike FABIAN <mfabian@redhat.com>
21130
21131 According to CLDR, collation rules for Serbian and Bosnian
21132 should be the same as for Croatian.
21133
21134 [BZ #22534]
21135 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
21136 and to the list of locales to be built for testing.
21137 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
21138 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
21139 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
21140 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
21141
21142 2017-11-30 Mike FABIAN <mfabian@redhat.com>
21143
21144 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
21145 to make test case pass.
21146 * localedata/hr_HR.UTF-8.in: Add more test strings.
21147
21148 2017-11-30 Mike FABIAN <mfabian@redhat.com>
21149
21150 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
21151
21152 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
21153
21154 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
21155 the list of locales to built for testing.
21156 * localedata/hr_HR.UTF-8.in: New file.
21157
21158 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
21159
21160 [BZ #10580]
21161 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
21162 iso14651_t1.
21163 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
21164 CLDR (except use ligatures for the digraphs, CLDR does not use
21165 the ligatures), add first_workday, some fixes in the date and time
21166 formats.
21167 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
21168 for Đ and đ.
21169 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
21170 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
21171 Add int_p_cs_precedes and int_n_cs_precedes.
21172 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
21173 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
21174 LC_MONETARY now).
21175 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
21176 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
21177 name_miss.
21178 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
21179 and lang_lib. Change postal_fmt.
21180
21181 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
21182
21183 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
21184 <setjmp.h>.
21185 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
21186 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
21187 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
21188 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
21189 * sysdeps/generic/setjmpP.h: New file.
21190 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
21191 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
21192 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
21193 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
21194 Add jmp_buf-ssp.sym.
21195 (tests): Add tst-saved_mask-1.
21196
21197 2017-11-30 Arjun Shankar <arjun@redhat.com>
21198
21199 [BZ #22375]
21200 CVE-2017-17426
21201 * malloc/malloc.c (__libc_malloc): Use checked_request2size
21202 instead of request2size.
21203
21204 2017-11-30 Joseph Myers <joseph@codesourcery.com>
21205
21206 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
21207 (__lllrint): Remove alias.
21208 (lllrint): Likewise.
21209 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
21210 (__lllrintf): Likewise.
21211 (lllrintf): Likewise.
21212
21213 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
21214 <libm-alias-float.h>.
21215 (copysignf): Define using libm_alias_float.
21216 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
21217 <libm-alias-float.h>.
21218 (fabsf): Define using libm_alias_float.
21219 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
21220 Include <libm-alias-float.h>.
21221 (copysignf): Define using libm_alias_float.
21222 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
21223 <libm-alias-float.h>.
21224 (fabsf): Define using libm_alias_float.
21225 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
21226 <libm-alias-float.h>.
21227 (fdimf): Define using libm_alias_float.
21228 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
21229 <libm-alias-float.h>.
21230 (fmaf): Define using libm_alias_float.
21231 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
21232 <libm-alias-float.h>.
21233 (llrintf): Define using libm_alias_float.
21234 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
21235 Include <libm-alias-float.h>.
21236 (nearbyintf): Define using libm_alias_float.
21237 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
21238 <libm-alias-float.h>.
21239 (rintf): Define using libm_alias_float.
21240 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
21241 <libm-alias-float.h>.
21242 (llrintf): Define using libm_alias_float.
21243 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
21244 <libm-alias-float.h>.
21245 (lrintf): Define using libm_alias_float.
21246 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
21247 <libm-alias-float.h>.
21248 (nearbyintf): Define using libm_alias_float.
21249 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
21250 <libm-alias-float.h>.
21251 (rintf): Define using libm_alias_float.
21252 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
21253 <libm-alias-float.h>.
21254 (ceilf): Define using libm_alias_float.
21255 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
21256 <libm-alias-float.h>.
21257 (floorf): Define using libm_alias_float.
21258 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
21259 <libm-alias-float.h>.
21260 (fmaf): Define using libm_alias_float.
21261 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
21262 <libm-alias-float.h>.
21263 (lrintf): Define using libm_alias_float.
21264 (llrintf): Likewise.
21265 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
21266 <libm-alias-float.h>.
21267 (nearbyintf): Define using libm_alias_float.
21268 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
21269 <libm-alias-float.h>.
21270 (rintf): Define using libm_alias_float.
21271 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
21272 <libm-alias-float.h>.
21273 (truncf): Define using libm_alias_float.
21274 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
21275 <libm-alias-float.h>.
21276 (copysignf): Define using libm_alias_float.
21277 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
21278 <libm-alias-float.h>.
21279 (fabsf): Define using libm_alias_float.
21280 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
21281 <libm-alias-float.h>.
21282 (lrintf): Define using libm_alias_float.
21283 (llrintf): Likewise.
21284 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
21285 <libm-alias-float.h>.
21286 (nearbyintf): Define using libm_alias_float.
21287 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
21288 <libm-alias-float.h>.
21289 (rintf): Define using libm_alias_float.
21290
21291 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21292
21293 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
21294 <libm-alias-double.h>.
21295 (copysign): Define using libm_alias_double.
21296 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
21297 <libm-alias-double.h>.
21298 (fabs): Define using libm_alias_double.
21299 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
21300 Include <libm-alias-double.h>.
21301 (copysign): Define using libm_alias_double.
21302 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
21303 <libm-alias-double.h>.
21304 (fabs): Define using libm_alias_double.
21305 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
21306 <libm-alias-double.h>.
21307 (fdim): Define using libm_alias_double.
21308 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
21309 <libm-alias-double.h>.
21310 (fma): Define using libm_alias_double.
21311 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
21312 <libm-alias-double.h>.
21313 (llrint): Define using libm_alias_double.
21314 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
21315 Include <libm-alias-double.h>.
21316 (nearbyint): Define using libm_alias_double.
21317 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
21318 <libm-alias-double.h>.
21319 (rint): Define using libm_alias_double.
21320 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
21321 <libm-alias-double.h>.
21322 (fabs): Define using libm_alias_double.
21323 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
21324 <libm-alias-double.h>.
21325 (llrint): Define using libm_alias_double.
21326 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
21327 <libm-alias-double.h>.
21328 (nearbyint): Define using libm_alias_double.
21329 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
21330 <libm-alias-double.h>.
21331 (rint): Define using libm_alias_double.
21332 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
21333 <libm-alias-double.h>.
21334 (ceil): Define using libm_alias_double.
21335 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
21336 <libm-alias-double.h>.
21337 (floor): Define using libm_alias_double.
21338 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
21339 <libm-alias-double.h>.
21340 (fma): Define using libm_alias_double.
21341 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
21342 <libm-alias-double.h>.
21343 (lrint): Define using libm_alias_double.
21344 (llrint): Likewise.
21345 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
21346 <libm-alias-double.h>.
21347 (nearbyint): Define using libm_alias_double.
21348 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
21349 <libm-alias-double.h>.
21350 (rint): Define using libm_alias_double.
21351 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
21352 <libm-alias-double.h>.
21353 (trunc): Define using libm_alias_double.
21354 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
21355 <libm-alias-double.h>.
21356 (copysign): Define using libm_alias_double.
21357 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
21358 <libm-alias-double.h>.
21359 (fabs): Define using libm_alias_double.
21360 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
21361 <libm-alias-double.h>.
21362 (lrint): Define using libm_alias_double.
21363 (llrint): Likewise.
21364 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
21365 <libm-alias-double.h>.
21366 (nearbyint): Define using libm_alias_double.
21367 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
21368 <libm-alias-double.h>.
21369 (rint): Define using libm_alias_double.
21370
21371 [BZ #22229]
21372 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
21373 <math_ldbl_opt.h>.
21374 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
21375
21376 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
21377 SPARC --disable-multi-arch glibc variants.
21378
21379 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
21380 <libm-alias-float.h>.
21381 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21382 if [SHARED].
21383 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
21384 <libm-alias-float.h>.
21385 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21386 if [SHARED].
21387 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
21388 <libm-alias-float.h>.
21389 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21390 if [SHARED].
21391 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
21392 <libm-alias-float.h>.
21393 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21394 if [SHARED].
21395 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
21396 <libm-alias-float.h>.
21397 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21398 if [SHARED].
21399 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
21400 <libm-alias-float.h>.
21401 (ceilf): Define using libm_alias_float.
21402 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
21403 <libm-alias-float.h>.
21404 (floorf): Define using libm_alias_float.
21405 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
21406 <libm-alias-float.h>.
21407 (fmaf): Define using libm_alias_float.
21408 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
21409 <libm-alias-float.h>.
21410 (nearbyintf): Define using libm_alias_float.
21411 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
21412 <libm-alias-float.h>.
21413 (rintf): Define using libm_alias_float.
21414 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
21415 <libm-alias-float.h>.
21416 (truncf): Define using libm_alias_float.
21417 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
21418 (copysignf): Define using libm_alias_float.
21419 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
21420 (cosf): Define using libm_alias_float.
21421 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
21422 (fabsf): Define using libm_alias_float.
21423 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21424 (fmaxf): Define using libm_alias_float.
21425 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
21426 (fminf): Define using libm_alias_float.
21427 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
21428 (llrintf): Define using libm_alias_float.
21429 [!__ILP32__] (lrintf): Likewise.
21430 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
21431 (sincosf): Define using libm_alias_float.
21432 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
21433 (sinf): Define using libm_alias_float.
21434 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
21435 (lrintf): Define using libm_alias_float.
21436
21437 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
21438 <libm-alias-double.h>.
21439 (atan): Define using libm_alias_double.
21440 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
21441 <libm-alias-double.h>.
21442 (ceil): Define using libm_alias_double.
21443 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
21444 <libm-alias-double.h>.
21445 (floor): Define using libm_alias_double.
21446 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
21447 <libm-alias-double.h>.
21448 (fma): Define using libm_alias_double.
21449 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
21450 <libm-alias-double.h>.
21451 (nearbyint): Define using libm_alias_double.
21452 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
21453 <libm-alias-double.h>.
21454 (rint): Define using libm_alias_double.
21455 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
21456 <libm-alias-double.h>.
21457 (sin): Define using libm_alias_double.
21458 (cos): Likewise.
21459 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
21460 <libm-alias-double.h>.
21461 (tan): Define using libm_alias_double.
21462 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
21463 <libm-alias-double.h>.
21464 (trunc): Define using libm_alias_double.
21465 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
21466 (copysign): Define using libm_alias_double.
21467 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
21468 (fabs): Define using libm_alias_double.
21469 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
21470 (fmax): Define using libm_alias_double.
21471 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
21472 (fmin): Define using libm_alias_double.
21473 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
21474 (llrint): Define using libm_alias_double.
21475 [!__ILP32__] (lrint): Likewise.
21476 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
21477 (lrint): Define using libm_alias_double.
21478
21479 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21480
21481 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21482 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
21483 objects.
21484 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
21485 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
21486 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
21487 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
21488 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
21489 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
21490
21491 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21492 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
21493 objects.
21494 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
21495 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
21496 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
21497 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
21498 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
21499 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
21500
21501 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21502 (libm-sysdep_routines): Add s_nearbyint-generic and
21503 s_nearbyintf-generic objects.
21504 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
21505 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
21506 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
21507 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
21508 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
21509 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
21510
21511 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21512 Add s_finitef-generic and s_finite-generic objects.
21513 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
21514 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
21515 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
21516 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
21517 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
21518 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
21519
21520 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21521 Add s_isinff-generic and s_isinf-generic objects.
21522 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
21523 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
21524 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
21525 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
21526 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
21527 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
21528
21529 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21530 Add s_isnanf-generic and s_isnan-generic objects.
21531 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
21532 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
21533 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
21534 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
21535 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
21536 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
21537
21538 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
21539 macro.
21540 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
21541 rule.
21542 (sysdep_routines): Use sysdep_calls as base.
21543 (libm-sysdep_routines): Add generic rule for symbols shared with
21544 libc. Add s_signbit-generic and s_signbitf-generic objects.
21545 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
21546 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
21547 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
21548 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
21549 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
21550 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
21551
21552 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21553
21554 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
21555 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
21556 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
21557 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
21558 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
21559 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
21560 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
21561 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
21562 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
21563 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
21564 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
21565 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
21566 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
21567 libm_alias_float_r.
21568 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
21569 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
21570 (logf): Likewise.
21571 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
21572 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
21573 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
21574 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
21575 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
21576 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
21577 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
21578 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
21579 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
21580 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
21581 libm_alias_float.
21582 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
21583 (cosf): Likewise.
21584 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
21585 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
21586 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
21587 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
21588 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
21589 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
21590 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
21591 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
21592 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
21593 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
21594 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
21595 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
21596 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
21597 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
21598 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
21599 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
21600 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
21601 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
21602 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
21603 libm_alias_float.
21604 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
21605 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
21606 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
21607 * sysdeps/ia64/fpu/w_lgammaf_main.c
21608 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
21609 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
21610
21611 2017-11-28 Mike FABIAN <mfabian@redhat.com>
21612 Alexandre Oliva <aoliva@redhat.com>
21613
21614 [BZ #17750]
21615 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
21616 * localedata/fr_CA.UTF-8.in: New file with test data for backward
21617 accents sorting.
21618 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
21619 sorting.
21620 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
21621 * localedata/locales/de_DE (LC_COLLATE): Likewise.
21622 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
21623 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
21624 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
21625 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
21626 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
21627 instead of “ifdef DIACRIT_BACKWARD”.
21628
21629 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21630
21631 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
21632 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
21633 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
21634 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
21635 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
21636 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
21637 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
21638 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
21639 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
21640 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
21641 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
21642 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
21643 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
21644 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
21645 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
21646 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
21647 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
21648 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
21649 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
21650 ($(have-as-vis3) == yes): Remove conditional.
21651 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
21652 Likewise.
21653 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
21654 file.
21655 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
21656 file.
21657 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
21658 file.
21659 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
21660 file.
21661 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
21662 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
21663 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
21664 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
21665 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
21666 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
21667 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
21668 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
21669
21670 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21671
21672 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
21673 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
21674 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
21675 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
21676 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
21677 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
21678 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
21679 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
21680 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
21681 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
21682 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
21683 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
21684 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
21685 libm_alias_double_r.
21686 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
21687 (log): Likewise.
21688 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
21689 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
21690 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
21691 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
21692 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
21693 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
21694 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
21695 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
21696 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
21697 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
21698 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
21699 libm_alias_double.
21700 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
21701 (cos): Likewise.
21702 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
21703 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
21704 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
21705 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
21706 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
21707 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
21708 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
21709 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
21710 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
21711 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
21712 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
21713 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
21714 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
21715 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
21716 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
21717 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
21718 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
21719 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
21720 libm_alias_double.
21721 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
21722 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
21723 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
21724 * sysdeps/ia64/fpu/w_lgamma_main.c
21725 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
21726 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
21727
21728 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
21729
21730 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
21731 address of $global$ into %dp register earlier. Use pc-relative
21732 instruction sequence for PIC case.
21733
21734 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21735
21736 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
21737 (asinhf): Define using libm_alias_float.
21738 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
21739 (atanf): Define using libm_alias_float.
21740 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
21741 (cbrtf): Define using libm_alias_float.
21742 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
21743 (ceilf): Define using libm_alias_float.
21744 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
21745 (copysignf): Define using libm_alias_float.
21746 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
21747 (expm1f): Define using libm_alias_float.
21748 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
21749 (fabsf): Define using libm_alias_float.
21750 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
21751 (floorf): Define using libm_alias_float.
21752 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21753 (fmaxf): Define using libm_alias_float.
21754 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
21755 (fminf): Define using libm_alias_float.
21756 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
21757 (frexpf): Define using libm_alias_float.
21758 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
21759 (llrintf): Define using libm_alias_float.
21760 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
21761 (logbf): Define using libm_alias_float.
21762 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
21763 (lrintf): Define using libm_alias_float.
21764 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
21765 (nearbyintf): Define using libm_alias_float.
21766 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
21767 (remquof): Define using libm_alias_float.
21768 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
21769 (rintf): Define using libm_alias_float.
21770 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
21771 (truncf): Define using libm_alias_float.
21772 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
21773 <libm-alias-float.h>.
21774 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21775 if [SHARED].
21776 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
21777 <libm-alias-float.h>.
21778 (expf): Define using libm_alias_float, or libm_alias_float_other
21779 if [SHARED].
21780 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
21781 <libm-alias-float.h>.
21782 (log2f): Define using libm_alias_float, or libm_alias_float_other
21783 if [SHARED].
21784 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
21785 <libm-alias-float.h>.
21786 (logf): Define using libm_alias_float, or libm_alias_float_other
21787 if [SHARED].
21788 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
21789 <libm-alias-float.h>.
21790 (powf): Define using libm_alias_float, or libm_alias_float_other
21791 if [SHARED].
21792 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
21793 <libm-alias-float.h>.
21794 (cosf): Define using libm_alias_float.
21795 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
21796 <libm-alias-float.h>.
21797 (sincosf): Define using libm_alias_float.
21798 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
21799 <libm-alias-float.h>.
21800 (sinf): Define using libm_alias_float.
21801 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21802 (fmaxf): Define using libm_alias_float.
21803 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
21804 (fminf): Define using libm_alias_float.
21805 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
21806 <libm-alias-float.h>.
21807 (fmaf): Define using libm_alias_float.
21808
21809 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
21810 (asinh): Define using libm_alias_double.
21811 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
21812 (atan): Define using libm_alias_double.
21813 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
21814 (cbrt): Define using libm_alias_double.
21815 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
21816 (ceil): Define using libm_alias_double.
21817 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
21818 (copysign): Define using libm_alias_double.
21819 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
21820 (expm1): Define using libm_alias_double.
21821 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
21822 (fabs): Define using libm_alias_double.
21823 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
21824 (fdim): Define using libm_alias_double.
21825 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
21826 (floor): Define using libm_alias_double.
21827 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
21828 (fmax): Define using libm_alias_double.
21829 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
21830 (fmin): Define using libm_alias_double.
21831 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
21832 (frexp): Define using libm_alias_double.
21833 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
21834 (llrint): Define using libm_alias_double.
21835 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
21836 (logb): Define using libm_alias_double.
21837 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
21838 (lrint): Define using libm_alias_double.
21839 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
21840 (nearbyint): Define using libm_alias_double.
21841 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
21842 (remquo): Define using libm_alias_double.
21843 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
21844 (rint): Define using libm_alias_double.
21845 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
21846 (trunc): Define using libm_alias_double.
21847 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
21848 (fmax): Define using libm_alias_double.
21849 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
21850 (fmin): Define using libm_alias_double.
21851 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
21852 (fma): Define using libm_alias_double.
21853
21854 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
21855
21856 [BZ #22370]
21857 * elf/dl-hwcaps.c (ROUND): Removed.
21858 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
21859 and ELF_NOTE_NEXT_OFFSET.
21860 * elf/dl-load.c (ROUND): Removed.
21861 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21862 * elf/readelflib.c (ROUND): Removed.
21863 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21864 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
21865 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
21866 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
21867
21868 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21869
21870 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
21871 [!__fmaf] (fmaf): Define using libm_alias_float.
21872
21873 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
21874 [!__fma] (fma): Define using libm_alias_double.
21875 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
21876
21877 2017-11-28 Mike FABIAN <mfabian@redhat.com>
21878
21879 [BZ #22336]
21880 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
21881 and implement the collation rules for cs from CLDR on top of that.
21882 * Makefile: Add cs_CZ.UTF-8 to test-input.
21883 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
21884
21885 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
21886
21887 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
21888
21889 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
21890 Icarus Sparry <icarus.w.sparry@intel.com>
21891
21892 * benchtests/Makefile:Add BENCHSET to allow subsets of
21893 benchmarks to be run.
21894 * benchtests/README: Add documentation for: Running subsets of
21895 benchmarks.
21896
21897 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
21898
21899 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
21900 range of tests names.
21901
21902 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
21903 result from property and remove "max", min" and "mean" from
21904 required properties based on benchtests/bench-skeleton.c.
21905
21906 2017-11-28 Florian Weimer <fweimer@redhat.com>
21907
21908 [BZ #20826]
21909 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
21910 due to Internet requirement.
21911 * posix/Makefile (tests): Remove tst-getaddrinfo4,
21912 tst-getaddrinfo5.
21913 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
21914
21915 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21916
21917 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21918 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
21919 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21920 (sysdep_routines): Add memset-ultra1.
21921 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
21922 file.
21923 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
21924 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
21925 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
21926 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
21927 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
21928 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
21929 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
21930 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
21931
21932 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
21933 file.
21934 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
21935 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
21936 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
21937 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
21938 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
21939 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
21940 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
21941 macro.
21942 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21943 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
21944 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21945 (sysdep_routines): Add memcpy-ultra1.
21946 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
21947 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
21948
21949 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21950
21951 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
21952 (cfloat_versions): Take function argument without trailing 'f'.
21953 Call libm_alias_float_other.
21954 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
21955 * sysdeps/alpha/fpu/cargf.c: Likewise.
21956 * sysdeps/alpha/fpu/cimagf.c: Likewise.
21957 * sysdeps/alpha/fpu/conjf.c: Likewise.
21958 * sysdeps/alpha/fpu/crealf.c: Likewise.
21959 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
21960 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
21961 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
21962 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
21963 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
21964 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
21965 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
21966 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
21967 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
21968 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
21969 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
21970 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
21971 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
21972 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
21973 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
21974 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
21975 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
21976 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
21977 (clog10f): Use libm_alias_float_other.
21978 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
21979 (ceilf): Define using libm_alias_float.
21980 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
21981 (copysignf): Define using libm_alias_float.
21982 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
21983 (fabsf): Define using libm_alias_float.
21984 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
21985 (floorf): Define using libm_alias_float.
21986 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
21987 (fmaxf): Define using libm_alias_float.
21988 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
21989 (fminf): Define using libm_alias_float.
21990 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
21991 (lrintf): Define using libm_alias_float.
21992 (llrintf): Likewise.
21993 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
21994 (lroundf): Define using libm_alias_float.
21995 (llroundf): Likewise.
21996 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
21997 (rintf): Define using libm_alias_float.
21998 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
21999 (truncf): Define using libm_alias_float.
22000
22001 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
22002 (ceilf): Define using libm_alias_float.
22003 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
22004 (floorf): Define using libm_alias_float.
22005 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
22006 (fmaf): Define using libm_alias_float.
22007 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
22008 (fmaxf): Define using libm_alias_float.
22009 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
22010 (fminf): Define using libm_alias_float.
22011 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
22012 (llrintf): Define using libm_alias_float.
22013 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
22014 (llroundf): Define using libm_alias_float.
22015 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
22016 (lrintf): Define using libm_alias_float.
22017 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
22018 (lroundf): Define using libm_alias_float.
22019 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
22020 <libm-alias-float.h>.
22021 (nearbyintf): Define using libm_alias_float.
22022 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
22023 (rintf): Define using libm_alias_float.
22024 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
22025 (roundf): Define using libm_alias_float.
22026 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
22027 (truncf): Define using libm_alias_float.
22028
22029 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
22030 (ceil): Define using libm_alias_double.
22031 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
22032 (copysign): Define using libm_alias_double.
22033 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
22034 (fabs): Define using libm_alias_double.
22035 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
22036 (floor): Define using libm_alias_double.
22037 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
22038 (fmax): Define using libm_alias_double.
22039 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
22040 (fmin): Define using libm_alias_double.
22041 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
22042 (lrint): Define using libm_alias_double.
22043 (llrint): Likewise.
22044 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
22045 (lround): Define using libm_alias_double.
22046 (llround): Likewise.
22047 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
22048 (rint): Define using libm_alias_double.
22049 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
22050 (trunc): Define using libm_alias_double.
22051
22052 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
22053 (libm_alias_double_r): Add semicolon after weak_alias call.
22054
22055 2017-11-27 Joseph Myers <joseph@codesourcery.com>
22056
22057 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
22058 (ceil): Define using libm_alias_double.
22059 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
22060 (floor): Define using libm_alias_double.
22061 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
22062 (fma): Define using libm_alias_double.
22063 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
22064 (fmax): Define using libm_alias_double.
22065 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
22066 (fmin): Define using libm_alias_double.
22067 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
22068 (llrint): Define using libm_alias_double.
22069 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
22070 (llround): Define using libm_alias_double.
22071 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
22072 (lrint): Define using libm_alias_double.
22073 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
22074 (lround): Define using libm_alias_double.
22075 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
22076 (nearbyint): Define using libm_alias_double.
22077 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
22078 (rint): Define using libm_alias_double.
22079 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
22080 (round): Define using libm_alias_double.
22081 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
22082 (trunc): Define using libm_alias_double.
22083
22084 2017-11-27 Florian Weimer <fweimer@redhat.com>
22085
22086 * sysdeps/unix/sysv/linux/mlock2.c: New file.
22087 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
22088 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
22089 (tests): Add tst-mlock2.
22090 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
22091 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
22092 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
22093 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
22094 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
22095 for mlock. Document mlock2.
22096
22097 2017-11-27 Joseph Myers <joseph@codesourcery.com>
22098
22099 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
22100 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
22101 Likewise.
22102 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
22103 Likewise.
22104 * sysdeps/x86/Makeconfig: New file.
22105 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
22106 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22107 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
22108 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22109 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
22110 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22111 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
22112 Likewise.
22113 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22114 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
22115 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22116 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
22117 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22118 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
22119 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22120 * manual/math.texi (Mathematics): Document support for _Float64x.
22121 * math/Versions (GLIBC_2.27): Add _Float64x functions.
22122 * stdlib/Versions (GLIBC_2.27): Likewise.
22123 * wcsmbs/Versions (GLIBC_2.27): Likewise.
22124 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
22125 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
22126 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
22127 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
22128 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
22129 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
22130 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
22131 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
22132 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
22133 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
22134 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
22135 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
22136 Likewise.
22137 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
22138 Likewise.
22139 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
22140 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
22141 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
22142 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
22143 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
22144 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
22145 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
22146 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
22147 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
22148 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
22149 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
22150 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
22151 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
22152 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
22153
22154 2017-11-27 Andreas Schwab <schwab@suse.de>
22155
22156 * elf/Makefile (dl-routines): Add dl-sort-maps.
22157 * elf/dl-sort-maps.c: New file.
22158 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
22159 (_dl_sort_maps): Declare.
22160 * elf/dl-fini.c (_dl_sort_fini): Remove.
22161 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
22162 * elf/dl-close.c (_dl_close_worker): Likewise.
22163 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
22164 open-coding it.
22165 * elf/dl-open.c (dl_open_worker): Likewise.
22166
22167 2017-11-24 Joseph Myers <joseph@codesourcery.com>
22168
22169 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
22170 using libm_alias_float128.
22171 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
22172 Likewise.
22173 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
22174 Likewise.
22175 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
22176 (setpayloadsigf128): Likewise.
22177 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
22178 Likewise.
22179 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
22180 Likewise.
22181
22182 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
22183 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
22184 -mfloat128 to CFLAGS.
22185 ($(foreach
22186 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
22187 Likewise.
22188 (CFLAGS-libm-test-support-float64x.c): New variable.
22189 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
22190 $(f128-loader-link) to gnulib-tests.
22191
22192 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
22193 (libm_alias_float128_other_r): If
22194 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
22195 alias.
22196 (libm_alias_float128_r): Add semicolon after weak_alias call.
22197 * sysdeps/generic/libm-alias-ldouble.h
22198 (libm_alias_ldouble_other_r_f128): New macro.
22199 (libm_alias_ldouble_other_r_f64x): Likewise.
22200 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
22201 and libm_alias_ldouble_other_r_f64x.
22202 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
22203 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
22204 (libm_alias_ldouble_other_r_f128): New macro.
22205 (libm_alias_ldouble_other_r_f64x): Likewise.
22206 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
22207 and libm_alias_ldouble_other_r_f64x.
22208
22209 * stdlib/strfroml.c: Always include <stdlib.h>.
22210 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
22211 undefine as macro and define as weak alias.
22212 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
22213 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
22214 <stdlib.h>.
22215 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
22216 Define and later undefine as macro and define as weak alias.
22217
22218 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
22219 Define and later undefine as macro. Define as weak alias if
22220 [!USE_WIDE_CHAR].
22221 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
22222 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
22223 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
22224 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
22225 Define and later undefine as macro. Define as weak alias if
22226 [!USE_WIDE_CHAR].
22227 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
22228 Define and later undefine as macro. Define as weak alias if
22229 [USE_WIDE_CHAR].
22230 * sysdeps/ieee754/float128/strtof128_l.c
22231 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
22232 Define and later undefine as macro. Define as weak alias if
22233 [!USE_WIDE_CHAR].
22234 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
22235 Define and later undefine as macro. Define as weak alias if
22236 [USE_WIDE_CHAR].
22237 * sysdeps/ieee754/ldbl-128/strtold_l.c
22238 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
22239 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
22240 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
22241 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
22242 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
22243 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
22244 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
22245 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
22246 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
22247 * sysdeps/ieee754/ldbl-96/strtold_l.c
22248 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
22249 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
22250 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
22251 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
22252
22253 * math/test-float64x.h: New file.
22254 * math/Makefile (type-float64x-yes): New variable.
22255 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
22256
22257 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
22258 function-like macro.
22259 (min_of_type_): Likewise.
22260 (min_of_type_l): Likewise.
22261 (min_of_type_f128): Likewise.
22262 (min_of_type): Pass () as last argument of __MATH_TG.
22263
22264 * stdlib/tst-strtod-round-skeleton.c
22265 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
22266 headers.
22267
22268 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
22269 for combinations of long double with _Float64 and _Float64x.
22270
22271 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
22272 (__DECL_SIMD_cosf32): Likewise.
22273 (__DECL_SIMD_cosf64): Likewise.
22274 (__DECL_SIMD_cosf32x): Likewise.
22275 (__DECL_SIMD_cosf64x): Likewise.
22276 (__DECL_SIMD_cosf128x): Likewise.
22277 (__DECL_SIMD_sinf16): Likewise.
22278 (__DECL_SIMD_sinf32): Likewise.
22279 (__DECL_SIMD_sinf64): Likewise.
22280 (__DECL_SIMD_sinf32x): Likewise.
22281 (__DECL_SIMD_sinf64x): Likewise.
22282 (__DECL_SIMD_sinf128x): Likewise.
22283 (__DECL_SIMD_sincosf16): Likewise.
22284 (__DECL_SIMD_sincosf32): Likewise.
22285 (__DECL_SIMD_sincosf64): Likewise.
22286 (__DECL_SIMD_sincosf32x): Likewise.
22287 (__DECL_SIMD_sincosf64x): Likewise.
22288 (__DECL_SIMD_sincosf128x): Likewise.
22289 (__DECL_SIMD_logf16): Likewise.
22290 (__DECL_SIMD_logf32): Likewise.
22291 (__DECL_SIMD_logf64): Likewise.
22292 (__DECL_SIMD_logf32x): Likewise.
22293 (__DECL_SIMD_logf64x): Likewise.
22294 (__DECL_SIMD_logf128x): Likewise.
22295 (__DECL_SIMD_expf16): Likewise.
22296 (__DECL_SIMD_expf32): Likewise.
22297 (__DECL_SIMD_expf64): Likewise.
22298 (__DECL_SIMD_expf32x): Likewise.
22299 (__DECL_SIMD_expf64x): Likewise.
22300 (__DECL_SIMD_expf128x): Likewise.
22301 (__DECL_SIMD_powf16): Likewise.
22302 (__DECL_SIMD_powf32): Likewise.
22303 (__DECL_SIMD_powf64): Likewise.
22304 (__DECL_SIMD_powf32x): Likewise.
22305 (__DECL_SIMD_powf64x): Likewise.
22306 (__DECL_SIMD_powf128x): Likewise.
22307
22308 * stdlib/Versions (libc): Move entries for wcstof128 and
22309 wcstof128_l to ....
22310 * wcsmbs/Versions (libc): ... here.
22311 Include <float128-abi.h>.
22312
22313 2017-11-24 Florian Weimer <fweimer@redhat.com>
22314
22315 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
22316 bits/mman-shared.h.
22317 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
22318 <bits/mman-shared.h>.
22319 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
22320 to ...
22321 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
22322 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
22323 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
22324 <bits/mman-shared.h>.
22325
22326 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22327
22328 [BZ #22457]
22329 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
22330 posix_memalign/free.
22331 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
22332
22333 2017-11-22 Mike FABIAN <mfabian@redhat.com>
22334
22335 [BZ #22469]
22336 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
22337 and implement the collation rules for pl from CLDR on top of that.
22338 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
22339 of locales to be built for testing.
22340 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
22341
22342 2017-11-23 Joseph Myers <joseph@codesourcery.com>
22343
22344 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
22345 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
22346 libm_alias_ldouble_other.
22347 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
22348 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
22349 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
22350 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
22351 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
22352 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
22353 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
22354 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
22355 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
22356 libm_alias_ldouble_r.
22357 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
22358 libm_alias_ldouble_other.
22359 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
22360 (log10l): Likewise.
22361 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
22362 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
22363 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
22364 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
22365 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
22366 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
22367 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
22368 (atan2l): Likewise.
22369 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
22370 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
22371 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
22372 libm_alias_ldouble.
22373 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
22374 (cosl): Likewise.
22375 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
22376 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
22377 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
22378 (expl): Likewise.
22379 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
22380 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
22381 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
22382 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
22383 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
22384 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
22385 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
22386 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
22387 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
22388 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
22389 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
22390 libm_alias_ldouble.
22391 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
22392 libm_alias_ldouble_other.
22393 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
22394 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
22395 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
22396 libm_alias_ldouble.
22397 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
22398 libm_alias_ldouble_other.
22399 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
22400 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
22401 * sysdeps/ia64/fpu/w_lgammal_main.c
22402 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
22403 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
22404
22405 2017-11-23 Florian Weimer <fweimer@redhat.com>
22406
22407 * malloc/malloc.c (tcache_thread_shutdown): Rename from
22408 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
22409 alike. Remove freeres marker.
22410 * malloc/arena.c (arena_thread_freeres): Call
22411 tcache_thread_shutdown.
22412
22413 2017-11-23 Florian Weimer <fweimer@redhat.com>
22414
22415 [BZ #22459]
22416 Export nscd hash function as __nss_hash.
22417 * include/nss.h (__nss_hash): Declare.
22418 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
22419 symbol.
22420 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
22421 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
22422 of __nscd_hash.
22423 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
22424 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
22425 * nss/Makefiles (routines): Add nss_hash.
22426 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
22427 * nss/nss_hash.c: Rename from nis/nis_hash.c.
22428 (__nss_hash): Rename from __nis_hash. Define hidden alias.
22429 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
22430
22431 2017-11-23 Florian Weimer <fweimer@redhat.com>
22432
22433 [BZ #22478]
22434 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
22435 Return error code, not -1.
22436 * signal/tst-sigwait-eintr.c: New file.
22437 * signal/Makefile (tests): Add tst-sigwait-eintr.
22438
22439 2017-11-23 Florian Weimer <fweimer@redhat.com>
22440
22441 Linux: Add memfd_create system call wrapper
22442 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
22443 tst-memfd_create.
22444 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
22445 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
22446 [__USE_GNU] (memfd_create): Declare.
22447 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
22448 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
22449 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
22450 * sysdeps/unix/sysv/linux/**.abilist: Update.
22451 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
22452
22453 2017-11-22 Joseph Myers <joseph@codesourcery.com>
22454
22455 * localedata/gen-locale.sh: Fix typo in variable name.
22456
22457 * resolv/res_debug.c (p_secstodate): Condition definition on
22458 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
22459 directly as __p_secstodate, and as a compat symbol. Do not use
22460 libresolv_hidden_def.
22461 * resolv/resolv.h (p_secstodate): Remove macro and function
22462 declaration.
22463 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
22464 using p_secstodate.
22465 * include/resolv.h (__p_secstodate): Do not use
22466 libresolv_hidden_proto.
22467 * resolv/Makefile (tests): Move tst-p_secstodate to ....
22468 (tests-internal): ... here.
22469 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
22470 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
22471 and declare and use __p_secstodate and use compat_symbol_reference
22472 in that case.
22473 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
22474 implementation returning 77.
22475
22476 [BZ #22463]
22477 * resolv/res_debug.c: Include <libc-diag.h>.
22478 (p_secstodate): Assert time_t at least as wide as u_long. On
22479 overflow, use integer seconds since the epoch as output, or use
22480 "<overflow>" as output and set errno to EOVERFLOW if integer
22481 seconds since the epoch would be 14 or more characters.
22482 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
22483 for sprintf call.
22484 * resolv/tst-p_secstodate.c: New file.
22485 * resolv/Makefile (tests): Add tst-p_secstodate.
22486 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
22487
22488 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
22489 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
22490 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
22491
22492 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
22493
22494 * posix/regcomp.c (init_word_char): Add comments.
22495
22496 2017-11-22 Joseph Myers <joseph@codesourcery.com>
22497
22498 [BZ #22447]
22499 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
22500 strlen to compute length of ut_user and set trailing NUL byte of
22501 result explicitly.
22502
22503 2017-11-21 Mike FABIAN <mfabian@redhat.com>
22504
22505 [BZ #15537]
22506 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
22507 using “copy "iso14651_t1"” and then implementing the
22508 collation rules for lv from CLDR on top of that.
22509 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
22510 of locales to be built for testing.
22511 * lv_LV.UTF-8.in: New file with test data to test the Latvian
22512 sorting.
22513
22514 2017-11-21 Joseph Myers <joseph@codesourcery.com>
22515
22516 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
22517 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
22518 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
22519 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
22520 [__USE_MISC] (MADV_HWPOISON): New macro.
22521 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
22522
22523 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22524
22525 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
22526 -Wmissing-braces on GCC 4.9.
22527
22528 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
22529
22530 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
22531 * sysdeps/s390/s390-32/start.S (_start): Likewise
22532 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
22533 (thread_start): Likewise.
22534 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
22535 (thread_start): Likewise.
22536 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
22537 (__makecontext_ret): Likewise.
22538 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
22539 (__makecontext_ret): Likewise.
22540
22541 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
22542
22543 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
22544 __wcschrnul): Remove attribute_hidden.
22545
22546 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
22547
22548 regex: don't assume uint64_t or uint32_t
22549 This avoids -Werror=overflow errors for 32-bit systems in
22550 the 64-bit case. Problem reported by Joseph Myers in:
22551 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
22552 Also, when this code is used in Gnulib it ports to platforms
22553 that lack uint64_t and uint32_t. The C standard doesn't guarantee
22554 them, and on some 32-bit compilers there is no uint64_t.
22555 Problem reported by Gianluigi Tiesi in:
22556 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
22557 * posix/regcomp.c (init_word_char): Don't assume that the types
22558 uint64_t and uint32_t exist. Adapted from Gnulib patch
22559 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
22560 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
22561
22562 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
22563
22564 * sysdeps/aarch64/memset-reg.h: New file.
22565 * sysdeps/aarch64/memset.S: Use it.
22566 (__memset): Rename to MEMSET macro.
22567 [ZVA_MACRO]: Use zva_macro.
22568 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
22569 Add memset_generic and memset_falkor.
22570 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
22571 (__libc_ifunc_impl_list): Add memset ifuncs.
22572 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
22573 local variable zva_size.
22574 * sysdeps/aarch64/multiarch/memset.c: New file.
22575 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
22576 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
22577 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
22578 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
22579 (DCZID_DZP_MASK): New macro.
22580 (DCZID_BS_MASK): Likewise.
22581 (init_cpu_features): Read and set zva_size.
22582 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
22583 (struct cpu_features): New member zva_size.
22584
22585 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
22586 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
22587 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
22588
22589 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
22590 backwards. Fix timing computation.
22591 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
22592 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
22593 on memset by N at a time. Fix timing computation.
22594
22595 2017-11-20 Florian Weimer <fweimer@redhat.com>
22596
22597 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
22598 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
22599
22600 2017-11-19 Florian Weimer <fweimer@redhat.com>
22601
22602 manual: Document mprotect
22603 * manual/memory.texi (Memory Protection): New section.
22604 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
22605 documentation of PROT_* flags and reference the Memory Protection
22606 section instead.
22607
22608 2017-11-19 Florian Weimer <fweimer@redhat.com>
22609
22610 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
22611 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
22612 (Scatter-Gather): ... to here. Remove misleading comment.
22613
22614 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
22615
22616 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
22617 style.
22618
22619 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
22620 when /proc/<pid>/setgroups does not exist.
22621
22622 2017-11-18 Florian Weimer <fweimer@redhat.com>
22623
22624 * sysdeps/unix/sysv/linux/tst-ttyname.c
22625 (become_root_in_mount_ns): Remove.
22626 (do_in_chroot_1): Call support_enter_mount_namespace.
22627 (do_in_chroot_2): Likewise.
22628 (do_test): Call support_become_root early.
22629
22630 2017-11-18 Florian Weimer <fweimer@redhat.com>
22631
22632 * support/namespace.h (support_enter_mount_namespace): Declare.
22633 * support/support_enter_mount_namespace.c: New file.
22634 * support/Makefile (libsupport-routines): Add
22635 support_enter_mount_namespace.
22636
22637 2017-11-18 Florian Weimer <fweimer@redhat.com>
22638
22639 * support/temp_file.c (support_create_temp_directory): Use
22640 test_dir and do not rely on the presence of the XXXXXX suffix.
22641 * support/temp_file.h (support_create_temp_directory): Update
22642 comment.
22643 * support/tst-xreadlink.c (do_test): Adjust.
22644 * support/support_chroot.c (support_chroot_create): Likewise.
22645
22646 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22647
22648 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
22649 macro.
22650 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
22651 htm-no-suspend.
22652
22653 2017-11-17 Joseph Myers <joseph@codesourcery.com>
22654
22655 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
22656 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
22657 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
22658 (ceill): Define using libm_alias_ldouble.
22659 * sysdeps/x86_64/fpu/s_copysignl.S: Include
22660 <libm-alias-ldouble.h>.
22661 (copysignl): Define using libm_alias_ldouble.
22662 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
22663 (fabsl): Define using libm_alias_ldouble.
22664 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
22665 (floorl): Define using libm_alias_ldouble.
22666 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22667 (fmaxl): Define using libm_alias_ldouble.
22668 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22669 (fminl): Define using libm_alias_ldouble.
22670 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
22671 (llrintl): Define using libm_alias_ldouble.
22672 (lrintl): Likewise.
22673 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
22674 <libm-alias-ldouble.h>.
22675 (nearbyintl): Define using libm_alias_ldouble.
22676 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
22677 (truncl): Define using libm_alias_ldouble.
22678 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
22679 <libm-alias-ldouble.h>.
22680 (lrintl): Define using libm_alias_ldouble.
22681
22682 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
22683 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
22684 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
22685 (asinhl): Define using libm_alias_ldouble.
22686 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
22687 (atanl): Define using libm_alias_ldouble.
22688 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
22689 (cbrtl): Define using libm_alias_ldouble.
22690 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
22691 (ceill): Define using libm_alias_ldouble.
22692 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
22693 (copysignl): Define using libm_alias_ldouble.
22694 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
22695 (fabsl): Define using libm_alias_ldouble.
22696 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
22697 (floorl): Define using libm_alias_ldouble.
22698 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22699 (fmaxl): Define using libm_alias_ldouble.
22700 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22701 (fminl): Define using libm_alias_ldouble.
22702 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
22703 (frexpl): Define using libm_alias_ldouble.
22704 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
22705 (llrintl): Define using libm_alias_ldouble.
22706 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
22707 (logbl): Define using libm_alias_ldouble.
22708 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
22709 (lrintl): Define using libm_alias_ldouble.
22710 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
22711 (nearbyintl): Define using libm_alias_ldouble.
22712 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
22713 (nextafterl): Define using libm_alias_ldouble.
22714 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
22715 (remquol): Define using libm_alias_ldouble.
22716 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
22717 (rintl): Define using libm_alias_ldouble.
22718 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
22719 (truncl): Define using libm_alias_ldouble.
22720 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22721 (fmaxl): Define using libm_alias_ldouble.
22722 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22723 (fminl): Define using libm_alias_ldouble.
22724
22725 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
22726 to C syntax instead of availability and properties of types.
22727 * bits/floatn.h [!__ASSEMBLER]: Likewise.
22728 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
22729 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
22730 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
22731 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
22732 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
22733
22734 2017-11-17 Florian Weimer <fweimer@redhat.com>
22735
22736 support_become_root: Enable file creation in namespaces.
22737 * support/support_become_root.c (setup_mapping): New function.
22738 (support_become_root): Call it.
22739
22740 2017-11-17 Joseph Myers <joseph@codesourcery.com>
22741
22742 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
22743 macro.
22744
22745 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22746
22747 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
22748 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
22749
22750 2017-11-16 Joseph Myers <joseph@codesourcery.com>
22751
22752 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
22753
22754 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
22755 version to 4.14.
22756
22757 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
22758
22759 * INSTALL: Fix botched up regeneration.
22760
22761 * NEWS: Update sourceare link to https.
22762 * configure.ac: Likewise.
22763 * crypt/md5test-giant.c: Likewise.
22764 * dlfcn/bug-atexit1.c: Likewise.
22765 * dlfcn/bug-atexit2.c: Likewise.
22766 * localedata/README: Likewise.
22767 * malloc/tst-mallocfork.c: Likewise.
22768 * manual/install.texi: Likewise.
22769 * nptl/tst-pthread-getattr.c: Likewise.
22770 * stdio-common/tst-fgets.c: Likewise.
22771 * stdio-common/tst-fwrite.c: Likewise.
22772 * sunrpc/Makefile: Likewise.
22773 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
22774 * wcsmbs/tst-mbrtowc2.c: Likewise.
22775 * configure: Regenerate.
22776 * INSTALL: Regenerate.
22777
22778 2017-11-15 Martin Sebor <msebor@redhat.com>
22779
22780 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
22781 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
22782 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
22783
22784 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
22785
22786 [BZ #22145]
22787 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
22788 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
22789
22790 [BZ #22145]
22791 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
22792 Defer is_pty check until end of the function.
22793 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
22794
22795 [BZ #22145]
22796 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
22797 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
22798 (ttyname): Likewise.
22799 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
22800 (__ttyname_r): Likewise.
22801
22802 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
22803 int to bool.
22804
22805 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
22806
22807 * manual/terminal.texi (Is It a Terminal):
22808 Mention ENODEV for ttyname and ttyname_r.
22809
22810 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22811
22812 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
22813 constant and macro.
22814
22815 * sysdeps/unix/sysv/linux/bits/mman-linux.h
22816 [__USE_MISC] (MADV_WIPEONFORK): New macro.
22817 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22818 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
22819 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
22820 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22821
22822 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22823
22824 * signal/sigrelse.c (sigrelse): Optimize implementation.
22825
22826 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
22827 (__sigpause): Rely on __sigsuspend to implement single thread
22828 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
22829
22830 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22831
22832 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
22833 kernel version to 4.14.
22834
22835 2017-11-15 Steve Ellcey <sellcey@cavium.com>
22836
22837 [BZ #22442]
22838 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
22839 Check if ifname is too long.
22840
22841 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
22842
22843 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
22844
22845 2017-11-15 Mike FABIAN <mfabian@redhat.com>
22846
22847 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
22848 was accidentally lost.
22849
22850 2017-11-15 Mike FABIAN <mfabian@redhat.com>
22851
22852 * localedata/locales/az_IR: Add standard copyright header.
22853
22854 2017-11-15 Florian Weimer <fweimer@redhat.com>
22855
22856 [BZ #22439]
22857 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
22858 not just the top one. Output a new "subheaps" statistic.
22859
22860 2017-11-15 Florian Weimer <fweimer@redhat.com>
22861
22862 [BZ #22408]
22863 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
22864 under the per-arena lock.
22865 * malloc/Makefile (tests): Add tst-malloc_info.
22866 (tst-malloc_info): Link with libpthread.
22867 * malloc/tst-malloc_info.c: New file.
22868
22869 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22870
22871 [BZ #21660]
22872 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
22873 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
22874 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
22875 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
22876 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
22877 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
22878 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
22879 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
22880 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
22881 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
22882 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
22883 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
22884 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
22885 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
22886 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
22887 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
22888 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
22889 (__floating_type): Likewise.
22890 (__real_integer_type): Likewise.
22891 (__complex_integer_type): Likewise.
22892 (__expr_is_real): Likewise.
22893 (__tgmath_real_type_sub): Likewise.
22894 (__tgmath_real_type): Likewise.
22895 (__tgmath_complex_type_sub): Likewise.
22896 (__tgmath_complex_type): Likewise.
22897 (__TGMATH_F128): Likewise.
22898 (__TGMATH_CF128): Likewise.
22899 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
22900 new macros.
22901 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
22902 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
22903 Likewise.
22904 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
22905 Likewise.
22906 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
22907 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
22908 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
22909 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
22910 Likewise.
22911 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
22912 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
22913 Likewise.
22914 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
22915 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
22916 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
22917 Likewise.
22918 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
22919 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
22920 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
22921 (cimag): Likewise.
22922 (creal): Likewise.
22923
22924 2017-11-14 Joseph Myers <joseph@codesourcery.com>
22925
22926 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
22927 for stpncpy calls for GCC 8.
22928 (test_strncat): Disable -Wstringop-truncation warning for strncat
22929 calls for GCC 8. Disable -Wstringop-overflow= warning for one
22930 strncat call for GCC 7.
22931 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
22932 calls for GCC 8.
22933 (test_memcmp): Use memcpy instead of strncpy for calls not copying
22934 trailing NUL.
22935
22936 * string/bug-strncat1.c: Include <libc-diag.h>.
22937 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
22938
22939 2017-11-13 Claude Paroz <claude@2xlibre.net>
22940
22941 [BZ #22387]
22942 * localedata/locales/aa_DJ: Improved readibility by replacing
22943 <Uxxxx> sequences in the ASCII printable range by their ASCII
22944 character equivalents.
22945 * localedata/locales/aa_ER: Likewise.
22946 * localedata/locales/aa_ER@saaho: Likewise.
22947 * localedata/locales/aa_ET: Likewise.
22948 * localedata/locales/af_ZA: Likewise.
22949 * localedata/locales/agr_PE: Likewise.
22950 * localedata/locales/ak_GH: Likewise.
22951 * localedata/locales/am_ET: Likewise.
22952 * localedata/locales/anp_IN: Likewise.
22953 * localedata/locales/ar_AE: Likewise.
22954 * localedata/locales/ar_BH: Likewise.
22955 * localedata/locales/ar_DZ: Likewise.
22956 * localedata/locales/ar_EG: Likewise.
22957 * localedata/locales/ar_IN: Likewise.
22958 * localedata/locales/ar_IQ: Likewise.
22959 * localedata/locales/ar_JO: Likewise.
22960 * localedata/locales/ar_KW: Likewise.
22961 * localedata/locales/ar_LB: Likewise.
22962 * localedata/locales/ar_LY: Likewise.
22963 * localedata/locales/ar_MA: Likewise.
22964 * localedata/locales/ar_OM: Likewise.
22965 * localedata/locales/ar_QA: Likewise.
22966 * localedata/locales/ar_SA: Likewise.
22967 * localedata/locales/ar_SD: Likewise.
22968 * localedata/locales/ar_SS: Likewise.
22969 * localedata/locales/ar_SY: Likewise.
22970 * localedata/locales/ar_TN: Likewise.
22971 * localedata/locales/ar_YE: Likewise.
22972 * localedata/locales/as_IN: Likewise.
22973 * localedata/locales/ast_ES: Likewise.
22974 * localedata/locales/ayc_PE: Likewise.
22975 * localedata/locales/az_AZ: Likewise.
22976 * localedata/locales/az_IR: Likewise.
22977 * localedata/locales/be_BY: Likewise.
22978 * localedata/locales/be_BY@latin: Likewise.
22979 * localedata/locales/bem_ZM: Likewise.
22980 * localedata/locales/ber_DZ: Likewise.
22981 * localedata/locales/ber_MA: Likewise.
22982 * localedata/locales/bg_BG: Likewise.
22983 * localedata/locales/bhb_IN: Likewise.
22984 * localedata/locales/bho_IN: Likewise.
22985 * localedata/locales/bi_VU: Likewise.
22986 * localedata/locales/bn_BD: Likewise.
22987 * localedata/locales/bn_IN: Likewise.
22988 * localedata/locales/bo_CN: Likewise.
22989 * localedata/locales/bo_IN: Likewise.
22990 * localedata/locales/br_FR: Likewise.
22991 * localedata/locales/brx_IN: Likewise.
22992 * localedata/locales/bs_BA: Likewise.
22993 * localedata/locales/byn_ER: Likewise.
22994 * localedata/locales/ca_AD: Likewise.
22995 * localedata/locales/ca_ES: Likewise.
22996 * localedata/locales/ca_FR: Likewise.
22997 * localedata/locales/ca_IT: Likewise.
22998 * localedata/locales/ce_RU: Likewise.
22999 * localedata/locales/chr_US: Likewise.
23000 * localedata/locales/cmn_TW: Likewise.
23001 * localedata/locales/crh_UA: Likewise.
23002 * localedata/locales/cs_CZ: Likewise.
23003 * localedata/locales/csb_PL: Likewise.
23004 * localedata/locales/cv_RU: Likewise.
23005 * localedata/locales/cy_GB: Likewise.
23006 * localedata/locales/da_DK: Likewise.
23007 * localedata/locales/de_AT: Likewise.
23008 * localedata/locales/de_BE: Likewise.
23009 * localedata/locales/de_CH: Likewise.
23010 * localedata/locales/de_DE: Likewise.
23011 * localedata/locales/de_IT: Likewise.
23012 * localedata/locales/de_LI: Likewise.
23013 * localedata/locales/de_LU: Likewise.
23014 * localedata/locales/doi_IN: Likewise.
23015 * localedata/locales/dv_MV: Likewise.
23016 * localedata/locales/dz_BT: Likewise.
23017 * localedata/locales/el_CY: Likewise.
23018 * localedata/locales/el_GR: Likewise.
23019 * localedata/locales/en_AG: Likewise.
23020 * localedata/locales/en_AU: Likewise.
23021 * localedata/locales/en_BW: Likewise.
23022 * localedata/locales/en_CA: Likewise.
23023 * localedata/locales/en_DK: Likewise.
23024 * localedata/locales/en_GB: Likewise.
23025 * localedata/locales/en_HK: Likewise.
23026 * localedata/locales/en_IE: Likewise.
23027 * localedata/locales/en_IL: Likewise.
23028 * localedata/locales/en_IN: Likewise.
23029 * localedata/locales/en_NG: Likewise.
23030 * localedata/locales/en_NZ: Likewise.
23031 * localedata/locales/en_PH: Likewise.
23032 * localedata/locales/en_SG: Likewise.
23033 * localedata/locales/en_US: Likewise.
23034 * localedata/locales/en_ZA: Likewise.
23035 * localedata/locales/en_ZM: Likewise.
23036 * localedata/locales/en_ZW: Likewise.
23037 * localedata/locales/eo: Likewise.
23038 * localedata/locales/es_AR: Likewise.
23039 * localedata/locales/es_BO: Likewise.
23040 * localedata/locales/es_CL: Likewise.
23041 * localedata/locales/es_CO: Likewise.
23042 * localedata/locales/es_CR: Likewise.
23043 * localedata/locales/es_CU: Likewise.
23044 * localedata/locales/es_DO: Likewise.
23045 * localedata/locales/es_EC: Likewise.
23046 * localedata/locales/es_ES: Likewise.
23047 * localedata/locales/es_GT: Likewise.
23048 * localedata/locales/es_HN: Likewise.
23049 * localedata/locales/es_MX: Likewise.
23050 * localedata/locales/es_NI: Likewise.
23051 * localedata/locales/es_PA: Likewise.
23052 * localedata/locales/es_PE: Likewise.
23053 * localedata/locales/es_PR: Likewise.
23054 * localedata/locales/es_PY: Likewise.
23055 * localedata/locales/es_SV: Likewise.
23056 * localedata/locales/es_US: Likewise.
23057 * localedata/locales/es_UY: Likewise.
23058 * localedata/locales/es_VE: Likewise.
23059 * localedata/locales/et_EE: Likewise.
23060 * localedata/locales/eu_ES: Likewise.
23061 * localedata/locales/eu_ES@euro: Likewise.
23062 * localedata/locales/fa_IR: Likewise.
23063 * localedata/locales/ff_SN: Likewise.
23064 * localedata/locales/fi_FI: Likewise.
23065 * localedata/locales/fil_PH: Likewise.
23066 * localedata/locales/fo_FO: Likewise.
23067 * localedata/locales/fr_BE: Likewise.
23068 * localedata/locales/fr_CA: Likewise.
23069 * localedata/locales/fr_CH: Likewise.
23070 * localedata/locales/fr_FR: Likewise.
23071 * localedata/locales/fr_LU: Likewise.
23072 * localedata/locales/fur_IT: Likewise.
23073 * localedata/locales/fy_DE: Likewise.
23074 * localedata/locales/fy_NL: Likewise.
23075 * localedata/locales/ga_IE: Likewise.
23076 * localedata/locales/gd_GB: Likewise.
23077 * localedata/locales/gez_ER: Likewise.
23078 * localedata/locales/gez_ET: Likewise.
23079 * localedata/locales/gl_ES: Likewise.
23080 * localedata/locales/gu_IN: Likewise.
23081 * localedata/locales/gv_GB: Likewise.
23082 * localedata/locales/ha_NG: Likewise.
23083 * localedata/locales/hak_TW: Likewise.
23084 * localedata/locales/he_IL: Likewise.
23085 * localedata/locales/hi_IN: Likewise.
23086 * localedata/locales/hif_FJ: Likewise.
23087 * localedata/locales/hne_IN: Likewise.
23088 * localedata/locales/hr_HR: Likewise.
23089 * localedata/locales/hsb_DE: Likewise.
23090 * localedata/locales/ht_HT: Likewise.
23091 * localedata/locales/hu_HU: Likewise.
23092 * localedata/locales/hy_AM: Likewise.
23093 * localedata/locales/i18n: Likewise.
23094 * localedata/locales/ia_FR: Likewise.
23095 * localedata/locales/id_ID: Likewise.
23096 * localedata/locales/ig_NG: Likewise.
23097 * localedata/locales/ik_CA: Likewise.
23098 * localedata/locales/is_IS: Likewise.
23099 * localedata/locales/it_CH: Likewise.
23100 * localedata/locales/it_IT: Likewise.
23101 * localedata/locales/iu_CA: Likewise.
23102 * localedata/locales/ja_JP: Likewise.
23103 * localedata/locales/ka_GE: Likewise.
23104 * localedata/locales/kk_KZ: Likewise.
23105 * localedata/locales/kl_GL: Likewise.
23106 * localedata/locales/kn_IN: Likewise.
23107 * localedata/locales/ko_KR: Likewise.
23108 * localedata/locales/kok_IN: Likewise.
23109 * localedata/locales/ks_IN: Likewise.
23110 * localedata/locales/ks_IN@devanagari: Likewise.
23111 * localedata/locales/ku_TR: Likewise.
23112 * localedata/locales/kw_GB: Likewise.
23113 * localedata/locales/ky_KG: Likewise.
23114 * localedata/locales/lb_LU: Likewise.
23115 * localedata/locales/lg_UG: Likewise.
23116 * localedata/locales/li_BE: Likewise.
23117 * localedata/locales/li_NL: Likewise.
23118 * localedata/locales/lij_IT: Likewise.
23119 * localedata/locales/ln_CD: Likewise.
23120 * localedata/locales/lo_LA: Likewise.
23121 * localedata/locales/lt_LT: Likewise.
23122 * localedata/locales/lv_LV: Likewise.
23123 * localedata/locales/lzh_TW: Likewise.
23124 * localedata/locales/mag_IN: Likewise.
23125 * localedata/locales/mai_IN: Likewise.
23126 * localedata/locales/mg_MG: Likewise.
23127 * localedata/locales/mhr_RU: Likewise.
23128 * localedata/locales/mi_NZ: Likewise.
23129 * localedata/locales/mk_MK: Likewise.
23130 * localedata/locales/ml_IN: Likewise.
23131 * localedata/locales/mn_MN: Likewise.
23132 * localedata/locales/mni_IN: Likewise.
23133 * localedata/locales/mr_IN: Likewise.
23134 * localedata/locales/ms_MY: Likewise.
23135 * localedata/locales/mt_MT: Likewise.
23136 * localedata/locales/my_MM: Likewise.
23137 * localedata/locales/nan_TW: Likewise.
23138 * localedata/locales/nan_TW@latin: Likewise.
23139 * localedata/locales/nb_NO: Likewise.
23140 * localedata/locales/nds_DE: Likewise.
23141 * localedata/locales/nds_NL: Likewise.
23142 * localedata/locales/ne_NP: Likewise.
23143 * localedata/locales/nhn_MX: Likewise.
23144 * localedata/locales/niu_NU: Likewise.
23145 * localedata/locales/niu_NZ: Likewise.
23146 * localedata/locales/nl_AW: Likewise.
23147 * localedata/locales/nl_BE: Likewise.
23148 * localedata/locales/nl_NL: Likewise.
23149 * localedata/locales/nn_NO: Likewise.
23150 * localedata/locales/nr_ZA: Likewise.
23151 * localedata/locales/nso_ZA: Likewise.
23152 * localedata/locales/oc_FR: Likewise.
23153 * localedata/locales/om_ET: Likewise.
23154 * localedata/locales/om_KE: Likewise.
23155 * localedata/locales/or_IN: Likewise.
23156 * localedata/locales/os_RU: Likewise.
23157 * localedata/locales/pa_IN: Likewise.
23158 * localedata/locales/pa_PK: Likewise.
23159 * localedata/locales/pap_AW: Likewise.
23160 * localedata/locales/pap_CW: Likewise.
23161 * localedata/locales/pl_PL: Likewise.
23162 * localedata/locales/ps_AF: Likewise.
23163 * localedata/locales/pt_BR: Likewise.
23164 * localedata/locales/pt_PT: Likewise.
23165 * localedata/locales/quz_PE: Likewise.
23166 * localedata/locales/raj_IN: Likewise.
23167 * localedata/locales/ro_RO: Likewise.
23168 * localedata/locales/ru_RU: Likewise.
23169 * localedata/locales/ru_UA: Likewise.
23170 * localedata/locales/rw_RW: Likewise.
23171 * localedata/locales/sa_IN: Likewise.
23172 * localedata/locales/sat_IN: Likewise.
23173 * localedata/locales/sc_IT: Likewise.
23174 * localedata/locales/sd_IN: Likewise.
23175 * localedata/locales/sd_IN@devanagari: Likewise.
23176 * localedata/locales/se_NO: Likewise.
23177 * localedata/locales/sgs_LT: Likewise.
23178 * localedata/locales/shs_CA: Likewise.
23179 * localedata/locales/si_LK: Likewise.
23180 * localedata/locales/sid_ET: Likewise.
23181 * localedata/locales/sk_SK: Likewise.
23182 * localedata/locales/sl_SI: Likewise.
23183 * localedata/locales/sm_WS: Likewise.
23184 * localedata/locales/so_DJ: Likewise.
23185 * localedata/locales/so_ET: Likewise.
23186 * localedata/locales/so_KE: Likewise.
23187 * localedata/locales/so_SO: Likewise.
23188 * localedata/locales/sq_AL: Likewise.
23189 * localedata/locales/sq_MK: Likewise.
23190 * localedata/locales/sr_ME: Likewise.
23191 * localedata/locales/sr_RS: Likewise.
23192 * localedata/locales/sr_RS@latin: Likewise.
23193 * localedata/locales/ss_ZA: Likewise.
23194 * localedata/locales/st_ZA: Likewise.
23195 * localedata/locales/sv_FI: Likewise.
23196 * localedata/locales/sv_SE: Likewise.
23197 * localedata/locales/sw_KE: Likewise.
23198 * localedata/locales/sw_TZ: Likewise.
23199 * localedata/locales/szl_PL: Likewise.
23200 * localedata/locales/ta_IN: Likewise.
23201 * localedata/locales/ta_LK: Likewise.
23202 * localedata/locales/tcy_IN: Likewise.
23203 * localedata/locales/te_IN: Likewise.
23204 * localedata/locales/tg_TJ: Likewise.
23205 * localedata/locales/th_TH: Likewise.
23206 * localedata/locales/the_NP: Likewise.
23207 * localedata/locales/ti_ER: Likewise.
23208 * localedata/locales/ti_ET: Likewise.
23209 * localedata/locales/tig_ER: Likewise.
23210 * localedata/locales/tk_TM: Likewise.
23211 * localedata/locales/tl_PH: Likewise.
23212 * localedata/locales/tn_ZA: Likewise.
23213 * localedata/locales/to_TO: Likewise.
23214 * localedata/locales/tpi_PG: Likewise.
23215 * localedata/locales/tr_CY: Likewise.
23216 * localedata/locales/tr_TR: Likewise.
23217 * localedata/locales/ts_ZA: Likewise.
23218 * localedata/locales/tt_RU: Likewise.
23219 * localedata/locales/tt_RU@iqtelif: Likewise.
23220 * localedata/locales/ug_CN: Likewise.
23221 * localedata/locales/uk_UA: Likewise.
23222 * localedata/locales/unm_US: Likewise.
23223 * localedata/locales/ur_IN: Likewise.
23224 * localedata/locales/ur_PK: Likewise.
23225 * localedata/locales/uz_UZ: Likewise.
23226 * localedata/locales/uz_UZ@cyrillic: Likewise.
23227 * localedata/locales/ve_ZA: Likewise.
23228 * localedata/locales/vi_VN: Likewise.
23229 * localedata/locales/wa_BE: Likewise.
23230 * localedata/locales/wae_CH: Likewise.
23231 * localedata/locales/wal_ET: Likewise.
23232 * localedata/locales/wo_SN: Likewise.
23233 * localedata/locales/xh_ZA: Likewise.
23234 * localedata/locales/yi_US: Likewise.
23235 * localedata/locales/yo_NG: Likewise.
23236 * localedata/locales/yue_HK: Likewise.
23237 * localedata/locales/yuw_PG: Likewise.
23238 * localedata/locales/zh_CN: Likewise.
23239 * localedata/locales/zh_HK: Likewise.
23240 * localedata/locales/zh_SG: Likewise.
23241 * localedata/locales/zh_TW: Likewise.
23242 * localedata/locales/zu_ZA: Likewise.
23243
23244 2017-11-13 Florian Weimer <fweimer@redhat.com>
23245
23246 * support/next_to_fault.h, support/next_to_fault.c: New files.
23247 * support/Makefile (libsupport-routines): Add next_to_fault.
23248 * resolv/tst-inet_pton.c (struct next_to_fault)
23249 (next_to_fault_allocate, next_to_fault_free): Remove.
23250 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
23251
23252 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
23253
23254 * elf/dl-support.c: Include <dl-procruntime.c>.
23255 * include/link.h: Include <link_map.h>.
23256 * sysdeps/generic/dl-procruntime.c: New file.
23257 * sysdeps/generic/link_map.h: Likewise.
23258 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
23259 the writable ld.so namespace.
23260
23261 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
23262
23263 timezone: pacify GCC -Wstringop-truncation
23264 Problem reported by Martin Sebor in:
23265 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
23266 * timezone/zic.c (writezone): Use memcpy, not strncpy.
23267
23268 2017-11-12 Florian Weimer <fweimer@redhat.com>
23269
23270 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
23271 tst-xreadlink.
23272 (tests): Add tst-xreadlink.
23273 * support/support.h (xstrndup): Declare.
23274 * support/xunistd.h (xunlink, xreadlink): Declare.
23275 * support/temp_file.h (support_create_temp_directory): Declare.
23276 * support/temp_file.c (support_create_temp_directory): New function.
23277 * support/support_chroot.c (support_chroot_create): Use it.
23278 * support/xreadlink.c: New file.
23279 * support/xstrndup.c: Likewise.
23280 * support/xunlink.c: Likewise.
23281 * support/tst-xreadlink.c: Likewise.
23282
23283 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
23284
23285 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
23286
23287 2017-11-11 Florian Weimer <fweimer@redhat.com>
23288
23289 [BZ #22409]
23290 [BZ #22412]
23291 * resolv/res_comp.c (printable_string, binary_hnok)
23292 (binary_leading_dash): New functions.
23293 (res_hnok): Reimplement using these functions and ns_name_pton.
23294 (res_ownok): Likewise.
23295 (res_mailok): Reimplement using printable_string, ns_name_pton and
23296 binary_hnok.
23297 (res_dnok): Reimplement using printable_string and ns_name_pton.
23298 * resolv/tst-res_hnok.c (tests): Add additional tests.
23299 (LETTERDIGITS, PRINTABLE): Define.
23300 (do_test): Adjust one_char results.
23301
23302 2017-11-11 Florian Weimer <fweimer@redhat.com>
23303
23304 [BZ #22413]
23305 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
23306 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
23307
23308 2017-11-11 Florian Weimer <fweimer@redhat.com>
23309
23310 * resolv/tst-ns_name_pton.c: New file.
23311 * resolv/Makefile (tests): Add tst-ns_name_pton.
23312 (tst-ns_name_pton): Link against libresolv.
23313
23314 2017-11-11 Florian Weimer <fweimer@redhat.com>
23315
23316 * resolv/tst-res_hnok.c: New file.
23317 * resolv/Makefile (tests): Add tst-res_hnok.
23318 (tst-res_hnok): Link against libresolv.
23319
23320 2017-11-11 Florian Weimer <fweimer@redhat.com>
23321
23322 * resolv/tst-resolv-network.c: Use test framework instead explicit
23323 main function.
23324
23325 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
23326
23327 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
23328 <jmp_buf-macros.h>.
23329 [!_ISOMAC] (STR_HELPER): New.
23330 [!_ISOMAC] (STR): Likewise.
23331 [!_ISOMAC] (TEST_SIZE): Likewise.
23332 [!_ISOMAC] (TEST_ALIGN): Likewise.
23333 [!_ISOMAC] (TEST_OFFSET): Likewise.
23334 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
23335 field offsets of jmp_buf as well as sigjmp_buf.
23336 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
23337 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
23338 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
23339 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
23340 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
23341 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
23342 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
23343 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
23344 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
23345 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
23346 Likewise.
23347 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
23348 Likewise.
23349 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
23350 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
23351 Likewise.
23352 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
23353 Likewise.
23354 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
23355 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
23356 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
23357 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
23358 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
23359 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
23360 Likewise.
23361 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
23362 Likewise.
23363 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
23364 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
23365 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
23366
23367 2017-11-07 Joseph Myers <joseph@codesourcery.com>
23368
23369 * include/float.h
23370 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23371 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
23372 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23373 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
23374 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23375 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
23376 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23377 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
23378 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23379 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
23380 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23381 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
23382 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23383 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
23384 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23385 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
23386 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23387 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
23388 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23389 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
23390 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23391 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
23392 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23393 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
23394 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23395 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
23396 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23397 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
23398 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23399 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
23400 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23401 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
23402 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23403 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
23404 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23405 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
23406 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23407 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
23408 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23409 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
23410 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23411 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
23412 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23413 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
23414 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23415 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
23416 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23417 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
23418 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23419 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
23420 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23421 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
23422 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23423 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
23424 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23425 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
23426 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23427 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
23428 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23429 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
23430 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23431 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
23432 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23433 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
23434 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23435 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
23436 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23437 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
23438 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23439 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
23440 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23441 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
23442 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23443 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
23444 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23445 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
23446 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23447 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
23448 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23449 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
23450 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23451 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
23452 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23453 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
23454 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23455 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
23456 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23457 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
23458
23459 * stdlib/tst-strtod.h (F16): New macro.
23460 (F32): Likewise.
23461 (F64): Likewise.
23462 (F32X): Likewise.
23463 (F64X): Likewise.
23464 (F128X): Likewise.
23465 (IF_FLOAT16): Likewise.
23466 (IF_FLOAT32): Likewise.
23467 (IF_FLOAT64): Likewise.
23468 (IF_FLOAT32X): Likewise.
23469 (IF_FLOAT64X): Likewise.
23470 (IF_FLOAT128X): Likewise.
23471 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
23472 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
23473 (STRTOD_TEST_FOREACH): Likewise.
23474 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
23475 (CHOOSE_f64): Likewise.
23476 (CHOOSE_f32x): Likewise.
23477 (CHOOSE_f64x): Likewise.
23478
23479 2017-11-07 Andreas Schwab <schwab@suse.de>
23480
23481 * nptl/Makefile (tests-internal): Remove tst-typesizes.
23482
23483 2017-11-07 Mike FABIAN <mfabian@redhat.com>
23484
23485 [BZ #22403]
23486 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
23487 to be escaped.
23488 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
23489 to be escaped.
23490
23491 2017-11-07 Claude Paroz <claude@2xlibre.net>
23492
23493 [BZ #22403]
23494 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
23495 to be escaped.
23496 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
23497 to be escaped.
23498 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
23499 to be escaped.
23500
23501 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23502
23503 [BZ #22298]
23504 * nptl/allocatestack.c (allocate_stack): Check if
23505 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
23506 __PTHREAD_MUTEX_HAVE_PREV is defined.
23507 * nptl/descr.h (pthread): Likewise.
23508 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
23509 Likewise.
23510 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
23511 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
23512 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
23513 * sysdeps/nptl/bits/thread-shared-types.h
23514 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
23515 defines.
23516 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
23517 of __WORDSIZE for internal layout.
23518 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
23519 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
23520 instead of __WORDSIZE whether to use an union for __spins and __list
23521 fields.
23522 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
23523 case.
23524 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
23525 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
23526 defines.
23527 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
23528 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23529 Likewise.
23530 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
23531 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23532 Likewise.
23533 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
23534 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23535 Likewise.
23536 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
23537 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23538 Likewise.
23539 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
23540 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23541 Likewise.
23542 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
23543 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23544 Likewise.
23545 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
23546 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23547 Likewise.
23548 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
23549 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23550 Likewise.
23551 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
23552 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23553 Likewise.
23554 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
23555 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23556 Likewise.
23557 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
23558 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23559 Likewise.
23560 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
23561 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23562 Likewise.
23563 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
23564 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23565 Likewise.
23566 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
23567 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23568 Likewise.
23569
23570 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
23571 New macros.
23572 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
23573 checks for expected input type size.
23574 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
23575 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
23576 Likewise.
23577 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
23578 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
23579 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
23580 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
23581 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
23582 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
23583 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
23584 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
23585 superflous runtime assert check.
23586 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
23587 Likewise.
23588 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
23589 Likewise.
23590 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
23591 Likewise.
23592 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
23593 Likewise.
23594 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
23595 Likewise.
23596 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
23597 Likewise.
23598 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
23599 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
23600 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
23601 Likewise.
23602 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
23603 Likewise.
23604 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
23605 Likewise.
23606 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
23607 Likewise.
23608 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
23609 Likewise.
23610 * nptl/pthread_attr_setinheritsched.c
23611 (__pthread_attr_setinheritsched): Likewise.
23612 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
23613 Likewise.
23614 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
23615 Likewise.
23616 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
23617 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
23618 __old_pthread_attr_setstack): Likewise.
23619 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
23620 Likewise.
23621 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
23622 Likewise.
23623 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
23624 Likewise.
23625 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
23626 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
23627 Likewise.
23628 * nptl/tst-typesizes.c: Remove file.
23629
23630 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
23631 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
23632 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
23633 checks for internal pthread_mutex_t offsets.
23634 * sysdeps/aarch64/nptl/pthread-offsets.h
23635 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
23636 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
23637 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
23638 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
23639 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
23640 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
23641 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
23642 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
23643 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
23644 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
23645 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
23646 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
23647 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
23648 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
23649 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
23650 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
23651 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
23652 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
23653
23654 2017-11-07 Florian Weimer <fweimer@redhat.com>
23655
23656 * bits/mman-linux.h: Move ...
23657 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
23658 comment.
23659 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
23660 outdated comment.
23661
23662 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23663
23664 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
23665 Redefine STRNLEN as __strnlen_power8.
23666
23667 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23668
23669 * signal/sighold.c (sighold): Optimize implementation.
23670
23671 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
23672 __NR_rt_sigqueueinfo.
23673
23674 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
23675 __sigtimedwait.
23676 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
23677 assume __NR_rt_sigtimedwait.
23678 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
23679 and add LIBC_CANCEL_HANDLED for cancellation marking.
23680 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
23681
23682 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
23683 (sysdeps_routines): Add memchr_noneon.
23684 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
23685 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
23686 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
23687 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
23688 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
23689 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
23690 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
23691
23692 * sysdeps/arm/arm-ifunc.h: New file.
23693 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
23694 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
23695 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
23696 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
23697 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
23698 (__memcpy_neon): Avoid create hidden alias.
23699 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
23700 (__memcpy_vfp): Likewise.
23701 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
23702 (sysdep_routines): Add memcpy_arm.
23703 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
23704
23705 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
23706
23707 [BZ #22362]
23708 * Makerules (make-link-multidir): New.
23709 * config.make.in (multidir): New.
23710 * configure.ac (libc_cv_multidir): New. AC_SUBST.
23711 * configure: Regenerated.
23712 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
23713 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
23714 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
23715 New target.
23716
23717 2017-11-06 Joseph Myers <joseph@codesourcery.com>
23718
23719 [BZ #22402]
23720 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
23721 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
23722
23723 2017-11-04 Mike FABIAN <mfabian@redhat.com>
23724
23725 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
23726 to be escaped.
23727
23728 2017-11-04 Florian Weimer <fweimer@redhat.com>
23729
23730 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
23731
23732 2017-11-03 Joseph Myers <joseph@codesourcery.com>
23733
23734 * math/math.h [__HAVE_DISTINCT_FLOAT16
23735 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23736 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23737 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23738 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
23739 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
23740 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
23741 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23742 (__MATH_TG_F32): New macro.
23743 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23744 (__MATH_TG_F64X): Likewise.
23745 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23746 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
23747
23748 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
23749
23750 * po/de.po: Update translations.
23751 * po/ru.po: Likewise.
23752
23753 2017-11-03 Florian Weimer <fweimer@redhat.com>
23754
23755 * manual/filesys.texi (Hard Links): Document linkat.
23756
23757 2017-11-03 Joseph Myers <joseph@codesourcery.com>
23758
23759 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
23760 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23761 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23762 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23763 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23764 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23765 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
23766 the same as _Float128.
23767 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23768 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23769 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
23770
23771 * stdlib/stdlib.h
23772 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
23773 Declare.
23774 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
23775 Likewise.
23776 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
23777 Likewise.
23778 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23779 (strtof32x): Likewise.
23780 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23781 (strtof64x): Likewise.
23782 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23783 (strtof128x): Likewise.
23784 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23785 (strfromf16): Likewise.
23786 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23787 (strfromf32): Likewise.
23788 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23789 (strfromf64): Likewise.
23790 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23791 (strfromf32x): Likewise.
23792 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23793 (strfromf64x): Likewise.
23794 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23795 (strfromf128x): Likewise.
23796 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
23797 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
23798 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
23799 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
23800 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
23801 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
23802
23803 2017-11-03 Richard Henderson <rth@twiddle.net>
23804
23805 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
23806
23807 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23808
23809 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
23810
23811 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23812
23813 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
23814 DT_TLSDESC_GOT initialization.
23815 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
23816 (_dl_tlsdesc_resolve_hold): Likewise.
23817 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
23818 (_dl_tlsdesc_resolve_hold): Likewise.
23819 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
23820 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23821
23822 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23823
23824 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
23825
23826 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23827
23828 [BZ #18572]
23829 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
23830 non-lazily for R_ARM_TLS_DESC.
23831
23832 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23833
23834 [BZ #17078]
23835 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
23836 R_ARM_TLS_DESC case.
23837 (elf_machine_lazy_rel): Remove the prelink check.
23838
23839 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23840
23841 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
23842 DT_TLSDESC_GOT initialization.
23843 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
23844 (_dl_tlsdesc_resolve_rela): Likewise.
23845 (_dl_tlsdesc_resolve_hold): Likewise.
23846 (_dl_tlsdesc_undefweak): Remove ldar.
23847 (_dl_tlsdesc_dynamic): Likewise.
23848 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
23849 (_dl_tlsdesc_resolve_rela): Likewise.
23850 (_dl_tlsdesc_resolve_hold): Likewise.
23851 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
23852 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23853 (_dl_tlsdesc_resolve_rela): Likewise.
23854 (_dl_tlsdesc_resolve_hold): Likewise.
23855
23856 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23857
23858 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
23859 binding and initialization non-lazily for R_AARCH64_TLSDESC.
23860
23861 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23862
23863 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
23864 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
23865
23866 2017-11-02 Joseph Myers <joseph@codesourcery.com>
23867
23868 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
23869 Declare.
23870 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
23871 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
23872 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
23873 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
23874 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
23875 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
23876 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
23877 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
23878 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
23879 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
23880 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
23881
23882 2017-11-02 Mike FABIAN <mfabian@redhat.com>
23883
23884 [BZ #22382]
23885 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
23886 * localedata/locales/tpi_PG: Add standard header.
23887
23888 2017-11-02 Florian Weimer <fweimer@redhat.com>
23889
23890 test-errno-linux: quotactl can fail with EPERM in containers.
23891 * sysdeps/unix/sysv/linux/test-errno-linux.c
23892 (LIST, LIST_FORWARD): New macros.
23893 (check_error_in_list): New function.
23894 (test_wrp_rv): Accept list of permitted error codes.
23895 (test_wrp_rv2): Remove.
23896 (test_wrp): Call test_wrp_rv with list of error codes.
23897 (test_wrp2): Accept list of error codes.
23898 (do_test): Adjust. Allow EPERM for quotactl.
23899
23900 2017-11-02 Florian Weimer <fweimer@redhat.com>
23901
23902 * stdio-common/bug16.c (do_test): Use array_length.
23903 * stdio-common/errlist.c (_sys_nerr): Likewise.
23904 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
23905 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
23906 * stdio-common/psiginfo.c (psiginfo): Use array_length.
23907 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
23908 (do_test): Use array_length.
23909 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
23910 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
23911 * stdio-common/tst-printf-round.c (do_test): Likewise.
23912 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
23913 (CHECK): Use array_length.
23914 * stdio-common/tstdiomisc.c (t3, F): Likewise.
23915 * stdio-common/tstscanf.c (main): Likewise.
23916 * stdio-common/vfprintf.c (process_string_arg): Likewise.
23917
23918 2017-11-02 Florian Weimer <fweimer@redhat.com>
23919
23920 Add array_length and array_end macros.
23921 * include/array_length.h: New file.
23922
23923 2017-11-02 Florian Weimer <fweimer@redhat.com>
23924
23925 [BZ #22332]
23926 * posix/tst-glob-tilde.c (do_noescape): New variable.
23927 (one_test): Process it.
23928 (do_test): Set do_noescape. Add unescaping test case.
23929
23930 2017-11-01 Joseph Myers <joseph@codesourcery.com>
23931
23932 * math/complex.h
23933 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
23934 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
23935 with appropriate macros defined and undefined.
23936 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
23937 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23938 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
23939 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23940 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
23941 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23942 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
23943 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23944 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
23945 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23946
23947 * math/complex.h
23948 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
23949 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
23950 that for long double. Do not condition define and undefine of
23951 _Mdouble_complex_ on [__CFLOAT128].
23952
23953 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
23954
23955 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23956 of <sysdeps/generic/sysdep.h>.
23957 (ALIGNARG): Removed.
23958 (ASM_SIZE_DIRECTIVE): Likewise.
23959 (ENTRY): Likewise.
23960 (END): Likewise.
23961 (ENTRY_CHK): Likewise.
23962 (END_CHK): Likewise.
23963 (syscall_error): Likewise.
23964 (mcount): Likewise.
23965 (PSEUDO_END): Likewise.
23966 (L): Likewise.
23967 (atom_text_section): Likewise.
23968 * sysdeps/x86/sysdep.h: New file.
23969 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23970 of <sysdeps/generic/sysdep.h>.
23971 (ALIGNARG): Removed.
23972 (ASM_SIZE_DIRECTIVE): Likewise.
23973 (ENTRY): Likewise.
23974 (END): Likewise.
23975 (ENTRY_CHK): Likewise.
23976 (END_CHK): Likewise.
23977 (syscall_error): Likewise.
23978 (mcount): Likewise.
23979 (PSEUDO_END): Likewise.
23980 (L): Likewise.
23981 (atom_text_section): Likewise.
23982
23983 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
23984
23985 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
23986 category of LC_CTYPE set to "i18n:2012".
23987 * localedata/locales/i18n_ctype: Regenerate.
23988
23989 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
23990
23991 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
23992 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
23993 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
23994 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
23995
23996 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
23997 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
23998 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
23999 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
24000
24001 2017-10-31 Joseph Myers <joseph@codesourcery.com>
24002
24003 * math/complex.h
24004 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
24005 New macro.
24006 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
24007 Likewise.
24008 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
24009 Likewise.
24010 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24011 (CMPLXF32X): Likewise.
24012 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24013 (CMPLXF64X): Likewise.
24014 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24015 (CMPLXF128X): Likewise.
24016
24017 * math/math.h
24018 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
24019 (__MATH_EVAL_FMT2): Define to add 0.0f.
24020
24021 2017-10-31 Alan Modra <amodra@gmail.com>
24022
24023 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
24024 include sysdep.h.
24025 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
24026 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
24027 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
24028 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
24029 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
24030 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
24031 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
24032 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
24033 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
24034 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
24035 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
24036 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
24037 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
24038 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
24039 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
24040 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
24041 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
24042 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
24043 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
24044 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
24045 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
24046 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
24047 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
24048 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
24049 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
24050 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
24051 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
24052 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
24053 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
24054 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
24055 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
24056 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
24057 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
24058 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
24059 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
24060 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
24061 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
24062 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
24063 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
24064 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
24065 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
24066 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
24067 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
24068 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
24069 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
24070 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
24071 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
24072 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
24073 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
24074 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
24075 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
24076 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
24077 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
24078 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
24079 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
24080 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
24081 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
24082 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
24083 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
24084 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
24085 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
24086 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
24087 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
24088 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
24089 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
24090 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
24091 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
24092 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
24093 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
24094
24095 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
24096 include sysdep.h and math_ldbl_opt.h.
24097
24098 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
24099 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
24100 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
24101 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
24102 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
24103 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
24104 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
24105 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
24106 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
24107 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
24108 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
24109 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
24110 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
24111 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
24112 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
24113 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
24114 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
24115 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
24116 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
24117 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
24118 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
24119 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
24120 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
24121 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
24122 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
24123 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
24124
24125 2017-10-31 Alan Modra <amodra@gmail.com>
24126
24127 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
24128 string/strncase_l.c, not string/strncase.c.
24129 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
24130 (libc_hidden_def): Redefine.
24131
24132 2017-10-31 Alan Modra <amodra@gmail.com>
24133
24134 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
24135 (__STRCMP, STRCMP, __strcasecmp_l): Define.
24136 (__strcasecmp): Don't define.
24137
24138 2017-10-31 Alan Modra <amodra@gmail.com>
24139
24140 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
24141 IS_IN (libc).
24142 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
24143 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
24144 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
24145
24146 2017-10-31 Alan Modra <amodra@gmail.com>
24147
24148 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
24149 USE_AS_STPNCPY.
24150
24151 2017-10-31 Alan Modra <amodra@gmail.com>
24152
24153 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
24154 Redefine only when SHARED.
24155
24156 2017-10-30 Joseph Myers <joseph@codesourcery.com>
24157
24158 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
24159 Include <bits/math-finite.h> with appropriate macros defined and
24160 undefined.
24161 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
24162 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
24163 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
24164 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
24165 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
24166
24167 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
24168 [!_Mlong_double_] (_Mlong_double_): Likewise.
24169 [!_Mfloat16_] (_Mfloat16_): Likewise.
24170 [!_Mfloat32_] (_Mfloat32_): Likewise.
24171 [!_Mfloat64_] (_Mfloat64_): Likewise.
24172 [!_Mfloat128_] (_Mfloat128_): Likewise.
24173 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
24174 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
24175 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
24176 (_Mdouble_): Define without indirection through those macros.
24177 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
24178 [!_Mfloat128_] (_Mfloat128_): Likewise.
24179 [_Mlong_double_] (_Mlong_double_): Likewise.
24180 (_Mdouble_): Define without indirection through those macros.
24181 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
24182 not add -D_Mlong_double_=double.
24183 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
24184 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
24185
24186 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
24187
24188 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
24189
24190 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
24191
24192 * sysdeps/x86/libc-start.c: Reformat.
24193
24194 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
24195
24196 [BZ #22353]
24197 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
24198 (1): Renamed to ...
24199 (L(Src0)): This.
24200 (L(Src1)): New.
24201 (L(Src2)): Likewise.
24202 (L(1)): Renamed to ...
24203 (L(Src3)): This.
24204
24205 2017-10-30 Joseph Myers <joseph@codesourcery.com>
24206
24207 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
24208 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
24209 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
24210 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
24211 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
24212 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
24213 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
24214 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
24215 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
24216 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
24217 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
24218 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
24219 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
24220 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
24221 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
24222 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
24223 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
24224 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
24225 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
24226 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
24227 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
24228 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
24229 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
24230 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
24231 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
24232 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
24233 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
24234 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
24235 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
24236 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
24237 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
24238 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
24239 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
24240 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
24241 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
24242 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
24243 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
24244 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
24245 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
24246 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
24247 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
24248 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
24249 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
24250 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
24251 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
24252 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
24253 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
24254 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
24255 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
24256 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
24257 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
24258 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
24259 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
24260 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
24261 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
24262 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
24263 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
24264 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
24265 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
24266 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
24267 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
24268 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
24269 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
24270 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
24271 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
24272 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
24273
24274 2017-10-30 Florian Weimer <fweimer@redhat.com>
24275
24276 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
24277 always defined.
24278 * io/tst-mkdirat.c (do_test): Likewise.
24279 * io/tst-mkfifoat.c (do_test): Likewise.
24280 * io/tst-mknodat.c (do_test): Likewise.
24281 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
24282 * locale/programs/locale.c (select_dirs): Likewise.
24283 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
24284 * posix/bug-glob2.c (my_readdir): Likewise.
24285 * posix/tst-dir.c (main): Likewise.
24286 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
24287 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
24288
24289 2017-10-30 Florian Weimer <fweimer@redhat.com>
24290
24291 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
24292 just __USE_GNU.
24293
24294 2017-10-30 Florian Weimer <fweimer@redhat.com>
24295
24296 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
24297 Convert to support/test-driver.c.
24298 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
24299 New macro parameters.
24300 (PRINTF): Remove macro. Use test_verbose conditionals instead.
24301 * posix/tst-gnuglob.c: New file.
24302 * posix/tst-gnuglob64.c: Likewise.
24303 * posix/Makefile (tests): Add tst-gnuglob64.
24304
24305 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
24306
24307 [BZ #19485]
24308 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
24309 and use a better translation for March in “mon”.
24310 * localedata/locales/csb_PL: Use more ASCII to improve the
24311 readability of the source.
24312
24313 2017-10-30 Mike FABIAN <mfabian@redhat.com>
24314
24315 [BZ #13953]
24316 * localedata/locales/km_KH: Use ASCII as much
24317 as possible for better readability of the source and
24318 remove useless comments.
24319 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
24320 was commented out and apparently wrong anyway because it was
24321 using Lao characters. If Buddhist era should be used
24322 for km_KH, a native speaker should write the correct formaat
24323 for Khmer.
24324 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
24325 (According to CLDR, the first weekday for Cambodia is Sunday).
24326 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
24327 (These were using Lao characters which must be wrong. If we get
24328 the correct data from a native speaker, we could add it back, until
24329 then it is better not to have name_mr and name_mrs at all than
24330 having it wrong).
24331
24332 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
24333
24334 * locale/loadlocale.c: Correct size of
24335 _nl_value_type_LC_<category> arrays.
24336
24337 2017-10-27 Joseph Myers <joseph@codesourcery.com>
24338
24339 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
24340 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
24341 with appropriate macros defined and undefined.
24342 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
24343 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
24344 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
24345 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
24346 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
24347
24348 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
24349
24350 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
24351 "-O2 -march=i586".
24352
24353 2017-10-27 Mike FABIAN <mfabian@redhat.com>
24354
24355 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
24356 with lowercase letters to make it agree with CLDR.
24357
24358 2017-10-27 Mike FABIAN <mfabian@redhat.com>
24359
24360 [BZ #15260]
24361 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
24362 first letters of yesstr and nostr in yesexpr and noexpr,
24363 not for the full words.
24364 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
24365 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
24366 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
24367 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
24368 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
24369 first letters of yesstr and nostr in yesexpr and noexpr,
24370 until now only English was matched in yesexpr and noexpr.
24371 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
24372 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
24373 fil but not for tl. As tl and fil are very similar, using fil
24374 is probably better than using English.
24375
24376 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
24377
24378 [BZ #21706]
24379 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
24380 in yesstr and nostr.
24381
24382 2017-10-26 Joseph Myers <joseph@codesourcery.com>
24383
24384 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
24385 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
24386 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
24387 Likewise.
24388 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
24389 Likewise.
24390 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
24391 Likewise.
24392 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
24393 Likewise.
24394 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24395 (SNANF128X): Likewise.
24396
24397 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
24398 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
24399 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24400 (HUGE_VAL_F32): Likewise.
24401 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24402 (HUGE_VAL_F64): Likewise.
24403 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24404 (HUGE_VAL_F32X): Likewise.
24405 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24406 (HUGE_VAL_F64X): Likewise.
24407 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24408 (HUGE_VAL_F128X): Likewise.
24409
24410 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
24411
24412 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
24413 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
24414 for the br_FR locale.
24415
24416 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
24417
24418 [BZ #21706]
24419 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
24420
24421 2017-10-25 Carlos O'Donell <carlos@redhat.com>
24422
24423 * locale/programs/record-status.h: Define globals, and function
24424 prototypes. Move function bodies...
24425 * locale/programs/record-status.c: ... to here. New file.
24426 * iconv/Makefile (iconv_prog-modules): Add record-status.
24427 * locale/Makefile (lib-modules): Likewise.
24428 * iconv/iconv_prog.c: Remove verbose.
24429 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
24430 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
24431 record a warning about ASCII compatibility.
24432 * locale/programs/ld-monetary.c (monetary_finish): If
24433 warn_int_curr_symbol is true then record a warning about the symbol
24434 not being in our ISO 4217 list.
24435 * locale/programs/locale.c: Include record-status.h. Remove verbose.
24436 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
24437 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
24438 (OPT_NO_WARN): Define.
24439 (OPT_WARN): Define.
24440 (options): Add entry for --no-warnings, and --warnings.
24441 (set_warnings): New function to enable/disable warnings.
24442 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
24443 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
24444 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
24445 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
24446 Pass flags to generate_locale.
24447 (generate_locale): Accept new flag argument and pass it to localedef
24448 invocation.
24449 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
24450 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
24451
24452 * localedata/Makefile (test-input-data): Use full file name.
24453 * localedata/da_DK.in: Rename to...
24454 * localedata/da_DK.ISO-8859-1.in: ...this.
24455 * localedata/de_DE.in: Rename to...
24456 * localedata/de_DE.ISO-8859-1.in: ...this.
24457 * localedata/en_US.in: Rename to...
24458 * localedata/en_US.ISO-8859-1.in: ...this.
24459 * localedata/fr_FR.in: Rename to...
24460 * localedata/fr_FR.UTF-8.in: ... this.
24461 * localedata/hr_HR.in: Rename to...
24462 * localedata/hr_HR.ISO-8859-2.in: ...this.
24463 * localedata/hu_HU.in: Rename to...
24464 * localedata/hu_HU.UTF-8.in: ...this.
24465 * localedata/si_LK.in: Rename to...
24466 * localedata/si_LK.UTF-8.in: ...this.
24467 * localedata/sv_SE.in: Rename to...
24468 * localedata/sv_SE.ISO-8859-1.in: ...this.
24469 * localedata/tr_TR.in: Rename to...
24470 * localedata/tr_TR.UTF-8.in: ...this.
24471 * localedata/uk_UA.in: Rename to...
24472 * localedata/uk_UA.UTF-8.in: ...this.
24473 * localedata/sort-test.sh: Test file is locale name with the
24474 suffix.
24475
24476 * localedata/unicode-gen/Makefile (check_i18n): Rename to
24477 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
24478 file.
24479 * localedata/locales/i18n_ctype: Regenerate.
24480 * localedata/locales/tr_TR: Likewise.
24481 * localedata/locales/translit_circle: Likewise.
24482 * localedata/locales/translit_cjk_compat: Likewise.
24483 * localedata/locales/translit_combining: Likewise.
24484 * localedata/locales/translit_compat: Likewise.
24485 * localedata/locales/translit_font: Likewise.
24486 * localedata/locales/translit_fraction: Likewise.
24487
24488 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24489
24490 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
24491 lxvd2x/stxvd2x with lvx/stvx.
24492 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
24493
24494 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
24495
24496 * include/alloc_buffer.h: Replace "if if " with "if " in
24497 comments.
24498 * sysdeps/mips/memcpy.S: Likkewise.
24499 * sysdeps/mips/memset.S: Likewise.
24500 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
24501 Likewise.
24502 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
24503 Likewise.
24504 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
24505 Likewise.
24506
24507 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24508
24509 [BZ #15261]
24510 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
24511 yesexpr and noexpr.
24512 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
24513 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
24514 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
24515 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
24516 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
24517 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
24518 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
24519
24520 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24521
24522 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
24523 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
24524 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
24525 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
24526 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
24527 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
24528 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
24529 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
24530 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
24531 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
24532 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
24533 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
24534
24535 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24536
24537 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
24538 as possible for better readability of the source.
24539 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
24540 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
24541 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
24542 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
24543 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
24544 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
24545 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
24546 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
24547 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
24548 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
24549 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
24550 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
24551 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
24552 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
24553 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
24554 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
24555 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
24556 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
24557 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
24558 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
24559 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
24560 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
24561 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
24562 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
24563 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
24564 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
24565 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
24566 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
24567 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
24568 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
24569 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
24570 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
24571 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
24572 * localedata/locales/en_US (LC_MESSAGES): Likewise.
24573 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
24574 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
24575 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
24576 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
24577 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
24578 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
24579 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
24580 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
24581 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
24582 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
24583 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
24584 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
24585 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
24586 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
24587 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
24588 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
24589 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
24590 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
24591 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
24592 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
24593 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
24594 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
24595 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
24596 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
24597 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
24598 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
24599 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
24600 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
24601 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
24602 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
24603 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
24604 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
24605 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
24606 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
24607 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
24608 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
24609 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
24610 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
24611 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
24612 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
24613 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
24614 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
24615 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
24616 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
24617 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
24618 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
24619 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
24620 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
24621 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
24622 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
24623 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
24624 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
24625 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
24626 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
24627 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
24628 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
24629 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
24630 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
24631 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
24632 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
24633 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
24634 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
24635 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
24636 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
24637 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
24638 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
24639 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
24640 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
24641 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
24642 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
24643 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
24644 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
24645 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
24646 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
24647 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
24648 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
24649 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
24650 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
24651 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
24652 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
24653 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
24654 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
24655 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
24656 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
24657 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
24658 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
24659 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
24660 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
24661 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
24662 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
24663 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
24664 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
24665 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
24666 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
24667 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
24668 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
24669 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
24670 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
24671 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
24672 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
24673 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
24674 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
24675 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
24676 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
24677 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
24678 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
24679 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
24680 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
24681 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
24682 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
24683 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
24684 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
24685 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
24686 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
24687 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
24688 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
24689 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
24690 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
24691 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
24692 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
24693 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
24694 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
24695 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
24696 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
24697 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
24698 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
24699 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
24700 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
24701 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
24702 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
24703 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
24704 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
24705 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
24706 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
24707 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
24708 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
24709 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
24710 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
24711 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
24712 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
24713
24714 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24715
24716 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
24717 (Use first letters of yesstr and nostr correctly instead of using
24718 full words).
24719
24720 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24721
24722 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
24723 (Use first letters of yesstr and nostr correctly).
24724
24725 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24726
24727 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
24728 also check for the first characters of yesstr and nostr.
24729 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
24730 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
24731
24732 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24733
24734 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
24735 also check for Chinese characters.
24736
24737 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24738
24739 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
24740 match also for the contents of yesstr and nostr. As the first letter
24741 of yesstr and nostr is equal, checking only for the first letter
24742 is not enough.
24743
24744 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24745
24746 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
24747 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
24748
24749 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24750
24751 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
24752 of main contributor.
24753
24754 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24755
24756 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
24757 instead of using English.
24758
24759 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24760
24761 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
24762 by including the first letters of nostr and yesexpr in the regexp.
24763 Also make it more readable by using ASCII where possible.
24764
24765 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24766
24767 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
24768 the first letter of nostr in the regexp. It agrees with CLDR now.
24769 Also make it more readable by using ASCII where possible.
24770
24771 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24772
24773 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
24774 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
24775 these strings contain a U+17D6 (which somewhat looks like a colon)
24776 instead of a real colon to separate the full words for “yes”
24777 and “no” from the single letter responses.
24778
24779 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24780
24781 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
24782 it agree with CLDR (include the first letter of yesstr).
24783 Also make it more readable by using ASCII where possible.
24784
24785 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24786
24787 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
24788 and improve yesexpr and noexpr. The yesstr and nostr apparently
24789 came from CLDR. And CLDR has a bug there: these strings contain
24790 a U+0903 (which looks like a colon) instead of a real colon
24791 to separate the full words for “yes” and “no” from the single
24792 letter responses.
24793
24794 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24795
24796 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
24797 letters of the full yesstr and nostr in yesexpr and noexpr.
24798
24799 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24800
24801 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
24802 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
24803 * localedata/locales/an_ES: Make source more readable by using ASCII
24804 where possible.
24805
24806 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24807
24808 [BZ #20952]
24809 * localedata/locales/yuw_PG: New file.
24810 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
24811 * locale/iso-639.def: Add Yau (Uruwa).
24812
24813 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
24814
24815 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
24816
24817 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
24818
24819 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
24820 (__libc_realloc): Likewise.
24821 (_mid_memalign): Likewise.
24822 (__libc_calloc): Likewise.
24823
24824 2017-10-23 Mike FABIAN <mfabian@redhat.com>
24825
24826 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
24827 by adding the generic +1 and -0 as in all other locales.
24828 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
24829 day names and make it more readable by using ASCII where possible.
24830
24831 2017-10-24 Joseph Myers <joseph@codesourcery.com>
24832
24833 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
24834 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
24835
24836 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24837
24838 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
24839 WNOHANG in waitpid call.
24840
24841 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
24842
24843 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
24844 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
24845
24846 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
24847 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
24848 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
24849 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
24850 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
24851 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
24852 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
24853 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
24854 variables.
24855
24856 2017-10-23 Michael Collison <michael.collison@arm.com>
24857
24858 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
24859 with __builtin_sqrt.
24860 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
24861 with __builtin_sqrtf.
24862 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
24863 with __builtin_ceil.
24864 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
24865 with __builtin_ceilf.
24866 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
24867 with __builtin_floor.
24868 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
24869 with __builtin_floorf.
24870 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
24871 with __builtin_fma.
24872 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
24873 with __builtin_fmaf.
24874 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
24875 with __builtin_fmax.
24876 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
24877 with __builtin_fmaxf.
24878 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
24879 with __builtin_fmin.
24880 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
24881 with __builtin_fminf.
24882 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
24883 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
24884 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
24885 with builtin_rint and conversion to int.
24886 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
24887 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
24888 with builtin_llround.
24889 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
24890 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
24891 with builtin_rint and conversion to long int.
24892 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
24893 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
24894 with builtin_lround.
24895 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
24896 with builtin_lroundf.
24897 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
24898 statements with __builtin_nearbyint.
24899 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
24900 statements with __builtin_nearbyintf.
24901 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
24902 with __builtin_rint.
24903 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
24904 with __builtin_rintf.
24905 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
24906 with __builtin_round.
24907 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
24908 with __builtin_roundf.
24909 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
24910 with __builtin_trunc.
24911 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
24912 with __builtin_truncf.
24913 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
24914 and s_l[l]round[f].c too.
24915
24916 2017-10-23 Alan Modra <amodra@gmail.com>
24917
24918 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
24919 Adjust stack after restoring regs. Add missing LR cfi_restore.
24920
24921 2017-10-23 Alan Modra <amodra@gmail.com>
24922
24923 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
24924 Move LR save and frame setup/teardown and LR restore to
24925 immediately around memset call. Provide cfi.
24926
24927 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24928
24929 * sysdeps/i386/fpu/e_powf.S: Removed.
24930 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
24931 * sysdeps/i386/fpu/w_powf.c: Likewise.
24932 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
24933 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24934 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24935 Add e_powf-sse2.
24936 (CFLAGS-e_powf-sse2.c): New.
24937 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
24938 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
24939
24940 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24941
24942 * sysdeps/i386/fpu/e_log2f.S: Removed.
24943 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
24944 * sysdeps/i386/fpu/w_log2f.c: Likewise.
24945 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
24946 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24947 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24948 Add e_log2f-sse2.
24949 (CFLAGS-e_log2f-sse2.c): New.
24950 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
24951 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
24952
24953 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24954
24955 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24956 Add e_powf-fma.
24957 (CFLAGS-e_powf-fma.c): New.
24958 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
24959 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
24960
24961 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24962
24963 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24964 Add e_log2f-fma.
24965 (CFLAGS-e_log2f-fma.c): New.
24966 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
24967 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
24968
24969 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24970
24971 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24972 Add e_logf-fma.
24973 (CFLAGS-e_logf-fma.c): New.
24974 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
24975 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
24976
24977 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24978
24979 * sysdeps/i386/fpu/e_logf.S: Removed.
24980 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
24981 * sysdeps/i386/fpu/w_logf.c: Likewise.
24982 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
24983 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
24984 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24985 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24986 Add e_logf-sse2.
24987 (CFLAGS-e_logf-sse2.c): New.
24988 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
24989 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
24990
24991 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24992
24993 * sysdeps/i386/fpu/e_exp2f.S: Removed.
24994 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
24995 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
24996 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24997 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24998 Add e_exp2f-sse2.
24999 (CFLAGS-e_exp2f-sse2.c): New.
25000 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
25001 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
25002
25003 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
25004
25005 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
25006 Add e_exp2f-fma.
25007 (CFLAGS-e_exp2f-fma.c): New.
25008 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
25009 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
25010
25011 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
25012
25013 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
25014 * sysdeps/i386/fpu/e_expf.S: Likewise.
25015 * sysdeps/i386/fpu/math_errf.c: Likewise.
25016 * sysdeps/i386/fpu/w_expf.c: Likewise.
25017 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
25018 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
25019 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
25020 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
25021 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25022 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
25023 Remove e_expf-ia32.
25024 (CFLAGS-e_expf-sse2.c): New.
25025 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
25026 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
25027
25028 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
25029
25030 * sysdeps/x86_64/fpu/e_expf.S: Removed.
25031 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
25032 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
25033 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
25034 e_expf.c.
25035 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
25036 New.
25037 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
25038 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
25039 Renamed to ...
25040 (__redirect_expf): This.
25041 (SYMBOL_NAME): Changed to expf.
25042 (__ieee754_expf): Renamed to ...
25043 (__expf): This.
25044 (__GI___expf): This.
25045 (__ieee754_expf): Add strong_alias.
25046 (__expf_finite): Likewise.
25047 (__expf): New.
25048 Include <sysdeps/ieee754/flt-32/e_expf.c>.
25049
25050 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
25051
25052 [BZ #22332]
25053 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
25054 unescaping.
25055
25056 2017-10-21 Florian Weimer <fweimer@redhat.com>
25057
25058 * posix/Makefile (tests): Add tst-glob-tilde.
25059 (tests-special): Add tst-glob-tilde-mem.out
25060 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
25061 (tst-glob-tilde-mem.out): Add mtrace check.
25062 * posix/tst-glob-tilde.c: New file.
25063
25064 2017-10-20 Joseph Myers <joseph@codesourcery.com>
25065
25066 * bits/floatn-common.h: New file.
25067 * math/Makefile (headers): Add bits/floatn-common.h.
25068 * bits/floatn.h: Include <bits/floatn-common.h>.
25069 * sysdeps/ia64/bits/floatn.h: Likewise.
25070 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
25071 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
25072 * sysdeps/powerpc/bits/floatn.h: Likewise.
25073 * sysdeps/x86/bits/floatn.h: Likewise.
25074
25075 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25076
25077 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
25078 indicates whether compiler emits an warning for alias for
25079 functions with incompatible types.
25080
25081 [BZ #22273]
25082 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
25083 the auxiliary process is terminated by a signal before calling _exit
25084 or execve.
25085
25086 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
25087
25088 [BZ #21265]
25089 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
25090 New.
25091 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
25092 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
25093 and bit_arch_XSAVEC_Usable if needed.
25094 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
25095 and bit_arch_Use_dl_runtime_resolve_opt.
25096 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
25097 Removed.
25098 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
25099 (bit_arch_Prefer_No_AVX512): Updated.
25100 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
25101 (bit_arch_XSAVEC_Usable): New.
25102 (STATE_SAVE_OFFSET): Likewise.
25103 (STATE_SAVE_MASK): Likewise.
25104 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
25105 (cpu_features): Add xsave_state_size and xsave_state_full_size.
25106 (index_arch_Use_dl_runtime_resolve_opt): Removed.
25107 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
25108 (index_arch_XSAVEC_Usable): New.
25109 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
25110 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
25111 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
25112 is enabled.
25113 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
25114 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
25115 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
25116 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
25117 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
25118 _dl_runtime_resolve_xsavec.
25119 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
25120 Removed.
25121 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
25122 instead of VEC_SIZE.
25123 (REGISTER_SAVE_BND0): Removed.
25124 (REGISTER_SAVE_BND1): Likewise.
25125 (REGISTER_SAVE_BND3): Likewise.
25126 (REGISTER_SAVE_RAX): Always defined to 0.
25127 (VMOV): Removed.
25128 (_dl_runtime_resolve_avx): Likewise.
25129 (_dl_runtime_resolve_avx_slow): Likewise.
25130 (_dl_runtime_resolve_avx_opt): Likewise.
25131 (_dl_runtime_resolve_avx512): Likewise.
25132 (_dl_runtime_resolve_avx512_opt): Likewise.
25133 (_dl_runtime_resolve_sse): Likewise.
25134 (_dl_runtime_resolve_sse_vex): Likewise.
25135 (USE_FXSAVE): New.
25136 (_dl_runtime_resolve_fxsave): Likewise.
25137 (USE_XSAVE): Likewise.
25138 (_dl_runtime_resolve_xsave): Likewise.
25139 (USE_XSAVEC): Likewise.
25140 (_dl_runtime_resolve_xsavec): Likewise.
25141 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
25142 Removed.
25143 (_dl_runtime_resolve_avx512_opt): Likewise.
25144 (_dl_runtime_resolve_avx): Likewise.
25145 (_dl_runtime_resolve_avx_opt): Likewise.
25146 (_dl_runtime_resolve_sse): Likewise.
25147 (_dl_runtime_resolve_sse_vex): Likewise.
25148 (_dl_runtime_resolve_fxsave): New.
25149 (_dl_runtime_resolve_xsave): Likewise.
25150 (_dl_runtime_resolve_xsavec): Likewise.
25151
25152 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
25153
25154 [BZ #22320]
25155 CVE-2017-15670
25156 * posix/glob.c (__glob): Fix one-byte overflow.
25157
25158 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
25159
25160 * malloc/malloc.c (sysdep-cancel.h): Add include.
25161
25162 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
25163
25164 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
25165
25166 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
25167
25168 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
25169 (tests): Remove $(objpfx)ga_test depdendency.
25170 * resolv/ga_test.c: Remove file.
25171
25172 2017-10-20 Mike FABIAN <mfabian@redhat.com>
25173
25174 [BZ #18812]
25175 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
25176 * localedata/locales/kab_DZ: New file.
25177
25178 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
25179
25180 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
25181 _dl_relocate_static_pie instead of _dl_start to compute load
25182 address in static PIE.
25183
25184 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
25185
25186 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
25187
25188 2017-10-20 Mike FABIAN <mfabian@redhat.com>
25189
25190 [BZ #13605]
25191 * localedata/SUPPORTED: Add shn_MM/UTF-8.
25192 * localedata/locales/shn_MM: New file.
25193
25194 2017-10-20 Florian Weimer <fweimer@redhat.com>
25195
25196 [BZ #22321]
25197 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
25198 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
25199 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
25200 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
25201 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
25202 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
25203
25204 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
25205
25206 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
25207
25208 2017-10-19 Joseph Myers <joseph@codesourcery.com>
25209
25210 * sysdeps/mips/ieee754/bits/floatn.h: New file.
25211
25212 [BZ #22322]
25213 * sysdeps/mips/bits/long-double.h: Move to ....
25214 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
25215
25216 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
25217
25218 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
25219
25220 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
25221 H.J. Lu <hongjiu.lu@intel.com>
25222
25223 [BZ #22299]
25224 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
25225 GLRO(dl_platform) to NULL.
25226 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
25227 (modules-names): Add tst-platformmod-1 and
25228 x86_64/tst-platformmod-2.
25229 (CFLAGS-tst-platform-1.c): New.
25230 (CFLAGS-tst-platformmod-1.c): Likewise.
25231 (CFLAGS-tst-platformmod-2.c): Likewise.
25232 (LDFLAGS-tst-platformmod-2.so): Likewise.
25233 ($(objpfx)tst-platform-1): Likewise.
25234 ($(objpfx)tst-platform-1.out): Likewise.
25235 (tst-platform-1-ENV): Likewise.
25236 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
25237 * sysdeps/x86_64/tst-platform-1.c: New file.
25238 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
25239 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
25240
25241 2017-10-19 Mike FABIAN <mfabian@redhat.com>
25242
25243 [BZ #13994]
25244 * locale/iso-639.def: Add Karbi.
25245 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
25246 * localedata/locales/mjw_IN: New file.
25247
25248 2017-10-18 Joseph Myers <joseph@codesourcery.com>
25249
25250 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
25251 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
25252 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
25253 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
25254 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
25255 (libm_alias_ldouble_other_r): Also create _Float128 alias.
25256 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
25257 <bits/floatn.h>.
25258 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
25259 (libm_alias_ldouble_other_r): Also create _Float128 alias.
25260 * manual/math.texi (Mathematics): Document additional architecture
25261 support for _Float128.
25262 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
25263 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
25264 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
25265 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25266 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25267 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
25268 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
25269 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
25270 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25271 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
25272 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25273 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
25274 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25275 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
25276 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25277
25278 2017-10-18 Renlin Li <renlin.li@arm.com>
25279
25280 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
25281 _DYNAMIC symbol to calculate load address.
25282
25283 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
25284
25285 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
25286 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
25287 summary bits.
25288 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
25289 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
25290
25291 2017-10-18 Mike FABIAN <mfabian@redhat.com>
25292
25293 [BZ #16777]
25294 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
25295 and improve readability by using more ASCII.
25296 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
25297 and improve readability by using more ASCII.
25298
25299 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
25300
25301 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
25302 not all targets support atomics on bool.
25303
25304 2017-10-17 Joseph Myers <joseph@codesourcery.com>
25305
25306 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
25307 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
25308 __f128.
25309 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
25310 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
25311 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
25312 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
25313 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
25314 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
25315
25316 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25317
25318 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
25319 defines.
25320
25321 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
25322
25323 [BZ #22159]
25324 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
25325 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
25326 (do_check_remalloced_chunk): Fix build bug.
25327 (do_check_malloc_state): Add assert that checks arena->top.
25328 (malloc_consolidate): Remove initialization.
25329 (int_mallinfo): Remove call to malloc_consolidate.
25330 (__libc_mallopt): Clarify why malloc_consolidate is needed.
25331
25332 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
25333
25334 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
25335 (have_fastchunks): Remove.
25336 (clear_fastchunks): Remove.
25337 (set_fastchunks): Remove.
25338 (malloc_state): Add have_fastchunks.
25339 (malloc_init_state): Use have_fastchunks.
25340 (do_check_malloc_state): Remove incorrect invariant checks.
25341 (_int_malloc): Use have_fastchunks.
25342 (_int_free): Likewise.
25343 (malloc_consolidate): Likewise.
25344
25345 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
25346
25347 * malloc/malloc.c (tcache_put): Inline.
25348 (tcache_get): Inline.
25349
25350 2017-10-17 Jordi Mallach <jordi@gnu.org>
25351
25352 Aurelien Jarno <aurelien@aurel32.net>
25353 [BZ #2522]
25354 * localedata/locales/ca_ES@valencia: New file.
25355 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
25356
25357 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
25358
25359 [BZ #22296]
25360 * math/math.h: Let signbit use the builtin in C++ mode with gcc
25361 < 6.x
25362
25363 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25364
25365 * scripts/build-many-glibcs.py (Context.add_all_configs):
25366 Add arm-linux-gnueabihf multiarch extra_glibcs.
25367
25368 * sysdeps/generic/ifunc-init.h: New file.
25369 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
25370
25371 2017-10-17 Mike FABIAN <mfabian@redhat.com>
25372
25373 [BZ #22019]
25374 * localedata/locales/el_GR: Set n_cs_precedes to 0.
25375 * localedata/locales/el_CY: copy "el_GR" because it is identical.
25376 * stdlib/tst-strfmon_l.c: adapt test case.
25377
25378 2017-10-16 Joseph Myers <joseph@codesourcery.com>
25379
25380 * sysdeps/generic/float128-abi.h: New file.
25381 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
25382 non-__prefixed symbols to ....
25383 * math/Versions: ... here. Include <float128-abi.h>.
25384 * stdlib/Versions ... and here. Include <float128-abi.h>
25385
25386 2017-10-16 Florian Weimer <fweimer@redhat.com>
25387
25388 * version.h (VERSION): Switch to ".9000" as the development
25389 version suffix.
25390
25391 2017-10-16 Florian Weimer <fweimer@redhat.com>
25392
25393 [BZ #22050]
25394 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
25395 compat_symbol_reference to access non-default version.
25396
25397 2017-10-16 Florian Weimer <fweimer@redhat.com>
25398
25399 * malloc/Makefile (others-extras): Set to mcheck-init.o.
25400
25401 2017-10-16 Carlos O'Donell <carlos@redhat.com>
25402
25403 * include/shlib-compat.h (compat_symbol_reference): Update
25404 comment.
25405
25406 2017-10-16 Joseph Myers <joseph@codesourcery.com>
25407
25408 * math/Makefile (test-types): Add
25409 $(type-float128-$(float128-alias-fcts)).
25410 * math/test-float128.h (TYPE_STR): Define conditional on
25411 [FLT128_MANT_DIG == LDBL_MANT_DIG].
25412 (ULP_IDX): Likewise.
25413 (ULP_I_IDX): Likewise.
25414
25415 * stdlib/strtold.c: Include <bits/floatn.h>
25416 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
25417 and later undefine as macro. Define as weak alias if
25418 [!USE_WIDE_CHAR].
25419 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
25420 and later undefine as macro. Define as weak alias if
25421 [USE_WIDE_CHAR].
25422 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
25423 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
25424 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
25425 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
25426 Define and later undefine as macro. Define as weak alias if
25427 [USE_WIDE_CHAR].
25428 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
25429 <bits/floatn.h>.
25430 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
25431 Define and later undefine as macro. Define as weak alias if
25432 [!USE_WIDE_CHAR].
25433 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
25434 Define and later undefine as macro. Define as weak alias if
25435 [USE_WIDE_CHAR].
25436
25437 2017-10-15 Carlos O'Donell <carlos@redhat.com>
25438
25439 * localedata/collate-test.c (allocate_arrays): Don't use \n in
25440 record_verbose messages.
25441
25442 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
25443
25444 [BZ #22052]
25445 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
25446 to silence -O3 -Wall warning with GCC 7.
25447
25448 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
25449
25450 * Makeconfig (+link-static-before-libc): Use the first of
25451 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
25452 * gmon/Makefile (tests): Add tst-gmon-static.
25453 (tests-static): Likewise.
25454 (CFLAGS-tst-gmon-static.c): New.
25455 (CRT-tst-gmon-static): Likewise.
25456 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
25457 (tst-gmon-static-ENV): Likewise.
25458 (tests-special): Likewise.
25459 ($(objpfx)tst-gmon-static.out): Likewise.
25460 (clean-tst-gmon-static-data): Likewise.
25461 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
25462 * gmon/tst-gmon-static-gprof.sh: New file.
25463 * gmon/tst-gmon-static.c: Likewise.
25464
25465 2017-10-13 Carlos O'Donell <carlos@redhat.com>
25466
25467 [BZ #22295]
25468 * locale/programs/linereader.c (get_string): Don't warn on
25469 non-symbolic character.
25470
25471 [BZ #22294]
25472 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
25473 int_curr_symbol.
25474
25475 [BZ #22292]
25476 * locale/programs/record-status.h: New file
25477 * locale/programs/locale.c: Add comment.
25478 * locale/programs/charmap-dir.c: Don't include error.h.
25479 (charmap_opendir): Use record_error.
25480 * locale/programs/charmap.c: Don't include error.h.
25481 (charmap_read): Use record_error, and record_warning.
25482 (parse_charmap): Likewise.
25483 * locale/programs/ld-address.c: Don't include error.h.
25484 (address_finish): Use record_error, and record_warning.
25485 * locale/programs/ld-collate.c: Don't include error.h.
25486 (collate_finish): Use record_error, and record_error_at_line.
25487 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
25488 (ctype_class_new): Likewise.
25489 (ctype_map_new): Likewise.
25490 (set_one_default): Likewise.
25491 (set_class_defaults): Likewise.
25492 (translit_flatten): Likewise.
25493 (allocate_arrays): Use record_error, and record_verbose.
25494 * locale/programs/ld-identification.c: Don't include error.h.
25495 (indentation_finish): Use record_error and record_warning.
25496 * locale/programs/ld-measurement.c: Don't include error.h.
25497 (measurement_finish): Use record_error.
25498 * locale/programs/ld-messages.c
25499 (message_finish): Likewise.
25500 * locale/programs/ld-monetary.c
25501 (monetary_finish): Likewise.
25502 * locale/programs/ld-name.c (name_finish): Use record_error
25503 and record_warning.
25504 * locale/programs/ld-numeric.c
25505 (numeric_finish): Use record_error.
25506 * locale/programs/ld-paper.c: Don't include error.h.
25507 (paper_finish): Use record_error.
25508 * locale/programs/ld-telephone.c: Don't include error.h.
25509 (telephone_finish): Use record_error.
25510 * locale/programs/ld-time.c (time_finish): Likewise.
25511 * locale/programs/linereader.h (lr_error): Make inline func.
25512 * locale/programs/localedef.c: Define recorded_warning_count,
25513 and recorded_error_count.
25514 (main): Use record_error. Use recorded_error_count and
25515 recorded_warning_count to issue correct error returns.
25516 (add_to_readlist): Use record_error.
25517 (find_locale): Likewise.
25518 (load_locale): Likewise.
25519 * locale/programs/localedef.h: Remove be_quiet
25520 and WITH_CUR_LOCALE.
25521 * locale/programs/locarchive.c (compare_from_file): Use
25522 record_error.
25523 * locale/programs/locfile.c (write_locale_data): Use
25524 record_error.
25525 * locale/programs/repertoire.c: Dont include error.h.
25526 (repertoire_complain): Use record_error.
25527 * localedata/tst-fmon.sh: Expect failures from localedef.
25528 * localedata/tst-locale.sh: Likewise.
25529 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
25530
25531 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
25532 (REPORTS): Likewise.
25533 (check): Likewise.
25534 (i18n): Rename to...
25535 (i18n_ctype): ...this.
25536 (i18n-report): Rename to...
25537 (i18n_ctype-report): ...this.
25538 * localedata/locales/i18n_ctype: Regenerate.
25539 * localedata/locales/i18n: copy i18n_ctype.
25540
25541 2017-10-13 Joseph Myers <joseph@codesourcery.com>
25542
25543 * stdlib/strfroml.c: Include <bits/floatn.h>.
25544 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
25545 Define before include of <stdlib.h> and undefine afterwards, then
25546 define as weak alias.
25547
25548 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
25549 Undefine and restore default definition. Use
25550 libm_alias_ldouble_other.
25551
25552 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
25553
25554 [BZ #22153]
25555 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
25556 in coredumps.
25557
25558 2017-10-13 James Clarke <jrtc27@jrtc27.com>
25559
25560 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
25561 Assign sym_map to be map for local symbols, as TLS relocations
25562 use sym_map to determine whether the symbol is defined and to
25563 extract the TLS information.
25564 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
25565 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
25566
25567 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
25568
25569 [BZ #22189]
25570 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
25571 (math_force_eval): Add powerpc version.
25572
25573 [BZ #22142]
25574 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
25575 -DBL_MAX.
25576 (do_test): Likewise.
25577 * stdio-common/tst-printf.sh: Likewise.
25578 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
25579 ifdef clause in order to set the carry bit right. Replace r0 by
25580 0 without changing the behavior.
25581
25582 2017-10-13 Joseph Myers <joseph@codesourcery.com>
25583
25584 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
25585 <libm-alias-ldouble.h>.
25586 (fabsl): Define using libm_alias_ldouble.
25587 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
25588 <libm-alias-ldouble.h>.
25589 (fabsl): Define using libm_alias_ldouble.
25590
25591 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
25592 Remove conditional code.
25593
25594 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
25595 Rename to __clog10_internal_l.
25596 (__clog10_internal_l): Define aliases using
25597 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
25598 with __clog10.
25599
25600 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25601
25602 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
25603 * benchtests/sincosf-inputs: New file.
25604 * benchtests/cosf-inputs: New file.
25605 * benchtests/sinf-inputs: New file.
25606
25607 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
25608
25609 * posix/tst-spawn.c (do_test): Wait for both children.
25610
25611 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
25612
25613 [BZ #22284]
25614 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
25615 tests-pie): Add tst-gmon-pie.
25616 (CFLAGS-tst-gmon-pie.c): New.
25617 (CRT-tst-gmon-pie): Likewise.
25618 (tst-gmon-pie-ENV): Likewise.
25619 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
25620 ($(objpfx)tst-gmon-pie.out): Likewise.
25621 (clean-tst-gmon-pie-data): Likewise.
25622 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
25623 * gmon/gmon.c [PIC]: Include <link.h>.
25624 [PIC] (callback): New function.
25625 (write_hist): Add an argument for load address. Subtract load
25626 address from PCs.
25627 (write_call_graph): Likewise.
25628 (write_gmon): Call __dl_iterate_phdr to get load address, pass
25629 it to write_hist and write_call_graph.
25630 * gmon/tst-gmon-pie.c: New file.
25631
25632 2017-10-11 Joseph Myers <joseph@codesourcery.com>
25633
25634 * math/Makefile (test-types-basic): New variable.
25635 (test-types): Likewise.
25636 (libm-test-support): Use $(test-types) instead of $(types).
25637 (libm-tests-base-normal): Likewise.
25638 (libm-tests-base-finite): Likewise.
25639 (libm-tests-base-inline): Likewise.
25640 (generated): Likewise.
25641 ($(objpfx)libm-test-support-$(t).c): Likewise.
25642 (libm-tests-for-type iterator): Likewise.
25643 (libm-test-support iterator): Likewise.
25644 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
25645 (ulp_idx): Use ULP_IDX.
25646 * math/test-ldouble.h: Include <float.h>.
25647 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
25648 (ULP_IDX): New macro.
25649 (ULP_I_IDX): Likewise.
25650 * math/test-double.h (ULP_IDX): Likewise.
25651 (ULP_I_IDX): Likewise.
25652 * math/test-float.h (ULP_IDX): Likewise.
25653 (ULP_I_IDX): Likewise.
25654 * math/test-float128.h (ULP_IDX): Likewise.
25655 (ULP_I_IDX): Likewise.
25656
25657 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25658
25659 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
25660 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
25661 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
25662 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
25663 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
25664 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
25665 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
25666 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
25667 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
25668 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
25669 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
25670 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
25671 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
25672 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
25673 (SINGLE_THREAD_BY_GLOBAL): Define.
25674 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25675 Likewise.
25676 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25677 Likewise.
25678 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25679 Likewise.
25680 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25681 Likewise.
25682 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
25683 (SINGLE_THREAD_BY_GLOBAL): Likewise.
25684 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25685 Likewise.
25686
25687 2017-10-11 Andreas Schwab <schwab@suse.de>
25688
25689 * nis/Makefile (aux): Remove.
25690 * nscd/Makefile (aux): Add nscd_hash.
25691 (nscd-modules): Likewise.
25692 ($(objpfx)nscd): Don't depend on libnsl.
25693 * nscd/nscd_hash.c: New file.
25694 * nscd/nscd_hash.h: Likewise.
25695 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
25696 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
25697 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
25698 instead of <nis/rpcsvc/nis.h>.
25699 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
25700
25701 2017-10-11 Florian Weimer <fweimer@redhat.com>
25702
25703 [BZ #22078]
25704 Avoid large NSS buffers with many addresses, aliases.
25705 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
25706 using dynarrays and struct alloc_buffer.
25707 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
25708 (tst-nss-files-hosts-multi): Link with -ldl.
25709 * nss/tst-nss-files-hosts-multi.c: New file.
25710
25711 2017-10-11 Florian Weimer <fweimer@redhat.com>
25712
25713 [BZ #18023]
25714 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
25715 scratch_buffer. Eliminate gotos.
25716
25717 2017-10-11 Joseph Myers <joseph@codesourcery.com>
25718
25719 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
25720 libm_alias_ldouble_other.
25721 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
25722 undefine and redefine.
25723 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
25724 (exp10l): Do not define here.
25725 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
25726 (weak_alias): Undefine and redefine.
25727 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
25728 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
25729 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
25730 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
25731
25732 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
25733 [!__fma] (fma): Define using libm_alias_double.
25734 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
25735 [!__fmaf] (fmaf): Define using libm_alias_float.
25736 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
25737 (fmal): Define using libm_alias_ldouble.
25738
25739 2017-10-10 Joseph Myers <joseph@codesourcery.com>
25740
25741 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
25742 New macro.
25743 (libm_alias_double_other): Likewise.
25744 (libm_alias_double_r): Use libm_alias_double_other_r.
25745 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
25746 New macro.
25747 (libm_alias_float_other): Likewise.
25748 (libm_alias_float_r): Use libm_alias_float_other_r.
25749 * sysdeps/generic/libm-alias-float128.h
25750 (libm_alias_float128_other_r): New macro.
25751 (libm_alias_float128_other): Likewise.
25752 (libm_alias_float128_r): Use libm_alias_float128_other_r.
25753 * sysdeps/generic/libm-alias-ldouble.h
25754 (libm_alias_ldouble_other_r): New macro.
25755 (libm_alias_ldouble_other): Likewise.
25756 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25757 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
25758 (libm_alias_double_other_r): New macro.
25759 (libm_alias_double_other): Likewise.
25760 (libm_alias_double_r): Use libm_alias_double_other_r.
25761 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
25762 (libm_alias_ldouble_other_r): New macro.
25763 (libm_alias_ldouble_other): Likewise.
25764 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25765 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
25766 [!USE_AS_COMPAT]: Use libm_alias_double_other.
25767 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
25768 [!USE_AS_COMPAT]: Use libm_alias_float_other.
25769 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
25770 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
25771 * math/w_exp2f.c: Use libm_alias_float_other.
25772 * math/w_expf.c: Likewise.
25773 * math/w_log2f.c: Likewise.
25774 * math/w_logf.c: Likewise.
25775 * math/w_powf.c: Likewise.
25776 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
25777 [!__exp2f]: Use libm_alias_float_other.
25778 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
25779 [!__expf]: Use libm_alias_float_other.
25780 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
25781 [!__log2f]: Use libm_alias_float_other.
25782 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
25783 [!__logf]: Use libm_alias_float_other.
25784 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
25785 [!__powf]: Use libm_alias_float_other.
25786
25787 2017-10-10 Florian Weimer <fweimer@redhat.com>
25788
25789 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
25790 function.
25791 (_nss_files_gethostbyname3_r): Call it.
25792
25793 2017-10-09 Joseph Myers <joseph@codesourcery.com>
25794
25795 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
25796 error. Remove default definition of declare_mgen_alias.
25797 [!declare_mgen_alias_r]: Likewise.
25798 * sysdeps/generic/math-type-macros-double.h
25799 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
25800 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
25801 (declare_mgen_alias_r): Likewise.
25802 * sysdeps/generic/math-type-macros-float128.h
25803 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25804 * sysdeps/generic/math-type-macros-ldouble.h
25805 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25806 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
25807 macro.
25808 (declare_mgen_alias_r_s): Likewise.
25809 (declare_mgen_alias_r): Likewise.
25810 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
25811 (lgamma_r): Define using libm_alias_double_r.
25812 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
25813 (lgammaf_r): Define using libm_alias_float_r.
25814 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
25815 (lgammal_r): Define using libm_alias_ldouble_r.
25816 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
25817 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
25818
25819 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25820
25821 * lib/glob.c (__glob_pattern_type): Remove now-spurious
25822 extern declaration.
25823
25824 2017-10-09 Joseph Myers <joseph@codesourcery.com>
25825
25826 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
25827
25828 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
25829
25830 [BZ #21326]
25831 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
25832 [__cplusplus >= 201103] (__USE_ISOC99): Define.
25833 * math/Makefile (test-math-cxx11): New test.
25834 * math/test-math-cxx11.cc: New file.
25835
25836 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
25837
25838 * login/openpty.c (openpty): Close slave pty file descriptor on error.
25839
25840 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
25841 call to allocate the slave pty file descriptor.
25842
25843 2017-10-06 Joseph Myers <joseph@codesourcery.com>
25844
25845 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
25846 [!__fma] (fma): Define using libm_alias_double.
25847 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
25848 [!__fma] (fma): Define using libm_alias_double.
25849
25850 * sysdeps/ieee754/float128/float128_private.h: Include
25851 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
25852 (libm_alias_ldouble_r): Undefine and redefine.
25853 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
25854 <libm-alias-ldouble.h>.
25855 (asinhl): Define using libm_alias_ldouble.
25856 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
25857 <libm-alias-ldouble.h>.
25858 (atanl): Define using libm_alias_ldouble.
25859 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
25860 <libm-alias-ldouble.h>.
25861 (cbrtl): Define using libm_alias_ldouble.
25862 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
25863 <libm-alias-ldouble.h>.
25864 (ceill): Define using libm_alias_ldouble.
25865 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
25866 <libm-alias-ldouble.h>.
25867 (copysignl): Define using libm_alias_ldouble.
25868 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
25869 <libm-alias-ldouble.h>.
25870 (cosl): Define using libm_alias_ldouble.
25871 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
25872 <libm-alias-ldouble.h>.
25873 (erfl): Define using libm_alias_ldouble.
25874 (erfcl): Likewise.
25875 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
25876 <libm-alias-ldouble.h>.
25877 (expm1l): Define using libm_alias_ldouble.
25878 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
25879 <libm-alias-ldouble.h>.
25880 (fabsl): Define using libm_alias_ldouble.
25881 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
25882 <libm-alias-ldouble.h>.
25883 (floorl): Define using libm_alias_ldouble.
25884 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
25885 <libm-alias-ldouble.h>.
25886 (fmal): Define using libm_alias_ldouble.
25887 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
25888 <libm-alias-ldouble.h>.
25889 (frexpl): Define using libm_alias_ldouble.
25890 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
25891 libm_alias_ldouble.
25892 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
25893 <libm-alias-ldouble.h>.
25894 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
25895 libm_alias_ldouble.
25896 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
25897 <libm-alias-ldouble.h>.
25898 (getpayloadl): Define using libm_alias_ldouble.
25899 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
25900 <libm-alias-ldouble.h>.
25901 (llrintl): Define using libm_alias_ldouble.
25902 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
25903 <libm-alias-ldouble.h>.
25904 (llroundl): Define using libm_alias_ldouble.
25905 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
25906 <libm-alias-ldouble.h>.
25907 (logbl): Define using libm_alias_ldouble.
25908 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
25909 <libm-alias-ldouble.h>.
25910 (lrintl): Define using libm_alias_ldouble.
25911 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
25912 <libm-alias-ldouble.h>.
25913 (lroundl): Define using libm_alias_ldouble.
25914 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
25915 <libm-alias-ldouble.h>.
25916 (modfl): Define using libm_alias_ldouble.
25917 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
25918 <libm-alias-ldouble.h>.
25919 (nearbyintl): Define using libm_alias_ldouble.
25920 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
25921 <libm-alias-ldouble.h>.
25922 (nextafterl): Define using libm_alias_ldouble.
25923 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
25924 <libm-alias-ldouble.h>.
25925 (nextupl): Define using libm_alias_ldouble.
25926 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
25927 <libm-alias-ldouble.h>.
25928 (remquol): Define using libm_alias_ldouble.
25929 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
25930 <libm-alias-ldouble.h>.
25931 (rintl): Define using libm_alias_ldouble.
25932 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
25933 <libm-alias-ldouble.h>.
25934 (roundevenl): Define using libm_alias_ldouble.
25935 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
25936 <libm-alias-ldouble.h>.
25937 (roundl): Define using libm_alias_ldouble.
25938 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
25939 using libm_alias_ldouble.
25940 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
25941 <libm-alias-ldouble.h>.
25942 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
25943 Define using libm_alias_ldouble.
25944 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
25945 <libm-alias-ldouble.h>.
25946 (sincosl): Define using libm_alias_ldouble.
25947 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
25948 <libm-alias-ldouble.h>.
25949 (sinl): Define using libm_alias_ldouble.
25950 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
25951 <libm-alias-ldouble.h>.
25952 (tanhl): Define using libm_alias_ldouble.
25953 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
25954 <libm-alias-ldouble.h>.
25955 (tanl): Define using libm_alias_ldouble.
25956 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
25957 <libm-alias-ldouble.h>.
25958 (totalorderl): Define using libm_alias_ldouble.
25959 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
25960 <libm-alias-ldouble.h>.
25961 (totalordermagl): Define using libm_alias_ldouble.
25962 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
25963 <libm-alias-ldouble.h>.
25964 (truncl): Define using libm_alias_ldouble.
25965 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
25966 libm_alias_ldouble.
25967 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
25968 libm_alias_ldouble.
25969 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
25970 <libm-alias-ldouble.h>.
25971 (weak_alias): Do not undefine and redefine.
25972 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25973 (copysignl): Define with long_double_symbol only if [IS_IN
25974 (libc)].
25975 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
25976 <libm-alias-ldouble.h>.
25977 (weak_alias): Do not undefine and redefine.
25978 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25979 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
25980 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
25981 <libm-alias-ldouble.h>.
25982 (weak_alias): Do not undefine and redefine.
25983 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25984 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
25985 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
25986 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
25987 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
25988 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
25989 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
25990 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
25991 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
25992 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
25993 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
25994 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
25995 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
25996 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
25997 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
25998 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
25999 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
26000 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
26001 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
26002 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
26003 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
26004 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
26005 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
26006 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
26007 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
26008 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
26009
26010 2017-10-06 Carlos O'Donell <carlos@redhat.com>
26011
26012 [BZ #22111]
26013 * malloc/malloc.c (tcache_shutting_down): Use bool type.
26014 (tcache_thread_freeres): Set tcache_shutting_down before
26015 freeing the tcache.
26016 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
26017 * malloc/tst-malloc-tcache-leak.c: New file.
26018
26019 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26020
26021 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
26022 back to powerpc32 file.
26023 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
26024 (memrchr): Add __memrchr_power8 to ifunc list.
26025 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
26026 extra bytes for unaligned inputs.
26027
26028 2017-10-06 Joseph Myers <joseph@codesourcery.com>
26029
26030 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
26031 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
26032 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
26033 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
26034 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
26035
26036 2017-10-05 Joseph Myers <joseph@codesourcery.com>
26037
26038 * sysdeps/arm/libm-test-ulps: Update.
26039
26040 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
26041 <libm-alias-ldouble.h>.
26042 (asinhl): Define using libm_alias_ldouble.
26043 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
26044 <libm-alias-ldouble.h>.
26045 (cbrtl): Define using libm_alias_ldouble.
26046 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
26047 <libm-alias-ldouble.h>.
26048 (copysignl): Define using libm_alias_ldouble.
26049 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
26050 <libm-alias-ldouble.h>.
26051 (cosl): Define using libm_alias_ldouble.
26052 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
26053 <libm-alias-ldouble.h>.
26054 (erfl): Define using libm_alias_ldouble.
26055 (erfcl): Likewise.
26056 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
26057 <libm-alias-ldouble.h>.
26058 (fmal): Define using libm_alias_ldouble.
26059 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
26060 <libm-alias-ldouble.h>.
26061 (frexpl): Define using libm_alias_ldouble.
26062 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
26063 libm_alias_ldouble.
26064 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
26065 <libm-alias-ldouble.h>.
26066 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
26067 libm_alias_ldouble.
26068 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
26069 <libm-alias-ldouble.h>.
26070 (getpayloadl): Define using libm_alias_ldouble.
26071 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
26072 <libm-alias-ldouble.h>.
26073 (llrintl): Define using libm_alias_ldouble.
26074 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
26075 <libm-alias-ldouble.h>.
26076 (llroundl): Define using libm_alias_ldouble.
26077 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
26078 <libm-alias-ldouble.h>.
26079 (lrintl): Define using libm_alias_ldouble.
26080 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
26081 <libm-alias-ldouble.h>.
26082 (lroundl): Define using libm_alias_ldouble.
26083 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
26084 <libm-alias-ldouble.h>.
26085 (modfl): Define using libm_alias_ldouble.
26086 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
26087 <libm-alias-ldouble.h>.
26088 (nextupl): Define using libm_alias_ldouble.
26089 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
26090 <libm-alias-ldouble.h>.
26091 (remquol): Define using libm_alias_ldouble.
26092 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
26093 <libm-alias-ldouble.h>.
26094 (roundevenl): Define using libm_alias_ldouble.
26095 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
26096 <libm-alias-ldouble.h>.
26097 (roundl): Define using libm_alias_ldouble.
26098 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
26099 using libm_alias_ldouble.
26100 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
26101 <libm-alias-ldouble.h>.
26102 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
26103 <libm-alias-ldouble.h>.
26104 (setpayloadsigl): Define using libm_alias_ldouble.
26105 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
26106 <libm-alias-ldouble.h>.
26107 (sincosl): Define using libm_alias_ldouble.
26108 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
26109 <libm-alias-ldouble.h>.
26110 (sinl): Define using libm_alias_ldouble.
26111 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
26112 <libm-alias-ldouble.h>.
26113 (tanhl): Define using libm_alias_ldouble.
26114 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
26115 <libm-alias-ldouble.h>.
26116 (tanl): Define using libm_alias_ldouble.
26117 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
26118 <libm-alias-ldouble.h>.
26119 (totalorderl): Define using libm_alias_ldouble.
26120 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
26121 <libm-alias-ldouble.h>.
26122 (totalordermagl): Define using libm_alias_ldouble.
26123 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
26124 libm_alias_ldouble.
26125 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
26126 libm_alias_ldouble.
26127
26128 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
26129
26130 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
26131 memmove_falkor.
26132 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
26133 (__libc_ifunc_impl_list): Likewise.
26134 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
26135 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
26136
26137 * benchtests/bench-memmove-walk.c: New file.
26138 * benchtests/Makefile (string-benchset): Add it.
26139
26140 * benchtests/bench-memset-walk.c: New file.
26141 * benchtests/Makefile (string-benchset): Add it.
26142
26143 * benchtests/bench-memcpy-walk.c: New file.
26144 * benchtests/Makefile (string-benchset): Add it.
26145
26146 2017-10-05 Florian Weimer <fweimer@redhat.com>
26147
26148 nscd: Eliminate compilation time dependency in the build output.
26149 * nscd/nscd_stat.c (STATDATA_VERSION)
26150 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
26151 (STATDATA_VERSION_FULL): New macro definitions.
26152 (compilation): Remove.
26153 (struct statdata): Adjust version member.
26154 (send_stats): Set version from STATDATA_VERSION_FULL.
26155 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
26156
26157 2017-10-05 Joseph Myers <joseph@codesourcery.com>
26158
26159 * configure.ac (--enable-add-ons): Remove option.
26160 (machine): Do not mention add-ons in comment.
26161 (LIBC_PRECONFIGURE): Likewise.
26162 (add_ons): Remove variable and sanity checks and logic to locate
26163 add-ons.
26164 (add_ons_automatic): Remove variable.
26165 (configured_add_ons): Likewise.
26166 (add_ons_sfx): Likewise.
26167 (add_ons_pfx): Likewise.
26168 (add_on_subdirs): Likewise.
26169 (sysnames_add_ons): Likewise. Remove loop over add-ons and
26170 consideration of add-ons in Implies handling.
26171 (sysdeps_add_ons): Likewise.
26172 * configure: Regenerated.
26173 * libidn/configure.ac: Remove.
26174 * libidn/configure: Likewise.
26175 * sysdeps/unix/inet/configure.ac: New file.
26176 * sysdeps/unix/inet/configure: New generated file.
26177 * sysdeps/unix/inet/Subdirs: Add libidn.
26178 * Makeconfig (sysdeps-srcdirs): Remove variable.
26179 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
26180 ($(common-objpfx)config.status): Do not depend on add-on files.
26181 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
26182 comment.
26183 (all-subdirs): Do not include $(add-on-subdirs).
26184 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
26185 * config.make.in (add-ons): Remove variable.
26186 (add-on-subdirs): Likewise.
26187 (sysdeps-add-ons): Likewise.
26188 * manual/Makefile (add-chapters): Remove.
26189 ($(objpfx)texis): Do not depend on $(add-chapters).
26190 (nonexamples): Do not handle $(add-chapters).
26191 (examples): Do not handle $(add-ons).
26192 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
26193 libc-texinfo.sh.
26194 * manual/install.texi (Installation): Do not mention add-ons.
26195 (--enable-add-ons): Do not document configure option.
26196 * INSTALL: Regenerated.
26197 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
26198 * manual/maint.texi (Hierarchy Conventions): Do not mention
26199 add-ons.
26200 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
26201 --enable-add-ons.
26202 * scripts/gen-sorted.awk: Do not handle Subdirs files from
26203 add-ons.
26204 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
26205 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
26206
26207 2017-10-05 Andreas Schwab <schwab@suse.de>
26208
26209 [BZ #15142]
26210 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
26211 (_IO_flush_all_lockp): Always lock list_all_lock.
26212 (_IO_flush_all_linebuffered): Likewise.
26213 (_IO_unbuffer_all): Likewise.
26214
26215 2017-10-05 Florian Weimer <fweimer@redhat.com>
26216
26217 [BZ #15436]
26218 Do not flush stdio streams on abort.
26219 * stdlib/abort.c (fflush): Remove macro definition.
26220 (abort): Remove stages related to stdio flushing.
26221
26222 2017-10-05 Florian Weimer <fweimer@redhat.com>
26223
26224 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
26225
26226 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
26227
26228 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
26229
26230 2017-10-05 Florian Weimer <fweimer@redhat.com>
26231
26232 * support/support_format_hostent.c (support_format_hostent): Add
26233 more error information for NETDB_INTERNAL.
26234
26235 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
26236
26237 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
26238 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
26239 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
26240 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
26241 AC_DEFINE if multi-arch is enabled.
26242 * sysdeps/i386/configure: Regenerated.
26243
26244 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
26245
26246 * Makeconfig (+link-static-before-libc): Use
26247 $(DEFAULT-LDFLAGS-$(@F)).
26248 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
26249 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
26250 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
26251
26252 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
26253
26254 * elf/Makefile (tests): Add tst-main1.
26255 (modules-names): Add tst-main1mod.
26256 ($(objpfx)tst-main1): New.
26257 (CRT-tst-main1): Likewise.
26258 (LDFLAGS-tst-main1): Likewise.
26259 (LDLIBS-tst-main1): Likewise.
26260 (tst-main1mod.so-no-z-defs): Likewise.
26261 * elf/tst-main1.c: New file.
26262 * elf/tst-main1mod.c: Likewise.
26263
26264 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
26265
26266 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
26267
26268 2017-10-04 Joseph Myers <joseph@codesourcery.com>
26269
26270 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
26271 (fma): Define using libm_alias_double.
26272 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
26273 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
26274 <math_ldbl_opt.h>.
26275 (fmal): Do not define as compat symbol here.
26276 * sysdeps/alpha/fpu/s_fma.c: New file.
26277
26278 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
26279
26280 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
26281
26282 2017-10-04 Joseph Myers <joseph@codesourcery.com>
26283
26284 [BZ #22229]
26285 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
26286 <math_ldbl_opt.h>
26287 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
26288 and libc.
26289 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
26290 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
26291 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
26292 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
26293 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
26294 Include <math_ldbl_opt.h>
26295 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
26296 and libc.
26297 (compat_symbol): Undefine and redefine.
26298 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
26299 <math_ldbl_opt.h>
26300 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
26301 (compat_symbol): Undefine and redefine.
26302 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
26303 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
26304 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
26305 GLIBC_2_1 for libm.
26306 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
26307 GLIBC_2.0 copysignl symbol.
26308 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
26309 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
26310
26311 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
26312
26313 2017-10-04 Florian Weimer <fweimer@redhat.com>
26314
26315 * scripts/check-local-headers.sh: Ignore nspr4 header file
26316 directory in addition to nspr.
26317
26318 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
26319
26320 [BZ #17956]
26321 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
26322 * configure: Regenerate.
26323 * crypt/Makefile (nss-cpp-flags): New variable.
26324 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
26325 (CPPFLAGS-md5-crypt.c): Use it.
26326 * scripts/check-local-headers.sh: Ignore nspr header file
26327 directory.
26328
26329 2017-10-04 Andreas Schwab <schwab@suse.de>
26330
26331 * nis/Makefile (services): Remove compat.
26332 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
26333 ($(objpfx)libnss_compat.so): Remove rule.
26334 * nis/Versions (libnss_compat): Remove.
26335 * nss/Makefile (services): Add compat.
26336 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
26337 * nss/Versions (libnss_compat): Define.
26338 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
26339 Don't include <rpc/types.h>. Replace bool_t by bool.
26340 * nss/nss_compat/compat-initgroups.c: Likewise.
26341 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
26342 instead of <rpcsrv/ypclnt.h>.
26343 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
26344 yp_get_default_domain.
26345 * nss/nss_compat/compat-pwd.c: Likewise.
26346 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
26347 yp_get_default_domain.
26348 * nss/nss_compat/nisdomain.c: New file.
26349 * nss/nss_compat/nisdomain.h: Likewise.
26350
26351 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
26352
26353 [BZ #22244]
26354 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
26355 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
26356
26357 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
26358
26359 [BZ #22243]
26360 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
26361 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
26362
26363 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26364
26365 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
26366 "movl main@GOTOFF(%ebx), %eax".
26367
26368 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26369
26370 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
26371 allow undefined _DYNAMIC in PIE libc.a.
26372 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
26373 Likewse.
26374
26375 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26376
26377 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
26378 check _DYNAMIC.
26379
26380 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26381
26382 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
26383 check _DYNAMIC.
26384
26385 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26386
26387 * math/test-math-iscanonical.cc (error): Replace bool with int.
26388
26389 2017-10-03 Joseph Myers <joseph@codesourcery.com>
26390
26391 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
26392 (modf): Define using libm_alias_double, only if [!__modf].
26393 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
26394 <libm-alias-double.h>.
26395 (modf): Define using libm_alias_double, only if [!__modf].
26396 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
26397 compat symbol here.
26398 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
26399 (weak_alias): Do not undefine and redefine.
26400 (strong_alias): Likewise.
26401 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
26402 (weak_alias): Likewise.
26403 (strong_alias): Likewise.
26404
26405 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
26406 (logb): Define using libm_alias_double, only if [!__logb].
26407 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
26408 <libm-alias-double.h>.
26409 (logb): Define using libm_alias_double, only if [!__logb].
26410 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
26411 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
26412 (weak_alias): Do not undefine and redefine.
26413 (strong_alias): Likewise.
26414 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
26415 (weak_alias): Likewise.
26416 (strong_alias): Likewise.
26417
26418 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26419
26420 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
26421 Check SHARED instead PIC.
26422
26423 2017-10-03 Joseph Myers <joseph@codesourcery.com>
26424
26425 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
26426 [!__fmaf] (fmaf): Define using libm_alias_float.
26427
26428 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
26429 (frexp): Define using libm_alias_double.
26430 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
26431 <libm-alias-double.h>.
26432 (frexp): Define using libm_alias_double.
26433 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
26434 compat symbol here.
26435
26436 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26437
26438 [BZ #22235]
26439 * math/math.h: Trivial fix for unbalanced parentheses in comment.
26440 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
26441 (CFLAGS-test-math-iscanonical.cc): New variable.
26442 * math/test-math-iscanonical.cc: New file.
26443 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
26444 Provide a C++ implementation based on function overloading,
26445 rather than using __MATH_TG, which uses C-only builtins.
26446 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
26447 Likewise.
26448 * sysdeps/powerpc/powerpc64le/Makefile
26449 (CFLAGS-test-math-iscanonical.cc): New variable.
26450
26451 2017-10-03 Joseph Myers <joseph@codesourcery.com>
26452
26453 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
26454 (ceil): Define using libm_alias_double.
26455 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
26456 (floor): Define using libm_alias_double.
26457 * sysdeps/ieee754/dbl-64/s_llround.c: Include
26458 <libm-alias-double.h>.
26459 (llround): Define using libm_alias_double.
26460 * sysdeps/ieee754/dbl-64/s_lround.c: Include
26461 <libm-alias-double.h>.
26462 (lround): Define using libm_alias_double.
26463 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
26464 <libm-alias-double.h>.
26465 (nearbyint): Define using libm_alias_double.
26466 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
26467 <libm-alias-double.h>.
26468 (remquo): Define using libm_alias_double.
26469 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
26470 (rint): Define using libm_alias_double.
26471 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
26472 (round): Define using libm_alias_double.
26473 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
26474 (trunc): Define using libm_alias_double.
26475 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
26476 <libm-alias-double.h>.
26477 (ceil): Define using libm_alias_double.
26478 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
26479 <libm-alias-double.h>.
26480 (floor): Define using libm_alias_double.
26481 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
26482 <libm-alias-double.h>.
26483 (llround): Define using libm_alias_double.
26484 [_LP64] (lround): Likewise.
26485 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
26486 <libm-alias-double.h>.
26487 [!_LP64] (lround): Define using libm_alias_double.
26488 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
26489 <libm-alias-double.h>.
26490 (nearbyint): Define using libm_alias_double.
26491 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
26492 <libm-alias-double.h>.
26493 (remquo): Define using libm_alias_double.
26494 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
26495 <libm-alias-double.h>.
26496 (rint): Define using libm_alias_double.
26497 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
26498 <libm-alias-double.h>.
26499 (round): Define using libm_alias_double.
26500 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
26501 <libm-alias-double.h>.
26502 (trunc): Define using libm_alias_double.
26503 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
26504 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
26505 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
26506 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
26507 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
26508 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
26509 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
26510 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
26511 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
26512
26513 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
26514
26515 * math/w_remainder.c: New file.
26516 * math/w_remainderf.c: New file.
26517 * math/w_remainderl.c: New file.
26518
26519 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26520
26521 * elf/rtld.c (BOOTSTRAP_MAP): New.
26522 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
26523 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26524 Likewise.
26525 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26526 Likewise.
26527 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26528 Likewise.
26529
26530 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
26531
26532 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
26533 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
26534 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
26535 rtld_hidden_data_ver): Define to empty.
26536 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
26537 __assert_perror_fail): Likewise.
26538 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26539 (__rewinddir): Likewise.
26540 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26541 (__profile_frequency): Likewise.
26542 * include/setjmp.h (__sigsetjmp): Likewise.
26543 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
26544 __libc_sigaction): Likewise.
26545 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
26546 not set hidden attribute.
26547 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
26548 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
26549 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
26550 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
26551 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
26552 __fxstatat64): Likewise.
26553 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26554 (__uname): Likewise.
26555 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26556 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
26557 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
26558 (NO_RTLD_HIDDEN): Set.
26559 * sysdeps/mach/hurd/configure: Refresh.
26560 * config.h.in: Refresh.
26561
26562 2017-10-02 Joseph Myers <joseph@codesourcery.com>
26563
26564 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
26565 (atan): Define using libm_alias_double.
26566 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
26567 (tan): Define using libm_alias_double.
26568 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
26569 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
26570
26571 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
26572 define as weak alias of __atan. Do not define any aliases if
26573 [__atan].
26574 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
26575 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
26576 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
26577 as weak alias of __tan. Do not define any aliases if [__tan].
26578 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
26579 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
26580 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
26581 __atan.
26582 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
26583 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
26584 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
26585 and define as weak alias of __atan.
26586 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
26587 __atan.
26588 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
26589 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
26590 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
26591 define as weak alias of __tan.
26592
26593 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26594
26595 * math/w_lgamma.c: New file.
26596 * math/w_lgammaf.c: New file.
26597 * math/w_lgammal.c: New file.
26598
26599 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26600
26601 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
26602 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
26603 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
26604 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
26605 * sysdeps/ieee754/flt-32/w_logf.c: New file.
26606 * sysdeps/ieee754/flt-32/w_powf.c: New file.
26607 * sysdeps/i386/fpu/w_log2f.c: New file.
26608 * sysdeps/i386/fpu/w_logf.c: New file.
26609 * sysdeps/i386/fpu/w_powf.c: New file.
26610 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
26611 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
26612 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
26613
26614 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26615 H.J. Lu <hongjiu.lu@intel.com>
26616
26617 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
26618 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
26619 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
26620 * sysdeps/ieee754/flt-32/w_expf.c: New file.
26621 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
26622 the new expf code.
26623 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
26624 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
26625 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
26626 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
26627 * sysdeps/i386/fpu/w_exp2f.c: New file.
26628 * sysdeps/i386/fpu/w_expf.c: New file.
26629 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
26630 * sysdeps/x86_64/fpu/w_expf.c: New file.
26631
26632 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26633
26634 * math/Versions (logf): New libm symbol at GLIBC_2.27.
26635 (log2f): Likewise.
26636 (powf): Likewise.
26637 * math/w_log2f.c: New file.
26638 * math/w_logf.c: New file.
26639 * math/w_powf.c: New file.
26640 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
26641 * math/w_logf_compat.c (__logf_compat): Likewise.
26642 * math/w_powf_compat.c (__powf_compat): Likewise.
26643 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
26644 * sysdeps/ia64/fpu/e_logf.S: Likewise.
26645 * sysdeps/ia64/fpu/e_powf.S: Likewise.
26646 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
26647 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26648 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
26649 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
26650 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
26651 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
26652 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
26653 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
26654 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
26655 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
26656 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26657 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
26658 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
26659 Likewise.
26660 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
26661 Likewise.
26662 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
26663 Likewise.
26664 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
26665 Likewise.
26666 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26667 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26668 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
26669 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26670 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26671 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
26672 Likewise.
26673 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
26674 Likewise.
26675 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
26676 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
26677 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
26678
26679 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26680
26681 * sysdeps/powerpc/powerpc64/multiarch/Makefile
26682 (sysdep_routines): Add memrchr_power8.
26683 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
26684 (memrchr): Add __memrchr_power8 to list of memrchr functions.
26685 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
26686 New file.
26687 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
26688 (memrchr): Add __memrchr_power8 to ifunc list.
26689 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
26690
26691 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26692
26693 [BZ #18822]
26694 * sysdeps/unix/sysv/linux/posix_fadvise64.c
26695 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
26696 libc_hidden_def.
26697 * sysdeps/unix/sysv/linux/posix_fallocate64.c
26698 (__posix_fallocate64_l64): Likewise.
26699
26700 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26701
26702 [BZ #18822]
26703 * sysdeps/unix/sysv/linux/sched_setaffinity.c
26704 (__sched_setaffinity_new): Add libc_hidden_proto and
26705 libc_hidden_def.
26706
26707 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26708
26709 [BZ #18822]
26710 * include/glob.h (__glob64): Add libc_hidden_proto.
26711 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
26712 libc_hidden_def.
26713
26714 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26715
26716 [BZ #18822]
26717 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
26718 attribute_hidden.
26719
26720 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26721
26722 [BZ #18822]
26723 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
26724
26725 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26726
26727 [BZ #18822]
26728 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
26729 libc_hidden_def.
26730
26731 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26732
26733 [BZ #18822]
26734 * csu/version.c (__libc_print_version): Add attribute_hidden.
26735
26736 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26737
26738 [BZ #18822]
26739 * include/libc-internal.h (__init_misc): Add attribute_hidden.
26740
26741 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26742
26743 [BZ #18822]
26744 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
26745
26746 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26747
26748 [BZ #18822]
26749 * nscd/nscd_helper.c (__nis_hash): New prototype.
26750
26751 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26752
26753 [BZ #18822]
26754 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
26755 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
26756 libc_hidden_def.
26757 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
26758 * termios/tcgetattr.c (__tcgetattr): Likewise.
26759
26760 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26761
26762 [BZ #18822]
26763 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
26764 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
26765 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
26766 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
26767 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
26768
26769 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26770
26771 [BZ #18822]
26772 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
26773
26774 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26775
26776 [BZ #18822]
26777 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
26778 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
26779
26780 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26781
26782 [BZ #18822]
26783 * intl/hash-string.h (__hash_string): Add attribute_hidden.
26784
26785 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26786
26787 [BZ #18822]
26788 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
26789 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
26790
26791 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26792
26793 [BZ #18822]
26794 * include/ifreq.h: New file.
26795 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
26796 (__ifreq): Likewise.
26797 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
26798 (__ifreq): Likewise.
26799
26800 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26801
26802 [BZ #18822]
26803 * include/idna.h: New file.
26804 * inet/getnameinfo.c: Include <idna.h> instead of
26805 <libidn/idna.h>.
26806 (__idna_to_unicode_lzlz): Removed.
26807 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
26808 <libidn/idna.h>.
26809 (__idna_to_ascii_lz): Removed.
26810 (__idna_to_unicode_lzlz): Likewise.
26811
26812 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26813
26814 [BZ #18822]
26815 * include/plural-exp.h: New file.
26816 * intl/plural-exp.c: Include <plural-exp.h> instead of
26817 "plural-exp.h".
26818
26819 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26820
26821 [BZ #18822]
26822 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
26823 "getsourcefilter.h".
26824 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
26825 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
26826 "getsourcefilter.h".
26827 (__get_sol): Removed.
26828
26829 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26830
26831 [BZ #18822]
26832 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
26833 to ...
26834 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
26835
26836 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26837
26838 [BZ #18822]
26839 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
26840 attribute_hidden.
26841
26842 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26843
26844 [BZ #18822]
26845 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
26846
26847 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26848
26849 [BZ #18822]
26850 * include/search.h (__tdestroy): Add libc_hidden_proto.
26851 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
26852
26853 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26854
26855 [BZ #18822]
26856 * include/assert.h (__assert_fail_base): Add attribute_hidden.
26857
26858 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26859
26860 [BZ #18822]
26861 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
26862 attribute_hidden.
26863
26864 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26865
26866 [BZ #18822]
26867 * include/signal.h (__kill): Add libc_hidden_proto.
26868 (__sigblock): Likewise.
26869 (__sigprocmask): Likewise.
26870 (__sigaltstack): Likewise.
26871 * signal/kill.c (__kill): Add libc_hidden_def.
26872 * signal/sigblock.c (__sigblock): Likewise.
26873 * signal/sigprocmask.c (__sigprocmask): Likewise.
26874 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
26875 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
26876 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
26877 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
26878 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
26879 Likewise.
26880 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
26881 Likewise.
26882 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
26883 (__sigprocmask): Likewise.
26884 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
26885 Likewise.
26886 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
26887 (__sigprocmask): Likewise.
26888 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
26889 Likewise.
26890
26891 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26892
26893 [BZ #18822]
26894 * include/string.h (__strsep): Add libc_hidden_proto.
26895 * string/strsep.c (__strsep): Add libc_hidden_def.
26896
26897 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26898
26899 [BZ #18822]
26900 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
26901 attribute_hidden.
26902 (__spawni): Likewise.
26903
26904 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26905
26906 [BZ #18822]
26907 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
26908 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
26909 libc_hidden_def.
26910
26911 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26912
26913 [BZ #18822]
26914 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
26915
26916 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26917
26918 [BZ #18822]
26919 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
26920 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
26921 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
26922 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
26923 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
26924 Likewise.
26925 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
26926 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
26927
26928 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26929
26930 [BZ #18822]
26931 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
26932 (__dcigettext): Likewise.
26933
26934 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26935
26936 [BZ #18822]
26937 * include/sys/sysinfo.h (__get_nprocs_conf): Add
26938 libc_hidden_proto.
26939 (__get_nprocs): Likewise.
26940 (__get_phys_pages): Likewise.
26941 (__get_avphys_pages): Likewise.
26942 (__get_child_max): Add attribute_hidden.
26943 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
26944 (__get_nprocs): Likewise.
26945 (__get_phys_pages): Likewise.
26946 (__get_avphys_pages): Likewise.
26947 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
26948 libc_hidden_def.
26949 (__get_nprocs): Likewise.
26950 (__get_phys_pages): Likewise.
26951 (__get_avphys_pages): Likewise.
26952 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
26953 libc_hidden_def.
26954 (__get_nprocs_conf): Likewise.
26955 (__get_phys_pages): Likewise.
26956 (__get_avphys_pages): Likewise.
26957
26958 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26959
26960 [BZ #18822]
26961 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
26962 attribute_hidden.
26963 (__netlink_close): Likewise.
26964 (__netlink_free_handle): Likewise.
26965 (__netlink_request): Likewise.
26966
26967 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26968
26969 [BZ #18822]
26970 * include/rpc/rpc.h (__rpc_thread_variables): Add
26971 attribute_hidden.
26972 (__rpc_thread_svc_cleanup): Likewise.
26973 (__rpc_thread_clnt_cleanup): Likewise.
26974 (__rpc_thread_key_cleanup): Likewise.
26975
26976 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26977
26978 [BZ #18822]
26979 * include/sys/uio.h (__readv): Add libc_hidden_proto.
26980 (__writev): Likewise.
26981 * misc/readv.c (__readv): Add libc_hidden_def.
26982 * misc/writev.c (__writev): Likewise.
26983 * sysdeps/posix/readv.c (__readv): Likewise.
26984 * sysdeps/posix/writev.c (__writev): Likewise.
26985 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
26986 (__readv): Likewise.
26987 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
26988 (__writev): Likewise.
26989
26990 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26991
26992 [BZ #18822]
26993 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
26994 (__regcomp): Add libc_hidden_proto.
26995 (__regexec): Likewise.
26996 (__regfree): Likewise.
26997 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
26998 (__regfree): Likewise.
26999 * posix/regexec.c (__regexec): Likewise.
27000
27001 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27002
27003 [BZ #18822]
27004 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
27005 (__getutent): Likewise.
27006 (__getutid): Likewise.
27007 (__getutline): Likewise.
27008 (__pututline): Likewise.
27009 (__getutent_r): Likewise.
27010 (__getutid_r): Likewise.
27011 (__getutline_r): Likewise.
27012 (__utmpname): Add attribute_hidden.
27013 (__setutent): Likewise.
27014 (__endutent): Likewise.
27015 * login/getutent.c (__getutent): Add libc_hidden_def.
27016 * login/getutent_r.c (__getutent_r): Likewise.
27017 (__pututline): Likewise.
27018 * login/getutid.c (__getutid): Likewise.
27019 * login/getutid_r.c (__getutid_r): Likewise.
27020 * login/getutline.c (__getutline): Likewise.
27021 * login/getutline_r.c (__getutline_r): Likewise.
27022 * login/updwtmp.c (__updwtmp): Likewise.
27023
27024 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27025
27026 [BZ #18822]
27027 * include/dirent.h (__opendir): Always add attribute_hidden.
27028 (__fdopendir): Likewise.
27029 (__closedir): Likewise.
27030 (__readdir): Likewise.
27031 (__readdir64): Add libc_hidden_proto.
27032 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
27033 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
27034 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
27035 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
27036 New alias.
27037
27038 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27039
27040 [BZ #18822]
27041 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
27042 * include/netdb.h (__gethostbyaddr_r): Likewise.
27043 (__gethostbyname_r): Likewise.
27044 (__gethostbyname2_r): Likewise.
27045 (__getnetbyaddr_r): Likewise.
27046 (__getnetbyname_r): Likewise.
27047 (__getservbyname_r): Likewise.
27048 (__getservbyport_r): Likewise.
27049 (__getprotobyname_r): Likewise.
27050 (__getprotobynumber_r): Likewise.
27051 (__getnetgrent_r): Likewise.
27052 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
27053 (__getrpcbynumber_r): Likewise.
27054 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
27055
27056 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27057
27058 [BZ #18822]
27059 * include/stdio.h (__fcloseall): Add attribute_hidden.
27060 (__getline): Likewise.
27061 (__path_search): Likewise.
27062 (__gen_tempname): Likewise.
27063 (__libc_message): Likewise.
27064 (__flockfile): Likewise.
27065 (__funlockfile): Likewise.
27066 (__fxprintf): Likewise.
27067 (__fxprintf_nocancel): Likewise.
27068
27069 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27070
27071 [BZ #18822]
27072 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
27073 (__sgetsgent_r): Likewise.
27074
27075 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27076
27077 [BZ #18822]
27078 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
27079 (__statfs64): Likewise.
27080 (__fstatfs64): Likewise.
27081 * include/sys/statvfs.h (__statvfs64): Likewise.
27082 (__fstatvfs64): Likewise.
27083 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
27084 (__statfs_filesize_max): Likewise.
27085 (__statfs_symlinks): Likewise.
27086 (__statfs_chown_restricted): Likewise.
27087
27088 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27089
27090 [BZ #18822]
27091 * include/time.h (__tzstring): Add attribute_hidden.
27092 (__tzfile_read): Likewise.
27093 (__tzfile_compute): Likewise.
27094 (__tzfile_default): Likewise.
27095 (__tzset_parse_tz): Likewise.
27096 (__offtime): Likewise.
27097 (__asctime_r): Likewise.
27098 (__tzset): Likewise.
27099 (__tz_convert): Likewise.
27100 (__getdate_r): Likewise.
27101 (__getclktck): Likewise.
27102
27103 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27104
27105 [BZ #18822]
27106 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
27107 (__nscd_unmap): Likewise.
27108 (__nscd_cache_search): Likewise.
27109 (__nscd_get_nl_timestamp): Likewise.
27110 (__nscd_getpwnam_r): Likewise.
27111 (__nscd_getpwuid_r): Likewise.
27112 (__nscd_getgrnam_r): Likewise.
27113 (__nscd_getgrgid_r): Likewise.
27114 (__nscd_gethostbyname_r): Likewise.
27115 (__nscd_gethostbyname2_r): Likewise.
27116 (__nscd_gethostbyaddr_r): Likewise.
27117 (__nscd_getai): Likewise.
27118 (__nscd_getgrouplist): Likewise.
27119 (__nscd_getservbyname_r): Likewise.
27120 (__nscd_getservbyport_r): Likewise.
27121 (__nscd_innetgr): Likewise.
27122 (__nscd_setnetgrent): Likewise.
27123
27124 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27125
27126 [BZ #18822]
27127 * include/gmp.h: Declare internal functions only if _ISOMAC is
27128 undefined.
27129 (__mpn_extract_double): Add attribute_hidden.
27130 (__mpn_extract_long_double): Likewise.
27131 (__mpn_extract_float128): Likewise.
27132 (__mpn_construct_float): Likewise.
27133 (__mpn_construct_double): Likewise.
27134 (__mpn_construct_long_double): Likewise.
27135 (__mpn_construct_float128): Likewise.
27136 (mpn_add_1): Likewise.
27137 (mpn_addmul_1): Likewise.
27138 (mpn_add_n): Likewise.
27139 (mpn_cmp): Likewise.
27140 (mpn_divrem): Likewise.
27141 (mpn_lshift): Likewise.
27142 (mpn_mul): Likewise.
27143 (mpn_mul_1): Likewise.
27144 (mpn_rshift): Likewise.
27145 (mpn_sub_1): Likewise.
27146 (mpn_submul_1): Likewise.
27147 (mpn_sub_n): Likewise.
27148
27149 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27150
27151 [BZ #18822]
27152 * include/wchar.h (__wcsnlen): Add attribute_hidden.
27153 (__wcscat): Likewise.
27154 (__btowc): Likewise.
27155 (__wcrtomb): Likewise.
27156 (__mbsrtowcs): Likewise.
27157 (__wcsrtombs): Likewise.
27158 (__mbsnrtowcs): Likewise.
27159 (__wcsnrtombs): Likewise.
27160 (__wcsncpy): Likewise.
27161 (__wcpncpy): Likewise.
27162 (__wmemcpy): Likewise.
27163 (__wmempcpy): Likewise.
27164 (__wmemmove): Likewise.
27165 (__wcschrnul): Likewise.
27166 (__vfwscanf): Likewise.
27167 (__vswprintf): Likewise.
27168 (__fwprintf): Likewise.
27169 (__vfwprintf): Likewise.
27170
27171 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27172
27173 [BZ #18822]
27174 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
27175 (__getgrgid_r): Likewise.
27176 (__getgrnam_r): Likewise.
27177 * include/pwd.h (__getpwuid_r): Likewise.
27178 (__getpwnam_r): Likewise.
27179 (__fgetpwent_r): Likewise.
27180 * include/shadow.h (__getspnam_r): Likewise.
27181 (__sgetspent_r): Likewise.
27182 (__fgetspent_r): Likewise.
27183
27184 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27185
27186 [BZ #18822]
27187 * include/unistd.h (__access): Add attribute_hidden.
27188 (__lseek64): Likewise.
27189 (__libc_pread64): Likewise.
27190 (__pipe2): Likewise.
27191 (__sleep): Likewise.
27192 (__chdir): Likewise.
27193 (__fchdir): Likewise.
27194 (__getcwd): Likewise.
27195 (__rmdir): Likewise.
27196 (__execvpe): Likewise.
27197 (__execve): Likewise.
27198 (__setsid): Likewise.
27199 (__getuid): Likewise.
27200 (__geteuid): Likewise.
27201 (__getgid): Likewise.
27202 (__getegid): Likewise.
27203 (__getgroups): Likewise.
27204 (__group_member): Likewise.
27205 (__ttyname_r): Likewise.
27206 (__isatty): Likewise.
27207 (__readlink): Likewise.
27208 (__unlink): Likewise.
27209 (__gethostname): Likewise.
27210 (__profil): Likewise.
27211 (__getdtablesize): Likewise.
27212 (__brk): Likewise.
27213 (__ftruncate): Likewise.
27214 (__ftruncate64): Likewise.
27215
27216 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27217
27218 [BZ #18822]
27219 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
27220 * argp/argp-fs-xinl.c: Likewise.
27221 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
27222 * argp/argp-parse.c: Include <argp.h>.
27223 * argp/argp-xinl.c: Likewise.
27224 * include/argp-fmtstream.h: New file.
27225 * include/argp.h (__argp_error): Add attribute_hidden.
27226 (__argp_failure): Likewise.
27227 (__argp_input): Likewise.
27228 (__argp_state_help): Likewise.
27229
27230 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27231
27232 [BZ #18822]
27233 * include/wchar.h (____wcstof_l_internal): New prototype.
27234 (____wcstod_l_internal): Likewise.
27235 (____wcstold_l_internal): Likewise.
27236 (____wcstol_l_internal): Likewise.
27237 (____wcstoul_l_internal): Likewise.
27238 (____wcstoll_l_internal): Likewise.
27239 (____wcstoull_l_internal): Likewise.
27240 (____wcstof128_l_internal): Likewise.
27241 * sysdeps/ieee754/float128/wcstof128.c
27242 (____wcstof128_l_internal): Removed.
27243 * sysdeps/ieee754/float128/wcstof128_l.c
27244 (____wcstof128_l_internal): Likewise.
27245 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
27246 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
27247 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
27248 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
27249 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
27250 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
27251 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
27252 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
27253 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
27254 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
27255
27256 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27257
27258 [BZ #18822]
27259 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
27260 instead of <sys/statvfs.h>.
27261 (__internal_statvfs): Removed.
27262 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
27263 instead of <sys/statvfs.h>.
27264 (__internal_statvfs64): Removed.
27265 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
27266 "internal_statvfs.h" instead of <sys/statvfs.h>.
27267 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
27268 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
27269 instead of <sys/statvfs.h>.
27270 (__internal_statvfs): Removed.
27271 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
27272 instead of <sys/statvfs.h>.
27273 (__internal_statvfs64): Removed.
27274
27275 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27276
27277 [BZ #18822]
27278 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
27279 (__gconv_close): Likewise.
27280 (__gconv): Likewise.
27281 (__gconv_find_transform): Likewise.
27282 (__gconv_lookup_cache): Likewise.
27283 (__gconv_compare_alias_cache): Likewise.
27284 (__gconv_load_cache): Likewise.
27285 (__gconv_get_path): Likewise.
27286 (__gconv_close_transform): Likewise.
27287 (__gconv_release_cache): Likewise.
27288 (__gconv_find_shlib): Likewise.
27289 (__gconv_release_shlib): Likewise.
27290 (__gconv_get_builtin_trans): Likewise.
27291 (__gconv_compare_alias): Likewise.
27292 * include/dlfcn.h (_dlerror_run): Likewise.
27293 * include/stdio.h (__fortify_fail_abort): Likewise.
27294 * include/time.h (__tz_compute): Likewise.
27295 (__strptime_internal): Likewise.
27296 * intl/gettextP.h (_nl_find_domain): Likewise.
27297 (_nl_load_domain): Likewise.
27298 (_nl_find_msg): Likewise.
27299 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
27300 (EXTRACT_PLURAL_EXPRESSION): Likewise.
27301 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
27302 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
27303 (__gai_find_request): Likewise.
27304 (__gai_remove_request): Likewise.
27305 (__gai_notify): Likewise.
27306 (__gai_notify_only): Likewise.
27307 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
27308 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
27309 (_dl_non_dynamic_init): Likewise.
27310 (_dl_aux_init): Likewise.
27311 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
27312 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
27313 Likewise.
27314 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
27315 (__wcsmbs_clone_conv): Likewise.
27316 (__wcsmbs_named_conv): Likewise.
27317
27318 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27319
27320 [BZ #18822]
27321 * include/stdlib.h (__random): Add attribute_hidden.
27322 (__random_r): Likewise.
27323 (__srandom_r): Likewise.
27324 (__initstate_r): Likewise.
27325 (__setstate_r): Likewise.
27326 (__erand48_r): Likewise.
27327 (__nrand48_r): Likewise.
27328 (__jrand48_r): Likewise.
27329 (__srand48_r): Likewise.
27330 (__seed48_r): Likewise.
27331 (__lcong48_r): Likewise.
27332 (__drand48_iterate): Likewise.
27333 (__setenv): Likewise.
27334 (__unsetenv): Likewise.
27335 (__clearenv): Likewise.
27336 (__ptsname_r): Likewise.
27337 (__posix_openpt): Likewise.
27338 (__add_to_environ): Likewise.
27339 (__realpath): Add libc_hidden_proto.
27340 (__ecvt_r): Likewise.
27341 (__fcvt_r): Likewise.
27342 (__qecvt_r): Likewise.
27343 (__qfcvt_r): Likewise.
27344 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
27345 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
27346
27347 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27348
27349 [BZ #18822]
27350 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
27351 * include/time.h (__mktime_internal): Likewise.
27352 * libio/iolibio.h (__fopen_internal): Likewise.
27353
27354 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
27355
27356 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
27357 pointer in frame.
27358 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
27359 Correct offset used to restore PIC register.
27360
27361 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
27362
27363 [BZ libc/22165]
27364 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
27365 code to load address of __getcontext_ret when generating PIC code.
27366
27367 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
27368
27369 * elf/Makefile (tests-static-internal): Add
27370 tst-tls1-static-non-pie.
27371 (LDFLAGS-tst-tls1-static-non-pie): New.
27372 * elf/tst-tls1-static-non-pie.c: New file.
27373
27374 2017-09-29 Joseph Myers <joseph@codesourcery.com>
27375
27376 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
27377 (asinh): Define using libm_alias_double.
27378 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
27379 (cbrt): Define using libm_alias_double.
27380 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
27381 <libm-alias-double.h>.
27382 (copysign): Define using libm_alias_double.
27383 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
27384 (erf): Define using libm_alias_double.
27385 (erfc): Likewise.
27386 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
27387 (expm1): Define using libm_alias_double.
27388 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
27389 (fabs): Define using libm_alias_double.
27390 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
27391 libm_alias_double.
27392 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
27393 <libm-alias-double.h>.
27394 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
27395 libm_alias_double.
27396 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
27397 <libm-alias-double.h>.
27398 (getpayload): Define using libm_alias_double.
27399 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
27400 <libm-alias-double.h>.
27401 (llrint): Define using libm_alias_double.
27402 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
27403 (lrint): Define using libm_alias_double.
27404 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
27405 <libm-alias-double.h>.
27406 (nextup): Define using libm_alias_double.
27407 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
27408 <libm-alias-double.h>.
27409 (roundeven): Define using libm_alias_double.
27410 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
27411 libm_alias_double.
27412 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
27413 <libm-alias-double.h>.
27414 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
27415 using libm_alias_double.
27416 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
27417 (cos): Define using libm_alias_double.
27418 (sin): Likewise.
27419 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
27420 <libm-alias-double.h>.
27421 (sincos): Define using libm_alias_double.
27422 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
27423 (tanh): Define using libm_alias_double.
27424 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
27425 <libm-alias-double.h>.
27426 (totalorder): Define using libm_alias_double.
27427 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
27428 <libm-alias-double.h>.
27429 (totalordermag): Define using libm_alias_double.
27430 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
27431 libm_alias_double.
27432 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
27433 libm_alias_double.
27434 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
27435 <libm-alias-double.h>.
27436 (getpayload): Define using libm_alias_double.
27437 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
27438 <libm-alias-double.h>.
27439 (roundeven): Define using libm_alias_double.
27440 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
27441 <libm-alias-double.h>.
27442 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
27443 <libm-alias-double.h>.
27444 (totalorder): Define using libm_alias_double.
27445 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
27446 <libm-alias-double.h>.
27447 (totalordermag): Define using libm_alias_double.
27448 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
27449 libc compat symbol here.
27450 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
27451 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
27452 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
27453 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
27454 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
27455 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
27456 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
27457 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
27458 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
27459 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
27460
27461 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27462
27463 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
27464 _dl_relocate_static_pie instead of _dl_start to compute load
27465 address in static PIE. Return 0 if _DYNAMIC is undefined for
27466 static executable.
27467
27468 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27469
27470 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
27471 _DYNAMIC is undefined for static executable.
27472
27473 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27474
27475 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
27476
27477 2017-09-29 Joseph Myers <joseph@codesourcery.com>
27478
27479 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27480
27481 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
27482
27483 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
27484 (__ieee754_lgamma_r): Use fabs rather than __fabs.
27485 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
27486 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
27487 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
27488 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
27489 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
27490 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
27491 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
27492 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
27493 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
27494 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
27495 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
27496 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
27497 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
27498 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
27499 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
27500
27501 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
27502
27503 * math/bits/cmathcalls.h (cimag): Remove inline.
27504 (creal): Remove inline.
27505 (conj): Remove inline.
27506
27507 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27508
27509 * math/Makefile (type-float-routines): Add e_powf_log2_data.
27510 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
27511 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
27512 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
27513 (issignalingf_inline): Likewise.
27514 (POWF_LOG2_TABLE_BITS): Likewise.
27515 (POWF_LOG2_POLY_ORDER): Likewise.
27516 (POWF_SCALE_BITS): Likewise.
27517 (POWF_SCALE): Likewise.
27518 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
27519 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
27520 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
27521
27522 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27523
27524 * math/Makefile (type-float-routines): Add e_log2f_data.
27525 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
27526 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
27527 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
27528 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
27529 * sysdeps/i386/fpu/e_log2f_data.c: New file.
27530 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
27531 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
27532
27533 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27534
27535 * math/Makefile (type-float-routines): Add e_logf_data.
27536 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
27537 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
27538 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
27539 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
27540 * sysdeps/i386/fpu/e_logf_data.c: New file.
27541 * sysdeps/ia64/fpu/e_logf_data.c: New file.
27542 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
27543
27544 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
27545
27546 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
27547 undefined _DYNAMIC in PIE libc.a.
27548 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
27549 Likewse.
27550
27551 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
27552
27553 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
27554 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
27555 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
27556 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
27557 (__signbit): Remove.
27558 (__signbitl): Remove.
27559 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
27560 (__signbit): Remove.
27561 (__signbitl): Remove.
27562 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
27563 (__signbit): Remove.
27564 (__signbitl): Remove.
27565 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
27566 (__signbit): Remove.
27567 (__signbitl): Remove.
27568 * sysdeps/tile/bits/mathinline.h: Delete file.
27569 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
27570 (__signbit): Remove.
27571 (__signbitl): Remove.
27572
27573 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
27574
27575 * math/math.h: Improve handling of C99 isgreater macros.
27576 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
27577 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
27578 * sysdeps/powerpc/bits/mathinline.h: Likewise.
27579 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
27580 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
27581
27582 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
27583
27584 * sysdeps/aarch64/libm-test-ulps: Update.
27585
27586 2017-09-28 Joseph Myers <joseph@codesourcery.com>
27587
27588 [BZ #22225]
27589 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
27590 math_opt_barrier on argument when doing arithmetic on it.
27591 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
27592 Likewise. Use math_force_eval not math_opt_barrier after
27593 arithmetic.
27594 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
27595 math_opt_barrier on argument when doing arithmetic on it.
27596 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
27597 Likewise.
27598
27599 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
27600
27601 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
27602 libc_hidden_def.
27603 (__freeifaddrs): Likewise.
27604
27605 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
27606
27607 * include/dirent.h (__dirfd): New declaration.
27608 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
27609 alias.
27610 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
27611 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
27612 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
27613 * include/unistd.h (__revoke): New declaration.
27614 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
27615 alias.
27616 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
27617 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
27618 revoke.
27619 * include/dirent.h (__seekdir): New declaration.
27620 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
27621 redefine as weak alias.
27622 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
27623 of seekdir.
27624 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
27625 and use libc_hidden_def on them.
27626 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
27627 them.
27628 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
27629 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
27630 instead of getifaddrs and freeifaddrs.
27631
27632 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
27633
27634 [BZ #18822]
27635 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
27636 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
27637 (__dso_handle): Remove declaration.
27638 * dlfcn/tstatexit.c (__dso_handle): Removed.
27639 (main): Don't check __dso_handle.
27640 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
27641 (main): Don't check __dso_handle.
27642 * include/dso_handle.h: New file.
27643 * malloc/mtrace.c: Include <dso_handle.h>.
27644 (mtrace): Pass __dso_handle directly.
27645 * nptl/pthread_atfork.c: Include <dso_handle.h>.
27646 (__dso_handle): Remove declaration.
27647 (__pthread_atfork): Pass __dso_handle directly.
27648 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
27649 (__dso_handle): Removed.
27650 * posix/wordexp-test.c: Include <dso_handle.h>.
27651 (__dso_handle): Remove declaration.
27652 (__app_register_atfork): Pass __dso_handle directly.
27653 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
27654 (__dso_handle): Remove declaration.
27655 (at_quick_exit): Pass __dso_handle directly.
27656 * stdlib/atexit.c: Include <dso_handle.h>.
27657 (__dso_handle): Remove declaration.
27658 (atexit): Pass __dso_handle directly.
27659 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
27660 (__dso_handle): Removed.
27661
27662 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27663
27664 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
27665 using VDSO.
27666
27667 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
27668
27669 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
27670 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
27671 values to correct default value for given type.
27672
27673 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
27674
27675 [BZ #22101]
27676 * elf/Makefile (tests): Add tst-debug1.
27677 ($(objpfx)tst-debug1): New.
27678 ($(objpfx)tst-debug1.out): Likewise.
27679 ($(objpfx)tst-debug1mod1.so): Likewise.
27680 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
27681 with p_filesz == 0.
27682 * elf/tst-debug1.c: New file.
27683
27684 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27685
27686 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
27687 Define using __ifunc.
27688
27689 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27690
27691 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
27692 exp2f() values.
27693
27694 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27695
27696 [BZ #22156]
27697 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
27698
27699 2017-09-26 Florian Weimer <fweimer@redhat.com>
27700
27701 * resolv/Makefile (tests-internal): Fix typo in comment.
27702
27703 2017-09-26 Florian Weimer <fweimer@redhat.com>
27704
27705 * resolv/nss_dns/dns-host.c: Fix typo in comment.
27706
27707 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27708
27709 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
27710 Use an union instead of a max_align_t array for __space,
27711 so that __space is the same size on all platforms.
27712 * malloc/scratch_buffer_grow_preserve.c
27713 (__libc_scratch_buffer_grow_preserve): Likewise.
27714
27715 [BZ #22183]
27716 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
27717 version to 2.
27718 * posix/Makefile (routines): Add glob-lstat-compat and
27719 glob64-lstat-compat.
27720 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
27721 * posix/glob-lstat-compat.c: New file.
27722 * posix/glob64-lstat-compat.c: Likewise.
27723 * posix/tst-glob_lstat_compat.c: Likewise.
27724 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
27725 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
27726 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
27727 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
27728 Likewise.
27729 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
27730 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
27731 * posix/glob.c (glob_lstat): New function.
27732 (glob): Rename to __glob and add versioned symbol to 2.27.
27733 (glob_in_dir): Use glob_lstat.
27734 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
27735 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
27736 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
27737 2.27.
27738 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
27739 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
27740 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
27741 gl_lstat on glob call.
27742 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
27743 and glob64 symbols.
27744 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27745 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
27746 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
27747 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
27748 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
27749 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
27750 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
27751 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
27752 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
27753 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27754 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27755 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
27756 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
27757 Likewise.
27758 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
27759 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
27760 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27761 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27762 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
27763 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27764 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27765 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
27766 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
27767 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
27768 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
27769 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
27770
27771 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
27772
27773 * configure.ac (AS): Require binutils 2.25 or later.
27774 * configure: Regenerated.
27775
27776 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
27777
27778 [BZ #22207]
27779 * stdlib/test-atexit-race-common.c (do_test): Minimize required
27780 VM size.
27781
27782 2017-09-25 DJ Delorie <dj@redhat.com>
27783
27784 [BZ #22161]
27785 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
27786 resetting timeout.
27787
27788 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
27789
27790 * sysdeps/ieee754/dbl-64/sincos32.h
27791 [SINCCOS32_H]: Remove define.
27792 [SINCOS32_H]: Define.
27793
27794 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27795
27796 * math/Versions (expf): New libm symbol at GLIBC_2.27.
27797 (exp2f): Likewise.
27798 * math/w_exp2f.c: New file.
27799 * math/w_expf.c: New file.
27800 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
27801 * math/w_expf_compat.c (__expf_compat): Likewise.
27802 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
27803 * sysdeps/ia64/fpu/e_expf.S: Likewise.
27804 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
27805 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27806 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
27807 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
27808 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
27809 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
27810 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
27811 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
27812 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
27813 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
27814 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27815 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
27816 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
27817 Likewise.
27818 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
27819 Likewise.
27820 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
27821 Likewise.
27822 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
27823 Likewise.
27824 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27825 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27826 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
27827 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27828 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27829 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
27830 Likewise.
27831 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
27832 Likewise.
27833 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
27834 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
27835 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
27836
27837 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27838
27839 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
27840 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
27841 (roundtoint, converttoint): Likewise.
27842 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
27843 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
27844 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
27845 * sysdeps/ieee754/flt-32/math_config.h: New file.
27846 * sysdeps/ieee754/flt-32/math_errf.c: New file.
27847 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
27848 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
27849 * sysdeps/i386/fpu/math_errf.c: New file.
27850 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
27851 * sysdeps/ia64/fpu/math_errf.c: New file.
27852 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
27853 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
27854
27855 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
27856
27857 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
27858 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
27859 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
27860 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
27861 to make sure that these symbols are defined.
27862 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
27863 of <limits.h>
27864 (__need_NULL): Do not define.
27865 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
27866 alignment.
27867 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
27868 CMGROUP_MAX, cmsgcred): Do not define.
27869 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
27870 NULL.
27871 * bits/socket.h: Likewise.
27872 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
27873 __gettimeofday instead of gettimeofday.
27874 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
27875 instead of settimeofday.
27876
27877 2017-09-22 Joseph Myers <joseph@codesourcery.com>
27878
27879 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
27880 (asinhf): Define using libm_alias_float.
27881 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
27882 (atanf): Define using libm_alias_float.
27883 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
27884 (cbrtf): Define using libm_alias_float.
27885 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
27886 (ceilf): Define using libm_alias_float.
27887 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
27888 <libm-alias-float.h>.
27889 (copysignf): Define using libm_alias_float.
27890 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
27891 (cosf): Define using libm_alias_float.
27892 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
27893 (erff): Define using libm_alias_float.
27894 (erfcf): Likewise.
27895 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
27896 (expm1f): Define using libm_alias_float.
27897 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
27898 (fabsf): Define using libm_alias_float.
27899 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
27900 (floorf): Define using libm_alias_float.
27901 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
27902 (frexpf): Define using libm_alias_float.
27903 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
27904 libm_alias_float.
27905 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
27906 <libm-alias-float.h>.
27907 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
27908 libm_alias_float.
27909 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
27910 <libm-alias-float.h>.
27911 (getpayloadf): Define using libm_alias_float.
27912 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
27913 <libm-alias-float.h>.
27914 (llrintf): Define using libm_alias_float.
27915 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
27916 <libm-alias-float.h>.
27917 (llroundf): Define using libm_alias_float.
27918 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
27919 (logbf): Define using libm_alias_float.
27920 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
27921 (lrintf): Define using libm_alias_float.
27922 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
27923 (lroundf): Define using libm_alias_float.
27924 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
27925 (modff): Define using libm_alias_float.
27926 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
27927 <libm-alias-float.h>.
27928 (nearbyintf): Define using libm_alias_float.
27929 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
27930 <libm-alias-float.h>.
27931 (nextafterf): Define using libm_alias_float.
27932 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
27933 <libm-alias-float.h>.
27934 (nextupf): Define using libm_alias_float.
27935 * sysdeps/ieee754/flt-32/s_remquof.c: Include
27936 <libm-alias-float.h>.
27937 (remquof): Define using libm_alias_float.
27938 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
27939 (rintf): Define using libm_alias_float.
27940 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
27941 <libm-alias-float.h>.
27942 (roundevenf): Define using libm_alias_float.
27943 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
27944 (roundf): Define using libm_alias_float.
27945 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
27946 using libm_alias_float.
27947 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
27948 <libm-alias-float.h>.
27949 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
27950 Define using libm_alias_float.
27951 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
27952 <libm-alias-float.h>.
27953 (sincosf): Define using libm_alias_float.
27954 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
27955 (sinf): Define using libm_alias_float.
27956 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
27957 (tanf): Define using libm_alias_float.
27958 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
27959 (tanhf): Define using libm_alias_float.
27960 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
27961 <libm-alias-float.h>.
27962 (totalorderf): Define using libm_alias_float.
27963 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
27964 <libm-alias-float.h>.
27965 (totalordermagf): Define using libm_alias_float.
27966 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
27967 (truncf): Define using libm_alias_float.
27968 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
27969 libm_alias_float.
27970 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
27971 libm_alias_float.
27972
27973 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27974
27975 [BZ #22146]
27976 math/math.h: Let fpclassify use the builtin in C++ mode, even
27977 when optimazing for size.
27978
27979 2017-09-22 Joseph Myers <joseph@codesourcery.com>
27980
27981 * csu/Makefile (generated): Do not add version-info.h.
27982 (before-compile): Likewise.
27983 (all-Banner-files): Remove variable.
27984 ($(objpfx)version-info.h): Remove rule.
27985 * csu/version.c (banner): Do not include "version-info.h".
27986 * libidn/Banner: Remove.
27987 * manual/contrib.texi (Simon Josefsson): New entry.
27988
27989 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27990
27991 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
27992 Remove conditionals on LDBL_MANT_DIG.
27993 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
27994 (__ieee754_lgammal_r): Likewise.
27995
27996 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27997
27998 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
27999 _Float128 and L().
28000 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
28001 _Float128 and L(). Replace _Float128 with long double and L(x)
28002 with xL, throughout the file.
28003 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
28004 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
28005 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
28006 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
28007
28008 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
28009
28010 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
28011 sysdeps/ieee754/ldbl-128ibm.
28012 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
28013 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
28014 of including it. Keep _Float128 and L() intact. These will be
28015 reviewed by a separate patch.
28016 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
28017 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
28018 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
28019 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
28020
28021 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
28022
28023 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
28024 (__finitef128): Define to __redirect___finitef128.
28025 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
28026 (__isinff128): Define to __redirect___isinff128.
28027 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
28028 (__isnanf128): Define to __redirect___isnanf128.
28029
28030 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
28031
28032 * sysdeps/powerpc/powerpc64le/Makefile
28033 (CFLAGS-tst-strtod-nan-locale.c): New variable.
28034 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
28035
28036 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
28037 Carlos O'Donell <carlos@redhat.com>
28038
28039 [BZ #22180]
28040 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
28041 * stdlib/test-dlclose-exit-race.c: New file.
28042 * stdlib/test-dlclose-exit-race-helper.c: New file.
28043 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
28044
28045 2017-09-21 Joseph Myers <joseph@codesourcery.com>
28046
28047 * crypt/Banner: Remove file.
28048 * nptl/Banner: Likewise.
28049 * resolv/Banner: Likewise.
28050 * soft-fp/Banner: Likewise.
28051 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
28052 ($(objpfx)version.d): Remove dependency on banner.h.
28053 ($(objpfx)version.os): Likewise.
28054 * nptl/version.c (banner): Do not include banner.h.
28055 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
28056 Jelinek and BIND code.
28057
28058 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
28059 Carlos O'Donell <carlos@redhat.com>
28060
28061 * support/xdlfcn.h: New file.
28062 * support/xdlfcn.c: New file.
28063 * support/Makefile (libsupport-routines): Add xdlfcn.
28064 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
28065
28066 2017-09-20 Joseph Myers <joseph@codesourcery.com>
28067
28068 [BZ #20142]
28069 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
28070 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
28071 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
28072 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
28073 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
28074 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
28075 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
28076 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
28077
28078 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
28079 Ricky Zhou <rickyz@google.com>
28080 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
28081
28082 [BZ #14333]
28083 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
28084 Remove atomics.
28085 (__new_exitfn): Fail registration when we finished at_exit processing.
28086 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
28087 * stdlib/on_exit.c (__on_exit): Likewise.
28088 * stdlib/exit.c (__exit_funcs_done): New variable.
28089 (__run_exit_handlers): Use __exit_funcs_lock.
28090 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
28091 declarations.
28092 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
28093 (test-cxa_atexit-race, test-on_exit-race): New tests.
28094 * stdlib/test-atexit-race-common.c: New file.
28095 * stdlib/test-atexit-race.c: New file.
28096 * stdlib/test-at_quick_exit-race.c: New file.
28097 * stdlib/test-cxa_atexit-race.c: New file.
28098 * stdlib/test-on_exit-race.c: New file.
28099
28100 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
28101
28102 * benchtests/Makefile: Add exp2f and log2f benchmarks.
28103 * benchtests/exp2f-inputs: Copy of expf-inputs.
28104 * benchtests/log2f-inputs: Copy of logf-inputs.
28105
28106 2017-09-19 Joseph Myers <joseph@codesourcery.com>
28107
28108 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
28109 Explicitly take address of first element of array arguments in
28110 call to INLINE_SYSCALL.
28111
28112 2017-09-19 Andreas Schwab <schwab@suse.de>
28113
28114 [BZ #22134]
28115 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
28116 execveat first.
28117 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
28118 unimplemented.
28119 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
28120 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
28121 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
28122 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
28123 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
28124 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
28125 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
28126 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
28127 * posix/Makefile (tests): Add tst-fexecve.
28128 * posix/tst-fexecve.c: New file.
28129
28130 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
28131
28132 * benchtests/Makefile: Add logf benchmark.
28133 * benchtests/logf-inputs: Add reduced trace from wrf_r.
28134
28135 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
28136
28137 * benchtests/Makefile: Add expf benchmark.
28138 * benchtests/expf-inputs: Add reduced trace from wrf_r.
28139
28140 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
28141
28142 * csu/Makefile: Add -funwind-tables to libc-start.c.
28143 * debug/Makefile: Add -funwind-tables to backtrace.c.
28144 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
28145 * sysdeps/arm/Makefile: Likewise.
28146 * sysdeps/i386/Makefile: Likewise.
28147 * sysdeps/m68k/Makefile: Likewise.
28148 * sysdeps/mips/Makefile: Likewise.
28149 * sysdeps/nios2/Makefile: Likewise.
28150 * sysdeps/sh/Makefile: Likewise.
28151 * sysdeps/sparc/Makefile: Likewise.
28152
28153 2017-09-19 Joseph Myers <joseph@codesourcery.com>
28154
28155 * benchtests/Makefile (bench-math): Add trunc and truncf.
28156 (CFLAGS-bench-trunc.c): New variable.
28157 (CFLAGS-bench-truncf.c): Likewise.
28158 * benchtests/trunc-inputs: New file.
28159 * benchtests/truncf-inputs: Likewise.
28160
28161 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
28162
28163 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
28164
28165 2017-09-18 Joseph Myers <joseph@codesourcery.com>
28166
28167 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
28168 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
28169 redefine.
28170 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
28171 (exp10l): Define as weak alias.
28172 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
28173 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
28174 and redefine.
28175 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
28176 (remainderl): Define as weak alias.
28177
28178 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
28179 (fmal): Define using libm_alias_ldouble.
28180 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
28181 (acoshl): Define using libm_alias_ldouble.
28182 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
28183 (acosl): Define using libm_alias_ldouble.
28184 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
28185 (asinl): Define using libm_alias_ldouble.
28186 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
28187 (atan2l): Define using libm_alias_ldouble.
28188 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
28189 (atanhl): Define using libm_alias_ldouble.
28190 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
28191 (coshl): Define using libm_alias_ldouble.
28192 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
28193 (exp10l): Define using libm_alias_ldouble.
28194 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
28195 (exp2l): Define using libm_alias_ldouble.
28196 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
28197 (expl): Define using libm_alias_ldouble.
28198 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
28199 (fmodl): Define using libm_alias_ldouble.
28200 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
28201 (hypotl): Define using libm_alias_ldouble.
28202 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
28203 (j0l): Define using libm_alias_ldouble.
28204 (y0l): Likewise.
28205 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
28206 (j1l): Define using libm_alias_ldouble.
28207 (y1l): Likewise.
28208 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
28209 (jnl): Define using libm_alias_ldouble.
28210 (ynl): Likewise.
28211 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
28212 (log10l): Define using libm_alias_ldouble.
28213 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
28214 (log2l): Define using libm_alias_ldouble.
28215 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
28216 (logl): Define using libm_alias_ldouble.
28217 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
28218 (powl): Define using libm_alias_ldouble.
28219 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
28220 (remainderl): Define using libm_alias_ldouble.
28221 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
28222 (sinhl): Define using libm_alias_ldouble.
28223 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
28224 (sqrtl): Define using libm_alias_ldouble.
28225 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
28226 (tgammal): Define using libm_alias_ldouble.
28227 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
28228 (exp10l): Do not use long_double_symbol here.
28229 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
28230 [LIBM_SVID_COMPAT] (remainderl): Likewise.
28231 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
28232 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
28233 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
28234 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
28235 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
28236 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
28237 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
28238 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
28239 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
28240 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
28241 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
28242 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
28243 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
28244 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
28245 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
28246 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
28247 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
28248 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
28249 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
28250 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
28251
28252 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
28253
28254 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
28255 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
28256
28257 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
28258
28259 * io/read.c (read): Add libc_hidden_weak.
28260 * sysdeps/mach/hurd/read.c (read): Likewise.
28261 * io/write.c (write): Likewise.
28262 * sysdeps/mach/hurd/write.c (write): Likewise.
28263 * io/pread64.c (__pread64): Likewise.
28264 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
28265 * posix/pread64.c (__pread64): Add libc_hidden_def.
28266
28267 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
28268
28269 * benchtests/scripts/compare_strings.py: New option -g.
28270 (draw_graph): Print a message that a graph is being generated.
28271 (process_results): Generate graph only if -g is passed.
28272 (main): Process option -g.
28273
28274 * benchtests/scripts/compare_strings.py (process_results):
28275 Better spacing for output.
28276
28277 * benchtests/scripts/compare_strings.py: Use argparse.
28278 * benchtests/README: Document existence of compare_strings.py.
28279
28280 2017-09-15 Joseph Myers <joseph@codesourcery.com>
28281
28282 * math/s_fma.c: Include <libm-alias-double.h>.
28283 (fma): Define using libm_alias_double.
28284 * math/s_nextafter.c: Include <libm-alias-double.h>.
28285 (nextafter): Define using libm_alias_double.
28286 * math/w_acos_compat.c: Include <libm-alias-double.h>.
28287 (acos): Define using libm_alias_double.
28288 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
28289 (aocsh): Define using libm_alias_double.
28290 * math/w_asin_compat.c: Include <libm-alias-double.h>.
28291 (asin): Define using libm_alias_double.
28292 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
28293 (atan2): Define using libm_alias_double.
28294 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
28295 (atanh): Define using libm_alias_double.
28296 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
28297 (cosh): Define using libm_alias_double.
28298 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
28299 (exp10): Define using libm_alias_double.
28300 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
28301 (exp2): Define using libm_alias_double.
28302 * math/w_exp_compat.c: Include <libm-alias-double.h>.
28303 (exp): Define using libm_alias_double.
28304 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
28305 (fmod): Define using libm_alias_double.
28306 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
28307 (hypot): Define using libm_alias_double.
28308 * math/w_j0_compat.c: Include <libm-alias-double.h>.
28309 (j0): Define using libm_alias_double.
28310 (y0): Likewise.
28311 * math/w_j1_compat.c: Include <libm-alias-double.h>.
28312 (j1): Define using libm_alias_double.
28313 (y1): Likewise.
28314 * math/w_jn_compat.c: Include <libm-alias-double.h>.
28315 (jn): Define using libm_alias_double.
28316 (yn): Likewise.
28317 * math/w_log10_compat.c: Include <libm-alias-double.h>.
28318 (log10): Define using libm_alias_double.
28319 * math/w_log2_compat.c: Include <libm-alias-double.h>.
28320 (log2): Define using libm_alias_double.
28321 * math/w_log_compat.c: Include <libm-alias-double.h>.
28322 (log): Define using libm_alias_double.
28323 * math/w_pow_compat.c: Include <libm-alias-double.h>.
28324 (pow): Define using libm_alias_double.
28325 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
28326 (remainder): Define using libm_alias_double.
28327 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
28328 (sinh): Define using libm_alias_double.
28329 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
28330 (sqrt): Define using libm_alias_double.
28331 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
28332 (tgamma): Define using libm_alias_double.
28333 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
28334 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
28335 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
28336 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
28337 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
28338 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
28339 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
28340 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
28341 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
28342 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
28343 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
28344 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
28345 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
28346 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
28347 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
28348 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
28349 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
28350 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
28351 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
28352 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
28353 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
28354 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
28355 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
28356 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
28357 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
28358
28359 * math/e_acoshl.c: Remove.
28360 * math/e_acosl.c: Likewise.
28361 * math/e_asinl.c: Likewise.
28362 * math/e_atan2l.c: Likewise.
28363 * math/e_atanhl.c: Likewise.
28364 * math/e_coshl.c: Likewise.
28365 * math/e_expl.c: Likewise.
28366 * math/e_fmodl.c: Likewise.
28367 * math/e_gammal_r.c: Likewise.
28368 * math/e_hypotl.c: Likewise.
28369 * math/e_j0l.c: Likewise.
28370 * math/e_j1l.c: Likewise.
28371 * math/e_jnl.c: Likewise.
28372 * math/e_lgammal_r.c: Likewise.
28373 * math/e_log10l.c: Likewise.
28374 * math/e_log2l.c: Likewise.
28375 * math/e_logl.c: Likewise.
28376 * math/e_powl.c: Likewise.
28377 * math/e_rem_pio2l.c: Likewise.
28378 * math/e_sinhl.c: Likewise.
28379 * math/e_sqrtf128.c: Likewise.
28380 * math/e_sqrtl.c: Likewise.
28381 * math/k_cosl.c: Likewise.
28382 * math/k_sinl.c: Likewise.
28383 * math/k_tanl.c: Likewise.
28384 * math/s_asinhl.c: Likewise.
28385 * math/s_atanl.c: Likewise.
28386 * math/s_cbrtl.c: Likewise.
28387 * math/s_erfl.c: Likewise.
28388 * math/s_expm1l.c: Likewise.
28389 * math/s_log1pl.c: Likewise.
28390 * math/s_tanhl.c: Likewise.
28391
28392 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
28393
28394 [BZ #21745]
28395 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
28396 [$(subdir) = math] (sysdep_calls): New variable. Has the
28397 previous contents of sysdep_routines, but re-sorted..
28398 [$(subdir) = math] (sysdep_routines): Re-use the contents from
28399 sysdep_calls.
28400 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
28401 defined in sysdep_calls and replace by the respective m_* names.
28402 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
28403 (compat_symbol): Undefine to avoid duplicated compat symbols in
28404 libc.
28405
28406 2017-09-15 Joseph Myers <joseph@codesourcery.com>
28407
28408 * math/s_fmaf.c: Include <libm-alias-float.h>.
28409 (fmaf): Define using libm_alias_float.
28410 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
28411 (acosf): Define using libm_alias_float.
28412 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
28413 (acoshf): Define using libm_alias_float.
28414 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
28415 (asinf): Define using libm_alias_float.
28416 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
28417 (atan2f): Define using libm_alias_float.
28418 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
28419 (atanhf): Define using libm_alias_float.
28420 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
28421 (coshf): Define using libm_alias_float.
28422 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
28423 (exp10f): Define using libm_alias_float.
28424 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
28425 (fmodf): Define using libm_alias_float.
28426 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
28427 (hypotf): Define using libm_alias_float.
28428 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
28429 (j0f): Define using libm_alias_float.
28430 (y0f): Likewise.
28431 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
28432 (j1f): Define using libm_alias_float.
28433 (y1f): Likewise.
28434 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
28435 (jnf): Define using libm_alias_float.
28436 (ynf): Likewise.
28437 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
28438 (log10f): Define using libm_alias_float.
28439 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
28440 (log2f): Define using libm_alias_float.
28441 * math/w_logf_compat.c: Include <libm-alias-float.h>.
28442 (logf): Define using libm_alias_float.
28443 * math/w_powf_compat.c: Include <libm-alias-float.h>.
28444 (powf): Define using libm_alias_float.
28445 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
28446 (remainderf): Define using libm_alias_float.
28447 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
28448 (sinhf): Define using libm_alias_float.
28449 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
28450 (sqrtf): Define using libm_alias_float.
28451 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
28452 (tgammaf): Define using libm_alias_float.
28453
28454 2017-09-14 Joseph Myers <joseph@codesourcery.com>
28455
28456 * include/math.h (roundeven): Change hidden_proto call to
28457 __roundeven.
28458 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
28459 alias.
28460 [NO_LONG_DOUBLE] (__j0l): New strong alias.
28461 (y0): Rename to __y0 and define as weak alias.
28462 [NO_LONG_DOUBLE] (__y0l): New strong alias.
28463 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
28464 alias.
28465 (y0f): Rename to __y0f and define as weak alias.
28466 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
28467 alias.
28468 [NO_LONG_DOUBLE] (__j1l): New strong alias.
28469 (y1): Rename to __y1 and define as weak alias.
28470 [NO_LONG_DOUBLE] (__y1l): New strong alias.
28471 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
28472 alias.
28473 (y1f): Rename to __y1f and define as weak alias.
28474 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
28475 alias.
28476 [NO_LONG_DOUBLE] (__jnl): New strong alias.
28477 (yn): Rename to __yn and define as weak alias.
28478 [NO_LONG_DOUBLE] (__ynl): New strong alias.
28479 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
28480 alias.
28481 (ynf): Rename to __ynf and define as weak alias.
28482 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
28483 (fromfp): Define as weak alias.
28484 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
28485 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
28486 (fromfpx): Define as weak alias.
28487 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
28488 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
28489 __getpayload and define as weak alias.
28490 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
28491 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
28492 __roundeven and define as weak alias.
28493 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
28494 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
28495 __setpayload.
28496 (setpayload): Define as weak alias.
28497 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
28498 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
28499 __setpayloadsig.
28500 (setpayloadsig): Define as weak alias.
28501 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
28502 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
28503 __totalorder and define as weak alias.
28504 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
28505 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
28506 to __totalordermag and define as weak alias.
28507 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
28508 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
28509 (ufromfp): Define as weak alias.
28510 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
28511 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
28512 __ufromfpx.
28513 (ufromfpx): Define as weak alias.
28514 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
28515 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
28516 Rename to __getpayload and define as weak alias.
28517 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
28518 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
28519 Rename to __roundeven and define as weak alias.
28520 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
28521 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
28522 Rename to __totalorder and define as weak alias.
28523 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
28524 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
28525 (totalordermag): Rename to __totalordermag and define as weak
28526 alias.
28527 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
28528 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
28529 macro.
28530 (__roundevenl): Likewise.
28531 (__totalorderl): Likewise.
28532 (__totalordermagl): Likewise
28533 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
28534 __fromfpf128.
28535 (fromfpf128): Define as weak alias.
28536 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
28537 __fromfpxf128.
28538 (fromfpxf128): Define as weak alias.
28539 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
28540 __setpayloadf128.
28541 (setpayloadf128): Define as weak alias.
28542 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
28543 __setpayloadsigf128.
28544 (setpayloadsigf128): Define as weak alias.
28545 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
28546 __ufromfpf128.
28547 (ufromfpf128): Define as weak alias.
28548 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
28549 __ufromfpxf128.
28550 (ufromfpxf128): Define as weak alias.
28551 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
28552 (fromfpf): Define as weak alias.
28553 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
28554 __fromfpxf.
28555 (fromfpxf): Define as weak alias.
28556 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
28557 __getpayloadf and define as weak alias.
28558 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
28559 __roundevenf and define as weak alias.
28560 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
28561 __setpayloadf.
28562 (setpayloadf): Define as weak alias.
28563 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
28564 __setpayloadsigf.
28565 (setpayloadsigf): Define as weak alias.
28566 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
28567 __totalorderf and define as weak alias.
28568 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
28569 Rename to __totalordermagf and define as weak alias.
28570 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
28571 __ufromfpf.
28572 (ufromfpf): Define as weak alias.
28573 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
28574 __ufromfpxf.
28575 (ufromfpxf): Define as weak alias.
28576 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
28577 __fromfpl.
28578 (fromfpl): Define as weak alias.
28579 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
28580 __fromfpxl.
28581 (fromfpxl): Define as weak alias.
28582 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
28583 to __getpayloadl and define as weak alias.
28584 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
28585 __roundevenl and define as weak alias.
28586 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
28587 __setpayloadl.
28588 (setpayloadl): Define as weak alias.
28589 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
28590 __setpayloadsigl.
28591 (setpayloadsigl): Define as weak alias.
28592 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
28593 to __totalorderl and define as weak alias.
28594 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
28595 Rename to __totalordermagl and define as weak alias.
28596 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
28597 __ufromfpl.
28598 (ufromfpl): Define as weak alias.
28599 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
28600 __ufromfpxl.
28601 (ufromfpxl): Define as weak alias.
28602 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
28603 __fromfpl.
28604 (fromfpl): Define as weak alias.
28605 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
28606 __fromfpxl.
28607 (fromfpxl): Define as weak alias.
28608 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
28609 Rename to __getpayloadl and define as weak alias.
28610 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
28611 to __roundevenl and define as weak alias. Call __roundeven
28612 instead of roundeven.
28613 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
28614 __setpayloadl.
28615 (setpayloadl): Define as weak alias.
28616 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
28617 __setpayloadsigl.
28618 (setpayloadsigl): Define as weak alias.
28619 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
28620 Rename to __totalorderl and define as weak alias.
28621 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
28622 Rename to __totalordermagl and define as weak alias.
28623 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
28624 __ufromfpl.
28625 (ufromfpl): Define as weak alias.
28626 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
28627 __ufromfpxl.
28628 (ufromfpxl): Define as weak alias.
28629 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
28630 __fromfpl.
28631 (fromfpl): Define as weak alias.
28632 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
28633 __fromfpxl.
28634 (fromfpxl): Define as weak alias.
28635 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
28636 __getpayloadl and define as weak alias.
28637 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
28638 __roundevenl and define as weak alias.
28639 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
28640 __setpayloadl.
28641 (setpayloadl): Define as weak alias.
28642 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
28643 __setpayloadsigl.
28644 (setpayloadsigl): Define as weak alias.
28645 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
28646 __totalorderl and define as weak alias.
28647 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
28648 Rename to __totalordermagl and define as weak alias.
28649 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
28650 __ufromfpl.
28651 (ufromfpl): Define as weak alias.
28652 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
28653 __ufromfpxl.
28654 (ufromfpxl): Define as weak alias.
28655
28656 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
28657
28658 * benchtests/bench-string.h (realloc_bufs): New function.
28659 (test_init): Call it.
28660 * benchtests/bench-memset-large.c (do_test): Likewise.
28661 * benchtests/bench-memset.c (do_test): Likewise.
28662
28663 * benchtests/bench-memset-large.c: Print output in JSON
28664 format.
28665 * benchtests/bench-memset.c: Likewise.
28666
28667 2017-09-14 Mike FABIAN <mfabian@redhat.com>
28668
28669 [BZ #21084]
28670 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
28671 * iconvdata/Makefile: Add IBM858.
28672 * iconvdata/gconv-modules: Likewise.
28673 * iconvdata/tst-tables.sh: Likewise.
28674 * iconvdata/ibm858.c: New file.
28675 * localedata/charmaps/IBM858: Likewise.
28676
28677 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
28678
28679 [BZ #22023]
28680 * locales/niu_NZ (LC_TIME): copy "niu_NU".
28681 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
28682
28683 2017-09-14 Mike FABIAN <mfabian@redhat.com>
28684
28685 [BZ #22112]
28686 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
28687 and add tel_int_fmt.
28688
28689 2017-09-14 Joseph Myers <joseph@codesourcery.com>
28690
28691 * sysdeps/generic/libm-alias-float128.h: New file.
28692 * sysdeps/generic/math-type-macros-float128.h: Include
28693 <libm-alias-float128.h>.
28694 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28695
28696 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28697
28698 * sysdeps/generic/libm-alias-ldouble.h: New file.
28699 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
28700 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
28701 * sysdeps/generic/math-type-macros-ldouble.h: Include
28702 <libm-alias-ldouble.h>.
28703 [!declare_mgen_alias] (declare_mgen_alias): Define to use
28704 libm_alias_ldouble.
28705
28706 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
28707
28708 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
28709 * math/w_exp_compat.c: ... here.
28710 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
28711 * math/w_expf_compat.c: ... here.
28712 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
28713 * math/w_expl_compat.c: ... here.
28714 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
28715 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
28716 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
28717 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
28718
28719 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28720
28721 * math/w_scalbln_template.c (strong_alias): Do not undefine and
28722 redefine.
28723 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
28724 macro.
28725 (ldexpl): Only define as compat symbol for libc, not libm.
28726 (scalbnl): Define as compat symbol for libc here.
28727 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
28728 define for [IS_IN (libc)].
28729 (__ldexpl_2): Remove alias.
28730 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
28731 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
28732 name in long_double_symbol call.
28733 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
28734 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
28735 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
28736 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
28737 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
28738 Remove macro.
28739 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
28740 Define as compat symbol.
28741
28742 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28743
28744 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
28745 * sysdeps/unix/sysv/linux/alpha/Makefile
28746 [$(subdir) = csu] (sysdep_routines): Remove rule.
28747
28748 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28749
28750 * sysdeps/generic/libm-alias-double.h: New file.
28751 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
28752 * sysdeps/generic/math-type-macros-double.h: Include
28753 <libm-alias-double.h>.
28754 [declare_mgen_alias] (declare_mgen_alias): Define to use
28755 libm_alias_double.
28756 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
28757 (M_LIBM_NEED_COMPAT): Remove macro.
28758 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
28759 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
28760 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
28761 code.
28762 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28763 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28764 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28765 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28766 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28767 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28768 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28769 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28770 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28771 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28772 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28773 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28774 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28775 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28776 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28777 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28778 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28779 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28780 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28781 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28782 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28783 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28784 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28785 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28786 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28787 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28788 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28789 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
28790 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
28791 macro.
28792 (declare_mgen_alias): New macro.
28793 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
28794 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
28795 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
28796 (M_LIBM_NEED_COMPAT): Remove macro.
28797 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
28798 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
28799 <first-versions.h>.
28800 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
28801 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
28802
28803 2017-09-12 Joseph Myers <joseph@codesourcery.com>
28804
28805 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
28806 (declare_mgen_alias_2): Remove.
28807 * sysdeps/generic/math-type-macros-double.h
28808 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
28809 Likewise.
28810 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
28811 alias.
28812 (ldexp): Define with declare_mgen_alias.
28813 (scalbn): Likewise.
28814
28815 2017-09-12 Steve Ellcey <sellcey@cavium.com>
28816
28817 * grp/initgroups.c: Include config.h.
28818 (DEFAULT_CONFIG): New macro.
28819 (internal_getgrouplist): Use DEFAULT_CONFIG.
28820 * nscd/initgrcache.c (addinitgroupsX): Likewise.
28821 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
28822 (DEFAULT_DEFCONFIG): New macro.
28823 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
28824 * nss/grp-lookup.c: Include config.h
28825 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
28826 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
28827 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
28828 * manual/nss.texi: Update default values section.
28829
28830 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
28831
28832 [BZ #21967]
28833 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
28834 New.
28835 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
28836 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
28837 Handle MathVec_Prefer_No_AVX512.
28838 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
28839 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
28840 is set.
28841
28842 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
28843
28844 * posix/sched_primax.c (__sched_get_priority_max): Add
28845 libc_hidden_def.
28846 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
28847 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
28848 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
28849 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
28850 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
28851 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
28852 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
28853 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
28854 Add aliases.
28855
28856 2017-09-11 Joseph Myers <joseph@codesourcery.com>
28857
28858 * sysdeps/generic/libm-alias-float.h: New file.
28859 * sysdeps/generic/math-type-macros-float.h: Include
28860 <libm-alias-float.h>.
28861 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28862
28863 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
28864
28865 [BZ #22093]
28866 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
28867 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
28868 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
28869 (HWCAP_IMPORTANT): Likewise.
28870 (HWCAP_X86_64): New enum.
28871 (HWCAP_X86_AVX512_1): Updated.
28872 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
28873 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
28874 (modules-names): Add x86_64/tst-x86_64mod-1.
28875 (LDFLAGS-tst-x86_64mod-1.so): New.
28876 ($(objpfx)tst-x86_64-1): Likewise.
28877 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
28878 (tst-x86_64-1-clean): Likewise.
28879 * sysdeps/x86_64/tst-x86_64-1.c: New file.
28880 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
28881
28882 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
28883
28884 * po/sv.po: Update translations.
28885 * po/fr.po: Likewise.
28886
28887 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
28888
28889 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
28890 seconds.
28891 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
28892 seconds.
28893 * elf/rtld-Rules: Fix $(error) use.
28894
28895 2017-09-09 Mike FABIAN <mfabian@redhat.com>
28896
28897 [BZ #14925]
28898 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
28899 * locale/iso-639.def: Change “Bengali” to “Bangla”.
28900 * localedata/locales/bn_BD: “Bengali” was still used in some
28901 comments. Change it to “Bangla”.
28902
28903 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
28904
28905 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
28906
28907 2017-09-08 Steve Ellcey <sellcey@cavium.com>
28908
28909 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
28910 thunderx2t99p1 to list of cpu names.
28911 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
28912 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
28913
28914 2017-09-08 Steve Ellcey <sellcey@cavium.com>
28915
28916 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
28917 Use strcmp instead of tunable_is_name.
28918
28919 2017-09-08 Joseph Myers <joseph@codesourcery.com>
28920
28921 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28922 (F_GET_RW_HINT): New macro.
28923 [__USE_GNU] (F_SET_RW_HINT): Likewise.
28924 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
28925 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
28926 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
28927 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
28928 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
28929 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
28930 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
28931 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
28932
28933 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28934 (F_ADD_SEALS): New macro.
28935 [__USE_GNU] (F_GET_SEALS): Likewise.
28936 [__USE_GNU] (F_SEAL_SEAL): Likewise.
28937 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
28938 [__USE_GNU] (F_SEAL_GROW): Likewise.
28939 [__USE_GNU] (F_SEAL_WRITE): Likewise.
28940
28941 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28942
28943 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
28944 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
28945 * posix/glob_internal.h (__glob_pattern_type):
28946 * posix/glob.c (glob):
28947 * posix/glob_pattern_p.c (__glob_pattern_p):
28948 Use them.
28949
28950 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
28951 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
28952 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
28953 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
28954 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
28955 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
28956 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
28957 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
28958 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
28959 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
28960 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
28961 * sysdeps/wordsize-64/glob.c: Likewise.
28962 * sysdeps/wordsize-64/glob64.c: Likewise.
28963 * sysdeps/wordsize-64/globfree.c: Likewise.
28964 * sysdeps/wordsize-64/globfree64.c: Likewise.
28965 * sysdeps/unix/sysv/linux/glob.c: New file.
28966 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
28967 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
28968 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
28969 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
28970 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
28971 adds !GLOB_NO_OLD_VERSION as an extra condition.
28972 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
28973 using relative path instead of absolute one.
28974 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
28975 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
28976 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
28977 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
28978 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
28979 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
28980
28981 [BZ #1062]
28982 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
28983 (glob): Use the same scratch buffer for both getlogin_r and
28984 getpwnam_r. Don’t require preallocation of the login name. This
28985 simplifies storage allocation, and corrects the handling of
28986 long login names.
28987
28988 [BZ #1062]
28989 * posix/glob.c (glob): Port recent patches to platforms
28990 lacking getpwnam_r.
28991 (glob): Fix longstanding misuse of errno after getpwnam_r, which
28992 returns an error number rather than setting errno.
28993
28994 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
28995 instead of GCC extension.
28996 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
28997 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
28998 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
28999
29000 [BZ #866]
29001 [BZ #1062]
29002 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
29003 * posix/bug-glob1.c: Remove file.
29004 * posix/tst-glob_symlinks.c: New file.
29005 * posix/glob.c (__lstat64): New macro.
29006 (is_dir): New function.
29007 (glob, glob_in_dir): Match symlinks even if they are dangling.
29008 (link_stat, link_exists_p): Remove. All uses removed.
29009
29010 [BZ #1062]
29011 [BZ #19971]
29012 * posix/glob.c (struct readdir_result): Remove skip_entry member.
29013 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
29014 All uses removed.
29015
29016 [BZ #1062]
29017 CVE-2017-15671
29018 * posix/Makefile (routines): Add globfree, globfree64, and
29019 glob_pattern_p.
29020 * posix/flexmember.h: New file.
29021 * posix/glob_internal.h: Likewise.
29022 * posix/glob_pattern_p.c: Likewise.
29023 * posix/globfree.c: Likewise.
29024 * posix/globfree64.c: Likewise.
29025 * sysdeps/gnu/globfree64.c: Likewise.
29026 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
29027 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
29028 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
29029 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
29030 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
29031 * sysdeps/wordsize-64/globfree.c: Likewise.
29032 * sysdeps/wordsize-64/globfree64.c: Likewise.
29033 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
29034 [NDEBUG): Remove comments.
29035 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
29036 (dirent_type): New type. Use uint_fast8_t not
29037 uint8_t, as C99 does not require uint8_t.
29038 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
29039 (struct readdir_result): Use dirent_type. Do not define skip_entry
29040 unless it is needed; this saves a byte on platforms lacking d_ino.
29041 (readdir_result_type, readdir_result_skip_entry):
29042 New functions, replacing ...
29043 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
29044 these functions, which were removed. This makes the callers
29045 easier to read. All callers changed.
29046 (D_INO_TO_RESULT): Now empty if there is no d_ino.
29047 (size_add_wrapv, glob_use_alloca): New static functions.
29048 (glob, glob_in_dir): Check for size_t overflow in several places,
29049 and fix some size_t checks that were not quite right.
29050 Remove old code using SHELL since Bash no longer
29051 uses this.
29052 (glob, prefix_array): Separate MS code better.
29053 (glob_in_dir): Remove old Amiga and VMS code.
29054 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
29055 separate files.
29056 (glob_in_dir): Do not rely on undefined behavior in accessing
29057 struct members beyond their bounds. Use a flexible array member
29058 instead
29059 (link_stat): Rename from link_exists2_p and return -1/0 instead of
29060 0/1. Caller changed.
29061 (glob): Fix memory leaks.
29062 * posix/glob64 (globfree64): Move to separate file.
29063 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
29064 (globfree64): Remove hidden alias.
29065 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
29066 oldglob.
29067 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
29068 separate file.
29069 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
29070 define.
29071 Move compat code to separate file.
29072 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
29073 separate file.
29074
29075 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
29076
29077 * resolv/tst-resolv-qtypes.c (domain): Changed to
29078 "const char domain[] =".
29079
29080 2017-09-07 Joseph Myers <joseph@codesourcery.com>
29081
29082 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
29083 version to 3.1.6.
29084
29085 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
29086 (TCP_MD5SIG_EXT): Likewise.
29087 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
29088 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
29089 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
29090
29091 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
29092
29093 2017-09-07 Mike FABIAN <mfabian@redhat.com>
29094
29095 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
29096
29097 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
29098
29099 [BZ #22100]
29100 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
29101
29102 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
29103
29104 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
29105 before assuming that the file is empty. Avoid testing buffer content
29106 when nread == 0.
29107
29108 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29109
29110 [BZ #18858]
29111 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
29112 Remove define.
29113 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
29114 Likewise.
29115 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
29116 Likewise.
29117 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
29118 Likewise.
29119 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
29120 Likewise.
29121 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
29122 Likewise.
29123 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
29124 Likewise.
29125
29126 2017-09-06 Florian Weimer <fweimer@redhat.com>
29127
29128 * malloc/dynarray_emplace_enlarge.c
29129 (__libc_dynarray_emplace_enlarge): Add missing else.
29130
29131 2017-09-06 Florian Weimer <fweimer@redhat.com>
29132
29133 [BZ #22096]
29134 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
29135 case of failure to obtain the global conf object.
29136
29137 2017-09-06 Florian Weimer <fweimer@redhat.com>
29138
29139 [BZ #22095]
29140 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
29141 dynarray allocation failure.
29142
29143 2017-09-06 Florian Weimer <fweimer@redhat.com>
29144
29145 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
29146 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
29147 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
29148 New functions.
29149 (response): Call them. Add 'p', '6' flag processing.
29150 (test_reverse): New function.
29151 (test_get2_any): Call it.
29152 (test_no_inet6): Add 'p' test.
29153 (test_inet6): Likewise.
29154
29155 2017-09-06 Florian Weimer <fweimer@redhat.com>
29156
29157 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
29158 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
29159 the QNAME.
29160 (test_gai): Adjust query names. Add additional tests.
29161 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
29162 test_get2. Adjust query names. Add additional tests.
29163 (test_no_inet6): New function, extracted from threadfunc.
29164 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
29165 Add additional tests.
29166
29167 2017-09-06 Mike FABIAN <mfabian@redhat.com>
29168
29169 [BZ #22070]
29170 * localedata/unicode-gen/utf8_gen.py: Set the width for
29171 characters with Prepended_Concatenation_Mark property to 1
29172 * localedata/charmaps/UTF-8: Updated using the improved script.
29173
29174 2017-09-06 Mike FABIAN <mfabian@redhat.com>
29175
29176 [BZ #21750]
29177 * localedata/unicode-gen/utf8_gen.py: Improve the script to
29178 use the range notation for all ranges of neighbouring characters
29179 with the same width.
29180
29181 2017-09-05 Joseph Myers <joseph@codesourcery.com>
29182
29183 * sysdeps/generic/math-type-macros-double.h: Include
29184 <math-svid-compat.h>.
29185 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
29186 * sysdeps/generic/math-type-macros-float.h: Include
29187 <math-svid-compat.h>.
29188 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
29189 * sysdeps/generic/math-type-macros-ldouble.h: Include
29190 <math-svid-compat.h>.
29191 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
29192 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
29193 condition.
29194 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
29195 * math/w_acosf_compat.c: Likewise.
29196 * math/w_acosh_compat.c: Likewise.
29197 * math/w_acoshf_compat.c: Likewise.
29198 * math/w_acoshl_compat.c: Likewise.
29199 * math/w_acosl_compat.c: Likewise.
29200 * math/w_asin_compat.c: Likewise.
29201 * math/w_asinf_compat.c: Likewise.
29202 * math/w_asinl_compat.c: Likewise.
29203 * math/w_atan2_compat.c: Likewise.
29204 * math/w_atan2f_compat.c: Likewise.
29205 * math/w_atan2l_compat.c: Likewise.
29206 * math/w_atanh_compat.c: Likewise.
29207 * math/w_atanhf_compat.c: Likewise.
29208 * math/w_atanhl_compat.c: Likewise.
29209 * math/w_cosh_compat.c: Likewise.
29210 * math/w_coshf_compat.c: Likewise.
29211 * math/w_coshl_compat.c: Likewise.
29212 * math/w_exp10_compat.c: Likewise.
29213 * math/w_exp10f_compat.c: Likewise.
29214 * math/w_exp10l_compat.c: Likewise.
29215 * math/w_exp2_compat.c: Likewise.
29216 * math/w_exp2f_compat.c: Likewise.
29217 * math/w_exp2l_compat.c: Likewise.
29218 * math/w_fmod_compat.c: Likewise.
29219 * math/w_fmodf_compat.c: Likewise.
29220 * math/w_fmodl_compat.c: Likewise.
29221 * math/w_hypot_compat.c: Likewise.
29222 * math/w_hypotf_compat.c: Likewise.
29223 * math/w_hypotl_compat.c: Likewise.
29224 * math/w_j0_compat.c: Likewise.
29225 * math/w_j0f_compat.c: Likewise.
29226 * math/w_j0l_compat.c: Likewise.
29227 * math/w_j1_compat.c: Likewise.
29228 * math/w_j1f_compat.c: Likewise.
29229 * math/w_j1l_compat.c: Likewise.
29230 * math/w_jn_compat.c: Likewise.
29231 * math/w_jnf_compat.c: Likewise.
29232 * math/w_jnl_compat.c: Likewise.
29233 * math/w_lgamma_r_compat.c: Likewise.
29234 * math/w_lgammaf_r_compat.c: Likewise.
29235 * math/w_lgammal_r_compat.c: Likewise.
29236 * math/w_log10_compat.c: Likewise.
29237 * math/w_log10f_compat.c: Likewise.
29238 * math/w_log10l_compat.c: Likewise.
29239 * math/w_log2_compat.c: Likewise.
29240 * math/w_log2f_compat.c: Likewise.
29241 * math/w_log2l_compat.c: Likewise.
29242 * math/w_log_compat.c: Likewise.
29243 * math/w_logf_compat.c: Likewise.
29244 * math/w_logl_compat.c: Likewise.
29245 * math/w_pow_compat.c: Likewise.
29246 * math/w_powf_compat.c: Likewise.
29247 * math/w_powl_compat.c: Likewise.
29248 * math/w_remainder_compat.c: Likewise.
29249 * math/w_remainderf_compat.c: Likewise.
29250 * math/w_remainderl_compat.c: Likewise.
29251 * math/w_sinh_compat.c: Likewise.
29252 * math/w_sinhf_compat.c: Likewise.
29253 * math/w_sinhl_compat.c: Likewise.
29254 * math/w_sqrt_compat.c: Likewise.
29255 * math/w_sqrtf_compat.c: Likewise.
29256 * math/w_sqrtl_compat.c: Likewise.
29257 * math/w_tgamma_compat.c: Likewise.
29258 * math/w_tgammaf_compat.c: Likewise.
29259 * math/w_tgammal_compat.c: Likewise.
29260 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
29261 [LIBM_SVID_COMPAT].
29262 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
29263 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
29264 [LIBM_SVID_COMPAT].
29265 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
29266 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
29267 [LIBM_SVID_COMPAT].
29268 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
29269 * sysdeps/i386/fpu/w_sqrt.c: New file.
29270 * sysdeps/ia64/fpu/w_acos.c: Likewise.
29271 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
29272 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
29273 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
29274 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
29275 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
29276 * sysdeps/ia64/fpu/w_asin.c: Likewise.
29277 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
29278 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
29279 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
29280 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
29281 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
29282 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
29283 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
29284 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
29285 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
29286 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
29287 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
29288 * sysdeps/ia64/fpu/w_exp.c: Likewise.
29289 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
29290 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
29291 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
29292 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
29293 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
29294 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
29295 * sysdeps/ia64/fpu/w_expf.c: Likewise.
29296 * sysdeps/ia64/fpu/w_expl.c: Likewise.
29297 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
29298 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
29299 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
29300 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
29301 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
29302 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
29303 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
29304 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
29305 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
29306 * sysdeps/ia64/fpu/w_log.c: Likewise.
29307 * sysdeps/ia64/fpu/w_log10.c: Likewise.
29308 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
29309 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
29310 * sysdeps/ia64/fpu/w_log2.c: Likewise.
29311 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
29312 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
29313 * sysdeps/ia64/fpu/w_logf.c: Likewise.
29314 * sysdeps/ia64/fpu/w_logl.c: Likewise.
29315 * sysdeps/ia64/fpu/w_pow.c: Likewise.
29316 * sysdeps/ia64/fpu/w_powf.c: Likewise.
29317 * sysdeps/ia64/fpu/w_powl.c: Likewise.
29318 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
29319 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
29320 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
29321 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
29322 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
29323 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
29324 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
29325 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
29326 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
29327 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
29328 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
29329 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
29330 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
29331 [LIBM_SVID_COMPAT].
29332 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
29333 * sysdeps/ieee754/k_standard.c: Likewise.
29334 * sysdeps/ieee754/k_standardf.c: Likewise.
29335 * sysdeps/ieee754/k_standardl.c: Likewise.
29336 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
29337 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
29338 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
29339 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
29340 long_double_symbol call on [LIBM_SVID_COMPAT].
29341 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
29342 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
29343 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
29344 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
29345 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
29346 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
29347 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
29348 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
29349 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
29350 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
29351 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
29352 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
29353 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
29354 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
29355 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
29356 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
29357 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
29358 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
29359 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
29360 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
29361 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
29362 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
29363
29364 2017-09-05 Steve Ellcey <sellcey@cavium.com>
29365
29366 * include/shlib-compat.h (TEST_COMPAT): New Macro.
29367 * malloc/tst-mallocstate.c: Convert from test-skeleton
29368 to test-driver. Ifdef code using TEST_COMPAT macro.
29369 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
29370 * math/test-matherr.c: Likewise.
29371
29372 2017-09-05 Joseph Myers <joseph@codesourcery.com>
29373
29374 [BZ #22086]
29375 * debug/pcprofiledump.c (main): Use byte-swapped mask when
29376 comparing word with byte-swapped constant.
29377
29378 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
29379
29380 [BZ #20498]
29381 * locale/iso-639.def: add Miskito.
29382 * localedata/SUPPORTED: Add miq_NI/UTF-8.
29383 * localedata/locales/miq_NI: New file.
29384
29385 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
29386
29387 [BZ #18822]
29388 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
29389 (__mkdir): Likewise.
29390 * io/chmod.c (__chmod): Add libc_hidden_def.
29391 * io/mkdir.c (__mkdir): Likewise.
29392 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
29393 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
29394 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
29395 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
29396
29397 2017-09-04 Joseph Myers <joseph@codesourcery.com>
29398
29399 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
29400 version to 4.13.
29401
29402 [BZ #22082]
29403 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
29404 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
29405
29406 2017-09-04 Florian Weimer <fweimer@redhat.com>
29407
29408 * math/math.h: Issue warning if log is defined.
29409
29410 2017-09-04 Joseph Myers <joseph@codesourcery.com>
29411
29412 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
29413 kernel version to 4.13.
29414
29415 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
29416
29417 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
29418 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
29419 parameter.
29420 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
29421 just <bits/types.h>.
29422 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
29423 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
29424 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
29425 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
29426 * misc/preadv2.c: Include <errno.h>.
29427 * misc/preadv64v2.c: Include <errno.h>.
29428 * misc/pwritev2.c: Include <errno.h>.
29429 * misc/pwritev64v2.c: Include <errno.h>.
29430 * sysdeps/posix/preadv2.c: Include <errno.h>.
29431 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
29432 Fix <unistd.h> inclusion.
29433 * sysdeps/posix/pwritev2.c: Include <errno.h>.
29434 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
29435 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
29436 __strtoul_internal): New functions.
29437 * sysdeps/posix/pause.c: Include <sigsetops.h>.
29438 * sysdeps/posix/system.c: Include <sigsetops.h>.
29439 * sysdeps/mach/hurd/i386/Makefile
29440 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
29441 [$(subdir) = csu] (sysdep-only-routines): Likewise.
29442 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
29443 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
29444 __feraiseexcept_renamed to feraiseexcept instead of
29445 __GI_feraiseexcept.
29446 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
29447 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
29448 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
29449 RWF_NOWAIT): Define to 0 if undefined already.
29450 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
29451 boils down to 0.
29452 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
29453 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
29454
29455 2017-09-01 Joseph Myers <joseph@codesourcery.com>
29456
29457 * manual/math.texi (pow10): Do not document.
29458 (pow10f): Likewise.
29459 (pow10l): Likewise.
29460 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
29461 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
29462 * math/libm-test-exp10.inc (pow10_test): Remove.
29463 (do_test): Do not call pow10.
29464 * math/w_exp10_compat.c (pow10): Make into compat symbol.
29465 [NO_LONG_DOUBLE] (pow10l): Likewise.
29466 * math/w_exp10f_compat.c (pow10f): Likewise.
29467 * math/w_exp10l_compat.c (pow10l): Likewise.
29468 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
29469 (pow10): Make into compat symbol.
29470 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
29471 (pow10f): Make into compat symbol.
29472 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
29473 (pow10l): Make into compat symbol.
29474 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
29475 pow10.
29476 (CFLAGS-nldbl-pow10.c): Remove variable..
29477 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
29478 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
29479 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
29480 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
29481 Undefine and redefine.
29482 (pow10l): Make into compat symbol.
29483 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
29484 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
29485 * sysdeps/arm/libm-test-ulps: Likewise.
29486 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
29487 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
29488 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29489 * sysdeps/microblaze/libm-test-ulps: Likewise.
29490 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
29491 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
29492 * sysdeps/nios2/libm-test-ulps: Likewise.
29493 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
29494 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
29495 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
29496 * sysdeps/sh/libm-test-ulps: Likewise.
29497 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
29498 * sysdeps/tile/libm-test-ulps: Likewise.
29499 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29500
29501 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
29502
29503 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
29504
29505 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29506
29507 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
29508 "../ChangeLog.old/ChangeLog.8".
29509 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
29510 "../ChangeLog.old/ChangeLog.14".
29511
29512 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29513
29514 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
29515 Threads Library.
29516
29517 2017-09-01 Joseph Myers <joseph@codesourcery.com>
29518
29519 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
29520
29521 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29522
29523 * csu/version.c (banner): Remove "by Roland McGrath et al.".
29524 * nptl/Banner: Remove "by Ulrich Drepper et al.".
29525
29526 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
29527
29528 * stdlib/tst-atexit-common.c (do_test): Test support for at least
29529 32 atexit handlers.
29530
29531 2017-09-01 Zack Weinberg <zackw@panix.com>
29532
29533 * math/math.h (HUGE_VAL): Improve commentary.
29534
29535 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29536 Andreas Schwab <schwab@suse.de>
29537
29538 [BZ #21530]
29539 * include/stdio.h (__gen_tempfd): New function.
29540 * stdio-common/Makefile (routines): Add gentempfd.
29541 * stdio-common/gentempfd.c: New file.
29542 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
29543 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
29544 unnamed file first.
29545
29546 2017-09-01 Florian Weimer <fweimer@redhat.com>
29547
29548 [BZ #21915]
29549 [BZ #21922]
29550 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
29551 result to determine success or failure, not the errno value.
29552 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
29553 (tst-nss-files-hosts-erange): Link with -ldl.
29554 * nss/tst-nss-files-hosts-erange.c: New file.
29555 * nss/tst-resolv-basic.c (response): Handle nodata.example.
29556 (do_test): Add NO_DATA tests.
29557 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
29558 (do_test): Call it.
29559
29560 2017-09-01 Florian Weimer <fweimer@redhat.com>
29561
29562 [BZ #21922]
29563 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
29564 coming from gethostbyname2_r.
29565
29566 2017-09-01 Florian Weimer <fweimer@redhat.com>
29567
29568 * support/namespace.h (struct support_chroot_configuration): Add
29569 hosts, host_conf.
29570 (struct support_chroot): Add path_hosts, path_host_conf.
29571 * support/support_chroot.c (write_file): New function.
29572 (support_chroot_create): Call it to process /etc/resolv.conf,
29573 /etc/hosts, /etc/host.conf.
29574 (support_chroot_free): Update.
29575
29576 2017-09-01 Florian Weimer <fweimer@redhat.com>
29577
29578 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
29579 status indicates it is set.
29580
29581 2017-09-01 Florian Weimer <fweimer@redhat.com>
29582
29583 [BZ #20532]
29584 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
29585 function lookup failures more reliable.
29586
29587 2017-09-01 Florian Weimer <fweimer@redhat.com>
29588
29589 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
29590 (getcanonname): Likewise.
29591 (gaih_inet): Likewise.
29592
29593 2017-09-01 Florian Weimer <fweimer@redhat.com>
29594
29595 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
29596 (getcanonname): Likewise.
29597 (gaih_inet): Likewise.
29598
29599 2017-08-31 Steve Ellcey <sellcey@cavium.com>
29600 Richard Henderson <rth@twiddle.net>
29601
29602 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
29603 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
29604 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
29605 (IREG_SIZE, OREG_SIZE): New macros.
29606 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
29607 (IREG_SIZE, OREG_SIZE): New macros.
29608 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
29609 (IREG_SIZE): New macro.
29610 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
29611 (IREG_SIZE): New macro.
29612 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
29613 New includes.
29614 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
29615 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
29616 (__CONCATX): Handle exceptions correctly on large values that may
29617 set FE_INVALID.
29618 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
29619 Initialize if not already set.
29620 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
29621
29622 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29623
29624 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
29625 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
29626 Likewise.
29627 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
29628 Likewise.
29629 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
29630 Likewise.
29631 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
29632 Likewise.
29633 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
29634 Likewise.
29635 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
29636 Likewise.
29637 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
29638 Likewise.
29639 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
29640 (NO_CANCELLATION): Likewise.
29641 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
29642 Likewise.
29643 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
29644 Likewise.
29645 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
29646 Likewise.
29647 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
29648 (NO_CANCELLATION): Likewise.
29649 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
29650 (NO_CANCELLATION): Likewise.
29651 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
29652 Likewise
29653 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
29654 Likewise.
29655 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
29656 Likewise.
29657 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
29658 Likewise.
29659 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
29660 hidden prototype.
29661 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
29662 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
29663
29664 2017-08-31 Steve Ellcey <sellcey@cavium.com>
29665
29666 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
29667 in resolver call.
29668
29669 2017-08-31 Florian Weimer <fweimer@redhat.com>
29670
29671 * include/libc-symbols.h (internal_function): Remove.
29672
29673 2017-08-31 Florian Weimer <fweimer@redhat.com>
29674
29675 * stdlib/fmtmsg.c (internal_addseverity): Remove
29676 internal_function.
29677
29678 2017-08-31 Florian Weimer <fweimer@redhat.com>
29679
29680 * stdio-common/printf_fp.c (group_number): Remove
29681 internal_function.
29682 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
29683
29684 2017-08-31 Florian Weimer <fweimer@redhat.com>
29685
29686 * posix/fnmatch.c (internal_function): Remove definition.
29687 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
29688 * posix/regcomp.c (peek_token, init_word_char)
29689 (duplicate_node_closure, fetch_token, peek_token)
29690 (peek_token_bracket, build_range_exp, build_collating_symbol):
29691 Likewise.
29692 * posix/regex_internal.c (re_string_construct_common)
29693 (create_ci_newstate, create_cd_newstate, re_string_allocate)
29694 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
29695 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
29696 (re_string_translate_buffer, re_string_reconstruct)
29697 (re_string_peek_byte_case, re_string_fetch_byte_case)
29698 (re_string_destruct, re_string_context_at, re_node_set_alloc)
29699 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
29700 (re_node_set_add_intersect, re_node_set_init_union)
29701 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
29702 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
29703 (re_dfa_add_node, calc_state_hash, re_acquire_state)
29704 (re_acquire_state_context): Likewise.
29705 * posix/regex_internal.h (internal_function): Remove definition.
29706 (re_string_realloc_buffers, build_wcs_buffer)
29707 (build_wcs_upper_buffer, build_upper_buffer)
29708 (re_string_translate_buffer, re_string_context_at)
29709 (re_string_char_size_at, re_string_wchar_at)
29710 (re_string_elem_size_at): Likewise.
29711 * posix/regexec.c (match_ctx_init, match_ctx_clean)
29712 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
29713 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
29714 (re_search_internal, re_search_2_stub, re_search_stub)
29715 (re_copy_regs, prune_impossible_nodes, check_matching)
29716 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
29717 (free_fail_stack_return, sift_states_iter_mb)
29718 (sift_states_backward, build_sifted_states)
29719 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
29720 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
29721 (check_subexp_limits, sift_states_bkref, merge_state_array)
29722 (find_recover_state, transit_state, merge_state_with_log)
29723 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
29724 (transit_state_mb, transit_state_bkref, get_subexp)
29725 (get_subexp_sub, find_subexp_node, check_arrival)
29726 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
29727 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
29728 (check_node_accept_bytes, find_collation_sequence_value)
29729 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
29730 (acquire_init_state_context, check_halt_node_context)
29731 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
29732 (sub_epsilon_src_nodes): Likewise.
29733 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
29734 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
29735 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
29736 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
29737 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
29738 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
29739 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
29740 * sysdeps/posix/ttyname.c (getttyname): Likewise.
29741 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
29742 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
29743 (PREADV): Likewise.
29744 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
29745 (PREADV): Likewise.
29746 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
29747 (PWRITEV): Likewise.
29748 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
29749 (PWRITEV): Likewise.
29750 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
29751 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
29752
29753 2017-08-31 Florian Weimer <fweimer@redhat.com>
29754
29755 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
29756 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
29757 Remove internal_function.
29758 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
29759 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
29760 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
29761 (__deallocate_stack, __libc_pthread_init)
29762 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
29763 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
29764 (__libc_disable_asynccancel, __librt_disable_asynccancel):
29765 Likewise.
29766 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
29767 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
29768 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
29769 Likewise.
29770 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
29771 (__pthread_mutex_unlock_usercnt): Likewise.
29772
29773 2017-08-31 Florian Weimer <fweimer@redhat.com>
29774
29775 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
29776 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
29777 (fts_safe_changedir): Remove internal_function.
29778 * io/ftw.c (internal_function): Remove definition.
29779 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
29780
29781 2017-08-31 Florian Weimer <fweimer@redhat.com>
29782
29783 * inet/deadline.c (__deadline_current_time)
29784 (__deadline_from_timeval, __deadline_to_ms): Remove
29785 internal_function.
29786 * inet/getnameinfo.c (nrl_domainname): Likewise.
29787 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
29788 * inet/inet6_option.c (add_pad): Likewise.
29789 * inet/net-internal.h (__deadline_current_time)
29790 (__deadline_from_timeval, __deadline_to_ms): Likewise.
29791 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
29792 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
29793 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
29794
29795 2017-08-31 Joseph Myers <joseph@codesourcery.com>
29796
29797 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
29798 include <bits/nan.h>.
29799 * math/Makefile (headers): Remove bits/nan.h.
29800 * bits/nan.h: Remove.
29801 * sysdeps/ieee754/bits/nan.h: Likewise.
29802 * sysdeps/mips/bits/nan.h: Likewise.
29803
29804 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
29805 not include <bits/inf.h>.
29806 * math/Makefile (headers): Remove bits/inf.h.
29807 * bits/inf.h: Remove.
29808 * sysdeps/ieee754/bits/inf.h: Likewise.
29809
29810 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
29811 bits/huge_vall.h or bits/huge_val_flt128.h.
29812 (HUGE_VAL): Define directly here.
29813 [__USE_ISOC99] (HUGE_VALF): Likewise.
29814 [__USE_ISOC99] (HUGE_VALL): Likewise.
29815 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29816 (HUGE_VAL_F128): Likewise.
29817 * math/Makefile (headers): Remove bits/huge_val.h,
29818 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
29819 * bits/huge_val.h: Remove.
29820 * bits/huge_val_flt128.h: Likewise.
29821 * bits/huge_valf.h: Likewise.
29822 * bits/huge_vall.h: Likewise.
29823 * sysdeps/ia64/bits/huge_vall.h: Likewise.
29824 * sysdeps/ieee754/bits/huge_val.h: Likewise.
29825 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
29826 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
29827 * sysdeps/sh/bits/huge_val.h: Likewise.
29828 * sysdeps/sparc/bits/huge_vall.h: Likewise.
29829 * sysdeps/x86/bits/huge_vall.h: Likewise.
29830
29831 2017-08-31 Florian Weimer <fweimer@redhat.com>
29832
29833 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
29834 internal_function.
29835 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
29836 Likewise.
29837 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
29838 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
29839 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
29840 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
29841 * elf/dl-fini.c (_dl_sort_fini): Likewise.
29842 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
29843 * elf/dl-libc.c (dlerror_run): Likewise.
29844 * elf/dl-load.c (add_name_to_object, decompose_rpath)
29845 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
29846 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
29847 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
29848 Likewise.
29849 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
29850 (_dl_higher_prime_number, _dl_strtoul): Likewise.
29851 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
29852 * elf/dl-profile.c (_dl_start_profile): Likewise.
29853 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
29854 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
29855 Likewise.
29856 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
29857 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
29858 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
29859 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
29860 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
29861 (_dl_allocate_tls_storage): Likewise.
29862 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
29863 (_dl_check_all_versions): Likewise.
29864 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
29865 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
29866 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
29867 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29868 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
29869 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
29870 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
29871 internal_function from __dl_start.
29872 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
29873 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
29874 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
29875 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
29876 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
29877 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
29878 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
29879 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
29880 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
29881 (_dl_next_ld_env_entry, _dl_important_hwcaps)
29882 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
29883 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
29884 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
29885 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
29886 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
29887 Likewise.
29888 (struct rtld_global_ro): Remove internal_function from the
29889 _dl_lookup_symbol_x member.
29890 (_dl_symbol_value): Remove. No longer defined anywhere.
29891 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
29892 internal_function.
29893 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29894 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
29895 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
29896 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
29897 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
29898 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
29899 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
29900 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
29901 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
29902 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
29903 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29904 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
29905
29906 2017-08-31 Florian Weimer <fweimer@redhat.com>
29907
29908 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
29909 Remove internal_function.
29910 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29911 Likewise.
29912 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29913 Likewise.
29914
29915 2017-08-31 Florian Weimer <fweimer@redhat.com>
29916
29917 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
29918 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
29919 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
29920
29921 2017-08-31 Florian Weimer <fweimer@redhat.com>
29922
29923 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
29924 (__gai_enqueue_request): Remove internal_function.
29925 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
29926 (__gai_remove_request, __gai_notify, __gai_notify_only)
29927 (__gai_sigqueue): Likewise.
29928 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
29929 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
29930 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
29931 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
29932 Likewise.
29933
29934 2017-08-31 Florian Weimer <fweimer@redhat.com>
29935
29936 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
29937 * include/dirent.h (__opendirat, __getdents, __getdents64)
29938 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
29939 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
29940 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
29941 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
29942 Likewise.
29943 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
29944
29945 2017-08-31 Florian Weimer <fweimer@redhat.com>
29946
29947 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
29948 internal_function.
29949 (GETCWD_RETURN_TYPE): Likewise.
29950
29951 2017-08-31 Florian Weimer <fweimer@redhat.com>
29952
29953 * include/time.h (__tz_compute, __strptime_internal): Remove
29954 internal_function.
29955 * time/strptime_l.c (__strptime_internal): Likewise.
29956 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
29957
29958 2017-08-31 Florian Weimer <fweimer@redhat.com>
29959
29960 * iconv/gconv.c (__gconv): Remove internal_function.
29961 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
29962 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
29963 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
29964 (__gconv_release_cache): Likewise.
29965 * iconv/gconv_close.c (__gconv_close): Likewise.
29966 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
29967 (read_conf_file, __gconv_get_path): Likewise.
29968 * iconv/gconv_db.c (derivation_lookup, add_derivation)
29969 (__gconv_release_step, gen_steps, increment_counter)
29970 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
29971 (__gconv_close_transform, free_modules_db): Likewise.
29972 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
29973 Likewise.
29974 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
29975 (__gconv_find_transform, __gconv_lookup_cache)
29976 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
29977 (__gconv_close_transform, __gconv_release_cache)
29978 (__gconv_loaded_object, __gconv_release_shlib)
29979 (__gconv_compare_alias): Likewise.
29980 * iconv/gconv_open.c (__gconv_open): Likewise.
29981 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
29982 * iconv/iconvconfig.c (add_module): Likewise.
29983 * intl/dcigettext.c (plural_lookup, guess_category_value)
29984 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
29985 * intl/eval-plural.h (plural_eval): Likewise.
29986 * intl/finddomain.c (_nl_find_domain): Likewise.
29987 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
29988 (_nl_load_domain, _nl_find_msg): Likewise.
29989 (internal_function): Remove definition.
29990 * intl/loadinfo.h (internal_function): Likewise.
29991 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
29992 internal_function.
29993 * intl/localealias.c (internal_function): Remove definition.
29994 (read_alias_file): Remove internal_function.
29995 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
29996 * intl/plural-exp.h (internal_function): Remove definition.
29997 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
29998 internal_function.
29999 * intl/plural.c: Regenerate.
30000 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
30001 * locale/coll-lookup.c (__collidx_table_lookup)
30002 (__collseq_table_lookup): Likewise.
30003 * locale/coll-lookup.h (__collidx_table_lookup)
30004 (__collseq_table_lookup): Likewise.
30005 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
30006 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30007 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
30008 (_nl_unload_locale): Likewise.
30009 * locale/localeinfo.h (struct __locale_data): Remove
30010 internal_function from cleanup member.
30011 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
30012 (_nl_remove_locale, _nl_load_locale_from_archive)
30013 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
30014 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
30015 (_nl_cleanup_time): Remove internal_function.
30016 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
30017 (_nl_parse_alt_digit): Likewise.
30018 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
30019 (_nl_select_era_entry): Likewise.
30020 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
30021 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
30022 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
30023 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
30024 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
30025
30026 2017-08-31 Florian Weimer <fweimer@redhat.com>
30027
30028 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
30029 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
30030 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
30031 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
30032 Likewise.
30033 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
30034 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
30035 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
30036 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
30037 Likewise.
30038 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
30039
30040 2017-08-31 Florian Weimer <fweimer@redhat.com>
30041
30042 * misc/getttyent.c (skip, value): Remove internal_function.
30043 * misc/syslog.c (openlog_internal): Likewise.
30044 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
30045
30046 2017-08-31 Florian Weimer <fweimer@redhat.com>
30047
30048 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
30049 (__nss_rewrite_field): Remove internal_function.
30050 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
30051 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
30052 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
30053 * nss/nsswitch.c (nss_parse_file, nss_getline)
30054 (nss_parse_service_list, nss_new_service): Likewise.
30055 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
30056 * nss/valid_field.c (__nss_valid_field): Likewise.
30057 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
30058
30059 2017-08-31 Florian Weimer <fweimer@redhat.com>
30060
30061 * malloc/arena.c (__malloc_fork_lock_parent)
30062 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
30063 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
30064 internal_function from defintions.
30065 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
30066 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
30067 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
30068 internal_function from declarations.
30069 * malloc/malloc.c (internal_function): Do not define.
30070 (mem2mem_check): Remove internal_function from declaration.
30071 (munmap_chunk, mremap_chunk): Remove internal_function.
30072 * malloc/mtrace.c (tr_where): Likewise.
30073
30074 2017-08-31 Florian Weimer <fweimer@redhat.com>
30075
30076 * include/rpc/pmap_clnt.h (__get_socket): Remove
30077 internal_function.
30078 * sunrpc/auth_des.c (synchronize): Likewise.
30079 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
30080 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
30081 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
30082 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
30083 (key_call): Likewise.
30084 * sunrpc/pm_getport.c (__get_socket): Likewise.
30085 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
30086 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
30087 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
30088 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
30089 (invalidate): Likewise.
30090 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
30091 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
30092 (set_input_fragment, get_input_bytes): Likewise.
30093
30094 2017-08-31 Florian Weimer <fweimer@redhat.com>
30095
30096 * malloc/malloc.c (_int_free): Remove locked variable and related
30097 asserts.
30098
30099 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
30100
30101 [BZ #22051]
30102 * Makerules (build-module-helper-objlist): Filter out
30103 $(elf-objpfx)sofini.os.
30104 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
30105 needed.
30106
30107 2017-08-31 Florian Weimer <fweimer@redhat.com>
30108
30109 * libio/fcloseall.c: Assume weak_alias is defined.
30110 * libio/feof.c: Likewise.
30111 * libio/fileno.c: Likewise.
30112 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
30113 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
30114 definitions.
30115 (_IO_file_open): Call __open directly.
30116 (_IO_new_file_sync): Assume ESPIPE is defined.
30117 (_IO_file_seekoff_maybe_mmap): Call __read directly.
30118 (_IO_new_file_write): Call __write directly.
30119 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
30120 * libio/ftello64.c (__ftello64): Assume EIO is defined.
30121 * libio/genops.c: Assume _LIBC is defined.
30122 (save_for_backup): Remove internal_function.
30123 * libio/getc.c: Assume weak_alias is defined.
30124 * libio/getwc.c: Likewise.
30125 * libio/iofclose.c: Assume _LIBC is defined.
30126 * libio/iofdopen.c: Likewise.
30127 (_IO_fcntl): Remove macro definition.
30128 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
30129 Call __fcntl directly.
30130 * libio/iofflush.c: Assume weak_alias is defined.
30131 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
30132 defined.
30133 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
30134 * libio/iofgets.c: Likewise.
30135 * libio/iofopen.c: Assume _LIBC is defined.
30136 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
30137 * libio/iofputs.c: Assume weak_alias is defined.
30138 * libio/iofread.c: Likewise.
30139 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
30140 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
30141 * libio/ioftell.c: Assume weak_alias is defined.
30142 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
30143 * libio/iofwide.c: Assume _LIBC is defined.
30144 (_IO_fwide): Drop SHARED conditional because it is implied by
30145 SHLIB_COMPAT.
30146 * libio/iofwrite.c: Assume weak_alias is defined.
30147 * libio/iogetdelim.c: Likewise.
30148 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
30149 * libio/iogetwline.c (wmemcpy): Remove macro definition.
30150 (_IO_getwline): Call __wmemcpy directly.
30151 * libio/iopopen.c: Assume _LIBC is defined.
30152 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
30153 (_IO_close): Remove macro definitions.
30154 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
30155 _exit directly.
30156 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
30157 directly.
30158 * libio/ioputs.c: Assume weak_alias is defined.
30159 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
30160 * libio/iosetbuffer.c: Assume weak_alias is defined.
30161 * libio/iosetvbuf.c: Likewise.
30162 * libio/ioungetc.c: Likewise.
30163 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
30164 libc_hidden_def, libc_hidden_weak, NULL are defined.
30165 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
30166 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
30167 defined.
30168 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
30169 definitions.
30170 (_IO_old_file_init_internal): Drop SHARED conditional because it
30171 is implied by SHLIB_COMPAT.
30172 (_IO_old_file_fopen): Call __open directly.
30173 (_IO_old_file_sync): Assume ESPIPE is defined.
30174 (_IO_old_file_write): Call __write directly.
30175 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
30176 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
30177 Call __fcntl directly.
30178 * libio/oldiofgetpos.c: Assume weak_alias is defined.
30179 (_IO_old_fgetpos): Assume EIO is defined.
30180 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
30181 (_IO_old_fgetpos64): Assume EIO is defined.
30182 * libio/oldiofsetpos.c: Assume weak_alias is defined.
30183 (_IO_old_fsetpos): Assume EIO is defined.
30184 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
30185 (_IO_old_fsetpos64): Assume EIO is defined.
30186 * libio/oldiopopen.c: Assume _LIBC is defined.
30187 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
30188 (_IO_close): Remove macro definitions.
30189 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
30190 directly.
30191 (_IO_old_proc_close): Call __close, __waitpid directly.
30192 * libio/put.c: Assume weak_alias is defined.
30193 * libio/stdfiles.c: Assume _LIBC is defined.
30194 * libio/stdio.c: Likewise.
30195 * libio/wfileops.c: Likewise.
30196 (_IO_wfile_sync): Assume ESPIPE is defined.
30197 * libio/wgenops.c: Assume _LIBC is defined.
30198 (save_for_wbackup): Remove internal_function.
30199
30200 2017-08-31 Florian Weimer <fweimer@redhat.com>
30201
30202 * malloc/malloc.c (top_check): Change return type to void. Remove
30203 internal_function.
30204 * malloc/hooks.c (top_check): Likewise.
30205 (malloc_check, realloc_check, memalign_check): Adjust.
30206
30207 2017-08-30 Joseph Myers <joseph@codesourcery.com>
30208
30209 [BZ #21457]
30210 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
30211 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
30212 sigcontext and namespace requirements.
30213 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
30214 * sysdeps/m68k/sys/ucontext.h: Likewise.
30215 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
30216 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
30217 <bits/sigcontext.h>.
30218 (__ctx): Define earlier.
30219 (mcontext_t): Define structure contents rather than using struct
30220 sigcontext.
30221 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
30222 __glibc_reserved1 instead of __reserved.
30223 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
30224 <bits/sigcontext.h>.
30225 (__ctx): Define earlier.
30226 (mcontext_t): Define structure contents rather than using struct
30227 sigcontext.
30228 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
30229 mcontext_t instead of struct sigcontext.
30230 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
30231 <bits/sigcontext.h>.
30232 (__ctx): Define earlier.
30233 (mcontext_t): Define structure contents rather than using struct
30234 sigcontext.
30235 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
30236 <bits/sigcontext.h>.
30237 (__ctx): Define earlier.
30238 (mcontext_t): Define structure contents rather than using struct
30239 sigcontext.
30240 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
30241 mcontext_t instead of struct sigcontext.
30242 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
30243 mcontext_t instead of struct sigcontext.
30244 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
30245 <bits/sigcontext.h>.
30246 (__ctx): New macro.
30247 (struct __ia64_fpreg_mcontext): New type.
30248 (mcontext_t): Define structure contents rather than using struct
30249 sigcontext.
30250 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
30251 (uc_sigmask): Define using __ctx.
30252 (uc_stack): Likewise.
30253 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
30254 <bits/sigcontext.h>.
30255 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
30256 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
30257 <bits/sigcontext.h>.
30258 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
30259 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
30260 <bits/sigcontext.h>.
30261 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
30262 <bits/sigcontext.h>.
30263 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
30264 <bits/sigcontext.h>.
30265 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
30266 <bits/sigcontext.h>.
30267 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
30268 <bits/sigcontext.h>.
30269 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
30270 <bits/sigcontext.h>.
30271 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
30272 <bits/sigcontext.h>.
30273 (__ctx): Define earlier.
30274 (mcontext_t): Define structure contents rather than using struct
30275 sigcontext.
30276 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
30277 <bits/sigcontext.h>. Include <bits/types.h>.
30278 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
30279 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
30280 (test-xfail-XPG42/ucontext.h/conform): Likewise.
30281 (test-xfail-UNIX98/signal.h/conform): Likewise.
30282 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
30283 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
30284 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
30285 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
30286 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
30287 (test-xfail-POSIX2008/signal.h/conform): Likewise.
30288 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
30289 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
30290 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
30291
30292 2017-08-30 Florian Weimer <fweimer@redhat.com>
30293
30294 * malloc/dynarray_emplace_enlarge.c
30295 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
30296 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
30297 * malloc/tst-dynarray.c (test_long_overflow): New function.
30298 (do_test): Call it.
30299
30300 2017-08-30 Florian Weimer <fweimer@redhat.com>
30301
30302 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
30303 (set_arena_corrupt): Remove definitions.
30304 (mtrim): Do not check for corrupt arena.
30305 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
30306 Likewise.
30307
30308 2017-08-30 Florian Weimer <fweimer@redhat.com>
30309
30310 [BZ #21754]
30311 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
30312 check_action.
30313 (ptmalloc_init): Do not set or use check_action.
30314 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
30315 call to malloc_printerr. Remove return statement.
30316 (free_check): Likewise. Remove arena unlock.
30317 (top_check): Update comment. Adjust call to malloc_printerr.
30318 Remove heap repair code.
30319 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
30320 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
30321 (sysmalloc): Adjust call to malloc_printerr.
30322 (munmap_chunk, __libc_realloc): Likewise. Remove return
30323 statement.
30324 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
30325 Remove errout label and corresponding gotos.
30326 (_int_free): Likewise. Remove arena unlock.
30327 (do_set_mallopt_check): Do not set check_action.
30328 (malloc_printerr): Adjust parameter list. Do not mark arena as
30329 corrupt.
30330 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
30331 comment.
30332 * manual/probes.texi (Memory Allocation Probes): Remove
30333 memory_mallopt_check_action.
30334
30335 2017-08-30 Steve Ellcey <sellcey@cavium.com>
30336
30337 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
30338 Use pointer to uint64_t instead of long int for sp.
30339
30340 2017-08-30 Florian Weimer <fweimer@redhat.com>
30341
30342 [BZ #21754]
30343 * malloc/malloc.c (malloc_printerr): Always terminate the process,
30344 without printing a backtrace. Do not leak any information in the
30345 error message.
30346 * manual/memory.texi (Heap Consistency Checking): Update.
30347 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
30348
30349 2017-08-30 Florian Weimer <fweimer@redhat.com>
30350
30351 Do not scale NPTL tests with available number of CPUs.
30352 * nptl/tst-cond16.c (count): Set to constant value of 8.
30353 * nptl/tst-cond18.c (count): Likewise.
30354
30355 2017-08-29 Joseph Myers <joseph@codesourcery.com>
30356
30357 [BZ #22035]
30358 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
30359 Define to take a second argument that is a macro that
30360 concatentates a suffix, not the suffix itself.
30361 (__CONCAT_d): New macro.
30362 (__CONCAT_f): Likewise.
30363 (__CONCAT_l): Likewise.
30364
30365 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
30366
30367 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
30368 by child.
30369
30370 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30371 Aurelien Jarno <aurelien@aurel32.net>
30372 Maciej W. Rozycki <macro@imgtec.com>
30373
30374 [BZ #21956]
30375 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
30376 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
30377 `mips16-syscall6' and `mips16-syscall7'.
30378 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
30379 (CFLAGS-mips16-syscall7.c): Remove.
30380 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
30381 Remove `__mips16_syscall5', `__mips16_syscall6' and
30382 `__mips16_syscall7'.
30383 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
30384 (__mips16_syscall0): Rename `__mips16_syscall_return' to
30385 `__mips_syscall_return'.
30386 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
30387 (__mips16_syscall1): Likewise.
30388 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
30389 (__mips16_syscall2): Likewise.
30390 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
30391 (__mips16_syscall3): Likewise.
30392 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
30393 (__mips16_syscall4): Likewise.
30394 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
30395 Remove.
30396 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
30397 Remove.
30398 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
30399 Remove.
30400 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
30401 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
30402 `__mips16_syscall5'. Remove prototype.
30403 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
30404 `__mips16_syscall6'. Remove prototype.
30405 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
30406 `__mips16_syscall7'. Remove prototype.
30407 (__nomips16, __mips16_syscall_return): Move to...
30408 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
30409 (__nomips16, __mips_syscall_return): ... here.
30410 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
30411 `__mips16_syscall_return' to `__mips_syscall_return'.
30412 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
30413 `internal_syscall##nr'.
30414 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
30415 `internal_syscall##nr'.
30416 (FORCE_FRAME_POINTER): Remove.
30417 (__mips_syscall5): New prototype.
30418 (internal_syscall5): Rewrite to call `__mips_syscall5'.
30419 (__mips_syscall6): New prototype.
30420 (internal_syscall6): Rewrite to call `__mips_syscall6'.
30421 (__mips_syscall7): New prototype.
30422 (internal_syscall7): Rewrite to call `__mips_syscall7'.
30423 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
30424 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
30425 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
30426 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
30427 (sysdep_routines): Add libc-do-syscall.
30428 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
30429 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
30430
30431 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30432
30433 [BZ #21672]
30434 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
30435 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
30436 (advise_stack_range): New function.
30437 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
30438 stack non required to advise_stack_range at allocatestack.c
30439
30440 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
30441
30442 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
30443
30444 2017-08-29 Florian Weimer <fweimer@redhat.com>
30445
30446 [BZ #22026]
30447 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
30448 __end_fct. Mangle __end_fct after setting it to NULL.
30449 * iconv/Makefile (tests): Add tst-gconv-init-failure.
30450 (modules-names, modules-names-tests): Add
30451 tst-gconv-init-failure-mod.
30452 (gconv-modules): New target.
30453 (tst-gconv-init-failure-mod.so): Link against libsupport.
30454 (tst-gconv-init-failure): Depend on gconv-modules,
30455 tst-gconv-init-failure-mod.so.
30456 * iconv/tst-gconv-init-failure-mod.c: New file.
30457 * iconv/tst-gconv-init-failure.c: Likewise.
30458 * iconv/test-gconv-modules: Likewise.
30459
30460 2017-08-29 Florian Weimer <fweimer@redhat.com>
30461
30462 [BZ #22025]
30463 * iconv/gconv_db.c (free_derivation): Remove redundant
30464 parentheses.
30465 (gen_steps): Unconditionally mangle __btowc_fct after
30466 initialization.
30467 (increment_counter): Likewise. Do not call init_fct for internal
30468 modules.
30469
30470 2017-08-29 Joseph Myers <joseph@codesourcery.com>
30471
30472 [BZ #22028]
30473 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
30474 (_MSUF_): Remove macro.
30475 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
30476 Likewise.
30477 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
30478 (__REDIRFROM_X): New macro.
30479 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
30480 Likewise.
30481 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
30482 (__REDIRTO_X): Likewise.
30483 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
30484 arguments.
30485 (__MATH_REDIRCALL_2): Likewise.
30486 (__MATH_REDIRCALL_INTERNAL): Likewise.
30487 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
30488 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
30489 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
30490 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
30491 * math/test-finite-macros.c: New file.
30492 * math/Makefile (tests): Add test-finite-macros.
30493 (CFLAGS-test-finite-macros.c): New variable.
30494
30495 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
30496 Jeff Law <law@redhat.com>
30497
30498 [BZ #22025]
30499 Mangle NULL pointers in iconv/gconv.
30500 * iconv/gconv_cache.c (find_module): Demangle init_fct before
30501 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
30502 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
30503 is non-NULL before demangling the end_fct. Check for NULL
30504 end_fct after demangling.
30505 (__gconv_release_step): Demangle the end_fct before checking
30506 it for NULL. Remove assert on __shlibc_handle != NULL.
30507 (gen_steps): Don't check btowc_fct for NULL before mangling.
30508 Demangle init_fct before checking for NULL.
30509 (increment_counter): Likewise.
30510 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
30511 end_fct for NULL before mangling.
30512 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
30513 for NULL.
30514
30515 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
30516
30517 [BZ #21971]
30518 * locale/iso-639.def: add Morisyen.
30519
30520 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30521
30522 [BZ #21930]
30523 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
30524 (iszero): New C++ implementation that does not use
30525 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
30526 signaling nans are enabled, since __builtin_types_compatible_p
30527 is a C-only feature.
30528 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
30529 defined, include ieee754_float128.h for access to the union and
30530 member ieee854_float128.ieee.
30531 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
30532 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
30533 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
30534 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
30535 options of test-math-zero on powerpc64le.
30536
30537 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
30538
30539 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
30540 Change double to float.
30541
30542 2017-08-28 Joseph Myers <joseph@codesourcery.com>
30543
30544 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
30545 unconditional.
30546 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
30547 conditional code; define contents only for [LIBM_SVID_COMPAT].
30548
30549 2017-08-28 Florian Weimer <fweimer@redhat.com>
30550
30551 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
30552 (abi-lp64_be-options): Remove.
30553 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
30554 (abi-hard-options): Likewise.
30555 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
30556 (abi-o32_hard-options, abi-o32_soft_2008-options)
30557 (abi-o32_hard_2008-options, abi-n32_soft-options)
30558 (abi-n32_hard-options, abi-n32_soft_2008-options)
30559 (abi-n32_hard_2008-options, abi-n64_soft-options)
30560 (abi-n64_hard-options, abi-n64_soft_2008-options)
30561 (abi-n64_hard_2008-options): Likewise.
30562 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
30563 (abi-64-v1-options, abi-64-v2-options): Likewise.
30564 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
30565 (abi-64-options): Likewise.
30566 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
30567 (abi-64-options): Likewise.
30568 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
30569 (abi-64-options): Likewise.
30570 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
30571 (abi-64-options, abi-x32-options): Likewise.
30572
30573 2017-08-28 Florian Weimer <fweimer@redhat.com>
30574
30575 Store supported list of SYS_* system calls in the source tree.
30576 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
30577 (bits/syscall.h): Generate from list file.
30578 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
30579 [$(subdir) = misc] (tests): Add tst-syscall-list.
30580 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
30581 [$(subdir) = misc] (tst-syscall-list-macros.list)
30582 [$(subdir) = misc] (tst-syscall-list-nr.list)
30583 (tst-syscall-list-sys.list): Helper targets for new
30584 tst-syscall-list test.
30585 [$(subdir) = misc] (tst-syscall-list.out): Run test script
30586 tst-syscall-list.sh.
30587 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
30588 target. Do not include bits/syscall.d.
30589 [$(subdir) = misc] (generated): Do not update.
30590 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
30591 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
30592 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
30593 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
30594
30595 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
30596
30597 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
30598 (tst-cxa_atexit, tst-on_exit): Likewise.
30599 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
30600 tst-cxa_atexit, and tst-on_exit.
30601 * stdlib/tst-atexit-common.c: New file.
30602 * stdlib/tst-atexit.c: New file.
30603 * stdlib/tst-at_quick_exit.c: New file.
30604 * stdlib/tst-cxa_atexit.c: New file.
30605 * stdlib/tst-on_exit.c: New file.
30606
30607 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
30608
30609 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
30610 * mach/stack_chk_fail_local.c: New file.
30611 * hurd/stack_chk_fail_local.c: New file.
30612 * mach/Machrules ($(interface-library)-routines): Add
30613 stack_chk_fail_local.
30614 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
30615 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
30616 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
30617 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
30618 * hurd/Makefile (CFLAGS-hurdstartup.o,
30619 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
30620
30621 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
30622
30623 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
30624 (index_cpu_*, index_arch_*): Removed.
30625
30626 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
30627
30628 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
30629 Use uint64_t instead of unsigned long.
30630
30631 2017-08-25 Joseph Myers <joseph@codesourcery.com>
30632
30633 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
30634 [__HAVE_DISTINCT_FLOAT128].
30635
30636 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
30637 of <bits/math-finite.h>.
30638 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
30639 inclusion of <bits/math-finite.h>.
30640 * math/bits/math-finite.h (__REDIRTO_X): Do not define
30641 conditionally on [__MATH_DECLARING_LDOUBLE && defined
30642 __NO_LONG_DOUBLE_MATH].
30643 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
30644 (__MATH_REDIRCALL_2): Likewise.
30645 (__MATH_REDIRCALL_INTERNAL): Likewise.
30646 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
30647 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
30648 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
30649
30650 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
30651 Remove file.
30652 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
30653 Likewise.
30654 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
30655 Likewise.
30656 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
30657 Likewise.
30658 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
30659 Likewise.
30660 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
30661 Likewise.
30662 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30663 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30664 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30665 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30666 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
30667 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
30668 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
30669 w_sqrtf_compat-ppc32.
30670
30671 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30672
30673 * math/math.h [defined __cplusplus] (issignaling): In the long
30674 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
30675 is not defined. Call __issignaling, otherwise.
30676
30677 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30678
30679 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
30680 syscall definitions and replace __builtin_expect with __glibc_likely.
30681 * sysdeps/unix/syscall-template.S: Update comment about cancellable
30682 syscall.
30683 (SYSCALL_CANCELLABLE): Removedefinition
30684 * sysdeps/unix/sysv/linux/aarch64/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/alpha/sysdep-cancel.h (PSEUDO): Remove
30695 definition.
30696 (PSEUDO_END): Likewise.
30697 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
30698 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
30699 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
30700 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
30701 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
30702 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
30703 (CENABLE): Likewise.
30704 (CDISABLE): Likewise.
30705 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30706 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
30707 defintion.
30708 (PSEUDO_END): Likewise.
30709 [IS_IN (libpthread)] (CENABLE): Likewise.
30710 [IS_IN (libpthread)] (CDISABLE): Likewise.
30711 [IS_IN (libc)] (CENABLE): Likewise.
30712 [IS_IN (libc)] (CENABLE): Likewise.
30713 [IS_IN (librt)] (CDISABLE): Likewise.
30714 [IS_IN (librt)] (CDISABLE): Likewise.
30715 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30716 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
30717 definition.
30718 (PSEUDO_END): Likewise.
30719 [IS_IN (libpthread)] (CENABLE): Likewise.
30720 [IS_IN (libpthread)] (CDISABLE): Likewise.
30721 [IS_IN (libc)] (CENABLE): Likewise.
30722 [IS_IN (libc)] (CENABLE): Likewise.
30723 [IS_IN (librt)] (CDISABLE): Likewise.
30724 [IS_IN (librt)] (CDISABLE): Likewise.
30725 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30726 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
30727 definition.
30728 (PSEUDO_END): Likewise.
30729 [IS_IN (libpthread)] (CENABLE): Likewise.
30730 [IS_IN (libpthread)] (CDISABLE): Likewise.
30731 [IS_IN (libc)] (CENABLE): Likewise.
30732 [IS_IN (libc)] (CENABLE): Likewise.
30733 [IS_IN (librt)] (CDISABLE): Likewise.
30734 [IS_IN (librt)] (CDISABLE): Likewise.
30735 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30736 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
30737 definition.
30738 (PSEUDO_END): Likewise.
30739 [IS_IN (libpthread)] (CENABLE): Likewise.
30740 [IS_IN (libpthread)] (CDISABLE): Likewise.
30741 [IS_IN (libc)] (CENABLE): Likewise.
30742 [IS_IN (libc)] (CENABLE): Likewise.
30743 [IS_IN (librt)] (CDISABLE): Likewise.
30744 [IS_IN (librt)] (CDISABLE): Likewise.
30745 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30746 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
30747 definition.
30748 (PSEUDO_END): Likewise.
30749 [IS_IN (libpthread)] (CENABLE): Likewise.
30750 [IS_IN (libpthread)] (CDISABLE): Likewise.
30751 [IS_IN (libc)] (CENABLE): Likewise.
30752 [IS_IN (libc)] (CENABLE): Likewise.
30753 [IS_IN (librt)] (CDISABLE): Likewise.
30754 [IS_IN (librt)] (CDISABLE): Likewise.
30755 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30756 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
30757 definition.
30758 (PSEUDO_END): Likewise.
30759 [IS_IN (libpthread)] (CENABLE): Likewise.
30760 [IS_IN (libpthread)] (CDISABLE): Likewise.
30761 [IS_IN (libc)] (CENABLE): Likewise.
30762 [IS_IN (libc)] (CENABLE): Likewise.
30763 [IS_IN (librt)] (CDISABLE): Likewise.
30764 [IS_IN (librt)] (CDISABLE): Likewise.
30765 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30766 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
30767 Remove definition.
30768 (PSEUDO_END): Likewise.
30769 [IS_IN (libpthread)] (CENABLE): Likewise.
30770 [IS_IN (libpthread)] (CDISABLE): Likewise.
30771 [IS_IN (libc)] (CENABLE): Likewise.
30772 [IS_IN (libc)] (CENABLE): Likewise.
30773 [IS_IN (librt)] (CDISABLE): Likewise.
30774 [IS_IN (librt)] (CDISABLE): Likewise.
30775 (SINGLE_THREAD_P): Likewise.
30776 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
30777 definition.
30778 (PSEUDO_END): Likewise.
30779 [IS_IN (libpthread)] (CENABLE): Likewise.
30780 [IS_IN (libpthread)] (CDISABLE): Likewise.
30781 [IS_IN (libc)] (CENABLE): Likewise.
30782 [IS_IN (libc)] (CENABLE): Likewise.
30783 [IS_IN (librt)] (CDISABLE): Likewise.
30784 [IS_IN (librt)] (CDISABLE): Likewise.
30785 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30786 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
30787 definition.
30788 (PSEUDO_END): Likewise.
30789 [IS_IN (libpthread)] (CENABLE): Likewise.
30790 [IS_IN (libpthread)] (CDISABLE): Likewise.
30791 [IS_IN (libc)] (CENABLE): Likewise.
30792 [IS_IN (libc)] (CENABLE): Likewise.
30793 [IS_IN (librt)] (CDISABLE): Likewise.
30794 [IS_IN (librt)] (CDISABLE): Likewise.
30795 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30796 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
30797 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
30798 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
30799 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
30800 definition.
30801 (PSEUDO_END): Likewise.
30802 [IS_IN (libpthread)] (CENABLE): Likewise.
30803 [IS_IN (libpthread)] (CDISABLE): Likewise.
30804 [IS_IN (libc)] (CENABLE): Likewise.
30805 [IS_IN (libc)] (CENABLE): Likewise.
30806 [IS_IN (librt)] (CDISABLE): Likewise.
30807 [IS_IN (librt)] (CDISABLE): Likewise.
30808 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30809 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
30810 definition.
30811 (PSEUDO_END): Likewise.
30812 [IS_IN (libpthread)] (CENABLE): Likewise.
30813 [IS_IN (libpthread)] (CDISABLE): Likewise.
30814 [IS_IN (libc)] (CENABLE): Likewise.
30815 [IS_IN (libc)] (CENABLE): Likewise.
30816 [IS_IN (librt)] (CDISABLE): Likewise.
30817 [IS_IN (librt)] (CDISABLE): Likewise.
30818 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30819 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
30820 definition.
30821 (PSEUDO_END): Likewise.
30822 [IS_IN (libpthread)] (CENABLE): Likewise.
30823 [IS_IN (libpthread)] (CDISABLE): Likewise.
30824 [IS_IN (libc)] (CENABLE): Likewise.
30825 [IS_IN (libc)] (CENABLE): Likewise.
30826 [IS_IN (librt)] (CDISABLE): Likewise.
30827 [IS_IN (librt)] (CDISABLE): Likewise.
30828 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30829 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
30830 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
30831 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
30832 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
30833 definition.
30834 (PSEUDO_END): Likewise.
30835 [IS_IN (libpthread)] (CENABLE): Likewise.
30836 [IS_IN (libpthread)] (CDISABLE): Likewise.
30837 [IS_IN (libc)] (CENABLE): Likewise.
30838 [IS_IN (libc)] (CENABLE): Likewise.
30839 [IS_IN (librt)] (CDISABLE): Likewise.
30840 [IS_IN (librt)] (CDISABLE): Likewise.
30841 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30842 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
30843 definition.
30844 (PSEUDO_END): Likewise.
30845 [IS_IN (libpthread)] (CENABLE): Likewise.
30846 [IS_IN (libpthread)] (CDISABLE): Likewise.
30847 [IS_IN (libc)] (CENABLE): Likewise.
30848 [IS_IN (libc)] (CENABLE): Likewise.
30849 [IS_IN (librt)] (CDISABLE): Likewise.
30850 [IS_IN (librt)] (CDISABLE): Likewise.
30851 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30852
30853 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
30854
30855 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
30856
30857 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30858
30859 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30860
30861 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30862
30863 [BZ #21982]
30864 * string/stratcliff.c (do_test): Declare size, nchars, inner,
30865 middle and outer with size_t instead of int. Repleace %d and
30866 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
30867 "MAX (outer, nchars - 64)" to support unsigned outer and
30868 nchars. Also exit loop when outer == 0.
30869
30870 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30871
30872 * include/fcntl.h (__fcntl_nocancel): Remove definition.
30873 * include/signal.h (__sigsuspend_nocancel): Likewise.
30874 * include/time.h (__nanosleep_nocancel): Likewise.
30875 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
30876 * login/utmp_file.c: Include non cancellable syscall header.
30877 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
30878 prototype.
30879
30880 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30881
30882 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
30883 .byte sequences with AVX512F instructions.
30884 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
30885 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
30886 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
30887 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
30888 Likewise.
30889 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
30890 Likewise.
30891
30892 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
30893 Steve Ellcey <sellcey@cavium.com>
30894
30895 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
30896 Use PTR_REG macro in cmp instruction.
30897
30898 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30899
30900 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
30901 Change the return type of the ifunc resolver to match the return
30902 type of the target function.
30903
30904 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30905
30906 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
30907 (preadv64): Likewise.
30908 (pwrite64(: Likewise.
30909 (pwritev64): Likewise.
30910
30911 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
30912 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
30913 (LOAD_ARGS_0): Likewise.
30914 (LOAD_ARGS_1): Likewise.
30915 (LOAD_ARGS_2): Likewise.
30916 (LOAD_ARGS_3): Likewise.
30917 (LOAD_ARGS_4): Likewise.
30918 (LOAD_ARGS_5): Likewise.
30919 (LOAD_ARGS_6): Likewise.
30920 (LOAD_REGS_0): Likewise.
30921 (LOAD_REGS_1): Likewise.
30922 (LOAD_REGS_2): Likewise.
30923 (LOAD_REGS_3): Likewise.
30924 (LOAD_REGS_4): Likewise.
30925 (LOAD_REGS_5): Likewise.
30926 (LOAD_REGS_6): Likewise.
30927 (ASM_ARGS_0): Likewise.
30928 (ASM_ARGS_1): Likewise.
30929 (ASM_ARGS_2): Likewise.
30930 (ASM_ARGS_3): Likewise.
30931 (ASM_ARGS_4): Likewise.
30932 (ASM_ARGS_5): Likewise.
30933 (ASM_ARGS_6): Likewise.
30934 (LOAD_ARGS_TYPES_1): Likewise.
30935 (LOAD_ARGS_TYPES_2): Likewise.
30936 (LOAD_ARGS_TYPES_3): Likewise.
30937 (LOAD_ARGS_TYPES_4): Likewise.
30938 (LOAD_ARGS_TYPES_5): Likewise.
30939 (LOAD_ARGS_TYPES_6): Likewise.
30940 (LOAD_REGS_TYPES_1): Likewise.
30941 (LOAD_REGS_TYPES_2): Likewise.
30942 (LOAD_REGS_TYPES_3): Likewise.
30943 (LOAD_REGS_TYPES_4): Likewise.
30944 (LOAD_REGS_TYPES_5): Likewise.
30945 (LOAD_REGS_TYPES_6): Likewise.
30946 (TYPEFY): New define.
30947 (ARGIFY): Likewise.
30948 (internal_syscall0): Likewise.
30949 (internal_syscall1): Likewise.
30950 (internal_syscall2): Likewise.
30951 (internal_syscall3): Likewise.
30952 (internal_syscall4): Likewise.
30953 (internal_syscall5): Likewise.
30954 (internal_syscall6): Likewise.
30955 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
30956 (INTERNAL_SYSCALL_NCS): Remove define.
30957 (internal_syscall1): Add define.
30958
30959 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30960
30961 * math/w_remainder_compat.c: Remove duplicate inclusion of
30962 math-svid-compat.h.
30963 * math/w_remainderf_compat.c: Likewise.
30964 * math/w_remainderl_compat.c: Likewise.
30965
30966 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30967
30968 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30969
30970 2017-08-22 Joseph Myers <joseph@codesourcery.com>
30971
30972 [BZ #21684]
30973 * math/tgmath.h (__floating_type): Simplify definitions.
30974 (__real_integer_type): New macro.
30975 (__complex_integer_type): Likewise.
30976 (__expr_is_real): Likewise.
30977 (__tgmath_real_type_sub): Update comment to describe handling of
30978 complex types.
30979 (__tgmath_complex_type_sub): New macro.
30980 (__tgmath_complex_type): Likewise.
30981 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
30982 (__TGMATH_CF128): Use __expr_is_real.
30983 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
30984 __expr_is_real.
30985 (__TGMATH_BINARY_REAL_IMAG): Likewise.
30986 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
30987 * math/gen-tgmath-tests.py (Type.create_type): Create complex
30988 integer types.
30989
30990 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30991
30992 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
30993 macro.
30994 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
30995 alias.
30996 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
30997 Likewise.
30998
30999 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
31000 nanosleep_not_cancel with __nanosleep_nocancel.
31001 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
31002 (__nanosleep_nocancel): New macro.
31003 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
31004 function.
31005 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
31006 macro.
31007 (__nanosleep_nocancel): New prototype.
31008
31009 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
31010 pause_not_cancel with __pause_nocancel.
31011 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
31012 (__pause_nocancel): New macro.
31013 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
31014 macro.
31015 (__pause_nocancel): New prototype.
31016 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
31017
31018 2017-08-22 Martin Sebor <msebor@redhat.com>
31019
31020 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
31021 to return a pointer to the same type as the target function.
31022
31023 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
31024
31025 [BZ #18822]
31026 [BZ #21986]
31027 * include/printf.h (__printf_fphex): Add attribute_hidden.
31028 (__guess_grouping): New prototype.
31029 * stdio-common/printf_fp.c (__guess_grouping): Removed.
31030 * stdio-common/reg-printf.c (__register_printf_specifier): Add
31031 libc_hidden_proto and libc_hidden_def.
31032 * stdlib/strfmon_l.c (__guess_grouping): Removed.
31033 (__vstrfmon_l): Remove the third argument passed to
31034 __guess_grouping.
31035
31036 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31037
31038 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
31039 definition for issignaling that does not rely on __MATH_TG,
31040 since __MATH_TG uses __builtin_types_compatible_p, which is only
31041 available in C mode.
31042 (CFLAGS-test-math-issignaling.cc): New variable.
31043 * math/Makefile [CXX] (tests): Add test-math-issignaling.
31044 * math/test-math-issignaling.cc: New test for C++ implementation
31045 of type-generic issignaling.
31046 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
31047 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
31048 options of test-math-issignaling on powerpc64le.
31049
31050 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
31051
31052 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
31053 building libc.a.
31054 (hidden_proto): Likewise.
31055 (hidden_tls_proto): Likewise.
31056 (__hidden_proto): Likewise.
31057
31058 2017-08-22 Florian Weimer <fweimer@redhat.com>
31059
31060 math: Statically link tests of internal functionality.
31061 * math/Makefile (tests): Remove atest-exp, atest-sincos,
31062 atest-exp2.
31063 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
31064 (gmp-objs): Remove assignment.
31065 (atest-exp, atest-sincos, atest-exp2): Remove targets.
31066
31067 2017-08-22 Joseph Myers <joseph@codesourcery.com>
31068
31069 [BZ #21987]
31070 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
31071 and copy to ...
31072 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
31073 ... here.
31074 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
31075 ... and here.
31076
31077 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
31078 variable definitions above inclusion of ../Rules.
31079
31080 2017-08-21 Joseph Myers <joseph@codesourcery.com>
31081
31082 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
31083 case calling __builtin_unreachable.
31084
31085 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31086
31087 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
31088 __waitpid_nocancel.
31089 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
31090 (__waitpid_nocancel): New macro.
31091 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
31092 macro.
31093 (__waitpid_nocancel): Replace macro with a function.
31094 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
31095 function.
31096
31097 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
31098 __fcntl_nocancel.
31099 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
31100 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
31101
31102 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
31103 __writev_nocancel_nostatus.
31104 (write_call_graph): Likewise.
31105 (write_bb_counts): Likewise.
31106 * resolv/herror.c (herror): Likewise.
31107 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
31108 macro.
31109 (__writev_nocancel_nostatus): New macro.
31110 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
31111 Remove macro.
31112 (__writev_nocancel_nostatus): New function.
31113
31114 2017-08-21 Joseph Myers <joseph@codesourcery.com>
31115
31116 Revert:
31117 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31118
31119 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
31120 building libc.a.
31121 (hidden_proto): Likewise.
31122 (hidden_tls_proto): Likewise.
31123 (__hidden_proto): Likewise.
31124
31125 [BZ #21973]
31126 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
31127 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
31128 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
31129 Likewise.
31130 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
31131 Likewise.
31132 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
31133 Likewise.
31134 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
31135 Likewise.
31136 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
31137 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
31138 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
31139 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
31140 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
31141 GLIBC_2.0 sqrtl symbol.
31142
31143 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
31144 [__USE_MISC] (_LIB_VERSION): Likewise.
31145 [__USE_MISC] (struct exception): Likewise.
31146 [__USE_MISC] (matherr): Likewise.
31147 [__USE_MISC] (DOMAIN): Likewise.
31148 [__USE_MISC] (SING): Likewise.
31149 [__USE_MISC] (OVERFLOW): Likewise.
31150 [__USE_MISC] (UNDERFLOW): Likewise.
31151 [__USE_MISC] (TLOSS): Likewise.
31152 [__USE_MISC] (PLOSS): Likewise.
31153 [__USE_MISC] (HUGE): Likewise.
31154 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
31155 * math/math-svid-compat.h: New file.
31156 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
31157 and matherrl.
31158 * include/math.h [!_ISOMAC] (__matherr): Remove.
31159 * manual/arith.texi (FP Exceptions): Do not document matherr.
31160 * math/Makefile (tests): Change test-matherr to test-matherr-3.
31161 (tests-internal): New variable.
31162 (install-lib): Do not add libieee.a.
31163 (non-lib.a): Likewise.
31164 (extra-objs): Do not add libieee.a and ieee-math.o.
31165 (CPPFLAGS-s_lib_version.c): Remove variable.
31166 ($(objpfx)libieee.a): Remove rule.
31167 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
31168 * math/ieee-math.c: Remove.
31169 * math/libm-test-support.c (matherr): Remove.
31170 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
31171 and license notices. Include <math-svid-compat.h> and
31172 <shlib-compat.h>.
31173 (matherr): Undefine as macro. Use compat_symbol_reference.
31174 (_LIB_VERSION): Likewise.
31175 * math/test-matherr-2.c: New file.
31176 * math/test-matherr-3.c: Likewise.
31177 * sysdeps/generic/math_private.h (__kernel_standard): Remove
31178 declaration.
31179 (__kernel_standard_f): Likewise.
31180 (__kernel_standard_l): Likewise.
31181 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
31182 <math_private.h>. Include <math-svid-compat.h>.
31183 (_LIB_VERSION): Undefine as macro.
31184 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
31185 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
31186 [LIBM_SVID_COMPAT], use compat_symbol.
31187 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
31188 <math_private.h>. Include <math-svid-compat.h>.
31189 (matherr): Undefine as macro.
31190 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
31191 compat_symbol.
31192 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
31193 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
31194 compat_symbol_reference.
31195 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
31196 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
31197 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
31198 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
31199 (MATHERR_D): Remove declaration.
31200 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
31201 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
31202 [LIBM_BUILD] (pmatherrf): Likewise.
31203 [LIBM_BUILD] (pmatherr): Likewise.
31204 [LIBM_BUILD] (pmatherrl): Likewise.
31205 (DOMAIN): Likewise.
31206 (SING): Likewise.
31207 (OVERFLOW): Likewise.
31208 (UNDERFLOW): Likewise.
31209 (TLOSS): Likewise.
31210 (PLOSS): Likewise.
31211 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
31212 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
31213 compat_symbol.
31214 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
31215 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
31216 compat_symbol.
31217 * math/lgamma-compat.h: Include <math-svid-compat.h>.
31218 * math/w_acos_compat.c: Likewise.
31219 * math/w_acosf_compat.c: Likewise.
31220 * math/w_acosh_compat.c: Likewise.
31221 * math/w_acoshf_compat.c: Likewise.
31222 * math/w_acoshl_compat.c: Likewise.
31223 * math/w_acosl_compat.c: Likewise.
31224 * math/w_asin_compat.c: Likewise.
31225 * math/w_asinf_compat.c: Likewise.
31226 * math/w_asinl_compat.c: Likewise.
31227 * math/w_atan2_compat.c: Likewise.
31228 * math/w_atan2f_compat.c: Likewise.
31229 * math/w_atan2l_compat.c: Likewise.
31230 * math/w_atanh_compat.c: Likewise.
31231 * math/w_atanhf_compat.c: Likewise.
31232 * math/w_atanhl_compat.c: Likewise.
31233 * math/w_cosh_compat.c: Likewise.
31234 * math/w_coshf_compat.c: Likewise.
31235 * math/w_coshl_compat.c: Likewise.
31236 * math/w_exp10_compat.c: Likewise.
31237 * math/w_exp10f_compat.c: Likewise.
31238 * math/w_exp10l_compat.c: Likewise.
31239 * math/w_exp2_compat.c: Likewise.
31240 * math/w_exp2f_compat.c: Likewise.
31241 * math/w_exp2l_compat.c: Likewise.
31242 * math/w_fmod_compat.c: Likewise.
31243 * math/w_fmodf_compat.c: Likewise.
31244 * math/w_fmodl_compat.c: Likewise.
31245 * math/w_hypot_compat.c: Likewise.
31246 * math/w_hypotf_compat.c: Likewise.
31247 * math/w_hypotl_compat.c: Likewise.
31248 * math/w_j0_compat.c: Likewise.
31249 * math/w_j0f_compat.c: Likewise.
31250 * math/w_j0l_compat.c: Likewise.
31251 * math/w_j1_compat.c: Likewise.
31252 * math/w_j1f_compat.c: Likewise.
31253 * math/w_j1l_compat.c: Likewise.
31254 * math/w_jn_compat.c: Likewise.
31255 * math/w_jnf_compat.c: Likewise.
31256 * math/w_jnl_compat.c: Likewise.
31257 * math/w_lgamma_main.c: Likewise.
31258 * math/w_lgamma_r_compat.c: Likewise.
31259 * math/w_lgammaf_main.c: Likewise.
31260 * math/w_lgammaf_r_compat.c: Likewise.
31261 * math/w_lgammal_main.c: Likewise.
31262 * math/w_lgammal_r_compat.c: Likewise.
31263 * math/w_log10_compat.c: Likewise.
31264 * math/w_log10f_compat.c: Likewise.
31265 * math/w_log10l_compat.c: Likewise.
31266 * math/w_log2_compat.c: Likewise.
31267 * math/w_log2f_compat.c: Likewise.
31268 * math/w_log2l_compat.c: Likewise.
31269 * math/w_log_compat.c: Likewise.
31270 * math/w_logf_compat.c: Likewise.
31271 * math/w_logl_compat.c: Likewise.
31272 * math/w_pow_compat.c: Likewise.
31273 * math/w_powf_compat.c: Likewise.
31274 * math/w_powl_compat.c: Likewise.
31275 * math/w_remainder_compat.c: Likewise.
31276 * math/w_remainderf_compat.c: Likewise.
31277 * math/w_remainderl_compat.c: Likewise.
31278 * math/w_scalb_compat.c: Likewise.
31279 * math/w_scalbf_compat.c: Likewise.
31280 * math/w_scalbl_compat.c: Likewise.
31281 * math/w_sinh_compat.c: Likewise.
31282 * math/w_sinhf_compat.c: Likewise.
31283 * math/w_sinhl_compat.c: Likewise.
31284 * math/w_sqrt_compat.c: Likewise.
31285 * math/w_sqrtf_compat.c: Likewise.
31286 * math/w_sqrtl_compat.c: Likewise.
31287 * math/w_tgamma_compat.c: Likewise.
31288 * math/w_tgammaf_compat.c: Likewise.
31289 * math/w_tgammal_compat.c: Likewise.
31290 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
31291 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
31292 * sysdeps/ieee754/k_standard.c: Likewise.
31293 * sysdeps/ieee754/k_standardf.c: Likewise.
31294 * sysdeps/ieee754/k_standardl.c: Likewise.
31295 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
31296 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
31297 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
31298 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
31299 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
31300 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
31301 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
31302 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
31303 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
31304 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
31305 Likewise.
31306 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
31307 Likewise.
31308 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
31309 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
31310 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
31311 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
31312
31313 2017-08-21 Florian Weimer <fweimer@redhat.com>
31314
31315 [BZ #21864]
31316 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
31317 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
31318 Move before inclusion of ../Rules.
31319
31320 2017-08-21 Florian Weimer <fweimer@redhat.com>
31321
31322 [BZ #21972]
31323 * assert/assert.h (assert): Use static_cast (bool) for C++.
31324 Use the ternary operator in the warning branch for GNU C.
31325 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
31326 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
31327 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
31328 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
31329 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
31330
31331 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31332
31333 [BZ #18822]
31334 * sysdeps/unix/sysv/linux/x86_64/init-first.c
31335 (__syscall_clock_gettime): Add attribute_hidden.
31336 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
31337 (__start_context): Likewise.
31338
31339 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31340
31341 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
31342 building libc.a.
31343 (hidden_proto): Likewise.
31344 (hidden_tls_proto): Likewise.
31345 (__hidden_proto): Likewise.
31346
31347 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31348
31349 * include/libc-symbols.h (attribute_hidden): Enable hidden
31350 visibility in libc.a compiled with PIE.
31351
31352 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31353
31354 [BZ #18822]
31355 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
31356 Add attribute_hidden.
31357
31358 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31359
31360 [BZ #21864]
31361 * Makerules (all-nonlib): Add $(others-extras).
31362 * catgets/Makefile (others-extras): New.
31363 * elf/Makefile (others-extras): Likewise.
31364 * nss/Makefile (others-extras): Likewise.
31365
31366 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31367
31368 [BZ #18822]
31369 * csu/libc-start.c (__libc_multiple_libcs): Removed.
31370 * elf/dl-open.c: Include <libc-internal.h>.
31371 (__libc_multiple_libcs): Removed.
31372 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
31373 <hp-timing.h>.
31374 * include/libc-internal.h (__libc_multiple_libcs): New.
31375 * misc/sbrk.c: Include <libc-internal.h>.
31376 (__libc_multiple_libcs): Removed.
31377
31378 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31379
31380 [BZ #18822]
31381 * grp/initgroups.c (__nss_group_database): Removed.
31382 (__nss_initgroups_database): Likewise.
31383 * nscd/gai.c (__nss_hosts_database): Likewise.
31384 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
31385 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
31386 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
31387 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
31388 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
31389 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
31390 attribute_hidden.
31391 * nss/nsswitch.c (__nss_database_custom): Define only if
31392 USE_NSCD is defined.
31393 (__nss_configure_lookup): Use __nss_database_custom only if
31394 USE_NSCD is defined.
31395 * nss/nsswitch.h (__nss_database_custom): Declare only if
31396 USE_NSCD is defined. Add attribute_hidden.
31397 (__nss_setent): Add attribute_hidden.
31398 (__nss_endent): Likewise.
31399 (__nss_getent_r): Likewise.
31400 (__nss_getent): Likewise.
31401 (DEFINE_DATABASE): Declare __nss_##arg##_database.
31402
31403 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31404
31405 [BZ #18822]
31406 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
31407 libc_hidden_proto and libc_hidden_def.
31408
31409 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31410
31411 [BZ #18822]
31412 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
31413 Add libc_hidden_proto.
31414 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
31415 Add libc_hidden_def.
31416
31417 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31418
31419 [BZ #21974]
31420 * gmon/Makefile (routines): Remove bb_init_func and
31421 bb_exit_func.
31422 (elide-routines.os): Removed.
31423 * gmon/bb_exit_func.c: Likewise.
31424 * gmon/bb_init_func.c: Likewise.
31425 * include/sys/gmon.h (__bb): Likewise.
31426 (__bb_init_func): Likewise.
31427 (__bb_exit_func): Likewise.
31428 * sysdeps/alpha/bb_init_func.S: Likewise.
31429
31430 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31431
31432 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
31433 * include/setjmp.h (____longjmp_chk): Here. Add
31434 attribute_hidden.
31435
31436 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
31437
31438 [BZ #18822]
31439 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
31440 attribute_hidden.
31441 (__strspn_sse2): Likewise.
31442
31443 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31444
31445 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
31446 (close_not_cancel_no_status): Likewise.
31447 (__close_nocancel): New macro.
31448 (__close_nocancel_nostatus): Likewise.
31449 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
31450 macro.
31451 (close_not_cancel): Likewise.
31452 (close_not_cancel_no_status): Likewise.
31453 (__close_nocancel): New prototype.
31454 (__close_nocancel_nostatus): New function.
31455 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
31456 * catgets/open_catalog.c (__open_catalog): Replace
31457 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
31458 * gmon/gmon.c (write_gmon): Likewise.
31459 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
31460 * intl/loadmsgcat.c (close): Likewise.
31461 * io/ftw.c (open_dir_stream): Likewise.
31462 (ftw_startup): Likewise.
31463 * libio/fileops.c (_IO_file_open): Likewise.
31464 (_IO_file_close_mmap): Likewise.
31465 (_IO_file_close): Likewise.
31466 * libio/iopopen.c (_IO_dup2): Likewise.
31467 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31468 * locale/loadlocale.c (_nl_load_locale): Likewise.
31469 * login/utmp_file.c (pututline_file): Likewise.
31470 (endutent_file): Likewise.
31471 * misc/daemon.c (daemon): Likewise.
31472 * nscd/nscd_getai.c (__nscd_getai): Likewise.
31473 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
31474 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
31475 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
31476 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
31477 * nscd/nscd_helper.c (open_socket): Likewise.
31478 (__nscd_open_socket): Likewise.
31479 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
31480 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
31481 (__nscd_innetgr): Likewise.
31482 * nss/nss_db/db-open.c (internal_setent): Likewise.
31483 * resolv/res-close.c (__res_iclose): Likewise.
31484 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
31485 * sysdeps/posix/closedir.c (__closedir): Likewise.
31486 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
31487 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31488 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
31489 (opendir_tail): Likewise.
31490 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31491 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
31492 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
31493 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
31494 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31495 (gethostid): Likewise.
31496 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31497 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31498 Likewise.
31499 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
31500 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
31501 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31502 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31503 Likewise.
31504 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
31505 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
31506 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31507 Likewise.
31508 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
31509 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31510 Likewise.
31511 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31512 Likewise.
31513 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
31514 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31515 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31516 __close_nocancel.
31517
31518 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
31519 (openat_not_cancel_3): Likewise.
31520 (openat64_not_cancel_3): Likewise).
31521 (openat_not_cancel_3): Likewise).
31522 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
31523 macro.
31524 (openat_not_cancel_3): Likewise.
31525 (openat64_not_cancel): Likewise.
31526 (openat64_not_cancel_3): Likewise.
31527 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
31528 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
31529 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
31530 __open{64}_nocancel.
31531 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31532 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31533 * sysdeps/posix/opendir.c (__opendirat): Likewise.
31534
31535 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31536
31537 [BZ #18822]
31538 * include/argz.h (__argz_create_sep): New function prototype.
31539 (__argz_append): Likewise.
31540 (__argz_add): Likewise.
31541 (__argz_add_sep): Likewise.
31542 (__argz_delete): Likewise.
31543 (__argz_insert): Likewise.
31544 (__argz_replace): Likewise.
31545 * string/argz.h (__argz_create_sep): Removed.
31546 (__argz_append): Likewise.
31547 (__argz_add): Likewise.
31548 (__argz_add_sep): Likewise.
31549 (__argz_delete): Likewise.
31550 (__argz_insert): Likewise.
31551 (__argz_replace): Likewise.
31552
31553 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31554
31555 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
31556 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
31557 (GNU_PROPERTY_STACK_SIZE): Likewie.
31558 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
31559 (GNU_PROPERTY_LOPROC): Likewise.
31560 (GNU_PROPERTY_HIPROC): Likewise.
31561 (GNU_PROPERTY_LOUSER): Likewise.
31562 (GNU_PROPERTY_HIUSER): Likewise.
31563 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
31564 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
31565 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
31566 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
31567 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
31568 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
31569 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
31570 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
31571 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
31572 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
31573 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
31574 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
31575 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
31576 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
31577 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
31578 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
31579 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
31580 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
31581 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
31582 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
31583 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
31584 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
31585 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
31586
31587 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31588
31589 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
31590 in C++ mode.
31591
31592 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31593
31594 [BZ #21930]
31595 * math/math.h (isinf): Check if in C or C++ mode before using
31596 __builtin_types_compatible_p, since this is a C mode feature.
31597
31598 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31599
31600 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
31601 (__write_nocancel): New macro.
31602 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
31603 Rewrite as a function prototype.
31604 (write_not_cancel): Remove macro.
31605 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
31606 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
31607 (write_gmon): Likewise.
31608 * libio/fileops.c (_IO_new_file_write): Likewise.
31609 * login/utmp_file.c (pututline_file): Likewise.
31610 (updwtmp_file): Likewise.
31611 * stdio-common/psiginfo.c (psiginfo): Likewise.
31612 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31613 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31614 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31615 Likewise.
31616 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31617 Likewise.
31618
31619 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
31620 (__read_nocancel): New macro.
31621 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31622 __read_nocancel.
31623 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
31624 macro.
31625 (__read_nocancel): New prototype.
31626 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
31627 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
31628 with __read_nocancel.
31629 * intl/loadmsgcat.c (read): Likewise.
31630 * libio/fileops.c (_IO_file_read): Likewise.
31631 * locale/loadlocale.c (_nl_load_locale): Likewise.
31632 * login/utmp_file.c (getutent_r_file): Likewise.
31633 (internal_getut_r): Likewise.
31634 (getutline_r_file): Likewise.
31635 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
31636 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
31637 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31638 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31639 Likewise.
31640 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
31641 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31642 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31643 Likewise.
31644 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31645 Likewise.
31646 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31647 Likewise.
31648 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31649 Likewise.
31650 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31651
31652 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31653
31654 [BZ #21966]
31655 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
31656 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
31657 usable.
31658
31659 2017-08-17 DJ Delorie <dj@redhat.com>
31660
31661 * bug17079.c: Update to new test harness.
31662 * test-digits-dots.c: Likewise.
31663 * test-netdb.c: Likewise.
31664 * tst-field.c: Likewise.
31665 * tst-nss-getpwent.c: Likewise.
31666 * tst-nss-static.c: Likewise.
31667 * tst-nss-test1.c: Likewise.
31668 * tst-nss-test2.c: Likewise.
31669 * tst-nss-test3.c: Likewise.
31670 * tst-nss-test4.c: Likewise.
31671 * tst-nss-test5.c: Likewise.
31672
31673 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31674
31675 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
31676 (open_not_cancel_2): Likewise.
31677 (open_nocancel): New macro.
31678 (open64_nocancel): Likewise.
31679 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
31680 (open_not_cancel_2): Likewise.
31681 (__open_nocancel): New prototype.
31682 (__open64_nocancel): Likewise.
31683 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31684 __open_nocancel.
31685 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
31686 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
31687 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
31688 with __open_nocancel.
31689 * csu/check_fds.c (check_one_fd): Likewise.
31690 * gmon/gmon.c (write_gmon): Likewise.
31691 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
31692 * intl/loadmsgcat.c (open): Likewise.
31693 * libio/fileops.c (_IO_file_open): Likewise.
31694 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31695 * locale/loadlocale.c (_nl_load_locale): Likewise.
31696 * login/utmp_file.c (setutent_file): Likewise.
31697 * misc/daemon.c (daemon): Likewise.
31698 * nss/nss_db/db-open.c (internal_setent): Likewise.
31699 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31700 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
31701 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
31702 (__opendir): Likewise.
31703 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31704 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
31705 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31706 (gethostid): Likewise.
31707 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31708 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31709 Likewise.
31710 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
31711 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
31712 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31713 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31714 Likewise.
31715 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31716 Likewise.
31717 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31718 Likewise.
31719 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
31720 Likewise.
31721 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31722 Likewise.
31723 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31724 Likewise.
31725 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
31726 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31727
31728 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
31729
31730 * benchtests/bench-skeleton.c (main): Add support for
31731 latency benchmarking.
31732 * benchtests/scripts/bench.py: Add support for latency benchmarking.
31733
31734 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
31735
31736 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
31737 the startup object.
31738
31739 2017-08-17 Florian Weimer <fweimer@redhat.com>
31740
31741 * include/sys/socket.h (__opensock): Remove internal_function.
31742 * socket/opensock.c (__opensock): Likewise.
31743 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
31744
31745 2017-08-16 Joseph Myers <joseph@codesourcery.com>
31746
31747 [BZ #21944]
31748 * signal/bits/types/__sigval_t.h: New file.
31749 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
31750 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
31751 and define sigval_t using __sigval_t.
31752 * include/bits/types/__sigval_t.h: New file.
31753 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
31754 instead of <bits/types/__sigval_t.h>.
31755 (struct sigevent): Use __sigval_t instead of sigval_t.
31756 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
31757 instead of <bits/types/__sigval_t.h>.
31758 (siginfo_t): Use __sigval_t instead of sigval_t.
31759 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
31760 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31761 (struct sigevent): Use __sigval_t instead of sigval_t.
31762 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
31763 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31764 (siginfo_t): Use __sigval_t instead of sigval_t.
31765 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
31766
31767 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31768
31769 * NEWS: Remove "[Add new features here]" for 2.27.
31770
31771 2017-08-16 Joseph Myers <joseph@codesourcery.com>
31772
31773 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
31774 libc.so.
31775
31776 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31777
31778 * NEWS: Mention x86-64 FMA optimization.
31779
31780 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31781
31782 [BZ #21912]
31783 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31784 Add e_expf-fma.
31785 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
31786 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
31787 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
31788
31789 2017-08-16 Andreas Schwab <schwab@suse.de>
31790
31791 [BZ #16750]
31792 CVE-2009-5064
31793 * elf/ldd.bash.in: Never run file directly.
31794
31795 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
31796
31797 [BZ #21955]
31798 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
31799 (L(SP_INF_0)): Likewise.
31800
31801 2017-08-15 Florian Weimer <fweimer@redhat.com>
31802
31803 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
31804 run-built-tests.
31805
31806 2017-08-15 Florian Weimer <fweimer@redhat.com>
31807
31808 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
31809 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
31810 BROKEN_THREAD_SIGNALS code.
31811 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
31812 request_list): Remove caller_pid member used for
31813 BROKEN_THREAD_SIGNALS.
31814 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
31815 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
31816 Remove BROKEN_THREAD_SIGNALS support.
31817 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
31818 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
31819
31820 2017-08-15 Florian Weimer <fweimer@redhat.com>
31821
31822 * gmon/Makefile (tests): Add tst-gmon.
31823 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
31824 Set.
31825 (tests-special): Add tst-gmon-prof.out.
31826 (tst-gmon.out): Depend on clean-tst-gmon-data.
31827 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
31828 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
31829 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
31830 startup object.
31831 * aclocal.m4 (GPROF): Set and substitute.
31832 * config.amke.in (GPROF): Set.
31833 * configure: Regenerate.
31834
31835 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
31836
31837 * elf/elf.h A (NT_PPC_TAR): New macro.
31838 (NT_PPC_PPR): Likewise.
31839 (NT_PPC_DSCR): Likewise.
31840 (NT_PPC_EBB): Likewise.
31841 (NT_PPC_PMU): Likewise.
31842 (NT_PPC_TM_CGPR): Likewise.
31843 (NT_PPC_TM_CFPR): Likewise.
31844 (NT_PPC_TM_CVMX): Likewise.
31845 (NT_PPC_TM_CVSX): Likewise.
31846 (NT_PPC_TM_SPR): Likewise.
31847 (NT_PPC_TM_CTAR): Likewise.
31848 (NT_PPC_TM_CPPR): Likewise.
31849 (NT_PPC_TM_CDSCR): Likewise.
31850
31851 2017-08-15 Florian Weimer <fweimer@redhat.com>
31852
31853 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
31854 regparm (2) instead of internal_function.
31855 (_MCOUNT_DECL): Adjust.
31856
31857 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
31858
31859 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
31860 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
31861
31862 2017-08-14 Joseph Myers <joseph@codesourcery.com>
31863
31864 * conform/data/sys/wait.h-data (si_value): Do not expect for
31865 XPG42.
31866
31867 2017-08-14 Florian Weimer <fweimer@redhat.com>
31868
31869 [BZ #21962]
31870 NSS: Create stubs for accidentally exported lookup functions.
31871 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
31872 Remove declaration.
31873 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
31874 (ether_hostton): Call __nss_ethers_lookup2 instead.
31875 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
31876 (ether_ntohost): Call __nss_ethers_lookup2 instead.
31877 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
31878 (setup): Call __nss_netgroup_lookup2 instead.
31879 * nss/Makefile (routines): Add compat-lookup.
31880 * nss/Versions (GLIBC_2.27): Add symbol version.
31881 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
31882 (DB_COMPAT_FCT): Remove.
31883 * nss/compat-lookup.c: New file.
31884 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
31885 from databases.def.
31886 * nss/service-lookup.c (NO_COMPAT): Remove definition.
31887 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
31888 (netname2user): Call __nss_publickey_lookup2 instead.
31889 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
31890 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
31891 instead.
31892
31893 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31894 Sergei Trofimovich <slyfox@inbox.ru>
31895
31896 [BZ #21908]
31897 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
31898 Rename to MMAP2_PAGE_UNIT.
31899 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
31900 __OFF_T_MATCHES_OFF64_T is not defined.
31901 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
31902 uint64_t.
31903 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
31904 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
31905
31906 2017-08-14 Florian Weimer <fweimer@redhat.com>
31907
31908 i386: Do not set internal_function.
31909 * config.h.in (USE_REGPARMS, internal_function): Remove.
31910 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
31911 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
31912
31913 2017-08-14 Florian Weimer <fweimer@redhat.com>
31914
31915 * elf/dl-init.c (_dl_init): Remove internal_function.
31916 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
31917 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
31918
31919 2017-08-14 Florian Weimer <fweimer@redhat.com>
31920
31921 * elf/rtld.c (_dl_start): Remove internal_function.
31922 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
31923 _dl_start.
31924
31925 2017-08-14 Florian Weimer <fweimer@redhat.com>
31926
31927 * elf/dl-fini.c (_dl_fini): Remove internal_function
31928 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
31929
31930 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
31931
31932 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
31933 (bit_cpu_SHSTK): Likewise.
31934 (index_cpu_IBT): Likewise.
31935 (index_cpu_SHSTK): Likewise.
31936 (reg_IBT): Likewise.
31937 (reg_SHSTK): Likewise.
31938 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
31939 Handle index_cpu_IBT and index_cpu_SHSTK.
31940
31941 2017-08-14 Mike FABIAN <mfabian@redhat.com>
31942
31943 [BZ #19982]
31944 * po/fr.po: Fix spelling mistake.
31945
31946 2017-08-13 Florian Weimer <fweimer@redhat.com>
31947
31948 * elf/dl-addr.c (_dl_addr): Remove internal_function.
31949 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
31950 (_dl_catch_error, _dl_receive_error): Likewise.
31951 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
31952 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
31953 (_dl_deallocate_tls): Likewise.
31954 * include/dlfcn.h (_dl_addr): Likewise.
31955 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
31956 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
31957 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
31958 Likewise.
31959
31960 2017-08-13 Florian Weimer <fweimer@redhat.com>
31961
31962 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
31963 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
31964 internal_function.
31965 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
31966
31967 2017-08-13 Florian Weimer <fweimer@redhat.com>
31968
31969 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
31970 internal_function.
31971 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
31972 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
31973 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
31974 internal_function from _dl_make_stack_executable_hook member.
31975 (_dl_make_stack_executable): Remove internal_function.
31976 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
31977 Likewise.
31978 * sysdeps/unix/sysv/linux/dl-execstack.c
31979 (_dl_make_stack_executable): Likewise.
31980
31981 2017-08-13 Florian Weimer <fweimer@redhat.com>
31982
31983 * sysdeps/unix/sysv/linux/netlinkaccess.h
31984 (__netlink_assert_response): Remove internal_function.
31985 * sysdeps/unix/sysv/linux/netlink_assert_response.c
31986 (__netlink_assert_response): Likewise.
31987
31988 2017-08-13 Florian Weimer <fweimer@redhat.com>
31989
31990 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
31991 internal_function.
31992 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
31993
31994 2017-08-13 Florian Weimer <fweimer@redhat.com>
31995
31996 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
31997 internal_function.
31998 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
31999 * inet/netgroup.h (__internal_setnetgrent)
32000 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
32001 * inet/getnetgrent_r.c (__internal_setnetgrent)
32002 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
32003 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
32004 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
32005 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
32006 * nss/nsswitch.h (db_lookup_function): Likewise.
32007
32008 2017-08-13 Florian Weimer <fweimer@redhat.com>
32009
32010 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
32011 Remove internal_function.
32012 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
32013 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
32014 message argument on the stack.
32015 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
32016 Likeweise.
32017
32018 2017-08-12 Mike FABIAN <mfabian@redhat.com>
32019
32020 Adapt test case data to the changes in the thousands
32021 separators.
32022
32023 [BZ #20756]
32024 * localedata/tst-langinfo.sh: Adapt test case data.
32025 * stdlib/tst-strfmon_l.c: Likewise.
32026 * stdlib/tst-strtod4.c: Likewise.
32027 * stdlib/tst-strtod5i.c: Likewise.
32028
32029 2017-08-11 Florian Weimer <fweimer@redhat.com>
32030
32031 [BZ #21242]
32032 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
32033 Suppress pedantic warning resulting from statement expression.
32034 (__ASSERT_FUNCTION): Add missing __extension__.
32035
32036 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
32037
32038 * benchtests/bench-memmove-large.c: Print output in JSON
32039 format.
32040 * benchtests/bench-memmove.c: Likewise.
32041
32042 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
32043 * benchtests/bench-memchr.c (do_one_test): Likewise.
32044 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
32045 * benchtests/bench-memcpy.c (do_one_test): Likewise.
32046 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
32047 * benchtests/bench-memmove.c (do_one_test): Likewise.
32048 * benchtests/bench-memset-large.c (do_one_test): Likewise.
32049 * benchtests/bench-memset.c (do_one_test): Likewise.
32050 * benchtests/bench-string.h (test_init): Remove memsets.
32051
32052 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
32053
32054 * manual/lang.texi
32055 (Computing the Width of an Integer Data Type): Rename section to
32056 "Width of an Integer Type". Remove inaccurate statement regarding
32057 lack of C language facilities for determining width of integer
32058 types, and reorder content to improve flow and context of
32059 discussion.
32060
32061 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
32062
32063 * lang.texi (va_copy): Change standard from ISO to C99.
32064 (__va_copy): Add standard and header annotation.
32065 Update description for clarity of origins and current use.
32066
32067 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32068
32069 [BZ #21941]
32070 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
32071 xssqrtqp requires operands to be in Vector Registers
32072 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
32073 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
32074 (__ieee754_sqrtf128): Likewise.
32075
32076 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
32077
32078 * sysdeps/aarch64/memcmp.S (memcmp):
32079 Rewrite of optimized memcmp.
32080
32081 2017-08-10 Florian Weimer <fweimer@redhat.com>
32082
32083 Introduce ld.so exceptions.
32084 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
32085 (_dl_exception_create, _dl_exception_create_format)
32086 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
32087 (_dl_catch_exception): Declare.
32088 (_dl_catch_error): Update comment.
32089 * elf/dl-error-skeleton.c (struct catch): Replace objname,
32090 errstring, malloced members with exception member.
32091 (_dl_out_of_memory): Remove.
32092 (fatal_error): New function, extracted from _dl_signal_error.
32093 (_dl_signal_exception, _dl_signal_cexception): New functions.
32094 (_dl_signal_error): Call _dl_exception_create to allocate an
32095 exception object.
32096 (_dl_catch_exception): New function, based on _dl_catch_error.
32097 (_dl_catch_error): Implement using _dl_catch_exception.
32098 * elf/dl-exception.c: New file.
32099 * elf/Makefile (dl-routines): Add dl-exception.
32100 (elide-routines.os): Likewise.
32101 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
32102 _dl_exception_create_format, _dl_exception_free.
32103 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
32104 _dl_signal_exception.
32105 * elf/dl-lookup.c (make_string): Remove.
32106 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
32107 _dl_signal_cexception, _dl_exception_free.
32108 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
32109 _dl_signal_exception.
32110 * elf/dl-sym.c (do_sym): Likewise.
32111 * elf/dl-version.c (make_string): Remove.
32112 (match_symbol): Use _dl_exception_create_format,
32113 _dl_signal_cexception, _dl_exception_free.
32114 (_dl_check_map_versions): Likewise.
32115 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
32116 _dl_catch_exception.
32117 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
32118 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
32119 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
32120 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
32121 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
32122 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
32123 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
32124 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
32125 Likewise.
32126 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
32127 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
32128 (ld.so): Likewise.
32129 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
32130 (ld.so): Likewise.
32131 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
32132 Likewise.
32133 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
32134 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
32135 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
32136 Likewise.
32137 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
32138 Likewise.
32139 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
32140
32141 2017-08-10 Florian Weimer <fweimer@redhat.com>
32142
32143 * inet/net-internal.h (__inet6_scopeid_pton): Remove
32144 attribute_hidden, internal_function.
32145 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
32146 internal_function.
32147
32148 2017-08-10 Florian Weimer <fweimer@redhat.com>
32149
32150 * malloc/malloc.c (get_max_fast): Reimplement as an inline
32151 function which calls __builtin_unreachable.
32152
32153 2017-08-10 Mike FABIAN <mfabian@redhat.com>
32154
32155 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
32156 Indian monetary formatting
32157 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
32158 test cases.
32159
32160 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
32161
32162 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
32163 Fix typo in comment.
32164
32165 [BZ #21928]
32166 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
32167 PTRACE_SEIZE_DEVEL): Remove.
32168 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
32169 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
32170 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
32171 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
32172 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
32173
32174 2017-08-09 Joseph Myers <joseph@codesourcery.com>
32175
32176 * posix/bits/types.h (__qaddr_t): Remove.
32177
32178 [BZ #21457]
32179 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
32180 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32181 __glibc_reserved1.
32182 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
32183 (ucontext_t): Use __ctx with uc_flags.
32184 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
32185 (__ctxt): Likewise.
32186 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32187 __glibc_reserved1.
32188 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
32189 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32190 __glibc_reserved1.
32191 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
32192 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32193 __glibc_reserved1.
32194 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
32195 macro.
32196 (ucontext_t): Use __ctx with uc_flags.
32197 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
32198 (ucontext_t): Use __ctx with uc_flags.
32199 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
32200 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
32201 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
32202 (ucontext_t): Use __ctx with uc_flags.
32203 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
32204 undefine further down.
32205 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32206 __glibc_reserved1.
32207 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
32208 undefine further down.
32209 (ucontext_t): Use __ctx with uc_flags.
32210 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
32211 undefine further down.
32212 (ucontext_t): Use __ctx with uc_flags.
32213 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
32214 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
32215 Rename uc_pad to __glibc_reserved1.
32216 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
32217 undefine further down.
32218 (ucontext_t): Use __ctx with uc_flags.
32219 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
32220 further down.
32221 (ucontext_t): Use __ctx with uc_flags.
32222 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
32223 __ctx with uc_flags.
32224 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
32225 (ucontext_t): Use __ctx with uc_flags.
32226 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
32227 __ctx with uc_flags.
32228
32229 2017-08-09 Florian Weimer <fweimer@redhat.com>
32230
32231 [BZ #21932]
32232 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
32233 before early return.
32234
32235 2017-08-09 Andreas Schwab <schwab@suse.de>
32236
32237 [BZ #21041]
32238 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
32239 renamed alias.
32240
32241 [BZ #21041]
32242 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
32243 tst-compat-forwarder.
32244 (modules-names): Add tst-compat-forwarder-mod.
32245 ($(objpfx)tst-compat-forwarder): Depend on
32246 $(objpfx)tst-compat-forwarder-mod.so.
32247 * nptl/tst-compat-forwarder.c: New file.
32248 * nptl/tst-compat-forwarder-mod.c: New file.
32249
32250 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
32251
32252 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
32253 comments.
32254
32255 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
32256 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
32257 memcpy_falkor.
32258 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
32259 Bump.
32260 (__libc_ifunc_impl_list): Add __memcpy_falkor.
32261 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
32262 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
32263 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
32264 Add falkor.
32265 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
32266 New macro.
32267
32268 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32269
32270 [BZ #759]
32271 * manual/setjmp.texi (getcontex): Document uc_stack value
32272 compatibility differences.
32273
32274 2017-08-08 Joseph Myers <joseph@codesourcery.com>
32275
32276 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
32277 (old_malloc_hook): Likewise.
32278 (old_memalign_hook): Likewise.
32279 (old_realloc_hook): Likewise.
32280 (struct hdr): Likewise.
32281 (flood): Likewise.
32282 (freehook): Likewise.
32283 (mallochook): Likewise.
32284 (memalignhook): Likewise.
32285 (reallochook): Likewise.
32286 (mprobe): Likewise.
32287 * malloc/mtrace.c (mallwatch): Likewise.
32288 (tr_old_free_hook): Likewise.
32289 (tr_old_malloc_hook): Likewise.
32290 (tr_old_realloc_hook): Likewise.
32291 (tr_old_memalign_hook): Likewise.
32292 (tr_where): Likewise.
32293 (lock_and_info): Likewise.
32294 (tr_freehook): Likewise.
32295 (tr_mallochook): Likewise.
32296 (tr_reallochook): Likewise.
32297 (tr_memalignhook): Likewise.
32298 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
32299 * misc/mmap.c (__mmap): Likewise.
32300 * misc/mmap64.c (__mmap64): Likewise.
32301 * misc/mprotect.c (__mprotect): Likewise.
32302 * misc/msync.c (msync): Likewise.
32303 * misc/munmap.c (__munmap): Likewise.
32304 * posix/posix_madvise.c (posix_madvise): Likewise.
32305 * socket/send.c (__send): Likewise.
32306 * socket/sendto.c (__sendto): Likewise.
32307 * socket/setsockopt.c (__setsockopt): Likewise.
32308 * string/memcmp.c (__ptr_t): Remove macro.
32309 (MEMCMP): Use void * instead of ptr_t.
32310 * string/memrchr.c (__ptr_t): Remove macro.
32311 (__memrchr): Use void * instead of ptr_t.
32312 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
32313 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
32314 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
32315 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
32316 * sysdeps/mach/msync.c (msync): Likewise.
32317 * sysdeps/mach/munmap.c (__munmap): Likewise.
32318 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
32319 Likewise.
32320 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
32321 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
32322 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
32323 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
32324 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
32325 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
32326 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
32327 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
32328 Likewise.
32329 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
32330 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
32331 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
32332 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
32333 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
32334 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
32335 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
32336 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
32337 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
32338 Likewise.
32339 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
32340 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
32341 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
32342 (MEMCMP): Use void * instead of ptr_t.
32343 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
32344 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
32345
32346 2017-08-08 Florian Weimer <fweimer@redhat.com>
32347
32348 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
32349 return statement.
32350
32351 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
32352
32353 [BZ #21913]
32354 * csu/libc-tls.c: Include <startup.h> first.
32355 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
32356 * elf/dl-tunables.c: Include <startup.h> first.
32357 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
32358 * sysdeps/generic/startup.h: New file.
32359 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
32360 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
32361 (I386_USE_SYSENTER): New. Defined to 0.
32362
32363 2017-08-08 Andreas Schwab <schwab@suse.de>
32364
32365 [BZ #21041]
32366 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
32367 * nptl/pt-system.c (system): Likewise.
32368
32369 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32370
32371 [BZ #21780]
32372 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
32373 EOPNOTSUPP.
32374 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
32375 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
32376 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
32377 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
32378 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
32379 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
32380 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
32381
32382 2017-08-07 Joseph Myers <joseph@codesourcery.com>
32383
32384 [BZ #21899]
32385 * bits/sigaction.h (struct sigaction): Define sa_handler and
32386 sa_sigaction using union 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/alpha/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/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/hppa/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.
32415 (SA_RESETHAND): Likewise.
32416 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
32417 (struct sigaction): Define sa_handler and sa_sigaction using union
32418 also for [__USE_XOPEN_EXTENDED].
32419 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32420 [__USE_XOPEN_EXTENDED].
32421 (SA_RESTART): Likewise.
32422 (SA_NODEFER): Likewise.
32423 (SA_RESETHAND): Likewise.
32424 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
32425 (struct sigaction): Define sa_handler and sa_sigaction using union
32426 also for [__USE_XOPEN_EXTENDED].
32427 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32428 [__USE_XOPEN_EXTENDED].
32429 (SA_RESTART): Likewise.
32430 (SA_NODEFER): Likewise.
32431 (SA_RESETHAND): Likewise.
32432 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
32433 (struct sigaction): Define sa_handler and sa_sigaction using union
32434 also for [__USE_XOPEN_EXTENDED].
32435 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32436 [__USE_XOPEN_EXTENDED].
32437 (SA_RESTART): Likewise.
32438 (SA_NODEFER): Likewise.
32439 (SA_RESETHAND): Likewise.
32440 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
32441 (struct sigaction): Define sa_handler and sa_sigaction using union
32442 also for [__USE_XOPEN_EXTENDED].
32443 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32444 [__USE_XOPEN_EXTENDED].
32445 (SA_RESTART): Likewise.
32446 (SA_NODEFER): Likewise. Define directly rather than as alias.
32447 (SA_RESETHAND): Likewise.
32448 (SA_INTERRUPT): Define only for [__USE_MISC].
32449 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
32450 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
32451 [__USE_MISC].
32452 (SA_STACK): Define only for [__USE_MISC].
32453 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
32454 (struct sigaction): Define sa_handler and sa_sigaction using union
32455 also for [__USE_XOPEN_EXTENDED].
32456 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32457 [__USE_XOPEN_EXTENDED].
32458 (SA_RESTART): Likewise.
32459 (SA_NODEFER): Likewise.
32460 (SA_RESETHAND): Likewise.
32461 (SA_NOPTRACE): Define only for [__USE_MISC].
32462
32463 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
32464 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
32465 (struct catalog_info): Likewise.
32466 * inet/htontest.c (lo): Likewise.
32467 (foo): Likewise.
32468 * inet/inet_lnaof.c (inet_lnaof): Likewise.
32469 * inet/inet_net.c (inet_network): Likewise.
32470 * inet/inet_netof.c (inet_netof): Likewise.
32471 * inet/rcmd.c (__ivaliduser): Likewise.
32472 (iruserok): Likewise.
32473 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
32474 * locale/programs/locale-spec.c (locale_special): Likewise.
32475 * nis/nis_findserv.c (struct findserv_req): Likewise.
32476 (__nis_findfastest_with_timeout): Likewise.
32477 * nss/test-netdb.c (test_network): Likewise.
32478 * resolv/inet_neta.c (inet_neta): Likewise.
32479 * resolv/ns_date.c (ns_datetosecs): Likewise.
32480 (SECS_PER_DAY): Likewise.
32481 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
32482 Likewise.
32483 * resolv/res_comp.c (__putlong): Likewise.
32484 (__putshort): Likewise.
32485 (_getlong): Likewise.
32486 (_getshort): Likewise.
32487 * resolv/res_debug.c (p_time): Likewise.
32488 (precsize_ntoa): Likewise.
32489 (precsize_aton): Likewise.
32490 (latlon2ul): Likewise.
32491 (loc_aton): Likewise.
32492 (loc_ntoa): Likewise.
32493 * resolv/res_hconf.c (struct netaddr): Likewise.
32494 (_res_hconf_reorder_addrs): Likewise.
32495 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
32496 (clnttcp_control): Likewise.
32497 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
32498 (clntudp_control): Likewise.
32499 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
32500 (clntunix_control): Likewise.
32501 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
32502 * sunrpc/rpc/auth.h (union des_block): Likewise.
32503 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
32504 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
32505 (xdrrec_create): Likewise.
32506 (xdrrec_endofrecord): Likewise.
32507 (flush_out): Likewise.
32508 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
32509 (xdrstdio_putlong): Likewise.
32510 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
32511 Likewise.
32512
32513 * misc/sys/cdefs.h (__long_double_t): Remove.
32514 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
32515 instead of __long_double_t,
32516 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
32517
32518 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
32519
32520 * benchtests/scripts/compare_strings.py: Avoid display error when
32521 running on a text terminal.
32522
32523 * benchtests/scripts/compare_strings.py (main): Add an
32524 optional -base option.
32525 (process_results): New argument base_func.
32526
32527 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
32528 hardcoding memcpy.
32529 * benchtests/bench-memcpy-large.c (test_name): Likewise.
32530 * benchtests/bench-memcpy-random.c (test_name): Likewise.
32531
32532 2017-08-07 Andreas Schwab <schwab@suse.de>
32533
32534 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
32535 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
32536 * intl/Makefile ($(objpfx)tst-gettext.out)
32537 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
32538 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
32539 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
32540 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
32541 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
32542 * posix/Makefile ($(objpfx)globtest.out)
32543 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
32544 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
32545 ($(objpfx)tst-printf.out): Likewise.
32546 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
32547 ($(objpfx)tst-setcontext3.out): Likewise.
32548
32549 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
32550
32551 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32552 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
32553 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
32554 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
32555 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
32556 and mptan-fma.
32557 (CFLAGS-doasin-fma.c): New.
32558 (CFLAGS-dosincos-fma.c): Likewise.
32559 (CFLAGS-e_asin-fma.c): Likewise.
32560 (CFLAGS-e_atan2-fma.c): Likewise.
32561 (CFLAGS-e_exp-fma.c): Likewise.
32562 (CFLAGS-e_log-fma.c): Likewise.
32563 (CFLAGS-e_pow-fma.c): Likewise.
32564 (CFLAGS-halfulp-fma.c): Likewise.
32565 (CFLAGS-mpa-fma.c): Likewise.
32566 (CFLAGS-mpatan-fma.c): Likewise.
32567 (CFLAGS-mpatan2-fma.c): Likewise.
32568 (CFLAGS-mpexp-fma.c): Likewise.
32569 (CFLAGS-mplog-fma.c): Likewise.
32570 (CFLAGS-mpsqrt-fma.c): Likewise.
32571 (CFLAGS-mptan-fma.c): Likewise.
32572 (CFLAGS-s_atan-fma.c): Likewise.
32573 (CFLAGS-sincos32-fma.c): Likewise.
32574 (CFLAGS-slowexp-fma.c): Likewise.
32575 (CFLAGS-slowpow-fma.c): Likewise.
32576 (CFLAGS-s_sin-fma.c): Likewise.
32577 (CFLAGS-s_tan-fma.c): Likewise.
32578 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
32579 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
32580 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
32581 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
32582 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
32583 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
32584 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
32585 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
32586 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
32587 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
32588 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
32589 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
32590 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
32591 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
32592 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
32593 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
32594 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
32595 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
32596 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
32597 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
32598 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
32599 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
32600 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
32601 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
32602 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
32603 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
32604 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
32605 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
32606 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
32607 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
32608 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
32609
32610 2017-08-04 Joseph Myers <joseph@codesourcery.com>
32611
32612 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
32613 (min_of_type_f): New macro.
32614 (min_of_type_): Likewise.
32615 (min_of_type_l): Likewise.
32616 (min_of_type_f128): Likewise.
32617 (min_of_type): Define using __MATH_TG and taking an expression
32618 argument.
32619 (math_check_force_underflow): Pass expression instead of type to
32620 min_of_type.
32621 (math_check_force_underflow_nonneg): Likewise.
32622
32623 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32624
32625 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
32626 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
32627 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
32628
32629 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32630
32631 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
32632 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
32633 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
32634 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
32635 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
32636 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
32637 memcpy_chk-nonshared, mempcpy_chk-nonshared,
32638 memmove_chk-nonshared and memset_chk-nonshared
32639 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
32640 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
32641 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
32642 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
32643 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
32644 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
32645 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
32646 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
32647 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
32648 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
32649 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
32650 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
32651 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
32652 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
32653 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
32654 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
32655 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
32656 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
32657 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
32658 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
32659 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
32660 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
32661 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
32662 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
32663 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
32664 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
32665 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
32666 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
32667 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
32668 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
32669 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
32670 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
32671 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
32672 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
32673 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
32674 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
32675 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
32676 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
32677 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
32678 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
32679 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
32680 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
32681 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
32682 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
32683 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
32684 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
32685 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
32686 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
32687 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
32688 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
32689 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
32690 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
32691 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
32692 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
32693 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
32694 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
32695 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
32696 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
32697 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
32698 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
32699 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
32700 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
32701 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
32702 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
32703 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
32704 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
32705 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
32706 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
32707 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
32708 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
32709 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
32710 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
32711 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
32712 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
32713 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
32714 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
32715 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
32716 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
32717 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
32718 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
32719 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
32720 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
32721 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
32722 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
32723 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
32724 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
32725 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
32726 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
32727 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
32728 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
32729 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
32730 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
32731 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
32732 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
32733 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
32734 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
32735 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
32736 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
32737 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
32738 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
32739 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
32740 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
32741 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
32742 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
32743 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
32744 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
32745 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
32746 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
32747
32748 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32749
32750 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
32751 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
32752 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
32753 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
32754 svml_d_log2_core-sse2, svml_d_log4_core-sse,
32755 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
32756 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
32757 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
32758 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
32759 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
32760 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
32761 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
32762 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
32763 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
32764 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
32765 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
32766 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
32767 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
32768 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
32769 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
32770 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
32771 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
32772 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
32773 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
32774 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
32775 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
32776 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
32777 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
32778 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
32779 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
32780 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
32781 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
32782 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
32783 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
32784 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
32785 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
32786 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
32787 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
32788 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
32789 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
32790 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
32791 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
32792 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
32793 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
32794 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
32795 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
32796 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
32797 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
32798 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
32799 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
32800 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
32801 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
32802 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
32803 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
32804 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
32805 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
32806 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
32807 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
32808 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
32809 ...
32810 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
32811 Don't include <sysdep.h> nor <init-arch.h>.
32812 (_ZGVbN2v_cos): Removed.
32813 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
32814 ...
32815 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
32816 Don't include <sysdep.h> nor <init-arch.h>.
32817 (_ZGVdN4v_cos): Removed.
32818 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
32819 ...
32820 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
32821 Don't include <sysdep.h> nor <init-arch.h>.
32822 (_ZGVeN8v_cos): Removed.
32823 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
32824 ...
32825 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
32826 Don't include <sysdep.h> nor <init-arch.h>.
32827 (_ZGVbN2v_exp): Removed.
32828 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
32829 ...
32830 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
32831 Don't include <sysdep.h> nor <init-arch.h>.
32832 (_ZGVdN4v_exp): Removed.
32833 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
32834 ...
32835 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
32836 Don't include <sysdep.h> nor <init-arch.h>.
32837 (_ZGVeN8v_exp): Removed.
32838 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
32839 ...
32840 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
32841 Don't include <sysdep.h> nor <init-arch.h>.
32842 (_ZGVbN2v_log): Removed.
32843 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
32844 ...
32845 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
32846 Don't include <sysdep.h> nor <init-arch.h>.
32847 (_ZGVdN4v_log): Removed.
32848 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
32849 ...
32850 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
32851 Don't include <sysdep.h> nor <init-arch.h>.
32852 (_ZGVeN8v_log): Removed.
32853 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
32854 ...
32855 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
32856 Don't include <sysdep.h> nor <init-arch.h>.
32857 (_ZGVbN2vv_pow): Removed.
32858 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
32859 ...
32860 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
32861 Don't include <sysdep.h> nor <init-arch.h>.
32862 (_ZGVdN4vv_pow): Removed.
32863 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
32864 ...
32865 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
32866 Don't include <sysdep.h> nor <init-arch.h>.
32867 (_ZGVeN8vv_pow): Removed.
32868 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
32869 ...
32870 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
32871 Don't include <sysdep.h> nor <init-arch.h>.
32872 (_ZGVbN2v_sin): Removed.
32873 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
32874 ...
32875 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
32876 Don't include <sysdep.h> nor <init-arch.h>.
32877 (_ZGVbN4v_sin): Removed.
32878 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
32879 ...
32880 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
32881 Don't include <sysdep.h> nor <init-arch.h>.
32882 (_ZGVbN8v_sin): Removed.
32883 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
32884 ...
32885 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
32886 Don't include <sysdep.h> nor <init-arch.h>.
32887 (_ZGVbN2vvv_sincos): Removed.
32888 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
32889 ...
32890 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
32891 Don't include <sysdep.h> nor <init-arch.h>.
32892 (_ZGVdN4vvv_sincos): Removed.
32893 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
32894 ...
32895 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
32896 Don't include <sysdep.h> nor <init-arch.h>.
32897 (_ZGVeN8vvv_sincos): Removed.
32898 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
32899 ...
32900 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
32901 Don't include <sysdep.h> nor <init-arch.h>.
32902 (_ZGVeN16v_cosf): Removed.
32903 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
32904 ...
32905 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
32906 Don't include <sysdep.h> nor <init-arch.h>.
32907 (_ZGVbN4v_cosf): Removed.
32908 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
32909 ...
32910 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
32911 Don't include <sysdep.h> nor <init-arch.h>.
32912 (_ZGVdN8v_cosf): Removed.
32913 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
32914 ...
32915 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
32916 Don't include <sysdep.h> nor <init-arch.h>.
32917 (_ZGVeN16v_expf): Removed.
32918 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
32919 ...
32920 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
32921 Don't include <sysdep.h> nor <init-arch.h>.
32922 (_ZGVbN4v_expf): Removed.
32923 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
32924 ...
32925 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
32926 Don't include <sysdep.h> nor <init-arch.h>.
32927 (_ZGVdN8v_expf): Removed.
32928 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
32929 ...
32930 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
32931 Don't include <sysdep.h> nor <init-arch.h>.
32932 (_ZGVeN16v_logf): Removed.
32933 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
32934 ...
32935 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
32936 Don't include <sysdep.h> nor <init-arch.h>.
32937 (_ZGVbN4v_logf): Removed.
32938 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
32939 ...
32940 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
32941 Don't include <sysdep.h> nor <init-arch.h>.
32942 (_ZGVdN8v_logf): Removed.
32943 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
32944 ...
32945 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
32946 Don't include <sysdep.h> nor <init-arch.h>.
32947 (_ZGVeN16vv_powf): Removed.
32948 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
32949 ...
32950 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
32951 Don't include <sysdep.h> nor <init-arch.h>.
32952 (_ZGVbN4vv_powf): Removed.
32953 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
32954 ...
32955 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
32956 Don't include <sysdep.h> nor <init-arch.h>.
32957 (_ZGVdN8vv_powf): Removed.
32958 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
32959 ...
32960 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
32961 Don't include <sysdep.h> nor <init-arch.h>.
32962 (_ZGVeN16vvv_sincosf): Removed.
32963 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
32964 ...
32965 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
32966 Don't include <sysdep.h> nor <init-arch.h>.
32967 (_ZGVbN4vvv_sincosf): Removed.
32968 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
32969 ...
32970 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
32971 Don't include <sysdep.h> nor <init-arch.h>.
32972 (_ZGVdN8vvv_sincosf): Removed.
32973 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
32974 ...
32975 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
32976 Don't include <sysdep.h> nor <init-arch.h>.
32977 (_ZGVeN16v_sinf): Removed.
32978 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
32979 ...
32980 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
32981 Don't include <sysdep.h> nor <init-arch.h>.
32982 (_ZGVbN4v_sinf): Removed.
32983 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
32984 ...
32985 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
32986 Don't include <sysdep.h> nor <init-arch.h>.
32987 (_ZGVdN8v_sinf): Removed.
32988
32989 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32990
32991 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32992 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
32993 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
32994 s_rint-sse4_1 and s_rintf-sse4_1.
32995 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
32996 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
32997 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
32998 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
32999 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
33000 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
33001 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
33002 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
33003 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
33004 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
33005 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
33006 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33007 (__ceil): Removed.
33008 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
33009 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
33010 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33011 (__ceilf): Removed.
33012 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
33013 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
33014 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33015 (__floor): Removed.
33016 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
33017 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
33018 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33019 (__floorf): Removed.
33020 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
33021 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
33022 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33023 (__nearbyint): Removed.
33024 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
33025 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
33026 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33027 (__nearbyintf): Removed.
33028 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
33029 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
33030 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33031 (__rint): Removed.
33032 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
33033 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
33034 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33035 (__rintf): Removed.
33036
33037 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33038
33039 * sysdeps/i386/start.S (_start): Check Check PIC instead of
33040 SHARED. Avoid dynamic relocation against main in static PIE.
33041
33042 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33043
33044 [BZ #21815]
33045 * elf/Makefile (CFLAGS-tst-prelink.c): New.
33046 (LDFLAGS-tst-prelink): Likewise.
33047
33048 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33049
33050 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
33051 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
33052 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
33053 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
33054 (INTERNAL_SYSCALL_NCS): Likewise.
33055 (LOADARGS_1): Likewise.
33056 (LOADARGS_5): Likewise.
33057 (RESTOREARGS_1): Likewise.
33058 (RESTOREARGS_5): Likewise.
33059
33060 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33061
33062 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
33063 (MEMPCPY_SYMBOL): Likewise.
33064 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
33065 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
33066 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
33067 in libc.a.
33068 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
33069 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
33070 Likewise.
33071 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
33072 (__hidden_ver1): Don't use in libc.a.
33073 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
33074 (__mempcpy): Don't create a weak alias in libc.a.
33075 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
33076 libc.a.
33077 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
33078 (__hidden_ver1): Don't use in libc.a.
33079
33080 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33081
33082 * config.make.in (have-insert): New.
33083 * configure.ac (libc_cv_insert): New. Set to yes if linker
33084 supports INSERT in linker script.
33085 (AC_SUBST(libc_cv_insert): New.
33086 * configure: Regenerated.
33087 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
33088 if $(have-insert) == yes.
33089
33090 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33091
33092 * elf/Makefile (tests): Add vismain only if
33093 $(have-protected-data) == yes.
33094 (tests-pie): Likewise.
33095
33096 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33097
33098 [BZ #21871]
33099 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
33100 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
33101
33102 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33103
33104 [BZ #21790]
33105 * sysdeps/i386/i586/memset.S
33106 (__memset_zero_constant_len_parameter): Removed.
33107 * sysdeps/i386/i686/memset.S
33108 (__memset_zero_constant_len_parameter): Likewise.
33109 * sysdeps/i386/i686/multiarch/memset_chk.S
33110 (__memset_zero_constant_len_parameter): Likewise.
33111 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
33112 Likewise.
33113
33114 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
33115
33116 * stdlib/getentropy.c (getentropy): Change return type to int.
33117
33118 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
33119
33120 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
33121
33122 2017-08-03 Joseph Myers <joseph@codesourcery.com>
33123
33124 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
33125 u_intN_t.
33126 * math/s_nexttowardf.c (__nexttowardf): Likewise.
33127 * sysdeps/generic/math_private.h (ieee_double_shape_type):
33128 Likewise.
33129 (ieee_float_shape_type): Likewise.
33130 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
33131 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
33132 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
33133 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
33134 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
33135 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
33136 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
33137 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
33138 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
33139 Likewise.
33140 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
33141 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
33142 (__ieee754_yn): Likewise.
33143 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
33144 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
33145 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
33146 Likewise.
33147 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
33148 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
33149 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
33150 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
33151 (__erfc): Likewise.
33152 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
33153 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
33154 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
33155 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
33156 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
33157 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
33158 Likewise.
33159 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
33160 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
33161 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
33162 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
33163 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
33164 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
33165 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
33166 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
33167 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
33168 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
33169 (__issignaling): Likewise.
33170 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
33171 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
33172 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
33173 Likewise.
33174 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
33175 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
33176 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
33177 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
33178 Likewise.
33179 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
33180 Likewise.
33181 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
33182 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
33183 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
33184 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
33185 (__erfcf): Likewise.
33186 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
33187 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
33188 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
33189 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
33190 Likewise.
33191 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
33192 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
33193 Likewise.
33194 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
33195 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
33196 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
33197 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
33198 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
33199 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
33200 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
33201 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
33202 Likewise.
33203 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
33204 Likewise.
33205 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
33206 Likewise.
33207 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
33208 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
33209 Likewise.
33210 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
33211 Likewise.
33212 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
33213 (__ieee754_ynl): Likewise.
33214 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
33215 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
33216 Likewise.
33217 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
33218 Likewise.
33219 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
33220 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
33221 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
33222 Likewise.
33223 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
33224 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
33225 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
33226 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
33227 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
33228 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
33229 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
33230 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
33231 Likewise.
33232 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
33233 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
33234 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
33235 Likewise.
33236 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
33237 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
33238 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
33239 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
33240 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
33241 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
33242 Likewise.
33243 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
33244 Likewise.
33245 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
33246 Likewise.
33247 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
33248 Likewise.
33249 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
33250 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
33251 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
33252 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
33253 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
33254 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
33255 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
33256 Likewise.
33257 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
33258 Likewise.
33259 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
33260 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
33261 Likewise.
33262 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
33263 (__ieee754_remainderl): Likewise.
33264 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
33265 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
33266 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
33267 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
33268 Likewise.
33269 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
33270 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
33271 Likewise.
33272 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
33273 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
33274 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
33275 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
33276 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
33277 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
33278 Likewise.
33279 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
33280 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
33281 (__ieee754_y0l): Likewise.
33282 (pzero): Likewise.
33283 (qzero): Likewise.
33284 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
33285 (__ieee754_y1l): Likewise.
33286 (pone): Likewise.
33287 (qone): Likewise.
33288 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
33289 (__ieee754_ynl): Likewise.
33290 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
33291 (__ieee754_lgammal_r): Likewise.
33292 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
33293 Likewise.
33294 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
33295 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
33296 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
33297 (__erfcl): Likewise.
33298 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
33299 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
33300 Likewise.
33301 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
33302 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
33303 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
33304 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
33305 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
33306 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
33307 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
33308 Likewise.
33309 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
33310 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
33311 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
33312 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
33313 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
33314 Likewise.
33315 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
33316 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
33317 Likewise.
33318 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
33319 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
33320 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
33321 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
33322 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
33323
33324 2017-08-03 Florian Weimer <fweimer@redhat.com>
33325
33326 [BZ #21885]
33327 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
33328 on memory allocation failure.
33329
33330 2017-08-03 Alan Modra <amodra@gmail.com>
33331
33332 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
33333 tst-tlsopt-powerpc.c with function name change and no test harness.
33334 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
33335 Call tls_get_addr_opt_test.
33336 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
33337 (modules-names): Add mod-tlsopt-powerpc.
33338 (mod-tlsopt-powerpc.so-no-z-defs): Define.
33339 (tst-tlsopt-powerpc): Depend on .so.
33340 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
33341 define. Expand use in TLS_GD and TLS_LD.
33342
33343 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
33344
33345 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
33346 function.
33347 * sysdeps/posix/shm_open.c: Include <pthread.h>.
33348
33349 2017-08-02 Joseph Myers <joseph@codesourcery.com>
33350
33351 [BZ #21686]
33352 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
33353 comparing size with that of double.
33354 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
33355 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
33356 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
33357 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
33358 (__TGMATH_BINARY_REAL_IMAG): Likewise.
33359 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
33360 unsigned __int128 types.
33361
33362 2017-08-02 Steve Ellcey <sellcey@cavium.com>
33363
33364 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
33365 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
33366 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
33367 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
33368 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
33369
33370 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
33371
33372 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
33373
33374 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
33375
33376 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
33377 of SHARED.
33378 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
33379 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
33380 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
33381 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
33382 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
33383 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
33384 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
33385
33386 2017-08-02 Joseph Myers <joseph@codesourcery.com>
33387
33388 [BZ #21685]
33389 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
33390 bit-field expressions passed to sizeof or typeof.
33391 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
33392 (__TGMATH_F128): Likewise.
33393 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
33394 (__TGMATH_CF128): Likewise.
33395 (__TGMATH_UNARY_REAL_ONLY): Likewise.
33396 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
33397 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
33398 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
33399 (__TGMATH_BINARY_REAL_ONLY): Likewise.
33400 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
33401 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
33402 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
33403 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
33404 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
33405 (__TGMATH_UNARY_REAL_IMAG): Likewise.
33406 (__TGMATH_UNARY_IMAG): Likewise.
33407 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
33408 (__TGMATH_BINARY_REAL_IMAG): Likewise.
33409 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
33410 type.
33411 (define_vars_for_type): Handle bit_field type specially.
33412 (Tests.__init__): Declare structure with bit-field element.
33413
33414 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
33415
33416 [BZ #21791]
33417 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
33418 (MEMCPY_CHK): Define only if SHARED is defined.
33419 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
33420 Likewise.
33421 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
33422 Likewise.
33423
33424 See ChangeLog.18 for earlier changes.